annotate configure.in @ 51:69ce12f60f55

Added tag r19-16b91 for changeset ee648375d8d6
author cvs
date Mon, 13 Aug 2007 08:56:44 +0200
parents ee648375d8d6
children 461c7ba8286a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 24
diff changeset
1 dnl -*- mode: m4; m4-mode-hook : (lambda () (modify-syntax-entry ?\" "\"\"")) ; -*-
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 [#!/bin/sh
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 run_in_place='no'
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.
44
8d2a9b52c682 Import from CVS: tag r19-15prefinal
cvs
parents: 38
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'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 # # gnu echo silently eats `--help', `--version', `-n', `-e', `-E', `-n'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 # # other versions of echo eat any strings beginning with `-n'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 # # when parsing arguments, special case these strings and don't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 # # pass them through echo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 # echo=/bin/echo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 # this approach abandoned in favor of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 # echo "" ${stuff_to_filter} | sed -e 's:^ ::'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 # On Sun systems, people sometimes set up the variable CPP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 # with a value that is a directory, not an executable at all.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 # Detect that case, and ignore that value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 if [ "x$CPP" != x ] && [ -d "$CPP" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 CPP=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 fi
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 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 # Usage messages #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 Set compilation and installation parameters for XEmacs, and report.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 CONFIGURATION specifies the machine and operating system to build for.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 Note that for most of the following options, you can explicitly enable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 This is especially useful for auto-detected options.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 Options marked with a (*) are autodetected.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 General options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 --help Issue this usage message.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 --verbose Display the results of configure tests.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 --extra-verbose Also display the output of any compiler invocation.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 (Useful when feature tests are coming out wrong.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 Compiler options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 --compiler=XXXX Specify compiler.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 --with-gcc (*) Use GCC to compile XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 --with-lcc Use Lucid's LCC to compile XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 --with-gcc=no Don't use GCC to compile XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 --with-gnu-make Write the Makefiles to take advantage of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 special features of GNU Make. (GNU Make
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 works fine on the Makefiles even without this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 option. This just allows for simultaneous
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 in-place and --srcdir building.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 --cflags=FLAGS Override the default values for CFLAGS.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 --site-includes=DIR Other header file directories. Separate multiple
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 dirs with spaces and use quotes to enclose.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 --site-libraries=DIR Other library directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 --site-runtime-libraries=DIR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 Paths to add with -R flag.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 --dynamic=yes Link dynamically if supported by system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 --dynamic=no Force static linking on systems where dynamic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 linking is the default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 --srcdir=DIR Look for the XEmacs source files in DIR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 See also --with-gnu-make.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 --const-is-losing=no Allow the use of const in the source code.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 Installation options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 --run-in-place Use the source tree for installation.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 Window-system options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 --with-x (*) Support the X Window System.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 --with-x=no Don't support X.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 --x-includes=DIR Search for X header files in DIR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 --x-libraries=DIR Search for X libraries in DIR.
50
ee648375d8d6 Import from CVS: tag r19-16b91
cvs
parents: 48
diff changeset
220 --with-ns Support NeXTstep windows (Doesn't work, option
ee648375d8d6 Import from CVS: tag r19-16b91
cvs
parents: 48
diff changeset
221 removed in 20.3)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 widgets emulate Motif (mostly) but are faster.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 *WARNING* The Motif menubar is currently broken.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena, or no).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, or no).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 (Lucid menubars and scrollbars are the default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 Motif dialog boxes will be used if Motif can be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 found.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 --with-cde (*) Compile in support for CDE drag and drop.
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
231 --with-offix (*) Compile in support for OffiX drag and drop.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 --with-xpm (*) Compile with support for XPM files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 It is highly recommended that you obtain XPM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 (version 3.4g or better) if you don't already
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 have it. Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 Additional features:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 --with-toolbars=no Don't compile with any toolbar support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 --with-tooltalk Support the ToolTalk IPC protocol.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 --with-sparcworks Support the Sun Sparcworks development environment.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 --with-energize Support the Lucid Energize development environment.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 This doesn't currently work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 --with-socks Compile with support for SOCKS (an Internet proxy).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 --with-term Compile with support for TERM (a way to multiplex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 serial lines and provide vaguely Internet-like
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 functionality over a simple dialup connection,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 used on Linux and other systems. NOTE: We can't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 guarantee that our TERM support coexists well
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 with standard Internet connections).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 --with-xface (*) Compile with support for X-Face mail header
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 conversion. Requires the compface library.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 --with-gif Compile with support for GIF image conversion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 This requires no special support and defaults to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 \`yes'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 --with-jpeg (*) Compile with support for JPEG image conversion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 Requires libjpeg from the Independent JPEG Group.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 --with-png (*) Compile with support for PNG image conversion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 Requires libpng. Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 Accepted values are \`yes', \`no', and \`gnuz'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 if you want to use -lgz instead of -lz.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 --with-tiff Compile with support for TIFF image conversion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 (not yet implemented).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 --with-database=type (*) Compile with database support. Valid types are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 \`no' or a comma-separated list of one or more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 of \`dbm', \`gnudbm', or \`berkdb'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 --external-widget Compile with external widget support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 --with-sound=native (*) Compile with native sound support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 --with-sound=nas Compile with network sound support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 --with-sound=both Compile with native and network sound support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 --native-sound-lib=LIB Native sound support library. Needed on Suns
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 with --with-sound=both because both sound libraries
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 are called libaudio.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 --with-epoch Compile with additional Epoch compatibility.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 This doesn't work yet.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 --with-mocklisp Compile with Mocklisp support. Don't do this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 unless you have a Mocklisp program that you need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 to run.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 --usage-tracking Enable some Sun-internal code. If you don't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 know what this is, you don't want it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 Debugging options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 --debug Compile with support for debugging XEmacs.
44
8d2a9b52c682 Import from CVS: tag r19-15prefinal
cvs
parents: 38
diff changeset
290 (Causes code-size increase and little loss of speed.)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 --error-checking=TYPE[,TYPE]...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 Compile with internal error-checking added.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 Causes noticeable loss of speed. Valid types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 are extents, bufpos, malloc, gc, typecheck.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 --error-checking=none Disable all internal error-checking (the default).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 --error-checking=all Enable all internal error-checking.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 --memory-usage-stats Compile with additional code to allow you to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 determine what XEmacs's memory is being used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 for. Causes a small code increase but no loss
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 of speed. Normally enabled when --debug is given.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 --no-doc-file Don't rebuild the DOC file unless it's explicitly
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 deleted. Only use during development. (It speeds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 up the compile-run-test cycle.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 --use-union-type Enable or disable use of a union, instead of an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 int, for the fundamental Lisp_Object type; this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 provides stricter type-checking. Only works with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 some systems and compilers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 Other options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 --puresize=VALUE Override default amount of space for pure Lisp code.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 --rel-alloc Use the relocating allocator (default for this option
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 is system-dependent).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 --use-system-malloc Force use of the system malloc, rather than GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 malloc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 You may also specify any of the \`path' variables found in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 so on. Note that we recommend against explicitly setting any of these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 variables. See the INSTALL file for a complete list plus the reasons
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 we advise not changing them. Specifying a \'path' variable will override
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 the --run-in-place value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 If successful, ${progname} leaves its status in config.status. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 unsuccessful after disturbing the status quo, it removes config.status."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 # Options processing #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 # #
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 ### Record all the arguments, so we can save them in config.status.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 arguments="$@"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 ### in order to get the arguments back in $@, we have to do an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 ### `eval set x "$quoted_arguments"; shift'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 quoted_arguments=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 for i in "$@"; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 quoted_arguments="$quoted_arguments '$i'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 ### Don't use shift -- that destroys the argument list, which autoconf needs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 ### to produce config.status. It turns out that "set - ${arguments}" doesn't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 ### work portably.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 ### However, it also turns out that many shells cannot expand ${10} at all.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 ### 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
351 ### some shell magic to make 'set x "$arguments"; shift' work portably.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 while [ $# != 0 ]; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 arg="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 case "${arg}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 ## Anything starting with a hyphen we assume is an option.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 -* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 ## Separate the switch name from the value it's being given.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 case "${arg}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 -*=*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 valomitted=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 # ## special case these strings since echo may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 # ## silently eat them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 # --help ) opt=help val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 # --version ) opt=version val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 # -e ) opt=e val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 # -E ) opt=E val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 # -n ) opt=n val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 -*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 ## If FOO is a boolean argument, --FOO is equivalent to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 ## --FOO=yes. Otherwise, the value comes from the next
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 ## argument - see below.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 val="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 valomitted=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 ## Change `-' in the option name to `_'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 optname="${opt}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 ## Process the option.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 case "${opt}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 ## Has the user specified which window systems they want to support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 "with_x" | "with_x11" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 eval "with_x11=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 ## Has the user specified whether or not they want GCC or LCC?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 "with_gcc" | "with_lcc" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 if [ "${with_gcc}" = "yes" ] && [ "${with_lcc}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 (echo "${progname}: only one of --with-gcc and --with-lcc may be specified."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 ## Has the user specified a compiler to use?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 "compiler" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 \`--${optname}=FOO'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 compiler="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 ## Has the user specified special GNU Make support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 "with_gnu_make" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 ## This option will not force a rebuild of the DOC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 ## file each time that a source or Lisp file has changed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 ## If you want the DOC file rebuilt, remove it. A side
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 ## effect of this is that you may get complaints about
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 ## "doc lost for function foobar" or "strange doc for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463 ## function foobar", but in general these should not cause
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 ## problems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 "no_doc_file" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 # Enable use of the union type for Lisp_Objects.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 # mly, eat your heart out ...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 "use_union_type" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 ## Has the user specified a source directory?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 "srcdir" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 \`--${optname}=FOO'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 srcdir="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 ## Has the user requested sound support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 "with_sound" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 ## value can be native, nas or both. yes is allowed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 ## as a backwards compatible synonym for native
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 y | ye | yes ) val=native ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 n | no | non | none ) val=no;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 na | nat | nati | nativ | native ) val=native ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 b | bo | bot | both ) val=both;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 (echo "${progname}: the \`--${optname}' option should have one of the values \`native', \`nas', \`both', or \`none'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 ## Has the user specified a native sound library?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 ## (the reason for this flag is that, under Suns, both NAS sound
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 ## and native sound call their library libaudio.a)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 "native_sound_lib" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541 \`--${optname}=FOO'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 native_sound_lib="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 ## Has the user requested extra Epoch compatibility?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 "with_epoch" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566 ## Has the user specified a change to the default linking?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 "dynamic" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
572 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
573 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
580 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
581
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582 ## Has the user specified Quantify support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 "quantify" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 ## Has the user requested SOCKS support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 "with_socks" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 ## Has the user requested TERM support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 "with_term" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
620 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
622 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
623 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
628 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
630 ## Has the user requested CDE support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631 "with_cde" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
645
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
646 ## Has the user requested OffiX support?
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
647 "with_offix" )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
648 ## Make sure the value given was either "yes" or "no".
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
649 case "${val}" in
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
650 y | ye | yes ) val=yes ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
651 n | no ) val=no ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
652 * )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
653 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
654 Set it to either \`yes' or \`no'."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
655 echo "${short_usage}") >&2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
656 exit 1
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
657 ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
658 esac
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
659 eval "${opt}=\"${val}\""
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
660 ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
661
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 ## Has the user requested XPM support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 "with_xpm" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
664 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
665 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
666 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
667 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
668 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
669 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
670 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
672 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
673 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
675 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 ## Has the user requested XFACE support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 "with_xface" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
692 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
693
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
694 ## Has the user requested GIF support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695 "with_gif" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
699 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
702 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
703 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
704 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
705 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
706 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
709
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710 ## Has the user requested JPEG support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
711 "with_jpeg" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
712 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
714 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
722 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
723 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
724 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
725
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
726 ## Has the user requested database support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 "with_database" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728 if [ "${val}" = "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
729 with_database_berkdb=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 with_database_dbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
731 with_database_gnudbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
732 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
733 ## Make sure the value given was berkdb, dbm, gnudbm, or a list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
734 for x in `echo "${val}" | sed 's/,/ /'` ; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
735 case "${x}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
736 b | be | ber | berk | berkd | berkdb )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737 with_database_berkdb=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
738 d | db | dbm )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
739 with_database_dbm=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
740 g | gn | gnu | gnud | gnudb | gnudbm )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
741 with_database_gnudbm=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
742 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
743 (echo "${progname}: the \`--${optname}' option is supposed to be either \`no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
744 or a comma-separated list of one or more of \`berkdb', \`dbm', or \`gnudbm'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
745 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
746 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
747 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
748 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
749 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
750 if [ "${with_database_dbm}" = "yes" ] && [ "${with_database_gnudbm}" = "yes" ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
751 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752 (echo "${progname}: only one of \`dbm' and \`gnudbm' should be specified.") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
753 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
754 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
755 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
756 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
757
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
758 ## Has the user requested PNG support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
759 "with_png" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
760 ## Make sure the value given was either "yes", "no", or "gnuz".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
761 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
762 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
763 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764 g | gn | gnu | gnuz ) val=gnuz ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
765 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
766 (echo "${progname}: the \`--${optname}' option is supposed to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
767 be either \`yes', \`no', or \`gnuz'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
768 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
769 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
770 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
771 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
772 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
773 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
774
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
775 ## Has the user requested TIFF support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
776 "with_tiff" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
777 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
778 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
779 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
780 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
781 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
782 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
783 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
784 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
785 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
786 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
787 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
788 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
789 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
790
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
791 ## Has the user requested NeXTstep support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
792 "with_ns" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
793 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
794 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
795 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
796 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
797 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
798 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
799 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
800 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
801 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
802 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
803 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
804 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
805 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
806
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
807 ## Has the user requested that assertions be used?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
808 "use_assertions" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
809 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
811 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
812 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
813 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
814 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
815 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
816 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
817 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
818 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
819 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
820 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
822
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
823 ## Has the user requested error-checking?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
824 "error_checking" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
825 ## value can be all, none, and/or a list of categories to check.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
826 ## Example: --error-checking=all,noextents,nobufpos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
827 ## Example: --error-checking=none,malloc,gc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
828
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
829 for x in `echo "${val}" | sed 's/,/ /'` ; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
830 case "${x}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
831 # all and none are only permitted as the first in the list.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
832 n | no | non | none ) new_default=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
833 a | al | all ) new_default=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
834
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
835 extents ) error_check_extents=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
836 noextents ) error_check_extents=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
837
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
838 typecheck ) error_check_typecheck=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
839 notypecheck ) error_check_typecheck=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
840
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
841 bufpos ) error_check_bufpos=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
842 nobufpos ) error_check_bufpos=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
843
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
844 gc ) error_check_gc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
845 nogc ) error_check_gc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
846
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
847 malloc ) error_check_malloc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
848 nomalloc ) error_check_malloc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
849
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
850 * ) bogus_error_check=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
851 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
852 if [ "$bogus_error_check" -o \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
853 \( -n "$new_default" -a -n "$echeck_notfirst" \) ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
854 ( echo "${progname}: Valid types for the \`--${optname}' option are:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
855 if [ $error_check_default = yes ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
856 echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
857 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
858 echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
859 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
860 echo "${short_usage}" ) >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
861 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
862 elif [ "$new_default" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
863 error_check_extents=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
864 error_check_typecheck=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
865 error_check_bufpos=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
866 error_check_gc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
867 error_check_malloc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
868 new_default= # reset this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
869 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
870 echeck_notfirst=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
871 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
872 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
873
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
874 ## Has the user requested external widget support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
875 "external_widget" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
876 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
877 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
878 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
879 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
880 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
881 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
882 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
883 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
884 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
885 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
886 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
887 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
888 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
889
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
890 ## Has the user requested that const be used?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891 "const_is_losing" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
892 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
893 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
894 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
895 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
896 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
897 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
898 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
899 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
900 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
901 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
902 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
903 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
904 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
905
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
906 ## Has the user mentioned that they don't have Xmu?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907 "with_xmu" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
908 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
909 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
910 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
911 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
912 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
913 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
914 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
915 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
916 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
917 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
918 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
919 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
920 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
921
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
922 ## Has the user specified a value for RAW_PURESIZE?
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
923 "puresize" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
924 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
925 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
926 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
927 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
928 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
929 \`--${optname}=FOO'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
930 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
931 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
932 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
933 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
934 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
935 puresize="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
936 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
937
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
938 ## Has the user specified explicit instructions for rel_alloc?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
939 "rel_alloc" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
940 ## Make sure the value given was either "yes", "no", or "default".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
941 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
942 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
943 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
944 d | de | def | defa | defau | defaul | default )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
945 val=default ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
946 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
947 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
948 Set it to either \`yes', \`no', or \`default'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
949 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
950 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
951 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
952 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
953 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
954 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
955
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
956 ## Has the user specified explicit instructions for system_malloc?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
957 "use_system_malloc" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
958 ## Make sure the value given was either "yes", "no", or "default".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
959 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
960 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
961 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
962 d | de | def | defa | defau | defaul | default )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
963 val=default ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
964 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
965 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
966 Set it to either \`yes', \`no', or \`default'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
967 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
968 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
969 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
970 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
971 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
972 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
973
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
974 ## Has the user tried to tell us where the X files are?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
975 ## I think these are dopey, but no less than three alpha
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
976 ## testers, at large sites, have said they have their X files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
977 ## installed in odd places.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
978 "x_includes" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
979 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
980 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
981 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
982 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
983 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
984 \`--${optname}=/usr/local/X11/include'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
985 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
986 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
987 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
988 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
989 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
990 x_includes="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
991 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
992 "x_libraries" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
993 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
994 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
995 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
996 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
997 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
998 \`--${optname}=/usr/local/X11/lib'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
999 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1000 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1001 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1002 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1003 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1004 x_libraries="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1005 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1006
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1007 "site_includes" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1008 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1009 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1010 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1011 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1012 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1013 \`--${optname}=/usr/local/X11/include'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1014 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1015 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1016 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1017 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1018 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1019 site_includes="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1020 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1021
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1022 "site_libraries" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1023 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1024 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1025 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1026 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1027 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1028 \`--${optname}=/usr/local/X11/lib'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1029 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1030 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1031 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1032 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1033 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1034 site_libraries="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1035 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1036
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1037 "site_runtime_libraries" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1038 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1039 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1040 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1041 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1042 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1043 \`--${optname}=/usr/local/X11/lib'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1044 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1045 exit 1
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 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1048 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1049 site_runtime_libraries="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1050 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1051
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1052 ## Has the user specified the developer configuration?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1053 ## Note that the user still has the option of explicitly setting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1054 ## a path option.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1055 "run_in_place" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1056 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1057 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1058 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1059 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1060 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1061 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1062 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1063 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1064 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1065 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1066 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1067 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1068 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1069
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1070 ## Has the user specified one of the path options?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1071 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1072 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1073 sitelispdir | docdir )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1074 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1075 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1076 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1077 (echo \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1078 "$progname: You must give a value for the \`--${optname}' option,";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1079 echo \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1080 "as in \`--${optname}=`eval echo '$'$optname`.'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1081 echo "$short_usage") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1082 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1083 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1084 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1085 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1086 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1087
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1088 ## Changing exec_prefix or libdir will change the default value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1089 ## of archlibdir. Changing datadir will change the default value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1090 ## of etcdir and lispdir. Changing statedir will change the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1091 ## default value of lockdir.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1092 if [ "${opt}" = "exec_prefix" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1093 archlibdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1094 elif [ "${opt}" = "libdir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1095 archlibdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1096 elif [ "${opt}" = "archlibdir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1097 archlibdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1098 elif [ "${opt}" = "lispdir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1099 lispdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1100 elif [ "${opt}" = "etcdir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1101 etcdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1102 elif [ "${opt}" = "datadir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1103 lispdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1104 etcdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1105 elif [ "${opt}" = "statedir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1106 lockdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1107 elif [ "${opt}" = "lockdir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1108 lockdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1109 elif [ "${opt}" = "infodir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1110 infodir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1111 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1112 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1113
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1114 ## Has the user specified values to override CFLAGS?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1115 cflags )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1116 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1117 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1118 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1119 (echo \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1120 "$progname: You must give a value for the \`--${optname}' option,";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1121 echo \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1122 "as in \`--${optname}=`eval echo '$'$optname`-g -O'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1123 echo "$short_usage") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1124 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1125 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1126 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1127 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1128 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1129 eval "${opt}_specified=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1130 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1132 ## Verbose flag, tested by autoconf macros.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1133 "verbose" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1134 verbose=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1135 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1136
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1137 ## Does the user want to see the compiler output for feature tests?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1138 "extra_verbose" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1139 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1140 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1141 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1142 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1143 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1144 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1145 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1146 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1147 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1148 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1149 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1150 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1151 ## --extra-verbose implies --verbose
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1152 verbose=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1153 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1154
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1155 ## --no-create added by autoconf for use by config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1156 "no_create" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1157 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1158
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1159 ## Has the user asked for some help?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1160 "usage" | "help" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1161 if [ "x$PAGER" = x ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1162 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1163 echo "${short_usage}" | more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1164 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1165 echo "${short_usage}" | $PAGER
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1166 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1167 exit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1168 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1169
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1170 ## Has the user specified what toolkit to use for the menubars,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1171 ## scrollbar or dialogs?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1172 "with_menubars" | "with_scrollbars" | "with_dialogs" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1173 ## value can be lucid, motif, or athena.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1174 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1175 l | lu | luc | luci | lucid ) val=lucid ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1176 m | mo | mot | moti | motif ) val=motif ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1177 a | at | ath | athe | athen | athena ) val=athena ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1178 n | no | non | none ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1179 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1180 (echo "${progname}: the \`--${optname}' option should have one of the values \`lucid', \`motif', \`athena', or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1181 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1182 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1183 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1184 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1185 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1186 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1187
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1188 ## Has the user disabled toolbar support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1189 "with_toolbars" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1190 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1191 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1192 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1193 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1194 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1195 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1196 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1197 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1198 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1199 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1200 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1201 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1202 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1203
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1204 ## Has the user disabled TTY support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1205 "with_tty" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1206 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1207 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1208 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1209 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1210 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1211 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1212 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1213 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1214 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1215 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1216 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1217 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1218 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1220 ## Has the user specified whether or not they want to use ToolTalk?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1221 "with_tooltalk" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1222 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1223 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1224 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1225 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1226 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1227 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1228 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1229 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1230 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1231 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1232 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1233 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1234 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1235
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1236 ## Has the user specified whether or not they want Mocklisp support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1237 "with_mocklisp" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1238 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1239 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1240 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1241 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1242 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1243 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1244 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1245 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1246 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1247 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1248 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1249 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1250 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1251
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1252 ## Has the user specified whether or not they want to use SparcWorks?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1253 "with_sparcworks" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1254 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1255 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1256 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1257 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1258 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1259 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1260 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1261 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1262 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1263 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1264 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1265 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1266 if [ "${with_sparcworks}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1267 with_tooltalk='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1268 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1269 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1270
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1271 ## Does the user want usage tracking?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1272 "usage_tracking" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1273 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1274 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1275 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1276 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1277 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1278 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1279 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1280 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1281 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1282 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1283 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1284 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1285 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1286
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1287 ## Does the user want additional debugging capability?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1288 "debug" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1289 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1290 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1291 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1292 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1293 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1294 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1295 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1296 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1297 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1298 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1299 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1300 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1301 if [ "${debug}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1302 use_assertions='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1303 memory_usage_stats='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1304 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1305 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1306
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1307 ## Does the user want code for memory usage stats?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1308 "memory_usage_stats" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1309 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1310 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1311 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1312 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1313 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1314 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1315 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1316 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1317 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1318 ;;
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 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1321 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1322
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1323 ## Has the user specified whether or not they want to use Energize?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1324 "with_energize" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1325 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1326 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1327 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1328 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1329 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1330 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1331 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1332 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1333 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1334 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1335 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1336 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1337 if [ "${with_energize}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1338 with_menubars='lucid'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1339 with_scrollbars='motif'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1340 with_dialogs='motif'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1341 with_tooltalk='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1342 internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1343 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1344 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1345
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1346 ## Fail on unrecognized arguments.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1347 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1348 (echo "${progname}: Error: unrecognized option ${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1349 echo ""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1350 echo "${short_usage}") >& 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1351 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1352 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1353
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1354 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1355 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1356
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1357 ## Anything not starting with a hyphen we assume is a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1358 ## configuration name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1359 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1360 configuration=${arg}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1361 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1362
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1363 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1364 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1365
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1366 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1367 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1368 # Finish options processing #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1369 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1370 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1371
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1372 ### Get the arguments back. See the diatribe on Shell Magic above.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1373 eval set x "$quoted_arguments"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1374
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1375 if [ "${configuration}" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1376 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
1377 - I will attempt to guess the kind of system this is.' 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1378 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1379 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1380 echo "- Looks like this is a ${configuration}" 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1381 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1382 echo '- Failed to guess the system type. You need to tell me.' 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1383 echo "${short_usage}" >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1384 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1385 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1386 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1387
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1388 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1389 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1390 # Handle --srcdir #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1391 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1392 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1393
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1394 #### Decide where the source is.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1395 case "${srcdir}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1396
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1397 ## If it's not specified, see if `.' or `..' might work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1398 "" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1399 confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1400 if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1401 srcdir="${confdir}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1402 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1403 if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1404 srcdir='.'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1405 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1406 if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1407 srcdir='..'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1408 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1409 (echo "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1410 ${progname}: Neither the current directory nor its parent seem to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1411 contain the XEmacs sources. If you do not want to build XEmacs in its
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1412 source tree, you should run \`${progname}' in the directory in which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1413 you wish to build XEmacs, using its \`--srcdir' option to say where the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1414 sources may be found."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1415 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1416 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1417 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1418 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1419 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1420 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1421
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1422 ## Otherwise, check if the directory they specified is okay.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1423 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1424 if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1425 (echo "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1426 ${progname}: The directory specified with the \`--srcdir' option,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1427 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1428 either run the \`${progname}' script at the top of the XEmacs source
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1429 tree, or use the \`--srcdir' option to specify where the XEmacs sources
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1430 are."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1431 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1432 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1433 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1434 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1435 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1436
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1437 ## We check for this now instead of later when we check for other
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1438 ## programs because we need to use its return value now.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1439 ] AC_LN_S
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1440
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1441 AC_VERBOSE("setting LN_S to ${LN_S}")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1442 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1443 #### Make symlinks for etc, lisp, and info directories while the path
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1444 #### is still relative. We don't symlink lock because someone may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1445 #### have stuck the source on a read-only partition. Instead we'll
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1446 #### create it as an actual directory later on if it doesn't already
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1447 #### exist.
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
1448 for dir in lisp etc man info site-lisp
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1449 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1450 if [ ! -d $dir ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1451 echo Making symbolic link to ${srcdir}/$dir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1452 ${LN_S} ${srcdir}/$dir .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1453 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1454 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1455
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1456 #### Make srcdir absolute, if it isn't already. It's important to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1457 #### avoid running the path through pwd unnecessary, since pwd can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1458 #### give you automounter prefixes, which can go away.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1459 case "${srcdir}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1460 /* ) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1461 . )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1462 ## We may be able to use the $PWD environment variable to make this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1463 ## absolute. But sometimes PWD is inaccurate.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1464 if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1465 srcdir="$PWD"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1466 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1467 srcdir="`(cd ${srcdir}; pwd)`"
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 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1470 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1471 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1472
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1473 #### Check if the source directory already has a configured system in it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1474 if [ `pwd` != `sh -c cd ${srcdir} && pwd` ] \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1475 && [ -f "${srcdir}/src/config.h" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1476 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1477 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
1478 echo " right. To configure in another directory as well, you MUST"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1479 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
1480 echo " now do \`make distclean' in ${srcdir},"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1481 echo " and then run ${progname} again.") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1482 extrasub='/^VPATH[ ]*=/c\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1483 vpath %.c $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1484 vpath %.h $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1485 vpath %.y $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1486 vpath %.l $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1487 vpath %.s $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1488 vpath %.in $(srcdir)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1489 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1490
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1491 ### Make the necessary directories, if they don't exist.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1492 for dir in ./src ./lib-src ./dynodump ./man ./lwlib ./lock ; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1493 if [ ! -d ${dir} ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1494 mkdir ${dir}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1495 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1496 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1497 if [ "${with_energize}" = "yes" ] && [ ! -d ./lwlib/energize ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1498 mkdir ./lwlib/energize
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1499 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1500
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1501 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1502 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1503 # Determine the s&m files to use #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1504 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1505 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1506
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1507 #### Given the configuration name, set machfile and opsysfile to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1508 #### names of the m/*.h and s/*.h files we should use.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1509
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1510 ### Canonicalize the configuration name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1511 echo "checking the configuration name"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1512 # allow -energize prefix on configuration name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1513 internal_configuration=`echo ${configuration} | sed 's/-energize//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1514 # allow --sparcworks prefix on configuration name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1515 internal_configuration=`echo ${configuration} | sed 's/-sparcworks//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1516 if canonical=`${srcdir}/config.sub "${internal_configuration}"` ; then : ; else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1517 exit $?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1518 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1519
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1520 ### If you add support for a new configuration, add code to this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1521 ### switch statement to recognize your configuration name and select
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1522 ### the appropriate operating system and machine description files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1523
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1524 ### You would hope that you could choose an m/*.h file pretty much
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1525 ### based on the machine portion of the configuration name, and an s-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1526 ### file based on the operating system portion. However, it turns out
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1527 ### that each m/*.h file is pretty manufacturer-specific - for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1528 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1529 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1530 ### machines. So we basically have to have a special case for each
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1531 ### configuration name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1532 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1533 ### As far as handling version numbers on operating systems is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1534 ### concerned, make sure things will fail in a fixable way. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1535 ### /etc/MACHINES doesn't say anything about version numbers, be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1536 ### prepared to handle anything reasonably. If version numbers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1537 ### matter, be sure /etc/MACHINES says something about it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1538 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1539 ### Eric Raymond says we should accept strings like "sysvr4" to mean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1540 ### "System V Release 4"; he writes, "The old convention encouraged
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1541 ### confusion between `system' and `release' levels'."
8
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1542 ###
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1543 ### We rely on cpp to generate makefiles from Makefile.in.in templates.
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1544 ### There is at least one drawback to that. Since cpp generally has
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1545 ### built-in macro definitions like `#define unix' or `#define i386',
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1546 ### we must be careful to prevent it from substituting these occurences
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1547 ### in certain places in the makefiles. Pathnames for architecture-
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1548 ### specific files come to mind.
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1549 ### This is where CPPFLAGS_MAKEFILEGEN comes in. We try to selectively
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1550 ### disable (potentially) predefined macros that we find to be part of
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1551 ### the configuration string.
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1552 ### This is but a poor method to help us fight off cpp, but it covers
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1553 ### those cases that used to bite me. <mdiers@logware.de>
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1554
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
1555 CPPFLAGS_MAKEFILEGEN="" # we normally do not need any extra flags
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1556
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1557 machine='' opsys='' unported=no need_dynodump=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1558 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1559
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1560 ## NetBSD ports
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1561 *-*-netbsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1562 opsys=netbsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1563 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1564 sparc-*-netbsd*) machine=sparc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1565 i[3-9]86-*-netbsd*) machine=intel386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1566 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1567 # Yes, this is somewhat bogus.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1568 machine=hp9000s300 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1569 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1570 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1571 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1572 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1573
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1574 ## Acorn RISCiX:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1575 arm-acorn-riscix1.1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1576 machine=acorn opsys=riscix1-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1577 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1578 arm-acorn-riscix1.2* | arm-acorn-riscix )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1579 machine=acorn opsys=riscix1-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1580 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1581
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1582 ## Alliant machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1583 ## Strictly speaking, we need the version of the alliant operating
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1584 ## system to choose the right machine file, but currently the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1585 ## configuration name doesn't tell us enough to choose the right
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1586 ## one; we need to give alliants their own operating system name to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1587 ## do this right. When someone cares, they can help us.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1588 fx80-alliant-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1589 machine=alliant4 opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1590 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1591 i860-alliant-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1592 machine=alliant-2800 opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1593 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1594
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1595 ## Alpha (DEC) machines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1596 ## XEmacs change: split apart into numerous files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1597 alpha-dec-osf1.3 | alpha-dec-osf2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1598 machine=alpha opsys=decosf1-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1599 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1600 alpha-dec-osf1.2 | alpha-dec-osf1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1601 machine=alpha opsys=decosf1-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1602 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1603
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1604 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1605 alpha-dec-osf3.[2-9] )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1606 machine=alpha opsys=decosf3-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1607 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1608 alpha-dec-osf3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1609 machine=alpha opsys=decosf3-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1610 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1611
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1612 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1613 alpha-dec-osf4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1614 machine=alpha opsys=decosf4-0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1615 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1616
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1617 alpha-*-linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1618 machine=alpha opsys=linux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1619 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1620
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1621 ## Altos 3068
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1622 m68*-altos-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1623 machine=altos opsys=usg5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1624 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1625
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1626 ## Amdahl UTS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1627 580-amdahl-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1628 machine=amdahl opsys=usg5-2-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1629 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1630
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1631 ## Apollo, Domain/OS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1632 m68*-apollo-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1633 machine=apollo opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1634 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1635
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1636 ## AT&T 3b2, 3b5, 3b15, 3b20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1637 we32k-att-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1638 machine=att3b opsys=usg5-2-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1639 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1640
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1641 ## AT&T 3b1 - The Mighty Unix PC!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1642 m68*-att-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1643 machine=7300 opsys=usg5-2-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1644 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1645
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1646 ## Bull dpx20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1647 rs6000-bull-bosx* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1648 machine=ibmrs6000 opsys=aix3-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1649 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1650
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1651 ## Bull dpx2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1652 m68*-bull-sysv3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1653 machine=dpx2 opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1654 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1655
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1656 ## Bull sps7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1657 m68*-bull-sysv2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1658 machine=sps7 opsys=usg5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1659 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1660
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1661 ## CCI 5/32, 6/32 -- see "Tahoe".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1662
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1663 ## Celerity
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1664 ## I don't know what configuration name to use for this; config.sub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1665 ## doesn't seem to know anything about it. Hey, Celerity users, get
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1666 ## in touch with us!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1667 celerity-celerity-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1668 machine=celerity opsys=bsd4-2
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 ## Clipper
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1672 ## What operating systems does this chip run that XEmacs has been
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1673 ## tested on?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1674 clipper-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1675 machine=clipper
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1676 ## We'll use the catch-all code at the bottom to guess the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1677 ## operating system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1678 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1679
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1680 ## Convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1681 *-convex-bsd* | *-convex-convexos* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1682 machine=convex opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1683 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1684 NON_GNU_CPP="cc -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1685 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1686
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1687 ## Cubix QBx/386
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1688 i[3-9]86-cubix-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1689 machine=intel386 opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1690 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1691
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1692 ## Cydra 5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1693 cydra*-cydrome-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1694 machine=cydra5 opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1695 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1696
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1697 ## Data General AViiON Machines
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
1698 i586-dg-dgux5.4R4* | i586-dg-dgux5.4.4* )
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
1699 machine=aviion opsys=dgux5-4r4
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
1700 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1701 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1702 machine=aviion opsys=dgux5-4r3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1703 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1704 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1705 machine=aviion opsys=dgux5-4r2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1706 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1707 m88k-dg-dgux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1708 machine=aviion opsys=dgux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1709 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1710
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1711 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1712 machine=pmax opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1713 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1714 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1715 machine=pmax opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1716 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1717 mips-dec-ultrix* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1718 machine=pmax opsys=ultrix4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1719 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1720 mips-dec-osf* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1721 machine=pmax opsys=osf1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1722 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1723 mips-dec-mach_bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1724 machine=pmax opsys=mach-bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1725 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1726
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1727 ## Motorola Delta machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1728 m68k-motorola-sysv* | m68000-motorola-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1729 machine=delta opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1730 if test -z "`type gnucc | grep 'not found'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1731 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1732 if test -s /etc/167config
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1733 then CC="gnucc -m68040"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1734 else CC="gnucc -m68881"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1735 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1736 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1737 if test -z "`type gcc | grep 'not found'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1738 then CC=gcc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1739 else CC=cc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1740 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1741 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1742 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1743 m88k-motorola-sysv4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1744 # 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
1745 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1746 # I hope there are not other 4.0 versions for this machine
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1747 # which really need usg5-4 instead.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1748 machine=delta88k opsys=usg5-4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1749 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1750 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1751 machine=delta88k opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1752 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1753
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1754 ## Dual machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1755 m68*-dual-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1756 machine=dual opsys=usg5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1757 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1758 m68*-dual-uniplus* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1759 machine=dual opsys=unipl5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1760 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1761
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1762 ## Elxsi 6400
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1763 elxsi-elxsi-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1764 machine=elxsi opsys=usg5-2
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 ## Encore machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1768 ns16k-encore-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1769 machine=ns16000 opsys=umax
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1770 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1771
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1772 ## The GEC 93 - apparently, this port isn't really finished yet.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1773
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1774 ## Gould Power Node and NP1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1775 pn-gould-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1776 machine=gould opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1777 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1778 pn-gould-bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1779 machine=gould opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1780 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1781 np1-gould-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1782 machine=gould-np1 opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1783 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1784
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1785 ## 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
1786 ## as far as XEmacs is concerned).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1787 m88k-harris-cxux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1788 # Build needs to be different on 7.0 and later releases
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1789 case "`uname -r`" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1790 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1791 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1792 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1793 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1794 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1795 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1796 m68k-harris-cxux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1797 machine=nh3000 opsys=cxux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1798 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1799 ## Harris power pc NightHawk running Power UNIX (Series 6000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1800 powerpc-harris-powerunix )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1801 machine=nh6000 opsys=powerunix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1802 NON_GNU_CPP="cc -Xo -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1803 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1804
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1805 ## Honeywell XPS100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1806 xps*-honeywell-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1807 machine=xps100 opsys=usg5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1808 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1809
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1810 ## HP 9000 series 200 or 300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1811 m68*-hp-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1812 machine=hp9000s300 opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1813 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1814 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1815 m68*-hp-hpux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1816 NON_GNU_CPP="cc -Aa -E"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1817 NON_GNU_CC="cc -Aa"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1818 case "`uname -r`" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1819 ## Someone's system reports A.B8.05 for this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1820 ## I wonder what other possibilities there are.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1821 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1822 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1823 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1824 *.10.* ) machine=hp9000s300 opsys=hpux10 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1825 *) machine=hp9000s300 opsys=hpux ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1826 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1827 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1828
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1829 ## HP 9000 series 700 and 800, running HP/UX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1830 ## XEmacs changes here for shared.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1831 hppa*-hp-hpux7* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1832 machine=hp800 opsys=hpux NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1833 ;;
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
1834 hppa*-hp-hpux8*shr* )
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
1835 machine=hp800 opsys=hpux8*shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1836 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1837 hppa*-hp-hpux8* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1838 machine=hp800 opsys=hpux8 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1839 ;;
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
1840 hppa*-hp-hpux9*shr* )
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
1841 machine=hp800 opsys=hpux9*shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1842 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1843 hppa*-hp-hpux9* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1844 machine=hp800 opsys=hpux9 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1845 ;;
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
1846 hppa*-hp-hpux10*shr* )
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
1847 machine=hp800 opsys=hpux10*shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1848 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1849 hppa*-hp-hpux10* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1850 machine=hp800 opsys=hpux10 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1851 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1852
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1853 ## HP 9000 series 700 and 800, running HP/UX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1854 hppa*-hp-hpux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1855 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1856 ## Cross-compilation? Nah!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1857 case "`uname -r`" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1858 ## Someone's system reports A.B8.05 for this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1859 ## I wonder what other possibilities there are.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1860 *.B8.* ) machine=hp800 opsys=hpux8 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1861 *.08.* ) machine=hp800 opsys=hpux8 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1862 *.09.* ) machine=hp800 opsys=hpux9 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1863 *.10.* ) machine=hp800 opsys=hpux10 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1864 *) machine=hp800 opsys=hpux ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1865 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1866 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1867 hppa-*-nextstep* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1868 machine=hp800 opsys=nextstep
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1869 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1870
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1871 ## Orion machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1872 orion-orion-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1873 machine=orion opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1874 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1875 clipper-orion-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1876 machine=orion105 opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1877 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1878
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1879 ## IBM machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1880 i[3-9]86-ibm-aix1.1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1881 machine=ibmps2-aix opsys=usg5-2-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1882 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1883 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1884 machine=ibmps2-aix opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1885 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1886 i370-ibm-aix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1887 machine=ibm370aix opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1888 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1889 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1890 machine=ibmrs6000 opsys=aix3-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1891 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1892 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1893 machine=ibmrs6000 opsys=aix3-2-5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1894 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1895 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1896 machine=ibmrs6000 opsys=aix4-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1897 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1898 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1899 machine=ibmrs6000 opsys=aix4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1900 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1901 rs6000-ibm-aix* | powerpc-ibm-aix* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1902 machine=ibmrs6000 opsys=aix3-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1903 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1904 romp-ibm-bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1905 machine=ibmrt opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1906 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1907 romp-ibm-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1908 machine=ibmrt opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1909 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1910 romp-ibm-aos4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1911 machine=ibmrt opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1912 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1913 romp-ibm-aos4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1914 machine=ibmrt opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1915 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1916 romp-ibm-aos* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1917 machine=ibmrt opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1918 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1919 romp-ibm-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1920 machine=ibmrt opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1921 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1922 romp-ibm-aix* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1923 machine=ibmrt-aix opsys=usg5-2-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1924 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1925 romp-ibm-mach* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1926 machine=ibmrt opsys=mach-bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1927 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1928
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1929 ## Integrated Solutions `Optimum V'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1930 m68*-isi-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1931 machine=isi-ov opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1932 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1933 m68*-isi-bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1934 machine=isi-ov opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1935 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1936
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1937 ## Intel 386 machines where we do care about the manufacturer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1938 i[3-9]86-intsys-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1939 machine=is386 opsys=usg5-2-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1940 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1941
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1942 ## Prime EXL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1943 i[3-9]86-prime-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1944 machine=i386 opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1945 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1946
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1947 ## Sequent Symmetry running Dynix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1948 i[3-9]86-sequent-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1949 machine=symmetry opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1950 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1951
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1952 ## Sequent Symmetry running DYNIX/ptx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1953 ## Use the old cpp rather than the newer ANSI one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1954 i[3-9]86-sequent-ptx* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1955 machine=sequent-ptx opsys=ptx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1956 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1957 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1958
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1959 ## Unspecified sysv on an ncr machine defaults to svr4.2.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1960 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1961 i[3-9]86-ncr-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1962 machine=ncr386 opsys=usg5-4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1963 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1964
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1965 ## Intel Paragon OSF/1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1966 i860-intel-osf1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1967 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1968 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1969
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1970 ## Intel 860
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1971 i860-*-sysv4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1972 machine=i860 opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1973 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1974 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1975 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1976
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1977 ## Masscomp machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1978 m68*-masscomp-rtu* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1979 machine=masscomp opsys=rtu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1980 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1981
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1982 ## Megatest machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1983 m68*-megatest-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1984 machine=mega68 opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1985 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1986
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1987 ## Workstations sold by MIPS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1988 ## This is not necessarily all workstations using the MIPS processor -
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1989 ## Irises are produced by SGI, and DECstations by DEC.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1990
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1991 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1992 ## 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
1993 ## it gives for choosing between the alternatives seems to be "Use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1994 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1995 ## the BSD world." I'll assume that these are instructions for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1996 ## handling two odd situations, and that every other situation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1997 ## should use mips.h and usg5-2-2, they being listed first.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1998 mips-mips-usg* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1999 machine=mips4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2000 ## 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
2001 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2002 mips-mips-riscos4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2003 machine=mips4 opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2004 NON_GNU_CC="cc -systype bsd43"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2005 NON_GNU_CPP="cc -systype bsd43 -E"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2006 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2007 mips-mips-riscos5* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2008 machine=mips4 opsys=riscos5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2009 NON_GNU_CC="cc -systype bsd43"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2010 NON_GNU_CPP="cc -systype bsd43 -E"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2011 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2012 mips-mips-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2013 machine=mips opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2014 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2015 mips-mips-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2016 machine=mips opsys=usg5-2-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2017 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2018
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2019 ## NeXT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2020 m68*-next-* | m68k-*-nextstep* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2021 machine=m68k opsys=nextstep
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2022 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2023
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2024 ## The complete machine from National Semiconductor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2025 ns32k-ns-genix* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2026 machine=ns32000 opsys=usg5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2027 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2028
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2029 ## NCR machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2030 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2031 machine=tower32 opsys=usg5-2-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2032 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2033 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2034 machine=tower32v3 opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2035 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2036
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2037 ## Nixdorf Targon 31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2038 m68*-nixdorf-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2039 machine=targon31 opsys=usg5-2-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2040 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2041
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2042 ## Nu (TI or LMI)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2043 m68*-nu-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2044 machine=nu opsys=usg5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2045 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2046
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2047 ## Plexus
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2048 m68*-plexus-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2049 machine=plexus opsys=usg5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2050 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2051
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2052 ## Pyramid machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2053 ## 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
2054 ## so I'm assuming it is its own architecture.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2055 pyramid-pyramid-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2056 machine=pyramid opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2057 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2058
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2059 ## Sequent Balance
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2060 ns32k-sequent-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2061 machine=sequent opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2062 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2063 ns32k-sequent-bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2064 machine=sequent opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2065 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2066
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2067 ## Siemens Nixdorf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2068 mips-siemens-sysv* | mips-sni-sysv*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2069 machine=mips-siemens opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2070 NON_GNU_CC=/usr/ccs/bin/cc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2071 NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2072 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2073
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2074 ## Silicon Graphics machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2075 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2076 m68*-sgi-iris3.5* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2077 machine=irist opsys=iris3-5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2078 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2079 m68*-sgi-iris3.6* | m68*-sgi-iris*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2080 machine=irist opsys=iris3-6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2081 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2082 ## Iris 4D
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2083 mips-sgi-irix3.* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2084 machine=iris4d opsys=irix3-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2085 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2086 mips-sgi-irix4.* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2087 machine=iris4d opsys=irix4-0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2088 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2089 mips-sgi-irix6* )
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
2090 machine=iris4d opsys=irix6-0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2091 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2092 mips-sgi-irix5.[3-9]* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2093 machine=iris4d opsys=irix5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2094 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2095 mips-sgi-irix5.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2096 machine=iris4d opsys=irix5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2097 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2098 mips-sgi-irix5.1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2099 machine=iris4d opsys=irix5-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2100 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2101 mips-sgi-irix5.* | mips-sgi-irix* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2102 machine=iris4d opsys=irix5-0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2103 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2105 ## SONY machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2106 m68*-sony-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2107 machine=news opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2108 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2109 m68*-sony-bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2110 machine=news opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2111 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2112 m68*-sony-newsos3* | m68*-sony-news3*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2113 machine=news opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2114 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2115 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2116 machine=news-risc opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2117 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2118 mips-sony-news* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2119 machine=news-risc opsys=newsos5
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 ## Stride
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2123 m68*-stride-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2124 machine=stride opsys=usg5-2
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 ## Suns
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2128 sparc-*-linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2129 machine=sparc opsys=linux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2130 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2132 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2133 # Hardware type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2134 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2135 m68*-sunos1* ) machine=sun1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2136 m68*-sunos2* ) machine=sun2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2137 m68* ) machine=sun3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2138 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2139 i[3-9]86-*-* ) machine=intel386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2140 rs6000* ) machine=rs6000 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2141 sparc* ) machine=sparc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2142 powerpc* ) machine=powerpc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2143 * ) unported=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2144 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2145
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2146 # Make `canonical' even more so.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2147 case "${canonical}" in *-sunos5*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2148 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2149 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2150
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2151 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2152 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2153 # But, SunOS 5.6 no longer needs dynodump because it has a similar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2154 # function integrated.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2155 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2156 *-sunos4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2157 test -x /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2158 *-solaris2.6* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2159 test -x /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2160 RANLIB=':'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2161 need_dynodump=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2162 *-solaris2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2163 test -x /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2164 RANLIB=':'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2165 need_dynodump=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2166 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2167
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2168 # (NON)?_GCC_TEST_OPTIONS variables are unused.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2169 # What were they supposed to do, exactly?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2170 # case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2171 # *-sunos4* ) GCC_TEST_OPTIONS=-static NON_GCC_TEST_OPTIONS=-bstatic ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2172 # esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2173
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2174 # FSF 19.31 has NON_GNU_CPP=/usr/lib/cpp for SunOS 4.x.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2175
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2176 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2177 ## The Sun386 didn't get past 4.0.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2178 i[3-9]86-*-sunos4 ) opsys=sunos4-0 ;;
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2179 *-sunos4*shr* ) opsys=sunos4-0-shr ;;
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2180 *-sunos4-0*shr* ) opsys=sunos4-0-shr ;;
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2181 *-sunos4-1*shr* ) opsys=sunos4-1-shr ;;
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2182 *-sunos4-1-2*shr* ) opsys=sunos4-1-2-shr ;;
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
2183 *-sunos4-1-3*shr* ) opsys=sunos4-1-3-shr ;;
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
2184 *-sunos4-1-[4-9]*shr* ) opsys=sunos4-1-4-shr ;;
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2185 *-sunos4.0* ) opsys=sunos4-0 ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2186 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
2187 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
2188 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2189 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2190
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2191 *-solaris2.3* ) opsys=sol2-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2192 *-solaris2.4* ) opsys=sol2-4 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2193 *-solaris2.5* ) opsys=sol2-5 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2194 *-solaris2.[6-9]* ) opsys=sol2-6 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2195 *-solaris* ) opsys=sol2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2196 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2197 * ) opsys=bsd4-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2198 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2199 ## Watch out for a compiler that we know will not work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2200 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2201 *-solaris* | *-sunos5* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2202 if [ "x$CC" = x/usr/ucb/cc ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2203 ## /usr/ucb/cc doesn't work;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2204 ## we should find some other compiler that does work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2205 unset CC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2206 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2207 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2208 *) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2209 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2210 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2211 sparc-*-nextstep* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2212 machine=sparc opsys=nextstep
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2213 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2214
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2215 ## Tadpole 68k
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2216 m68*-tadpole-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2217 machine=tad68k opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2218 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2220 ## Tahoe machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2221 tahoe-tahoe-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2222 machine=tahoe opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2223 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2224 tahoe-tahoe-bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2225 machine=tahoe opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2226 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2227
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2228 ## Tandem Integrity S2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2229 mips-tandem-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2230 machine=tandem-s2 opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2231 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2232
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2233 ## Tektronix XD88
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2234 m88k-tektronix-sysv3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2235 machine=tekxd88 opsys=usg5-3
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 ## Tektronix 16000 box (6130?)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2239 ns16k-tektronix-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2240 machine=ns16000 opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2241 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2242 ## Tektronix 4300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2243 ## src/m/tek4300.h hints that this is a m68k machine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2244 m68*-tektronix-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2245 machine=tek4300 opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2246 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2247
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2248 ## Titan P2 or P3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2249 ## We seem to have lost the machine-description file titan.h!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2250 titan-titan-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2251 machine=titan opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2252 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2253
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2254 ## Ustation E30 (SS5E)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2255 m68*-unisys-uniplus* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2256 machine=ustation opsystem=unipl5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2257 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2258
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2259 ## Vaxen.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2260 vax-dec-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2261 machine=vax
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2262 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2263 *-bsd4.1* ) opsys=bsd4-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2264 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2265 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2266 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2267 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2268 *-vms* ) opsys=vms ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2269 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2270 * ) unported=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2271 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2272 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2273
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2274 ## Whitechapel MG1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2275 ns16k-whitechapel-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2276 machine=mg1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2277 ## We don't know what sort of OS runs on these; we'll let the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2278 ## operating system guessing code below try.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2279 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2280
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2281 ## Wicat
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2282 m68*-wicat-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2283 machine=wicat opsys=usg5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2284 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2285
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2286 ## Intel 386 machines where we don't care about the manufacturer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2287 i[3-9]86-*-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2288 machine=intel386
8
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
2289 CPPFLAGS_MAKEFILEGEN="${CPPFLAGS_MAKEFILEGEN} -Ui386"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2290 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2291 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2292 *-isc2.2* ) opsys=isc2-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2293 *-isc4.0* ) opsys=isc4-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2294 *-isc4.* ) opsys=isc4-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2295 GCC_TEST_OPTIONS=-posix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2296 NON_GCC_TEST_OPTIONS=-Xp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2297 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2298 *-isc* ) opsys=isc3-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2299 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2300 *-esix* ) opsys=esix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2301 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2302 *-xenix* ) opsys=xenix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2303 *-linux* ) opsys=linux ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2304 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2305 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
2306 *-bsdi3* ) opsys=bsdos3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2307 *-bsdi2.1* ) opsys=bsdos2-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2308 *-bsdi2* ) opsys=bsdos2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2309 *-sco3.2v5* ) opsys=sco5 ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2310 ## This is a pain. Like the current USL cc, SCO's cc -E
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2311 ## tokenizes as it preprocesses, making configure very
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2312 ## unhappy. Unfortunately, /lib/cpp doesn't understand
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2313 ## flags like "-b elf", so we have to cheat in order to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2314 ## pick up the right defines for UNEXEC from the s-file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2315 ## 01/05/95 robertl@dgii.com
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2316 if [ "${dynamic}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2317 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2318 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2319 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2320 fi ;;
8
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
2321 *-386bsd* ) opsys=386bsd ;;
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
2322 *-freebsd* ) opsys=freebsd ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2323 *-nextstep* ) opsys=nextstep ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2324 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2325 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2326 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2327
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2328 ## Linux/68k
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2329 m68k-*-linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2330 machine=m68k opsys=linux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2331 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2332
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2333 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2334 unported=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2335 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2336 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2337
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2338 ### If the code above didn't choose an operating system, just choose
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2339 ### an operating system based on the configuration name. You really
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2340 ### only want to use this when you have no idea what the right
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2341 ### operating system is; if you know what operating systems a machine
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2342 ### runs, it's cleaner to make it explicit in the case statement
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2343 ### above.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2344 if [ x"${opsys}" = x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2345 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2346 *-gnu* ) opsys=gnu ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2347 *-bsd4.[01] ) opsys=bsd4-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2348 *-bsd4.2 ) opsys=bsd4-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2349 *-bsd4.3 ) opsys=bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2350 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2351 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2352 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2353 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2354 *-sysv4.1* | *-sysvr4.1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2355 NON_GNU_CPP=/usr/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2356 opsys=usg5-4 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2357 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2358 if [ x$NON_GNU_CPP = x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2359 if [ -f /usr/ccs/lib/cpp ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2360 NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2361 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2362 NON_GNU_CPP=/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2363 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2364 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2365 opsys=usg5-4-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2366 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2367 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2368 unported=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2369 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2370 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2371 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2372
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2373 if test "x$RANLIB" = x; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2374 RANLIB=ranlib
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2375 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2376
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2377 if test ${unported} = yes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2378 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2379 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2380 ) >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2381 exit 1
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2384 if [ "${dynamic}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2385 case "${opsys}" in
6
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
2386 hpux8 ) opsys=hpux8-shr ;;
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
2387 hpux9 ) opsys=hpux9-shr ;;
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
2388 hpux10 ) opsys=hpux10-shr ;;
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
2389 sunos4-0 ) opsys=sunos4-0-shr ;;
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
2390 sunos4-1 ) opsys=sunos4-1-shr ;;
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
2391 sunos4-1-2 ) opsys=sunos4-1-2-shr ;;
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
2392 sunos4-1-3 ) opsys=sunos4-1-3-shr ;;
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
2393 sunos4-1-4 ) opsys=sunos4-1-4-shr ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2394 sco5 ) opsys=sco5-shr ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2395 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2396 elif [ "${dynamic}" = "no" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2397 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2398 sol2 ) opsys=sol2-static ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2399 sol2-3 ) opsys=sol2-3-static ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2400 sol2-4 ) opsys=sol2-4-static ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2401 decosf1-3 ) opsys=decosf1-3-static ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2402 decosf3-1 ) opsys=decosf3-1-static ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2403 decosf3-2 ) opsys=decosf3-2-static ;;
48
56c54cf7c5b6 Import from CVS: tag r19-16b90
cvs
parents: 44
diff changeset
2404 decosf4-0 ) opsys=decosf4-0-static ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2405 linux ) opsys=linux-static ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2406 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2407 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2408
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2409 dynodump_arch=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2410 if [ "${need_dynodump}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2411 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2412 sparc* ) dynodump_arch=sparc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2413 powerpc* ) dynodump_arch=ppc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2414 i[3-9]86* ) dynodump_arch=i386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2415 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2416 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2417
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2418 machfile="m/${machine}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2419 opsysfile="s/${opsys}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2420
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2421
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2422 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2423 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2424 # Determine the compiler, set up for feature testing #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2425 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2426 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2427
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2428 ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2429 dnl -----------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2430 dnl Let's do a couple of macro (re)definitions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2431 dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2432 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
2433 dnl from preprocessor runs. This definition is identical to the standard
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2434 dnl one supplied by Autoconf 1.11 extra for the extra_verbose check.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2435 dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2436 dnl Note that we *must* include the brackets around the macro definition
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2437 dnl name here. Autoconf has redefined the quoting characters to be brackets,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2438 dnl and if we don't supply them, the original definition will get
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2439 dnl substituted in place of the macro name!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2440 dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2441 define([AC_TEST_CPP],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2442 [AC_REQUIRE_CPP()dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2443 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2444 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2445 [$1]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2446 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2447 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2448 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2449 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2450 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2451 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2452 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2453 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2454 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2455 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2456 ifelse([$2], , :, [rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2457 $2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2458 ])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2459 ifelse([$3], , , [else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2460 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2461 $3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2462 ])dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2463 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2464 rm -f conftest*])dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2465 dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2466 dnl Second, a macro of our own:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2467 dnl Subroutine to find version of X being used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2468 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
2469 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
2470 define(AC_FIND_X_VERSION,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2471 [AC_CHECKING(the version of X11 being used)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2472 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2473 #include <X11/Intrinsic.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2474 int main() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2475 #if (XlibSpecificationRelease == 4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2476 printf ("X11R4\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2477 #elif (XlibSpecificationRelease == 5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2478 printf ("X11R5\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2479 #elif (XlibSpecificationRelease == 6)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2480 printf ("X11R6\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2481 #elif (XtSpecificationRelease == 4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2482 printf ("X11R4\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2483 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2484 return 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2485 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2486 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2487 dnl We need to run this which will prevent cross-configuring. But since
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2488 dnl we can't do that anyhow, oh darn.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2489 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2490 LIBS="${LIBS} ${DEFS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2491 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2492 ac_find_x_version=`./conftest`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2493 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2494 if [ "$ac_find_x_version" = "X11R4" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2495 ] AC_DEFINE(THIS_IS_X11R4) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2496 elif [ "$ac_find_x_version" = "X11R5" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2497 ] AC_DEFINE(THIS_IS_X11R5) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2498 elif [ "$ac_find_x_version" = "X11R6" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2499 ] AC_DEFINE(THIS_IS_X11R6) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2500 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2501 ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2502 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2503 LIBS=$ac_save_LIBS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2504 rm -f conftest*]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2505 )dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2506 dnl -----------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2507 AC_LANG_C
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2508 AC_PREPARE(lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2509 AC_CONFIG_HEADER(src/config.h)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2510
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2511 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2512
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2513 if [ "${extra_verbose}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2514 # 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
2515 # it omits the redirection of all output to /dev/null.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2516 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2517 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2518
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2519 #### Choose a compiler.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2520 if [ "x$CC" = x ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2521 cc_specified=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2522 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2523
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2524 # Save the value of CFLAGS that the user specified.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2525 SPECIFIED_CFLAGS="$CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2526
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2527 if [ "${with_gcc}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2528 CC="${compiler-gcc}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2529 GCC=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2530 elif [ "${with_lcc}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2531 CC="${compiler-lcc}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2532 dash_r_space=' ' # this bullshit is here because lcc for solaris
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2533 # will not accept -Rargument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2534 # It needs -R argument instead. Yuck yuck yuck.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2535 if [ "x$NON_GNU_CPP" = x ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2536 NON_GNU_CPP="yes" # this is handled specially below...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2537 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2538 elif [ "${compiler}" != "" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2539 CC="${compiler}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2540 elif [ "${with_gcc}" = "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2541 CC="cc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2542 elif [ "${with_lcc}" = "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2543 if [ "x$CC" = x ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2544 then CC=cc;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2545 else true;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2546 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2547 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2548 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2549 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2550 ] AC_PROG_CC [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2551 if [ "${CC}" = "gcc" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2552 with_gcc="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2553 GCC=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2554 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2555 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2556 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2557 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2558
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2559 # On Suns, sometimes $CPP names a directory.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2560 if [ -n "$CPP" ] && [ -d "$CPP" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2561 CPP=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2562 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2563
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2564 #### Some systems specify a CPP to use unless we are using GCC.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2565 #### Now that we know whether we are using GCC, we can decide whether
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2566 #### to use that one.
6
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
2567
8
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
2568 if [ "x$GCC" = x1 ] || [ "x$NON_GNU_CPP" = x ] ; then
6
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
2569 true
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2570 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2571 if [ "x$CPP" = x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2572 if [ "${with_lcc}" = "yes" ] && [ "${NON_GNU_CPP}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2573 CPP='gcc -E -traditional' # cross fingers and hope it's there....
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2574 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2575 CPP="$NON_GNU_CPP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2576 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2577 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2578 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2579
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2580 #### Some systems specify a CC to use unless we are using GCC.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2581 #### Now that we know whether we are using GCC, we can decide whether
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2582 #### to use that one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2583 if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2584 then true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2585 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2586 CC="$NON_GNU_CC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2587 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2588
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2589 ## Huh? I commented out the following because it always enabled
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2590 ## the "test" options, whatever the hell those are supposed to be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2591 ## for, and the result is that SunOS builds were always static.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2592
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2593 #if [ x$GCC = x1 ] && [ "x$GCC_TEST_OPTIONS" != x ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2594 #then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2595 # CC="$CC $GCC_TEST_OPTIONS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2596 #fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2597 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2598 #if [ x$GCC = x ] && [ "x$NON_GCC_TEST_OPTIONS" != x ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2599 #then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2600 # CC="$CC $NON_GCC_TEST_OPTIONS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2601 #fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2602
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2603 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2604 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2605 # Do some misc autoconf-special tests #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2606 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2607 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2608
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2609 #### Some other nice autoconf tests. If you add a test here which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2610 #### 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
2611 #### #undef clause to src/config.h.in for autoconf to modify.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2612 ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2613 dnl checks for programs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2614 AC_PROG_CPP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2615 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2616 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2617 *-sun-sunos* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2618 if [ "${CPP}" = "acc -E" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2619 CPP="acc -E -Xs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2620 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2621 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2622 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2623 ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2624 AC_PROG_RANLIB
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2625 AC_PROG_INSTALL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2626 AC_PROG_YACC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2627
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2628 dnl checks for UNIX variants
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2629 AC_AIX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2630
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2631 dnl checks for header files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2632 AC_HAVE_HEADERS(mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h utime.h sys/wait.h libintl.h locale.h libgen.h linux/version.h)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2633 AC_STDC_HEADERS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2634 AC_TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2635 AC_SYS_SIGLIST_DECLARED
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2636
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2637 dnl Some systems have utime.h but don't declare the struct anyplace.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2638 AC_COMPILE_CHECK(struct utimbuf,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2639 [#ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2640 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2641 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2642 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2643 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2644 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2645 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2646 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2647 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2648 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2649 #ifdef HAVE_UTIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2650 #include <utime.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2651 #endif], [static struct utimbuf x; x.actime = x.modtime;],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2652 AC_DEFINE(HAVE_STRUCT_UTIMBUF))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2653
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2654 dnl checks for typedefs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2655 AC_RETSIGTYPE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2656
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2657 AC_COMPILE_CHECK(struct timeval,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2658 [#ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2659 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2660 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2661 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2662 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2663 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2664 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2665 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2666 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2667 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2668 HAVE_TIMEVAL=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2669 AC_DEFINE(HAVE_TIMEVAL)],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2670 [HAVE_TIMEVAL=no])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2671
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2672 dnl checks for structure members
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2673 AC_STRUCT_TM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2674 AC_TIMEZONE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2675
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2676 dnl checks for compiler characteristics
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2677 AC_CONST
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2678
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2679 dnl check for Make feature
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2680 AC_SET_MAKE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2681
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2682 dnl check byte order
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2683 AC_WORDS_BIGENDIAN
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2684
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2685 dnl check for long file names
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2686 AC_LONG_FILE_NAMES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2687
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2688 echo "checking for -xildoff compiler flag"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2689 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
2690 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
2691 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2692 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2693 AC_VERBOSE(defining NEED_XILDOFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2694 need_xildoff=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2695 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2696 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2697
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2698 dnl other checks for UNIX variants
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2699 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2700 # What the hell was this doing here??????
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2701 ### echo > confdefs.h # this gets nuked above...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2702
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2703 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2704 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2705 # Choose a window system #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2706 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2707 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2708
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2709 #### Choose a window system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2710 echo "checking for specified window system"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2711
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2712 window_system=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2713 case "${with_x11}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2714 yes )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2715 window_system=${window_system}x11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2716 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2717 no )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2718 window_system=${window_system}none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2719 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2720
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2721 case "${window_system}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2722 "none" | "x11" ) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2723 "" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2724 # --x-includes or --x-libraries implies --with-x11.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2725 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2726 window_system=x11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2727 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2728 echo " No window system specified. Looking for X11."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2729 # If the user didn't specify a window system and we found X11, use it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2730 if [ -r /usr/lib/libX11.a \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2731 -o -d /usr/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2732 -o -d /usr/X386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2733 -o -d /usr/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2734 -o -d ${x_includes}/X11 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2735 window_system=x11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2736 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2737 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2738 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2739 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2740 echo "Don't specify a window system more than once." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2741 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2742 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2743 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2744
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2745 case "${window_system}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2746 "" | "x11" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2747 ### If the user hasn't specified where we should find X, try
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2748 ### letting autoconf figure that out.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2749 if [ -z "${x_includes}" ] && [ -z "${x_libraries}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2750 ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2751 AC_FIND_X
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2752 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2753 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2754 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2755 window_system=x11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2756 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2757 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2758 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2759
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2760 [ -z "${window_system}" ] && window_system=none
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 [ "${window_system}" = "none" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2763 if [ "${with_tty}" != "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2764 echo "No window system support, and no TTY support." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2765 echo "Unable to proceed." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2766 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2767 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2768 if [ "${with_epoch}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2769 ] AC_WARN(--with-epoch ignored: Not valid without X support) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2770 with_epoch='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2771 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2772 if [ "x${with_cde}" != x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2773 ] AC_WARN(--with-cde ignored: Not valid without X support) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2774 with_menubars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2775 fi
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2776 if [ "x${with_offix}" != x ]; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2777 ] AC_WARN(--with-offix ignored: Not valid without X support) [
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2778 with_offix='no'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2779 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2780 if [ "x${with_menubars}" != x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2781 ] AC_WARN(--with-menubars ignored: Not valid without X support) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2782 with_menubars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2783 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2784 if [ "x${with_scrollbars}" != x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2785 ] AC_WARN(--with-scrollbars ignored: Not valid without X support) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2786 with_scrollbars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2787 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2788 if [ "x${with_dialogs}" != x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2789 ] AC_WARN(--with-dialogs ignored: Not valid without X support) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2790 with_dialogs='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2791 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2792 if [ "x${with_toolbars}" != x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2793 ] AC_WARN(--with-toolbars ignored: Not valid without X support) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2794 with_toolbars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2795 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2796 with_cde='no'
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2797 with_offix='no'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2798 with_menubars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2799 with_scrollbars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2800 with_dialogs='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2801 with_toolbars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2802 elif [ -z "${with_toolbars}" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2803 with_toolbars='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2804 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2805
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2806 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2807 *-sun-solaris* | *-sun-sunos5* ) add_runtime_flag=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2808 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2809
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2810 if [ -n "${x_libraries}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2811 if [ "${add_runtime_flag}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2812 LD_SWITCH_X_SITE="-L${x_libraries} -R${dash_r_space}${x_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2813 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2814 LD_SWITCH_X_SITE="-L${x_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2815 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2816 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2817 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2818 # [ -n "${x_libraries}" ] && LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2819 [ -n "${x_includes}" ] && C_SWITCH_X_SITE="-I${x_includes}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2820
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2821 if [ -n "${site_libraries}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2822 for arg in ${site_libraries}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2823 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2824 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2825 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2826 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2827 if [ -n "${site_runtime_libraries}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2828 for arg in ${site_runtime_libraries}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2829 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2830 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2831 LD_SWITCH_SITE="${LD_SWITCH_SITE} -R${dash_r_space}${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2832 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2833 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2834 if [ -n "${site_includes}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2835 for arg in ${site_includes}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2836 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2837 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2838 CPP="${CPP} -I${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2839 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2840 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2841
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2842 # FSF 19.29 has some bitmapdir stuff here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2843 bitmapdir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2844
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2845 # Avoid forcing the search of /usr/include before fixed include files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2846 if [ "$C_SWITCH_X_SITE" = "-I/usr/include" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2847 C_SWITCH_X_SITE=" "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2848 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2849
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2850 # Need for check for audio/Xtutil.h.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2851 CPP="${CPP} ${C_SWITCH_X_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2852
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2853 case "${window_system}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2854 x11 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2855 HAVE_X_WINDOWS=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2856 echo " Using X11."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2857 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2858 none )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2859 HAVE_X_WINDOWS=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2860 echo " Using no window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2861 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2862 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2863
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2864 if test "${opsys}" = "hpux9"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2865 case "${x_libraries}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2866 *X11R4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2867 opsysfile="s/hpux9-x11r4.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2868 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2869 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2870 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2871
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2872 if test "${opsys}" = "hpux9-shr"; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2873 case "${x_libraries}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2874 *X11R4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2875 opsysfile="s/hpux9shxr4.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2876 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2877 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2878 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2879
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2880 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2881 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2882 # Extract some information from the operating system and machine files #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2883 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2884 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2885
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2886 echo "examining the machine- and system-dependent files to find out"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2887 echo " - which libraries the lib-src programs will want, and"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2888 echo " - whether the GNU malloc routines are usable."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2889
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2890 ### First figure out CFLAGS (which we use for running the compiler here)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2891 ### and REAL_CFLAGS (which we use for real compilation).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2892 ### 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
2893 ### different to work around various lossages. For example,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2894 ### 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
2895 ### as implying static linking.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2896
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2897 ### If the CFLAGS env var is specified, we use that value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2898 ### instead of the default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2899
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2900 ### 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
2901 ### two configures in the same directory and have anything work
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2902 ### anyway.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2903 tempcname="conftest.c"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2904
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2905 echo '
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2906 #define NOT_C_CODE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2907 #include "'${srcdir}'/src/'${opsysfile}'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2908 #include "'${srcdir}'/src/'${machfile}'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2909 #ifndef LIBS_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2910 #define LIBS_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2911 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2912 #ifndef LIBS_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2913 #define LIBS_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2914 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2915 #ifndef C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2916 #define C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2917 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2918 #ifndef C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2919 #define C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2920 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2921 #ifndef C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2922 #define C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2923 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2924 #ifndef LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2925 #define LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2926 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2927 #ifndef LIB_STANDARD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2928 #define LIB_STANDARD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2929 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2930 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM LIB_STANDARD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2931 configure___ c_switch_system=C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2932 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2933 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2934 configure___ c_switch_machine=C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2935
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2936 #ifndef LIB_X11_LIB
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2937 #define LIB_X11_LIB -lX11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2938 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2939
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2940 #ifndef LIBX11_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2941 #define LIBX11_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2942 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2943
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2944 #ifndef LIBX11_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2945 #define LIBX11_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2946 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2947 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2948
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2949 #ifdef UNEXEC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2950 configure___ unexec=UNEXEC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2951 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2952 configure___ unexec=unexec.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2953 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2954
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2955 #ifdef SYSTEM_MALLOC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2956 configure___ system_malloc=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2957 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2958 configure___ system_malloc=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2959 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2960
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2961 #ifndef C_DEBUG_SWITCH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2962 #define C_DEBUG_SWITCH -g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2963 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2964
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2965 #ifndef C_OPTIMIZE_SWITCH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2966 #define C_OPTIMIZE_SWITCH -O
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2967 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2968
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2969 #ifdef THIS_IS_CONFIGURE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2970
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2971 /* Get the CFLAGS for tests in configure. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2972 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2973 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2974 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2975 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2976 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2977
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2978 #else /* not THIS_IS_CONFIGURE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2979
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2980 /* Get the CFLAGS for real compilation. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2981 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2982 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2983 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2984 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2985 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2986
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2987 #endif /* not THIS_IS_CONFIGURE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2988 ' > ${tempcname}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2989 # 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
2990 # to get its actual value...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2991 CPP=`eval "echo $CPP"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2992 eval `${CPP} -Isrc ${tempcname} \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2993 | grep 'configure___' \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2994 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2995 if [ "x$SPECIFIED_CFLAGS" = x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2996 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2997 | grep 'configure___' \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2998 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2999 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3000 REAL_CFLAGS="$CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3001 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3002 rm ${tempcname}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3003
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3004 # override CFLAGS if user wishes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3005 if [ "${cflags}" != "NO_CFLAGS_DEFINED" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3006 REAL_CFLAGS=${cflags}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3007 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3008
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3009 ### Compute the unexec source name from the object name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3010 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3011
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3012 # Do the opsystem or machine files prohibit the use of the GNU malloc?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3013 # Assume not, until told otherwise.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3014 GNU_MALLOC=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3015 if [ "${system_malloc}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3016 GNU_MALLOC=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3017 GNU_MALLOC_reason="
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3018 (The GNU allocators don't work with this system configuration.)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3019 elif [ "${use_system_malloc}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3020 GNU_MALLOC=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3021 GNU_MALLOC_reason="
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3022 (User chose not to use GNU allocators.)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3023 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3024
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3025 LISP_FLOAT_TYPE=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3026
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3027
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3028 #### Add the libraries to LIBS and check for some functions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3029
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3030 ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3031 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
3032 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
3033 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3034
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3035 dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3036 dnl and also adds -ldnet to LIBS, which Autoconf uses for checks.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3037 dnl FSF 19.29 also checks for function dnet_ntoa.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3038 AC_HAVE_LIBRARY(-ldnet)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3039 dnl This causes -lresolv to get used in subsequent tests,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3040 dnl which causes failures on some systems such as HPUX 9.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3041 dnl FSF 19.29 also checks for function gethostbyname.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3042 dnl AC_HAVE_LIBRARY(-lresolv)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3043
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3044 AC_HAVE_LIBRARY(-lXbsd, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3045
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3046 dnl FSF 19.29 also checks for function cma_open.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3047 AC_HAVE_LIBRARY(-lpthreads, HAVE_PTHREADS=yes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3048 if test -n "${HAVE_PTHREADS}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3049 AC_DEFINE(HAVE_PTHREADS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3050 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3051 decosf* ) CFLAGS="${CFLAGS} -threads" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3052 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3053 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3054
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3055 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3056 AC_CHECKING(for XFree86)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3057 if test -d /usr/X386/include; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3058 HAVE_XFREE386=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3059 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
3060 elif test -f /etc/XF86Config -o \
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
3061 -f /etc/X11/XF86Config -o \
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
3062 -f /usr/X11R6/lib/X11/XF86Config; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3063 HAVE_XFREE386=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3064 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
3065 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3066 HAVE_XFREE386=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3067 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3068 AC_VERBOSE(${HAVE_XFREE386})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3069 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3070 HAVE_XFREE386=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3071 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3072
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3073 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3074 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3075 # Test for various X-specific features #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3076 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3077 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3078
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3079 # Change CFLAGS temporarily for damn binutils 2.6.0.10 check.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3080 if test "${HAVE_X_WINDOWS}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3081 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3082 linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3083 CFLAGS="-Wl,-rpath-link,/usr/X11R6/lib $CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3084 AC_COMPILE_CHECK(whether path-link option is needed, [],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3085 [;],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3086 [need_path_link=yes],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3087 [need_path_link=no])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3088 if test "${need_path_link}" = "no"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3089 CFLAGS="$REAL_CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3090 AC_VERBOSE(no)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3091 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3092 AC_VERBOSE(yes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3093 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3094 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3095 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3096 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3097
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3098 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3099 # 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
3100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3101 if test "${HAVE_X_WINDOWS}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3102 DEFS="$C_SWITCH_X_SITE $DEFS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3103 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3104 LIBS="$LIBX $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3105 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3107 # 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
3108 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3109 # but it's more convenient here to set LD_RUN_PATH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3110 # 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
3111 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3112 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3113 export LD_RUN_PATH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3114 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3115
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3116 if test "${HAVE_XFREE386}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3117 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3118 linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3119 AC_COMPILE_CHECK(whether XFree86 needs -b to link, [],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3120 [XOpenDisplay ("foo");],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3121 [xfree86_first_failure=no],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3122 [xfree86_first_failure=yes])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3123 if test "${xfree86_first_failure}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3124 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3125 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3126 OLD_CPPFLAGS="$CPPFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3127 OLD_LIBS="$LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3128 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3129 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3130 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3131 LIBS="$LIBS -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3132 AC_COMPILE_CHECK(,[],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3133 [XOpenDisplay ("foo");],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3134 [xfree86_second_failure=no],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3135 [xfree86_second_failure=yes])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3136 if test "${xfree86_second_failure}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3137 # 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
3138 # So take it out. This plays safe.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3139 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3140 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3141 CPPFLAGS="$OLD_CPPFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3142 LIBS="$OLD_LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3143 AC_VERBOSE(no)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3144 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3145 AC_VERBOSE(yes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3146 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3147 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3148 AC_VERBOSE(no)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3149 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3150 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3151 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3152 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3153
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3154 # A C_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3155 #XScreenNumberOfScreen XSetWMProtocols)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3156 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3157
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3158 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3159 # make sure we can find libX11.*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3160 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3161 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3162 internal_xlibs_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3163 AC_HAVE_LIBRARY(-lX11, internal_xlibs_found='yes')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3164 if test "${internal_xlibs_found}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3165 echo "Unable to find X11 libraries." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3166 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3167 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3168 AC_VERBOSE(yes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3169 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3170 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3171
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3172 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3173 # make sure we can find Intrinsic.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3174 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3175 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3176 internal_xincludes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3177 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3178 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3179 if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3180 internal_xincludes_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3181 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3182 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3183 if test "${internal_xincludes_found}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3184 echo "Unable to find X11 header files." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3185 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3186 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3187 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3188
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3189 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3190 # Sun OS 4 systems need the following kludge
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3191 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3192 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3193 case "${canonical}" in *-sunos4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3194 LIBS="$LIBS -u _XtToolkitInitialize -u _get_applicationShellWidgetClass" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3195 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3196 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3197
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3198 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3199 # See if we can find Xauth.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3200 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3201 with_xauth='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3202 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3203 internal_xauth_lib_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3204 AC_HAVE_LIBRARY(-lXau, internal_xauth_lib_found='yes')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3205 if test "${internal_xauth_lib_found}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3206 internal_xauth_includes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3207 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3208 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3209 if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3210 internal_xauth_includes_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3211 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3212 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3213 if test "${internal_xauth_includes_found}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3214 with_xauth='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3215 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3216 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3217 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3218 if test "${with_xauth}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3219 AC_DEFINE(HAVE_XAUTH)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3220 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3221
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3222 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3223 # See if we can find CDE.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3224 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3225 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3226 if test "${with_cde}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3227 if test "${with_cde}" != "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3228 internal_cde_lib_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3229 AC_HAVE_LIBRARY(-lDtSvc, internal_cde_lib_found='yes')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3230 if test "${internal_cde_lib_found}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3231 internal_cde_includes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3232 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3233 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3234 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3235 internal_cde_includes_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3236 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3237 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3238 if test "${internal_cde_includes_found}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3239 with_cde='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3240 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3241 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3242 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3243 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3244 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3245 if test "${with_cde}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3246 AC_DEFINE(HAVE_CDE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3247 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3248
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3249 #
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3250 # See if we can find OffiX.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3251 #
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3252 if test "${window_system}" != "none" ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3253 if test "${with_offix}" != "no" ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3254 if test "${with_offix}" != "yes" ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3255 internal_offix_lib_found='no'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3256 AC_HAVE_LIBRARY(-lDnd, internal_offix_lib_found='yes')
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3257 if test "${internal_offix_lib_found}" = "yes" ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3258 internal_offix_includes_found='no'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3259 for arg in ${DEFS} /usr/include
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3260 do
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3261 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3262 internal_offix_includes_found='yes'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3263 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3264 done
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3265 if test "${internal_offix_includes_found}" = "yes" ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3266 with_offix='yes'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3267 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3268 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3269 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3270 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3271 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3272 if test "${with_offix}" = "yes" ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3273 AC_DEFINE(HAVE_OFFIX_DND)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3274 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3275
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3276 #
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3277 # See if we can find Xlocale.h.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3278 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3279 with_xlocale_h='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3280 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3281 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3282 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3283 if test -f `echo "${arg}/X11/Xlocale.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3284 with_xlocale_h='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3285 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3286 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3287 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3288 if test "${with_xlocale_h}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3289 AC_DEFINE(HAVE_XLOCALE_H)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3290 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3291
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3292 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3293 AC_FIND_X_VERSION
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3294 AC_HAVE_HEADERS(X11/Xlocale.h)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3295 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3296
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3297 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3298 # if Energize specified, make sure we can find its need libraries/headers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3299 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3300 if test "${with_energize}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3301 AC_HAVE_LIBRARY(-lenergize, energize_version='3.X')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3302 if test "${energize_version}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3303 AC_HAVE_LIBRARY(-lconn, energize_version='2.X')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3304 if test "${energize_version}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3305 echo "Unable to find Energize library." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3306 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3307 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3308 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3309
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3310 internal_eincludes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3311 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3312 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3313 if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3314 internal_eincludes_found='yes'
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 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3317 if test "${internal_eincludes_found}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3318 echo "Unable to find Energize editorconn.h header file." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3319 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3320 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3321 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3322
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3323 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3324 # logb and frexp are found in -lm on most systems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3325 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3326 AC_HAVE_LIBRARY(-lm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3327
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3328 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3329 # see if XPM is hanging around somewhere
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3330 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3331 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3332 if test "${with_xpm}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3333 if test "${with_xpm}" != "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3334 AC_HAVE_LIBRARY(-lXpm, with_xpm="yes")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3335 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3336 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3337 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3338 if test "${with_xpm}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3339 AC_DEFINE(HAVE_XPM)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3340 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3341
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3342 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3343 # see if Xmu is hanging around somewhere
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3344 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3345 # FSF 19.31 has this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3346 #dnl If using toolkit, check whether libXmu.a exists.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3347 #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
3348 # OLDLIBS="$LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3349 # if test x$HAVE_X11XTR6 = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3350 # LIBS="-lXt -lSM -lICE $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3351 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3352 # LIBS="-lXt $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3353 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3354 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3355 # LIBS="$OLDLIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3356
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3357 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3358 if test "${with_xmu}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3359 if test "${with_xmu}" != "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3360 AC_HAVE_LIBRARY(-lXmu, with_xmu="yes")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3361 fi
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 16
diff changeset
3362 # 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
3363 # Upgrade to autoconf 2 and use ac_check_lib - mrb
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 16
diff changeset
3364 if test "${with_xmu}" != "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3365 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3366 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3367 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3368 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3369 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3370 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3371 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3372 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3373 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3374 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3375 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3376 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3377 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3378 test -n "${ac_have_lib}" && with_xmu="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3379 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3380 fi
38
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3381 # Sparc/Linux test - fp
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3382 if test "${with_xmu}" != "yes" -a ${machine} = sparc -a ${opsys} = linux; then
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3383 # begin expansion of ac_have_library
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3384 ac_save_LIBS="${LIBS}"
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3385 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm -lICE -lSM"
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3386 ac_have_lib=""
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3387 cat > conftest.${ac_ext} <<EOF
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3388 int main() { return 0; }
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3389 EOF
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3390 if eval $ac_compile; then
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3391 rm -rf conftest*
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3392 ac_have_lib="1"
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3393 fi
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3394 rm -f conftest*
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3395 LIBS="${ac_save_LIBS}"
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3396 test -n "${ac_have_lib}" && with_xmu="yes"
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3397 # end expansion of ac_have_library
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
3398 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3399 # On UnixWare 2.1 we must kludge harder to try to detect Xmu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3400 # Upgrade to autoconf 2 and use ac_check_lib - mrb
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3401 if test "${with_xmu}" != "yes" && test -f "/.UpgradeVer2.1" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3402 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3403 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3404 if test x$HAVE_XFREE386 = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3405 LIBS="-lXt -lSM -lICE ${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3406 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3407 LIBS="${LIBS} -lXmu -lXt -lXext -lX11"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3408 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3409 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3410 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3411 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3412 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3413 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3414 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3415 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3416 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3417 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3418 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3419 test -n "${ac_have_lib}" && with_xmu="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3420 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3421 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3422 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3423 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3424 if test "${with_xmu}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3425 AC_DEFINE(HAVE_XMU)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3426 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3427
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3428 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3429 # see if COMPFACE is hanging around somewhere
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3430 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3431 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3432 if test "${with_xface}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3433 if test "${with_xface}" != "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3434 AC_HEADER_CHECK(compface.h, compface_incl="yes", with_xface="no")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3435 if test "${compface_incl}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3436 AC_HAVE_LIBRARY(-lcompface, with_xface="yes")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3437 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3438 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3439 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3440 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3441 if test "${with_xface}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3442 AC_DEFINE(HAVE_XFACE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3443 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3444
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3445 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3446 # check whether we're using GIF support
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3447 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3448 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3449 if test -z "${with_gif}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3450 with_gif=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3451 elif test "${with_gif}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3452 echo "GIF support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3453 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3454 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3455 elif test -z "${with_gif}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3456 with_gif=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3457 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3458 if test "${with_gif}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3459 AC_DEFINE(HAVE_GIF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3460 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3461
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3462 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3463 # autodetect JPEG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3464 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3465 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3466 if test -z "${with_jpeg}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3467 with_jpeg=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3468 elif test "${with_jpeg}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3469 echo "JPEG support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3470 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3471 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3472 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3473 if test "${with_jpeg}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3474 if test "${with_jpeg}" != "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3475 AC_HEADER_CHECK(jpeglib.h, jpeglib_incl="yes", with_jpeg="no")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3476 if test "${jpeglib_incl}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3477 AC_HAVE_LIBRARY(-ljpeg, with_jpeg="yes")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3478 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3479 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3480 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3481 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3482 if test "${with_jpeg}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3483 AC_DEFINE(HAVE_JPEG)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3484 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3485
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3486 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3487 # autodetect PNG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3488 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3489 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3490 if test -z "${with_png}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3491 with_png=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3492 elif test "${with_png}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3493 echo "PNG support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3494 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3495 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3496 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3497 if test -z "${with_png}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3498 AC_HEADER_CHECK(png.h, , with_png="no")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3499 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3500 if test -z "${with_png}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3501 AC_HAVE_LIBRARY(-lpng, , with_png="no")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3502 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3503 if test -z "${with_png}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3504 AC_HAVE_LIBRARY(-lz, with_png="yes")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3505 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3506 if test -z "${with_png}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3507 AC_HAVE_LIBRARY(-lgz, with_png="gnuz", with_png="no")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3508 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3509 if test "${with_png}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3510 AC_DEFINE(HAVE_PNG)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3511 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3512 if test "${with_png}" = "gnuz" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3513 AC_DEFINE(HAVE_PNG)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3514 AC_DEFINE(HAVE_PNG_GNUZ)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3515 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3516
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3517 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3518 # autodetect TIFF (not yet implemented)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3519 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3520 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3521 if test -z "${with_tiff}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3522 with_tiff=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3523 elif test "${with_tiff}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3524 echo "TIFF support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3525 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3526 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3527 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3528 if test "${with_tiff}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3529 AC_DEFINE(HAVE_TIFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3530 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3531
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3532 # We use Lucid toolkit defaults for the menubars and scrollbars, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3533 # if Motif is available we use it for the dialog boxes.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3534 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3535 if test "x${with_dialogs}" = "x" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3536 # 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
3537 # end of the link line which is insufficient since -lXm will generate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3538 # dependencies on -lXt
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3539 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3540 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3541 LIBS="${LIBS} -lXm -lXt ${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3542 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3543 test -n "$silent" || echo "checking for -lXm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3544 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3545 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3546
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3547 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3548 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3549 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3550 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3551 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3552 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3553
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3554 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3555 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3556 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3557 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3558 :; with_dialogs="motif"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3559 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3560 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3561 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3562 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3563 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3564 if test "${with_dialogs}" != "motif" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3565 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3566 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3567 LIBS="${LIBS} -lXm -lXt -lXpm -lXext ${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3568 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3569 test -n "$silent" || echo "checking for -lXm in another way"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3570 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3571 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3572
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3573 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3574 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3575 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3576 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3577 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3578 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3579
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3580 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3581 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3582 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3583 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3584 :; with_dialogs="motif"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3585 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3586 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3587 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3588 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3589 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3590 if test "${with_dialogs}" = "motif" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3591 AC_VERBOSE(Found Motif)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3592 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3593 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3594 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3595
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3596 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3597 if [ "${with_menubars}" = "motif" ] || [ "${with_scrollbars}" = "motif" ] \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3598 || [ "${with_dialogs}" = "motif" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3599 with_motif='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3600 fi
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
3601 if [ "${with_menubars}" = "athena" ] || [ "${with_scrollbars}" = "athena" ] \
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
3602 || [ "${with_dialogs}" = "athena" ]; then
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
3603 with_athena='yes'
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
3604 fi
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
3605 if [ "${with_menubars}" = "athena3d" ] || [ "${with_scrollbars}" = "athena3d" ] \
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
3606 || [ "${with_dialogs}" = "athena3d" ]; then
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
3607 with_athena='yes'
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
3608 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3609
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3610 # Finish ensuring that we have values for the various toolkit items.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3611 if [ "x${with_menubars}" = "x" ] || [ "${with_menubars}" = "athena" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3612 with_menubars='lucid'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3613 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3614 if [ "x${with_scrollbars}" = "x" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3615 with_scrollbars='lucid'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3616 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3617 if [ "x${with_dialogs}" = "x" ] || [ "${with_dialogs}" = "lucid" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3618 with_dialogs='athena'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3619 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3620 ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3621
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3622 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3623 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3624 # Misc other feature tests #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3625 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3626 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3627
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3628 # 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
3629 AC_COMPILE_CHECK(declaration of h_errno in netdb.h,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3630 [#include <netdb.h>],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3631 [int i = h_errno;],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3632 AC_DEFINE(HAVE_H_ERRNO))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3633
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3634 AC_COMPILE_CHECK(sigsetjmp,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3635 [#include <setjmp.h>],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3636 [sigjmp_buf bar; sigsetjmp (bar, 0);],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3637 AC_DEFINE(HAVE_SIGSETJMP))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3638
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3639 AC_CHECKING(whether localtime caches TZ)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3640 emacs_cv_localtime_cache=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3641 AC_TEST_PROGRAM([#include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3642 #if 1 /* STDC_HEADERS */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3643 # include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3644 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3645 extern char **environ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3646 unset_TZ ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3647 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3648 char **from, **to;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3649 for (to = from = environ; (*to = *from); from++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3650 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3651 to++;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3652 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3653 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3654 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3655 time_t now = time ((time_t *) 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3656 int hour_GMT0, hour_unset;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3657 if (putenv ("TZ=GMT0") != 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3658 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3659 hour_GMT0 = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3660 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3661 hour_unset = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3662 if (putenv ("TZ=PST8") != 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3663 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3664 if (localtime (&now)->tm_hour == hour_GMT0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3665 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3666 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3667 if (localtime (&now)->tm_hour != hour_unset)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3668 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3669 exit (0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3670 }], emacs_cv_localtime_cache=no, emacs_cv_localtime_cache=yes,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3671 [# If we have tzset, assume the worst when cross-compiling.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3672 emacs_cv_localtime_cache=yes])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3673 AC_VERBOSE("$emacs_cv_localtime_cache")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3674 if test x$emacs_cv_localtime_cache = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3675 AC_DEFINE(LOCALTIME_CACHE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3676 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3677
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3678 if test "x$HAVE_TIMEVAL" = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3679 AC_COMPILE_CHECK(whether gettimeofday can't accept two arguments,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3680 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3681 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3682 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3683 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3684 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3685 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3686 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3687 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3688 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3689 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3690 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3691 ],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3692 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3693 struct timeval time;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3694 struct timezone dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3695 gettimeofday (&time, &dummy);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3696 ],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3697 [AC_VERBOSE(no)],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3698 [AC_VERBOSE(yes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3699 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3700 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3701
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3702 AC_COMPILE_CHECK(whether inline functions are supported,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3703 ,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3704 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3705 inline int
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3706 foo ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3707 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3708 return 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3709 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3710 ],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3711 AC_DEFINE(HAVE_INLINE))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3712
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3713 # This does all sorts of magic to make sure alloca() works OK.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3714 # It might even add some junk to the top of <config.h>.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3715 # (I don't understand what goes on here, but it seems to work.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3716 AC_ALLOCA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3717
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3718 # Check whether vfork exists and works correctly. (This does more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3719 # than just check for its existence.) If so, it defines HAVE_VFORK_H.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3720 # If not, it defines vfork to be fork.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3721 AC_VFORK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3722
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3723 # Check whether mmap exists and works correctly. (This does more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3724 # than just check for its existence.) If so, it defines HAVE_MMAP.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3725 # Actually, this seems to rule out some cases where mmap() can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3726 # 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
3727 # of using mmap(), so let's go back to the old way.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3728 dnl AC_MMAP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3729
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3730 # Check whether strcoll exists and works correctly. (This does more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3731 # than just check for its existence.) If so, it defines HAVE_STRCOLL.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3732 AC_STRCOLL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3733
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3734 AC_SIZEOF_TYPE(short)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3735 AC_SIZEOF_TYPE(int)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3736 AC_SIZEOF_TYPE(long)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3737
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3738 # FSF 19.29 does this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3739 # # fmod, logb, and frexp are found in -lm on most systems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3740 # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3741 # A C_CHECK_LIB(m, sqrt)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3742
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3743 AC_HAVE_FUNCS(acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday 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)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3744
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3745 # Check for mmap.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3746 found_mmap=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3747 AC_FUNC_CHECK(mmap, , found_mmap=)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3748 if test -n "$found_mmap"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3749 AC_DEFINE(HAVE_MMAP)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3750 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3751
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3752 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3753 # rel_alloc requires either GNU malloc or system malloc with mmap
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3754 if [ "${GNU_MALLOC}" != "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3755 if [ "${found_mmap}" != "true" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3756 rel_alloc=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3757 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3758 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3759
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3760 # We only turn rel_alloc on by default if mmap is available.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3761 if [ "${rel_alloc}" = "default" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3762 if [ "${found_mmap}" = "true" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3763 rel_alloc=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3764 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3765 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3766 ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3767
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3768
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3769 # Check for Internet sockets.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3770
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3771 ok_so_far=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3772 AC_FUNC_CHECK(socket, , ok_so_far=)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3773 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3774 AC_HEADER_CHECK(netinet/in.h, , ok_so_far=)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3775 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3776 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3777 AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3778 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3779 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3780 AC_DEFINE(HAVE_SOCKETS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3781 # Check for the sun_len member in struct sockaddr_un.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3782
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3783 AC_COMPILE_CHECK(sun_len member in struct sockaddr_un,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3784 [#include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3785 #include <sys/socket.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3786 #include <sys/un.h>], [static struct sockaddr_un x; x.sun_len = 1;],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3787 AC_DEFINE(HAVE_SOCKADDR_SUN_LEN))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3788 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3789
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3790 # Check for SYS V IPC. (Inferior to sockets.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3791
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3792 if test -z "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3793 ok_so_far=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3794 AC_FUNC_CHECK(msgget, , ok_so_far=)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3795 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3796 AC_HEADER_CHECK(sys/ipc.h, , ok_so_far=)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3797 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3798 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3799 AC_HEADER_CHECK(sys/msg.h, , ok_so_far=)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3800 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3801 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3802 AC_DEFINE(HAVE_SYSVIPC)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3803 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3804 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3805
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3806 # Check for directory variants
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3807
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3808 sysv_system_dir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3809 nonsystem_dir_library=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3810 AC_HEADER_CHECK(dirent.h, sysv_system_dir=yes, )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3811 if test -z "$sysv_system_dir" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3812 AC_HEADER_CHECK(sys/dir.h, , nonsystem_dir_library=yes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3813 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3814 if test -n "$sysv_system_dir" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3815 AC_DEFINE(SYSV_SYSTEM_DIR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3816 elif test -n "$nonsystem_dir_library" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3817 AC_DEFINE(NONSYSTEM_DIR_LIBRARY)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3818 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3819
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3820 # Check for terminal I/O variants
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3821
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3822 echo "checking how to do terminal I/O"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3823
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3824 have_termios=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3825 have_termio=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3826 AC_HEADER_CHECK(termios.h, have_termios=yes, )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3827 # TERMIOS systems may have termio.h, but not vice-versa, I think.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3828 if test -z "$have_termios" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3829 AC_HEADER_CHECK(termio.h, have_termio=yes, )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3830 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3831 if test -n "$have_termios" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3832 AC_DEFINE(HAVE_TERMIOS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3833 elif test -n "$have_termio" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3834 AC_DEFINE(HAVE_TERMIO)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3835 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3836
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3837 # Check for nlist.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3838 AC_HEADER_CHECK(nlist.h, AC_DEFINE(NLIST_STRUCT), )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3839
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3840 if test -f /usr/lpp/X11/bin/smt.exp ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3841 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/lpp/X11/bin/smt.exp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3842 elif test -f /usr/bin/X11/smt.exp ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3843 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/bin/X11/smt.exp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3844 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3845
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3846 # Set up the CFLAGS for real compilation, so we can substitute it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3847 CFLAGS="$REAL_CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3848
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3849 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3850 #### Find out which version of XEmacs this is.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3851 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3852 | sed -ne 's/^(defconst emacs-version "\([0-9][0-9]\.[0-9]*\).*/\1/p'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3853 beta=`grep '" XEmacs Lucid' ${srcdir}/lisp/version.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3854 | sed -ne 's/^.*" XEmacs Lucid (beta\([^)]*\)).*/\1/p'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3855 alpha=`grep '" XEmacs Lucid' ${srcdir}/lisp/version.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3856 | sed -ne 's/^.*" XEmacs Lucid (alpha\([^)]*\)).*/\1/p'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3857 if [ "X$beta" != "X" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3858 version=${version}-b${beta}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3859 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3860 if [ "X$alpha" != "X" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3861 version=${version}-a${alpha}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3862 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3863 if [ x"${version}" = x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3864 echo "${progname}: can't find current emacs version in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3865 \`${srcdir}/lisp/version.el'." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3866 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3867 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3868
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3869 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3870 # Check for sound of various sorts.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3871 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3872
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3873 # the following needs to be fixed for SGI.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3874 if [ -z "${native_sound_lib}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3875 if [ -r /usr/demo/SOUND/lib/libaudio.a ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3876 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3877 elif [ -r /usr/demo/SOUND/libaudio.a ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3878 native_sound_lib=/usr/demo/SOUND/libaudio.a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3879 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3880 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3881 *-sgi-* ) native_sound_lib=-laudio ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3882 hppa*-hp-hpux* ) native_sound_lib=-lAlib ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3883 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3884 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3885 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3886
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3887 if [ "${with_sound}" != "native" ] && [ "${with_sound}" != "nas" ] && [ "${with_sound}" != "both" ] && [ "${with_sound}" != "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3888 if [ -d /usr/demo/SOUND/multimedia -o -d /usr/demo/SOUND/include/multimedia ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3889 with_sound="native"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3890 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3891 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3892 *-sgi-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3893 ] AC_HAVE_LIBRARY(-laudio, with_sound="native") [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3894 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3895 hppa*-hp-hpux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3896 ] AC_HAVE_LIBRARY(-lAlib, with_sound="native") [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3897 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3898 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3899 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3900 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3901
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3902 #### If the nas library doesn't contain the error jump point, then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3903 #### we force safer behaviour.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3904
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3905 if [ "${with_sound}" = "nas" ] || [ "${with_sound}" = "both" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3906 ] AC_HEADER_EGREP(AuXtErrorJump,audio/Xtutil.h, , old_nas=true) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3907 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3908
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3909 if [ "${with_tooltalk}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3910 for arg in ${DEFS} "-I/usr/include" "-I${OPENWINHOME-/usr/openwin}/include"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3911 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3912 if [ -f `echo "${arg}/desktop/tt_c.h" | sed 's/^\-I//'` ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3913 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}/desktop"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3914 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3915 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3916
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3917 for arg in ${LIBS} "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3918 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3919 case "${arg}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3920 -L*) if [ -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3921 dash_r=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3922 if [ -n "${add_runtime_flag}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3923 dash_r=`echo ${arg} | sed "s/^-L/-R${dash_r_space}/"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3924 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3925 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3926 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3927 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3928 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3929 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3930 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3931
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3932 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3933 # Check for ncurses.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3934 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3935
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3936 if [ "${with_tty}" != "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3937 ] AC_HAVE_LIBRARY(-lncurses, have_ncurses=yes, have_ncurses=no) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3938 if [ "${have_ncurses}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3939 ] AC_DEFINE(HAVE_NCURSES) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3940 ] AC_HEADER_CHECK(ncurses/term.h, have_ncurses_term_h=yes, have_ncurses_term_h=no) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3941 if [ "${have_ncurses_term_h}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3942 ] AC_DEFINE(HAVE_NCURSES_TERM_H) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3943 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3944 ] AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3945 if [ "${have_ncurses_curses_h}" = "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3946 # Try again, and check for the bogus ncurses/ include bug.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3947 # (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3948 # <ncurses/unctrl.h>)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3949 OLD_CPP="${CPP}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3950 CPP="${CPP} -I/usr/include/ncurses"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3951 ] AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3952 if [ "${have_ncurses_curses_h}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3953 site_includes="${site_includes} /usr/include/ncurses"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3954 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3955 ] AC_VERBOSE(Your system has the bogus ncurses include bug.) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3956 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3957 CPP="${OLD_CPP}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3958 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3959 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3960 if [ "${have_ncurses_curses_h}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3961 ] AC_DEFINE(HAVE_NCURSES_CURSES_H) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3962 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3963 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3964 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3965
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3966 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3967 # Check for database support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3968 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3969
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3970 ]dnl <mdiers@logware.de>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3971 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
3972 dnl On FreeBSD, both DB and DBM are part of libc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3973 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
3974 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
3975 dnl checked if we have the libraries.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3976 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
3977 dnl nor does libc implement it, we are a bit lost :)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3978 dnl But wait: one still could define DATABASE_DB_LIBS and DATABASE_DBM_LIBS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3979 dnl in the system description file to read -lthisiswhereitsat and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3980 dnl have --site-libraries point there.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3981 dnl (Does this make sense? My head hurts...)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3982 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3983 if [ "${with_database_berkdb}" != "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3984 ] AC_HAVE_LIBRARY(-ldb, have_libdb=yes, have_libdb=no) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3985 if [ "${have_libdb}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3986 ] AC_DEFINE(HAVE_LIBDB) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3987 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3988 if [ "${with_database_berkdb}" != "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3989 if [ "${have_libdb}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3990 with_database_berkdb=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3991 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3992 ] AC_FUNC_CHECK(dbopen, have_dbopen=yes, have_dbopen=no) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3993 if [ "${have_dbopen}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3994 with_database_berkdb=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3995 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3996 with_database_berkdb=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3997 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3998 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3999 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4000 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4001 if [ "${with_database_berkdb}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4002 ] AC_DEFINE(HAVE_BERKELEY_DB) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4003 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4004
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4005 if [ "${with_database_gnudbm}" != "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4006 ] AC_HAVE_LIBRARY(-lgdbm, have_libgdbm=yes, have_libgdbm=no) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4007 if [ "${have_libgdbm}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4008 ] AC_DEFINE(HAVE_LIBGDBM) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4009 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4010 if [ "${with_database_gnudbm}" != "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4011 if [ "${have_libgdbm}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4012 with_database_gnudbm=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4013 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4014 with_database_gnudbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4015 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4016 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4017 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4018 if [ "${with_database_gnudbm}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4019 ] AC_DEFINE(HAVE_DBM) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4020 ] AC_DEFINE(HAVE_GNU_DBM) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4021 with_database_dbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4022 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4023
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4024 if [ "${with_database_dbm}" != "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4025 ] AC_HAVE_LIBRARY(-ldbm, have_libdbm=yes, have_libdbm=no) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4026 if [ "${have_libdbm}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4027 ] AC_DEFINE(HAVE_LIBDBM) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4028 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4029 if [ "${with_database_dbm}" != "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4030 if [ "${have_libdbm}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4031 with_database_dbm=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4032 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4033 ] AC_FUNC_CHECK(dbm_open, have_dbm_open=yes, have_dbm_open=no) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4034 if [ "${have_dbm_open}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4035 with_database_dbm=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4036 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4037 with_database_dbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4038 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4039 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4040 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4041 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4042 if [ "${with_database_dbm}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4043 ] AC_DEFINE(HAVE_DBM) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4044 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4045
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4046
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4047 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4048 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4049 # Substitute into Makefile and config.h #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4050 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4051 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4052
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4053 ### Specify what sort of things we'll be editing into Makefile and config.h.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4054 ### Use configuration here uncanonicalized to avoid exceeding size limits.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4055 ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4056 AC_SUBST(version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4057 AC_SUBST(configuration)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4058 AC_SUBST(canonical)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4059 AC_SUBST(srcdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4060 AC_SUBST(prefix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4061 AC_SUBST(exec_prefix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4062 AC_SUBST(bindir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4063 AC_SUBST(datadir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4064 AC_SUBST(statedir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4065 AC_SUBST(libdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4066 AC_SUBST(mandir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4067 AC_SUBST(infodir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4068 AC_SUBST(infodir_user_defined)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4069 AC_SUBST(lispdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4070 AC_SUBST(lispdir_user_defined)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4071 AC_SUBST(sitelispdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4072 AC_SUBST(etcdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4073 AC_SUBST(etcdir_user_defined)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4074 AC_SUBST(lockdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4075 AC_SUBST(lockdir_user_defined)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4076 AC_SUBST(archlibdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4077 AC_SUBST(archlibdir_user_defined)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4078 AC_SUBST(docdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4079 AC_SUBST(bitmapdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4080 AC_SUBST(c_switch_system)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4081 AC_SUBST(c_switch_machine)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4082 AC_SUBST(libsrc_libs)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4083 AC_SUBST(LD_SWITCH_X_SITE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4084 AC_SUBST(LD_SWITCH_X_SITE_AUX)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4085 AC_SUBST(C_SWITCH_X_SITE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4086 AC_SUBST(LD_SWITCH_SITE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4087 AC_SUBST(C_SWITCH_SITE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4088 AC_SUBST(CFLAGS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4089 AC_SUBST(native_sound_lib)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4090 AC_SUBST(machfile)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4091 AC_SUBST(opsysfile)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4092 AC_SUBST(RANLIB)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4093 AC_SUBST(dynodump_arch)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4094
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4095 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${canonical}\"")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4096 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4097 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4098 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4099 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4100 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4101 AC_DEFINE_UNQUOTED(LD_SWITCH_SITE, ${LD_SWITCH_SITE})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4102 AC_DEFINE_UNQUOTED(C_SWITCH_SITE, ${C_SWITCH_SITE})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4103 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4105 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4107 # Note: as a general rule, *only* define things here that are not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4108 # autodetected. For things that are autodetected, define them
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4109 # at the point where the autodetection occurs or would occur,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4110 # so that the user gets immediate feedback on the results of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4111 # autodetection.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4112
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4113 if [ x"${puresize}" != x ] ; then
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
4114 ] AC_DEFINE_UNQUOTED(RAW_PURESIZE, ${puresize}) [
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4115 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4116 if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4117 ] AC_DEFINE(HAVE_X_WINDOWS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4118 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4119 if [ "${HAVE_XFREE386}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4120 ] AC_DEFINE(HAVE_XFREE386) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4121 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4122 if [ "${GNU_MALLOC}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4123 ] AC_DEFINE(GNU_MALLOC) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4124 elif [ "${use_system_malloc}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4125 ] AC_DEFINE(USE_SYSTEM_MALLOC) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4126 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4127 if [ "${rel_alloc}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4128 ] AC_DEFINE(REL_ALLOC) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4129 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4130 if [ "${LISP_FLOAT_TYPE}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4131 ] AC_DEFINE(LISP_FLOAT_TYPE) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4132 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4133 if [ "${with_motif}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4134 ] AC_DEFINE(LWLIB_USES_MOTIF) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4135 fi
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
4136 if [ "${with_athena}" = "yes" ] ; then
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
4137 ] AC_DEFINE(LWLIB_USES_ATHENA) [
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
4138 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4139 if [ "${with_menubars}" = "lucid" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4140 ] AC_DEFINE(LWLIB_MENUBARS_LUCID) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4141 ] AC_DEFINE(HAVE_MENUBARS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4142 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4143 if [ "${with_menubars}" = "motif" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4144 ] AC_DEFINE(LWLIB_MENUBARS_MOTIF) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4145 ] AC_DEFINE(HAVE_MENUBARS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4146 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4147 if [ "${with_scrollbars}" = "lucid" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4148 ] AC_DEFINE(LWLIB_SCROLLBARS_LUCID) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4149 ] AC_DEFINE(HAVE_SCROLLBARS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4150 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4151 if [ "${with_scrollbars}" = "motif" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4152 ] AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4153 ] AC_DEFINE(HAVE_SCROLLBARS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4154 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4155 if [ "${with_scrollbars}" = "athena" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4156 ] AC_DEFINE(LWLIB_SCROLLBARS_ATHENA) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4157 ] AC_DEFINE(HAVE_SCROLLBARS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4158 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4159 if [ "${with_dialogs}" = "motif" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4160 ] AC_DEFINE(LWLIB_DIALOGS_MOTIF) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4161 ] AC_DEFINE(HAVE_DIALOGS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4162 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4163 if [ "${with_dialogs}" = "athena" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4164 ] AC_DEFINE(LWLIB_DIALOGS_ATHENA) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4165 ] AC_DEFINE(HAVE_DIALOGS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4166 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4167 if [ "${with_toolbars}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4168 ] AC_DEFINE(HAVE_TOOLBARS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4169 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4170 if [ "${with_tty}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4171 ] AC_DEFINE(HAVE_TTY) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4172 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4173 if [ "${with_tooltalk}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4174 ] AC_DEFINE(TOOLTALK) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4175 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4176 if [ "$with_mocklisp" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4177 ] AC_DEFINE(MOCKLISP_SUPPORT) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4178 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4179 if [ "${with_sparcworks}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4180 ] AC_DEFINE(SUNPRO) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4181 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4182 if [ "${usage_tracking}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4183 ] AC_DEFINE(USAGE_TRACKING) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4184 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4185 if [ "${with_energize}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4186 ] AC_DEFINE(ENERGIZE) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4187 if [ "${energize_version}" = "2.X" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4188 ] AC_DEFINE(ENERGIZE_2) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4189 elif [ "${energize_version}" = "3.X" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4190 ] AC_DEFINE(ENERGIZE_3) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4191 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4192 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4193 if [ "${need_dynodump}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4194 ] AC_DEFINE(DYNODUMP) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4195 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4196 if [ "${need_xildoff}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4197 ] AC_DEFINE(NEED_XILDOFF) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4198 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4199 if [ "${with_gcc}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4200 ] AC_DEFINE(USE_GCC) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4201 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4202 if [ "${with_lcc}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4203 ] AC_DEFINE(USE_LCC) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4204 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4205 if [ "${with_socks}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4206 ] AC_DEFINE(HAVE_SOCKS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4207 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4208 if [ "${with_term}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4209 ] AC_DEFINE(HAVE_TERM) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4210 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4211 if [ "${with_epoch}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4212 ] AC_DEFINE(EPOCH) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4213 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4214 if [ "${with_sound}" = "native" -o "${with_sound}" = "both" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4215 ] AC_DEFINE(HAVE_NATIVE_SOUND) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4216 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4217 if [ "${with_sound}" = "nas" -o "${with_sound}" = "both" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4218 ] AC_DEFINE(HAVE_NAS_SOUND) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4219 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4220 if [ "${old_nas}" = "true" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4221 ] AC_DEFINE(NAS_NO_ERROR_JUMP) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4222 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4223 if [ "${external_widget}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4224 ] AC_DEFINE(EXTERNAL_WIDGET) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4225 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4226 if [ "${with_gnu_make}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4227 ] AC_DEFINE(USE_GNU_MAKE) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4228 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4229 if [ "${no_doc_file}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4230 ] AC_DEFINE(NO_DOC_FILE) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4231 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4232 if [ "${const_is_losing}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4233 ] AC_DEFINE(CONST_IS_LOSING) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4234 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4235 if [ "${use_assertions}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4236 ] AC_DEFINE(USE_ASSERTIONS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4237 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4238 if [ "${error_check_extents}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4239 ] AC_DEFINE(ERROR_CHECK_EXTENTS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4240 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4241 if [ "${error_check_typecheck}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4242 ] AC_DEFINE(ERROR_CHECK_TYPECHECK) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4243 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4244 if [ "${error_check_bufpos}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4245 ] AC_DEFINE(ERROR_CHECK_BUFPOS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4246 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4247 if [ "${error_check_gc}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4248 ] AC_DEFINE(ERROR_CHECK_GC) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4249 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4250 if [ "${error_check_malloc}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4251 ] AC_DEFINE(ERROR_CHECK_MALLOC) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4252 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4253 if [ "${debug}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4254 ] AC_DEFINE(DEBUG_XEMACS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4255 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4256 if [ "${memory_usage_stats}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4257 ] AC_DEFINE(MEMORY_USAGE_STATS) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4258 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4259 if [ "${use_union_type}" != "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4260 ] AC_DEFINE(NO_UNION_TYPE) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4261 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4262 if [ "${quantify}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4263 ] AC_DEFINE(QUANTIFY) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4264 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4265
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4266 # ====================== Developer's configuration =======================
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4267
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4268 # The following assignments make sense if you're running XEmacs on a single
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4269 # machine, one version at a time, and you want changes to the lisp and etc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4270 # directories in the source tree to show up immediately in your working
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4271 # environment. It saves a great deal of disk space by not duplicating the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4272 # lisp and etc directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4273
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4274 if [ "$run_in_place" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4275 prefix='${srcdir}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4276 exec_prefix='${srcdir}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4277 bindir='${exec_prefix}/bin/${configuration}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4278 lispdir='${srcdir}/lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4279 sitelispdir='${lispdir}/site-lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4280 etcdir='${srcdir}/etc'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4281 lockdir='${srcdir}/lock'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4282 archlibdir='${srcdir}/lib-src/${configuration}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4283 infodir='${srcdir}/info'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4284 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4285 #elif [ "$single_tree" = "1" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4286 # if [ "$exec_prefix_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4287 # exec_prefix='${prefix}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4288 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4289 # if [ "$bindir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4290 # bindir='${exec_prefix}/bin/${configuration}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4291 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4292 # if [ "$datadir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4293 # datadir='${prefix}/common'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4294 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4295 # if [ "$statedir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4296 # statedir='${prefix}/common'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4297 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4298 # if [ "$libdir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4299 # libdir='${bindir}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4300 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4301 # if [ "$lispdir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4302 # lispdir='${prefix}/common/lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4303 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4304 # if [ "$locallisppath_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4305 # locallisppath='${prefix}/common/site-lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4306 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4307 # if [ "$lockdir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4308 # lockdir='${prefix}/common/lock'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4309 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4310 # if [ "$archlibdir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4311 # archlibdir='${libdir}/etc'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4312 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4313 # if [ "$etcdir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4314 # etcdir='${prefix}/common/data'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4315 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4316 # if [ "$docdir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4317 # docdir='${prefix}/common/data'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4318 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4319 #fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4320
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4321 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4322 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4323 # Report on what we decided to do #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4324 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4325 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4326
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4327 echo "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4328
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4329 Configured for \`${canonical}'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4330
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4331 Where should the build process find the source code? ${srcdir}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4332 What installation prefix should install use? ${prefix}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4333 What operating system and machine description files should XEmacs use?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4334 \`${opsysfile}' and \`${machfile}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4335 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4336 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4337 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4338 What window system should XEmacs use? ${window_system}${x_includes+
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4339 Where do we find X Windows header files? }${x_includes}${x_libraries+
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4340 Where do we find X Windows libraries? }${x_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4341
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4342 if [ -n "$site_includes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4343 echo " Additional header files: ${site_includes}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4344 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4345
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4346 if [ -n "$site_libraries" ] && [ -n "$site_runtime_libraries" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4347 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4348 elif [ -n "$site_libraries" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4349 echo " Additional libraries: ${site_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4350 elif [ -n "$site_runtime_libraries" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4351 echo " Additional libraries: ${site_runtime_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4352 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4353
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4354
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4355 if [ "$with_socks" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4356 echo " Compiling in support for SOCKS."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4357 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4358 if [ "$with_term" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4359 echo " Compiling in support for TERM."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4360 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4361 if [ "$with_xauth" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4362 echo " Compiling in support for XAUTH."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4363 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4364 if [ "$with_xpm" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4365 echo " Compiling in support for XPM."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4366 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4367 if [ "$with_xmu" != "yes" ] && [ "$window_system" != "none" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4368 echo " No Xmu; substituting equivalent routines."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4369 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4370 if [ "$with_xface" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4371 echo " Compiling in support for X-Face headers."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4372 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4373 if [ "$with_gif" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4374 echo " Compiling in support for GIF image conversion."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4375 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4376 if [ "$with_jpeg" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4377 echo " Compiling in support for JPEG image conversion."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4378 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4379 if [ "$with_png" = "yes" ] || [ "$with_png" = "gnuz" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4380 echo " Compiling in support for PNG image conversion."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4381 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4382 if [ "$with_png" = "gnuz" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4383 echo " (Using -lgz instead of -lz.)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4384 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4385 if [ "$with_tiff" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4386 echo " Compiling in support for TIFF image conversion (not implemented)."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4387 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4388 if [ "$with_epoch" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4389 echo " Compiling in extra Epoch compatibility."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4390 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4391 if [ "$with_sound" = "nas" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4392 echo " Compiling in network sound support."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4393 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4394 if [ "$with_sound" = "native" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4395 echo " Compiling in native sound support."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4396 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4397 if [ "$with_sound" = "both" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4398 echo " Compiling in both network and native sound support."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4399 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4400 if [ "$old_nas" = true ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4401 echo " nas library lacks error trapping, will play synchronously"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4402 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4403 if [ "$with_database_berkdb" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4404 echo " Compiling in support for Berkeley DB."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4405 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4406 if [ "$with_database_dbm" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4407 echo " Compiling in support for DBM."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4408 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4409 if [ "$with_database_gnudbm" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4410 echo " Compiling in support for GNU DBM."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4411 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4412 if [ "$with_ncurses" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4413 echo " Compiling in support for ncurses."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4414 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4415 if [ "$with_socks" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4416 echo " Compiling in support for SOCKS."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4417 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4418 if [ "$with_tooltalk" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4419 echo " Compiling in support for ToolTalk."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4420 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4421 if [ "$with_cde" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4422 echo " Compiling in support for CDE."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4423 fi
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4424 if [ "$with_offix" = "yes" ]; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4425 echo " Compiling in support for OffiX."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4426 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4427 if [ "$with_mocklisp" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4428 echo " Compiling in support for Mocklisp."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4429 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4430 if [ "$with_sparcworks" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4431 echo " Compiling in support for SparcWorks."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4432 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4433 if [ "$with_energize" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4434 echo " Compiling in support for Lucid Energize (doesn't currently work)."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4435 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4436 if [ "$with_menubars" = "lucid" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4437 echo " Using the Lucid menubar."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4438 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4439 if [ "$with_menubars" = "motif" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4440 echo " Using the Motif menubar."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4441 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4442 echo " that you use the Lucid menubar instead. Re-run"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4443 echo " configure with --with-menubars='lucid'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4444 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4445 if [ "$with_scrollbars" = "lucid" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4446 echo " Using the Lucid scrollbar."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4447 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4448 if [ "$with_scrollbars" = "motif" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4449 echo " Using the Motif scrollbar."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4450 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4451 if [ "$with_scrollbars" = "athena" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4452 echo " Using the Athena scrollbar."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4453 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4454 if [ "$with_dialogs" = "motif" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4455 echo " Using the Motif dialog boxes."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4456 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4457 if [ "$with_dialogs" = "athena" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4458 echo " Using the Athena dialog boxes."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4459 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4460 if [ "${use_union_type}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4461 echo " Using the union type for Lisp_Objects."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4462 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4463 if [ "${debug}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4464 echo " Compiling in extra code for debugging."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4465 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4466 if [ "${memory_usage_stats}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4467 echo " Compiling in code for checking XEmacs memory usage."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4468 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4469 if [ "$usage_tracking" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4470 echo " Compiling with usage tracking active (Sun internal)."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4471 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4472 echo "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4473 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4474
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4475 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4476 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4477 # Now generate! #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4478 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4479 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4480
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4481 # This has to be called in order for this variable to get into config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4482 ] AC_SUBST(internal_makefile_list) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4483 # Remove any trailing slashes in these variables.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4484 test -n "${prefix}" &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4485 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4486 test -n "${exec_prefix}" &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4487 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4488 ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4489 AC_OUTPUT($internal_makefile_list) [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4490 # Build:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4491 # src/Makefile from ${srcdir}/src/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4492 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4493 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4494 # man/*/Makefile from ${srcdir}/man/*/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4495 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4496 # and possibly
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4497 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4498 # 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
4499 # file. Only do the build if "config.status" is present, since its
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4500 # non-presence indicates an error occured.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4501 status=$?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4502 if [ ! -f ./config.status ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4503 exit $status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4504 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4505 topsrcdir=${srcdir}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4506 # We discard all lines in Makefile.in that start with `# Generated' or /**/#
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4507 # because some cpps get confused by them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4508 # Really we should preserve them somehow into Makefile,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4509 # but that is beyond my level of shell programming.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4510 makefile_command='echo "creating src/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4511 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4512 ( cd ./src;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4513 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4514 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
6
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
4515 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4516 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4517 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4518 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4519 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4520 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4521 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4522 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4523 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4524 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4525 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4526 eval `echo $makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4527 lwlib_makefile_command='echo "creating lwlib/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4528 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4529 ( cd ./lwlib;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4530 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4531 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
6
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
4532 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4533 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4534 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4535 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4536 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4537 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4538 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4539 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4540 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4541 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4542 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4543 eval `echo $lwlib_makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4544 lib_src_makefile_command='echo "creating lib-src/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4545 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4546 ( cd ./lib-src;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4547 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4548 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
6
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
4549 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4550 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4551 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4552 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4553 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4554 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4555 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4556 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4557 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4558 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4559 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4560 eval `echo $lib_src_makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4561 dynodump_makefile_command='echo "creating dynodump/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4562 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4563 ( cd ./dynodump;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4564 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4565 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
6
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
4566 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4567 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4568 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4569 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4570 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4571 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4572 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4573 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4574 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4575 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4576 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4577 eval `echo $dynodump_makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4578 if [ "${with_energize}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4579 energize_makefile_command='echo "creating lwlib/energize/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4580 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4581 ( cd ./lwlib/energize;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4582 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4583 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
6
27bc7f280385 Import from CVS: tag r19-15b4
cvs
parents: 2
diff changeset
4584 eval `echo ${CPP} ${CPPFLAGS_MAKEFILEGEN} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4585 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4586 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4587 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4588 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4589 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4590 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4591 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4592 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4593 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4594 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4595 eval `echo $energize_makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4596 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4597 # AC-OUTPUT has created `config.status' already. We need to add the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4598 # above commands to re-create `src/Makefile', `lwlib/Makefile',
8
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
4599 # `lib-src/Makefile', `dynodump/Makefile', and possibly
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4600 # `lwlib/energize/Makefile', and we need to insert them before the final
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4601 # "exit 0" which appears at the end of `config.status'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4602 <config.status sed -e 's/^exit 0$//' >config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4603 echo $makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4604 echo $lwlib_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4605 echo $lib_src_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4606 echo $dynodump_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4607 echo $man_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4608 if [ "${with_energize}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4609 echo $energize_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4610 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4611 echo exit 0 >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4612 mv -f config.new config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4613 chmod +x config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4614 # 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
4615 # that it is now newer. We have just rewritten all of the Makefiles as well.
8
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
4616 MFS="Makefile src/Makefile src/Makefile.in lib-src/Makefile lib-src/Makefile.in dynodump/Makefile dynodump/Makefile.in lwlib/Makefile lwlib/Makefile.in"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4617 for file in $MFS; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4618 chmod a+w $file; touch $file; chmod 444 $file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4619 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4620
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4621 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4622 echo creating src/gdbinit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4623 echo source $topsrcdir/src/gdbinit > src/gdbinit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4624 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4625
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4626 exit 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4627
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4628 # I've removed "mode: ksh" from the following. ksh mode sucks for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4629 # editing this file. (It seems that ksh mode sucks in general.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4630 # I wonder if the new 19.29 shell-script mode is better.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4631
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4632 # Local Variables:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4633 # compile-command: "autoconf"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4634 # End:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4635 ]