annotate configure @ 62:28a7c63c7e1e r19-16-pre6

Import from CVS: tag r19-16-pre6
author cvs
date Mon, 13 Aug 2007 08:59:13 +0200
parents 8b0bdfdf0cf0
children 0b7f3b634cf2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 #!/bin/sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 #### Configuration script for XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 #### Copyright (C) 1994 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 #### Copyright (C) 1995, 1996 Ben Wing.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ### Don't edit this script!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ### This script was automatically generated by the `autoconf' program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ### from the file `./configure.in'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ### To rebuild it, execute the command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ### autoconf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ### in the this directory. You must have autoconf version 1.9 or later.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ### This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ### XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ### under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ### the Free Software Foundation; either version 2, or (at your
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ### option) any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ### XEmacs is distributed in the hope that it will be useful, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ### WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ### General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ### You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ### along with XEmacs; see the file COPYING. If not, write to the Free
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ### 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ### Since XEmacs has configuration requirements that autoconf can't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ### meet, this file is an unholy marriage of custom-baked
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ### configuration code and autoconf macros.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ### We use the m4 quoting characters [ ] (as established by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ### autoconf system) to include large sections of raw sewage - Oops, I
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 ### mean, shell code - in the final configuration script.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ### Usage: configure config_name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ### If configure succeeds, it leaves its status in config.status.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ### If configure fails after disturbing the status quo,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ### config.status is removed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ### Remove any more than one leading "." element from the path name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 ### If we don't remove them, then another "./" will be prepended to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ### the file name each time we use config.status, and the program name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 ### will get larger and larger. This wouldn't be a problem, except
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ### that since progname gets recorded in all the Makefiles this script
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 ### produces, move-if-change thinks they're different when they're
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 ### not.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 ### 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
54 ### apply the * operator to that, so we remove as many leading ./././'s
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 ### 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
56 ### apply * to a \( \) group. Bleah.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 progname="`echo $0 | sed 's:^\./\./:\./:'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 # Establish some default values #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 run_in_place='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 prefix='/usr/local'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 exec_prefix='${prefix}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 bindir='${exec_prefix}/bin'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 # FSF 19.29 changes to:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 # datadir='${prefix}/share'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 # sharedstatedir='${prefix}/com'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 # libexecdir='${exec_prefix}/libexec'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 datadir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 statedir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 libdir='${exec_prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 mandir='${prefix}/man/man1'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 infodir='${prefix}/lib/xemacs-${version}/info'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 infodir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 lispdir='${datadir}/xemacs-${version}/lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 lispdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 sitelispdir='${datadir}/xemacs/site-lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 etcdir='${datadir}/xemacs-${version}/etc'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 etcdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 lockdir='${statedir}/xemacs/lock'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 lockdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 archlibdir='${libdir}/xemacs-${version}/${configuration}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 archlibdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 with_menubars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 with_scrollbars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 with_dialogs=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 const_is_losing='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 puresize=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 cflags='NO_CFLAGS_DEFINED'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 dynamic=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 with_x11=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 rel_alloc='default'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 use_system_malloc='default'
8
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 2
diff changeset
98 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
99 energize_version='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 native_sound_lib=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 # make normal error-checking be the default in alpha and beta versions, so
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 # that bugs get noticed. Change this for released versions.
44
8d2a9b52c682 Import from CVS: tag r19-15prefinal
cvs
parents: 38
diff changeset
103 error_check_default='no'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 error_check_extents=$error_check_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 error_check_typecheck=$error_check_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 error_check_bufpos=$error_check_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 error_check_gc=$error_check_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 error_check_malloc=$error_check_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 # debug=yes must be set when error checking is present. This should be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 # fixed up.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 debug=$error_check_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 quantify='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 # use-assertions should be 'yes' by default. Too many people in this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 # 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
115 # core file went". At least we should get some useful output ...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 use_assertions='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 # the following is set to yes or no later.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 with_gif=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 # the following is set to yes or no later.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 with_toolbars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 with_tty='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 use_union_type='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 # # gnu echo silently eats `--help', `--version', `-n', `-e', `-E', `-n'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 # # other versions of echo eat any strings beginning with `-n'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 # # when parsing arguments, special case these strings and don't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 # # pass them through echo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 # echo=/bin/echo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 # this approach abandoned in favor of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 # echo "" ${stuff_to_filter} | sed -e 's:^ ::'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 # On Sun systems, people sometimes set up the variable CPP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 # with a value that is a directory, not an executable at all.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 # Detect that case, and ignore that value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 if [ "x$CPP" != x ] && [ -d "$CPP" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 CPP=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 # Usage messages #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 Set compilation and installation parameters for XEmacs, and report.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 CONFIGURATION specifies the machine and operating system to build for.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 Note that for most of the following options, you can explicitly enable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 This is especially useful for auto-detected options.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 Options marked with a (*) are autodetected.
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 General options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 --help Issue this usage message.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 --verbose Display the results of configure tests.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 --extra-verbose Also display the output of any compiler invocation.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 (Useful when feature tests are coming out wrong.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 Compiler options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 --compiler=XXXX Specify compiler.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 --with-gcc (*) Use GCC to compile XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 --with-lcc Use Lucid's LCC to compile XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 --with-gcc=no Don't use GCC to compile XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 --with-gnu-make Write the Makefiles to take advantage of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 special features of GNU Make. (GNU Make
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 works fine on the Makefiles even without this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 option. This just allows for simultaneous
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 in-place and --srcdir building.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 --cflags=FLAGS Override the default values for CFLAGS.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 --site-includes=DIR Other header file directories. Separate multiple
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 dirs with spaces and use quotes to enclose.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 --site-libraries=DIR Other library directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 --site-runtime-libraries=DIR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 Paths to add with -R flag.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 --dynamic=yes Link dynamically if supported by system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 --dynamic=no Force static linking on systems where dynamic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 linking is the default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 --srcdir=DIR Look for the XEmacs source files in DIR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 See also --with-gnu-make.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 --const-is-losing=no Allow the use of const in the source code.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 Installation options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 --run-in-place Use the source tree for installation.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 Window-system options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 --with-x (*) Support the X Window System.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 --with-x=no Don't support X.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 --x-includes=DIR Search for X header files in DIR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 --x-libraries=DIR Search for X libraries in DIR.
50
ee648375d8d6 Import from CVS: tag r19-16b91
cvs
parents: 48
diff changeset
204 --with-ns Support NeXTstep windows (Doesn't work, option
ee648375d8d6 Import from CVS: tag r19-16b91
cvs
parents: 48
diff changeset
205 removed in 20.3)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 widgets emulate Motif (mostly) but are faster.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 *WARNING* The Motif menubar is currently broken.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena, or no).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, or no).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 (Lucid menubars and scrollbars are the default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 Motif dialog boxes will be used if Motif can be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 found.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 --with-cde (*) Compile in support for CDE drag and drop.
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
215 --with-offix (*) Compile in support for OffiX drag and drop.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 --with-xpm (*) Compile with support for XPM files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 It is highly recommended that you obtain XPM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 (version 3.4g or better) if you don't already
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 have it. Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 Additional features:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 --with-toolbars=no Don't compile with any toolbar support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 --with-tooltalk Support the ToolTalk IPC protocol.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 --with-sparcworks Support the Sun Sparcworks development environment.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 --with-energize Support the Lucid Energize development environment.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 This doesn't currently work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 --with-socks Compile with support for SOCKS (an Internet proxy).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 --with-term Compile with support for TERM (a way to multiplex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 serial lines and provide vaguely Internet-like
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 functionality over a simple dialup connection,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 used on Linux and other systems. NOTE: We can't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 guarantee that our TERM support coexists well
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 with standard Internet connections).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 --with-xface (*) Compile with support for X-Face mail header
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 conversion. Requires the compface library.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 --with-gif Compile with support for GIF image conversion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 This requires no special support and defaults to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 \`yes'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 --with-jpeg (*) Compile with support for JPEG image conversion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 Requires libjpeg from the Independent JPEG Group.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 --with-png (*) Compile with support for PNG image conversion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 Requires libpng. Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 Accepted values are \`yes', \`no', and \`gnuz'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 if you want to use -lgz instead of -lz.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 --with-tiff Compile with support for TIFF image conversion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 (not yet implemented).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 --with-database=type (*) Compile with database support. Valid types are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 \`no' or a comma-separated list of one or more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 of \`dbm', \`gnudbm', or \`berkdb'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 --external-widget Compile with external widget support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 --with-sound=native (*) Compile with native sound support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 --with-sound=nas Compile with network sound support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 --with-sound=both Compile with native and network sound support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 --native-sound-lib=LIB Native sound support library. Needed on Suns
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 with --with-sound=both because both sound libraries
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 are called libaudio.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 --with-epoch Compile with additional Epoch compatibility.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 This doesn't work yet.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 --with-mocklisp Compile with Mocklisp support. Don't do this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 unless you have a Mocklisp program that you need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 to run.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 --usage-tracking Enable some Sun-internal code. If you don't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 know what this is, you don't want it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 Debugging options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 --debug Compile with support for debugging XEmacs.
44
8d2a9b52c682 Import from CVS: tag r19-15prefinal
cvs
parents: 38
diff changeset
274 (Causes code-size increase and little loss of speed.)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 --error-checking=TYPE[,TYPE]...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 Compile with internal error-checking added.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 Causes noticeable loss of speed. Valid types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 are extents, bufpos, malloc, gc, typecheck.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 --error-checking=none Disable all internal error-checking (the default).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 --error-checking=all Enable all internal error-checking.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 --memory-usage-stats Compile with additional code to allow you to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 determine what XEmacs's memory is being used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 for. Causes a small code increase but no loss
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 of speed. Normally enabled when --debug is given.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 --no-doc-file Don't rebuild the DOC file unless it's explicitly
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 deleted. Only use during development. (It speeds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 up the compile-run-test cycle.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 --use-union-type Enable or disable use of a union, instead of an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 int, for the fundamental Lisp_Object type; this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 provides stricter type-checking. Only works with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 some systems and compilers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 Other options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 --puresize=VALUE Override default amount of space for pure Lisp code.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 --rel-alloc Use the relocating allocator (default for this option
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 is system-dependent).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 --use-system-malloc Force use of the system malloc, rather than GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 malloc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 You may also specify any of the \`path' variables found in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 so on. Note that we recommend against explicitly setting any of these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 variables. See the INSTALL file for a complete list plus the reasons
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 we advise not changing them. Specifying a \'path' variable will override
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 the --run-in-place value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 If successful, ${progname} leaves its status in config.status. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 unsuccessful after disturbing the status quo, it removes config.status."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 # Options processing #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 ### Record all the arguments, so we can save them in config.status.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 arguments="$@"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 ### in order to get the arguments back in $@, we have to do an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 ### `eval set x "$quoted_arguments"; shift'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 quoted_arguments=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 for i in "$@"; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 quoted_arguments="$quoted_arguments '$i'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 ### Don't use shift -- that destroys the argument list, which autoconf needs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 ### to produce config.status. It turns out that "set - ${arguments}" doesn't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 ### work portably.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 ### However, it also turns out that many shells cannot expand ${10} at all.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 ### 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
335 ### some shell magic to make 'set x "$arguments"; shift' work portably.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 while [ $# != 0 ]; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 arg="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 case "${arg}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 ## Anything starting with a hyphen we assume is an option.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 -* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 ## Separate the switch name from the value it's being given.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 case "${arg}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 -*=*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 valomitted=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 # ## special case these strings since echo may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 # ## silently eat them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 # --help ) opt=help val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 # --version ) opt=version val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 # -e ) opt=e val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 # -E ) opt=E val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 # -n ) opt=n val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 -*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 ## If FOO is a boolean argument, --FOO is equivalent to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 ## --FOO=yes. Otherwise, the value comes from the next
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 ## argument - see below.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 val="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 valomitted=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 ## Change `-' in the option name to `_'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 optname="${opt}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 ## Process the option.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 case "${opt}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 ## Has the user specified which window systems they want to support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 "with_x" | "with_x11" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 eval "with_x11=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 ;;
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 whether or not they want GCC or LCC?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 "with_gcc" | "with_lcc" )
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 "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 if [ "${with_gcc}" = "yes" ] && [ "${with_lcc}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 (echo "${progname}: only one of --with-gcc and --with-lcc may be specified."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 ## Has the user specified a compiler to use?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 "compiler" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 \`--${optname}=FOO'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 compiler="${val}"
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 special GNU Make support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 "with_gnu_make" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 eval "${opt}=\"${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 ## This option will not force a rebuild of the DOC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 ## file each time that a source or Lisp file has changed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 ## If you want the DOC file rebuilt, remove it. A side
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 ## effect of this is that you may get complaints about
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 ## "doc lost for function foobar" or "strange doc for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 ## function foobar", but in general these should not cause
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 ## problems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 "no_doc_file" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 # Enable use of the union type for Lisp_Objects.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 # mly, eat your heart out ...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 "use_union_type" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 ## Has the user specified a source directory?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 "srcdir" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 \`--${optname}=FOO'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 srcdir="${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 requested sound support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 "with_sound" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 ## value can be native, nas or both. yes is allowed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 ## as a backwards compatible synonym for native
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 y | ye | yes ) val=native ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 n | no | non | none ) val=no;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 na | nat | nati | nativ | native ) val=native ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 b | bo | bot | both ) val=both;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 (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
509 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 ## Has the user specified a native sound library?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 ## (the reason for this flag is that, under Suns, both NAS sound
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 ## and native sound call their library libaudio.a)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 "native_sound_lib" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 \`--${optname}=FOO'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 native_sound_lib="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 ## Has the user requested extra Epoch compatibility?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 "with_epoch" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 eval "${opt}=\"${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 specified a change to the default linking?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 "dynamic" )
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 Quantify support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 "quantify" )
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 requested SOCKS support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 "with_socks" )
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 TERM support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 "with_term" )
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 CDE support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 "with_cde" )
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
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
630 ## Has the user requested OffiX support?
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
631 "with_offix" )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
632 ## Make sure the value given was either "yes" or "no".
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
633 case "${val}" in
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
634 y | ye | yes ) val=yes ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
635 n | no ) val=no ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
636 * )
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
637 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
638 Set it to either \`yes' or \`no'."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
639 echo "${short_usage}") >&2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
640 exit 1
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
641 ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
642 esac
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
643 eval "${opt}=\"${val}\""
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
644 ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
645
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
646 ## Has the user requested XPM support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
647 "with_xpm" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 ## Has the user requested XFACE support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 "with_xface" )
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 GIF support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 "with_gif" )
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 JPEG support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695 "with_jpeg" )
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 database support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
711 "with_database" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
712 if [ "${val}" = "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713 with_database_berkdb=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
714 with_database_dbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715 with_database_gnudbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 ## Make sure the value given was berkdb, dbm, gnudbm, or a list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718 for x in `echo "${val}" | sed 's/,/ /'` ; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719 case "${x}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720 b | be | ber | berk | berkd | berkdb )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721 with_database_berkdb=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
722 d | db | dbm )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
723 with_database_dbm=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
724 g | gn | gnu | gnud | gnudb | gnudbm )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
725 with_database_gnudbm=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
726 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 (echo "${progname}: the \`--${optname}' option is supposed to be either \`no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728 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
729 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
731 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
732 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
733 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
734 if [ "${with_database_dbm}" = "yes" ] && [ "${with_database_gnudbm}" = "yes" ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
735 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
736 (echo "${progname}: only one of \`dbm' and \`gnudbm' should be specified.") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
738 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
739 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
740 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
741
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
742 ## Has the user requested PNG support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
743 "with_png" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
744 ## Make sure the value given was either "yes", "no", or "gnuz".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
745 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
746 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
747 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
748 g | gn | gnu | gnuz ) val=gnuz ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
749 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
750 (echo "${progname}: the \`--${optname}' option is supposed to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
751 be either \`yes', \`no', or \`gnuz'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752 echo "${short_usage}") >&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 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
755 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
756 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
757 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
758
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
759 ## Has the user requested TIFF support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
760 "with_tiff" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
761 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
762 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
763 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764 n | no ) val=no ;;
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 have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
767 Set it to either \`yes' or \`no'."
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 NeXTstep support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
776 "with_ns" )
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 that assertions be used?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
792 "use_assertions" )
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 error-checking?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
808 "error_checking" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
809 ## value can be all, none, and/or a list of categories to check.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810 ## Example: --error-checking=all,noextents,nobufpos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
811 ## Example: --error-checking=none,malloc,gc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
812
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
813 for x in `echo "${val}" | sed 's/,/ /'` ; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
814 case "${x}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
815 # all and none are only permitted as the first in the list.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
816 n | no | non | none ) new_default=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
817 a | al | all ) new_default=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
818
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
819 extents ) error_check_extents=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
820 noextents ) error_check_extents=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
822 typecheck ) error_check_typecheck=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
823 notypecheck ) error_check_typecheck=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
824
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
825 bufpos ) error_check_bufpos=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
826 nobufpos ) error_check_bufpos=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
827
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
828 gc ) error_check_gc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
829 nogc ) error_check_gc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
830
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
831 malloc ) error_check_malloc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
832 nomalloc ) error_check_malloc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
833
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
834 * ) bogus_error_check=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
835 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
836 if [ "$bogus_error_check" -o \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
837 \( -n "$new_default" -a -n "$echeck_notfirst" \) ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
838 ( echo "${progname}: Valid types for the \`--${optname}' option are:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
839 if [ $error_check_default = yes ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
840 echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
841 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
842 echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
843 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
844 echo "${short_usage}" ) >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
845 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
846 elif [ "$new_default" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
847 error_check_extents=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
848 error_check_typecheck=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
849 error_check_bufpos=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
850 error_check_gc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
851 error_check_malloc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
852 new_default= # reset this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
853 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
854 echeck_notfirst=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
855 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
856 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
857
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
858 ## Has the user requested external widget support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
859 "external_widget" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
860 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
861 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
862 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
863 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
864 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
865 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
866 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
867 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
868 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
869 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
870 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
871 eval "${opt}=\"${val}\""
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 that const be used?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
875 "const_is_losing" )
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 mentioned that they don't have Xmu?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891 "with_xmu" )
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
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
906 ## Has the user specified a value for RAW_PURESIZE?
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907 "puresize" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
908 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
909 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
910 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
911 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
912 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
913 \`--${optname}=FOO'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
914 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
915 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
916 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
917 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
918 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
919 puresize="${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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
922 ## Has the user specified explicit instructions for rel_alloc?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
923 "rel_alloc" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
924 ## Make sure the value given was either "yes", "no", or "default".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
925 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
926 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
927 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
928 d | de | def | defa | defau | defaul | default )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
929 val=default ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
930 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
931 (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
932 Set it to either \`yes', \`no', or \`default'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
933 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
934 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
935 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
936 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
937 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
938 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
939
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
940 ## Has the user specified explicit instructions for system_malloc?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
941 "use_system_malloc" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
942 ## Make sure the value given was either "yes", "no", or "default".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
943 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
944 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
945 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
946 d | de | def | defa | defau | defaul | default )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
947 val=default ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
948 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
949 (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
950 Set it to either \`yes', \`no', or \`default'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
951 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
952 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
953 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
954 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
955 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
956 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
957
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
958 ## Has the user tried to tell us where the X files are?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
959 ## I think these are dopey, but no less than three alpha
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
960 ## testers, at large sites, have said they have their X files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
961 ## installed in odd places.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
962 "x_includes" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
963 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
964 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
965 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
966 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
967 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
968 \`--${optname}=/usr/local/X11/include'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
969 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
970 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
971 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
972 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
973 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
974 x_includes="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
975 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
976 "x_libraries" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
977 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
978 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
979 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
980 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
981 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
982 \`--${optname}=/usr/local/X11/lib'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
983 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
984 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
985 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
986 val="$1"; shift
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 x_libraries="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
989 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
990
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
991 "site_includes" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
992 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
993 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
994 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
995 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
996 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
997 \`--${optname}=/usr/local/X11/include'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
998 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
999 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1000 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1001 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1002 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1003 site_includes="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1004 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1005
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1006 "site_libraries" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1007 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1008 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1009 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1010 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1011 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1012 \`--${optname}=/usr/local/X11/lib'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1013 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1014 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1015 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1016 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1017 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1018 site_libraries="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1019 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1020
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1021 "site_runtime_libraries" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1022 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1023 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1024 ## Get the next argument from the argument list, if there is one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1025 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1026 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1027 \`--${optname}=/usr/local/X11/lib'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1028 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1029 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1030 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1031 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1032 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1033 site_runtime_libraries="${val}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1034 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1035
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1036 ## Has the user specified the developer configuration?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1037 ## Note that the user still has the option of explicitly setting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1038 ## a path option.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1039 "run_in_place" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1040 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1041 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1042 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1043 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1044 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1045 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1046 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1047 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1048 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1049 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1050 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1051 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1052 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1053
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1054 ## Has the user specified one of the path options?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1055 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1056 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1057 sitelispdir | docdir )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1058 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1059 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1060 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1061 (echo \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1062 "$progname: You must give a value for the \`--${optname}' option,";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1063 echo \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1064 "as in \`--${optname}=`eval echo '$'$optname`.'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1065 echo "$short_usage") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1066 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1067 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1068 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1069 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1070 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1071
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1072 ## Changing exec_prefix or libdir will change the default value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1073 ## of archlibdir. Changing datadir will change the default value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1074 ## of etcdir and lispdir. Changing statedir will change the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1075 ## default value of lockdir.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1076 if [ "${opt}" = "exec_prefix" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1077 archlibdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1078 elif [ "${opt}" = "libdir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1079 archlibdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1080 elif [ "${opt}" = "archlibdir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1081 archlibdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1082 elif [ "${opt}" = "lispdir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1083 lispdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1084 elif [ "${opt}" = "etcdir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1085 etcdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1086 elif [ "${opt}" = "datadir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1087 lispdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1088 etcdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1089 elif [ "${opt}" = "statedir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1090 lockdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1091 elif [ "${opt}" = "lockdir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1092 lockdir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1093 elif [ "${opt}" = "infodir" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1094 infodir_user_defined='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1095 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1096 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1097
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1098 ## Has the user specified values to override CFLAGS?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1099 cflags )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1100 ## If the value was omitted, get it from the next argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1101 if [ "${valomitted}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1102 if [ $# = 0 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1103 (echo \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1104 "$progname: You must give a value for the \`--${optname}' option,";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1105 echo \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1106 "as in \`--${optname}=`eval echo '$'$optname`-g -O'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1107 echo "$short_usage") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1108 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1109 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1110 val="$1"; shift
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 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1113 eval "${opt}_specified=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1114 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1115
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1116 ## Verbose flag, tested by autoconf macros.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1117 "verbose" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1118 verbose=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1119 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1121 ## Does the user want to see the compiler output for feature tests?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1122 "extra_verbose" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1123 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1124 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1125 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1126 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1127 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1128 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1129 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1130 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1131 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1132 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1133 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1134 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1135 ## --extra-verbose implies --verbose
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1136 verbose=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1137 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1138
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1139 ## --no-create added by autoconf for use by config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1140 "no_create" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1141 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1142
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1143 ## Has the user asked for some help?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1144 "usage" | "help" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1145 if [ "x$PAGER" = x ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1146 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1147 echo "${short_usage}" | more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1148 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1149 echo "${short_usage}" | $PAGER
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1150 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1151 exit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1152 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1153
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1154 ## Has the user specified what toolkit to use for the menubars,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1155 ## scrollbar or dialogs?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1156 "with_menubars" | "with_scrollbars" | "with_dialogs" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1157 ## value can be lucid, motif, or athena.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1158 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1159 l | lu | luc | luci | lucid ) val=lucid ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1160 m | mo | mot | moti | motif ) val=motif ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1161 a | at | ath | athe | athen | athena ) val=athena ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1162 n | no | non | none ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1163 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1164 (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
1165 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1166 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1167 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1168 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1169 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1170 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1171
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1172 ## Has the user disabled toolbar support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1173 "with_toolbars" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1174 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1175 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1176 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1177 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1178 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1179 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1180 Set it to either \`yes' 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 TTY support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1189 "with_tty" )
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 specified whether or not they want to use ToolTalk?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1205 "with_tooltalk" )
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 Mocklisp support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1221 "with_mocklisp" )
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 to use SparcWorks?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1237 "with_sparcworks" )
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 if [ "${with_sparcworks}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1251 with_tooltalk='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1252 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1253 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1254
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1255 ## Does the user want usage tracking?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1256 "usage_tracking" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1257 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1258 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1259 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1260 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1261 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1262 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1263 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1264 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1265 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1266 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1267 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1268 eval "${opt}=\"${val}\""
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 additional debugging capability?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1272 "debug" )
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 if [ "${debug}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1286 use_assertions='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1287 memory_usage_stats='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1288 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1289 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1290
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1291 ## Does the user want code for memory usage stats?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1292 "memory_usage_stats" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1293 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1294 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1295 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1296 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1297 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1298 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1299 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1300 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1301 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1302 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1303 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1304 eval "${opt}=\"${val}\""
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 ## Has the user specified whether or not they want to use Energize?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1308 "with_energize" )
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 if [ "${with_energize}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1322 with_menubars='lucid'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1323 with_scrollbars='motif'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1324 with_dialogs='motif'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1325 with_tooltalk='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1326 internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1327 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1328 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1329
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1330 ## Fail on unrecognized arguments.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1331 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1332 (echo "${progname}: Error: unrecognized option ${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1333 echo ""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1334 echo "${short_usage}") >& 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1335 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1336 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1337
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1338 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1339 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1340
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1341 ## Anything not starting with a hyphen we assume is a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1342 ## configuration name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1343 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1344 configuration=${arg}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1345 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1346
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1347 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1348 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1349
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1350 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1351 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1352 # Finish options processing #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1353 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1354 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1355
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1356 ### Get the arguments back. See the diatribe on Shell Magic above.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1357 eval set x "$quoted_arguments"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1358
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1359 if [ "${configuration}" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1360 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
1361 - I will attempt to guess the kind of system this is.' 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1362 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1363 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1364 echo "- Looks like this is a ${configuration}" 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1365 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1366 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
1367 echo "${short_usage}" >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1368 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1369 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1370 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1371
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1372 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1373 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1374 # Handle --srcdir #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1375 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1376 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1377
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1378 #### Decide where the source is.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1379 case "${srcdir}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1380
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1381 ## If it's not specified, see if `.' or `..' might work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1382 "" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1383 confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1384 if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1385 srcdir="${confdir}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1386 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1387 if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1388 srcdir='.'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1389 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1390 if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1391 srcdir='..'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1392 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1393 (echo "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1394 ${progname}: Neither the current directory nor its parent seem to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1395 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
1396 source tree, you should run \`${progname}' in the directory in which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1397 you wish to build XEmacs, using its \`--srcdir' option to say where the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1398 sources may be found."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1399 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1400 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1401 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1402 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1403 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1404 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1405
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1406 ## Otherwise, check if the directory they specified is okay.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1407 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1408 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
1409 (echo "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1410 ${progname}: The directory specified with the \`--srcdir' option,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1411 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1412 either run the \`${progname}' script at the top of the XEmacs source
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1413 tree, or use the \`--srcdir' option to specify where the XEmacs sources
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1414 are."
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 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1419 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1420
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1421 ## We check for this now instead of later when we check for other
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1422 ## programs because we need to use its return value now.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1423 test -n "$silent" || echo "checking for ln -s"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1424 rm -f conftestdata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1425 if ln -s X conftestdata 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1426 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1427 rm -f conftestdata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1428 LN_S="ln -s"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1429 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1430 LN_S=ln
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1431 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1432
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1433
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1434
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1435 test -n "$verbose" && echo " "setting LN_S to ${LN_S}""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1436
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1437 #### Make symlinks for etc, lisp, and info directories while the path
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1438 #### is still relative. We don't symlink lock because someone may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1439 #### have stuck the source on a read-only partition. Instead we'll
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1440 #### create it as an actual directory later on if it doesn't already
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1441 #### exist.
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
1442 for dir in lisp etc man info site-lisp
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1443 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1444 if [ ! -d $dir ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1445 echo Making symbolic link to ${srcdir}/$dir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1446 ${LN_S} ${srcdir}/$dir .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1447 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1448 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1449
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1450 #### Make srcdir absolute, if it isn't already. It's important to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1451 #### avoid running the path through pwd unnecessary, since pwd can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1452 #### give you automounter prefixes, which can go away.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1453 case "${srcdir}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1454 /* ) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1455 . )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1456 ## We may be able to use the $PWD environment variable to make this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1457 ## absolute. But sometimes PWD is inaccurate.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1458 if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1459 srcdir="$PWD"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1460 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1461 srcdir="`(cd ${srcdir}; pwd)`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1462 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1463 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1464 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1465 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1466
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1467 #### Check if the source directory already has a configured system in it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1468 if [ `pwd` != `sh -c cd ${srcdir} && pwd` ] \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1469 && [ -f "${srcdir}/src/config.h" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1470 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1471 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
1472 echo " right. To configure in another directory as well, you MUST"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1473 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
1474 echo " now do \`make distclean' in ${srcdir},"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1475 echo " and then run ${progname} again.") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1476 extrasub='/^VPATH[ ]*=/c\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1477 vpath %.c $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1478 vpath %.h $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1479 vpath %.y $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1480 vpath %.l $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1481 vpath %.s $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1482 vpath %.in $(srcdir)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1483 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1484
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1485 ### Make the necessary directories, if they don't exist.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1486 for dir in ./src ./lib-src ./dynodump ./man ./lwlib ./lock ; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1487 if [ ! -d ${dir} ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1488 mkdir ${dir}
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 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1491 if [ "${with_energize}" = "yes" ] && [ ! -d ./lwlib/energize ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1492 mkdir ./lwlib/energize
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1493 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1494
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1495 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1496 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1497 # Determine the s&m files to use #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1498 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1499 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1500
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1501 #### Given the configuration name, set machfile and opsysfile to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1502 #### names of the m/*.h and s/*.h files we should use.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1503
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1504 ### Canonicalize the configuration name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1505 echo "checking the configuration name"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1506 # allow -energize prefix on configuration name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1507 internal_configuration=`echo ${configuration} | sed 's/-energize//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1508 # allow --sparcworks prefix on configuration name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1509 internal_configuration=`echo ${configuration} | sed 's/-sparcworks//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1510 if canonical=`${srcdir}/config.sub "${internal_configuration}"` ; then : ; else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1511 exit $?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1512 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1513
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1514 ### If you add support for a new configuration, add code to this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1515 ### switch statement to recognize your configuration name and select
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1516 ### the appropriate operating system and machine description files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1517
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1518 ### You would hope that you could choose an m/*.h file pretty much
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1519 ### based on the machine portion of the configuration name, and an s-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1520 ### file based on the operating system portion. However, it turns out
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1521 ### that each m/*.h file is pretty manufacturer-specific - for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1522 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1523 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1524 ### machines. So we basically have to have a special case for each
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1525 ### configuration name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1526 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1527 ### As far as handling version numbers on operating systems is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1528 ### concerned, make sure things will fail in a fixable way. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1529 ### /etc/MACHINES doesn't say anything about version numbers, be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1530 ### prepared to handle anything reasonably. If version numbers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1531 ### matter, be sure /etc/MACHINES says something about it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1532 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1533 ### Eric Raymond says we should accept strings like "sysvr4" to mean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1534 ### "System V Release 4"; he writes, "The old convention encouraged
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1535 ### confusion between `system' and `release' levels'."
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1536 ###
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1537 ### We rely on cpp to generate makefiles from Makefile.in.in templates.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1538 ### There is at least one drawback to that. Since cpp generally has
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1539 ### built-in macro definitions like `#define unix' or `#define i386',
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1540 ### we must be careful to prevent it from substituting these occurences
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1541 ### in certain places in the makefiles. Pathnames for architecture-
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1542 ### specific files come to mind.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1543 ### This is where CPPFLAGS_MAKEFILEGEN comes in. We try to selectively
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1544 ### disable (potentially) predefined macros that we find to be part of
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1545 ### the configuration string.
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1546 ### This is but a poor method to help us fight off cpp, but it covers
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1547 ### those cases that used to bite me. <mdiers@logware.de>
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1548
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1549 CPPFLAGS_MAKEFILEGEN="" # we normally do not need any extra flags
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1550
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1551 machine='' opsys='' unported=no need_dynodump=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1552 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1553
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1554 ## NetBSD ports
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1555 *-*-netbsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1556 opsys=netbsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1557 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1558 sparc-*-netbsd*) machine=sparc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1559 i[3-9]86-*-netbsd*) machine=intel386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1560 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1561 # Yes, this is somewhat bogus.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1562 machine=hp9000s300 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1563 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1564 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1565 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1566 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1567
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1568 ## Acorn RISCiX:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1569 arm-acorn-riscix1.1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1570 machine=acorn opsys=riscix1-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1571 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1572 arm-acorn-riscix1.2* | arm-acorn-riscix )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1573 machine=acorn opsys=riscix1-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1574 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1575
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1576 ## Alliant machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1577 ## Strictly speaking, we need the version of the alliant operating
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1578 ## system to choose the right machine file, but currently the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1579 ## configuration name doesn't tell us enough to choose the right
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1580 ## one; we need to give alliants their own operating system name to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1581 ## do this right. When someone cares, they can help us.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1582 fx80-alliant-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1583 machine=alliant4 opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1584 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1585 i860-alliant-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1586 machine=alliant-2800 opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1587 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1588
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1589 ## Alpha (DEC) machines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1590 ## XEmacs change: split apart into numerous files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1591 alpha-dec-osf1.3 | alpha-dec-osf2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1592 machine=alpha opsys=decosf1-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 alpha-dec-osf1.2 | alpha-dec-osf1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1595 machine=alpha opsys=decosf1-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1596 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1597
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1598 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1599 alpha-dec-osf3.[2-9] )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1600 machine=alpha opsys=decosf3-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1601 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1602 alpha-dec-osf3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1603 machine=alpha opsys=decosf3-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1604 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1605
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1606 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1607 alpha-dec-osf4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1608 machine=alpha opsys=decosf4-0
58
8b0bdfdf0cf0 Import from CVS: tag r19-16-pre4
cvs
parents: 54
diff changeset
1609 NON_GNU_CPP="/lib/cpp"
0
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 alpha-*-linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1613 machine=alpha opsys=linux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1614 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1615
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1616 ## Altos 3068
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1617 m68*-altos-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1618 machine=altos opsys=usg5-2
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 ## Amdahl UTS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1622 580-amdahl-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1623 machine=amdahl opsys=usg5-2-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 ## Apollo, Domain/OS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1627 m68*-apollo-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1628 machine=apollo opsys=bsd4-3
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 ## AT&T 3b2, 3b5, 3b15, 3b20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1632 we32k-att-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1633 machine=att3b opsys=usg5-2-2
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 3b1 - The Mighty Unix PC!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1637 m68*-att-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1638 machine=7300 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 ## Bull dpx20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1642 rs6000-bull-bosx* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1643 machine=ibmrs6000 opsys=aix3-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 dpx2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1647 m68*-bull-sysv3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1648 machine=dpx2 opsys=usg5-3
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 sps7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1652 m68*-bull-sysv2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1653 machine=sps7 opsys=usg5-2
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 ## CCI 5/32, 6/32 -- see "Tahoe".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1657
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1658 ## Celerity
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1659 ## I don't know what configuration name to use for this; config.sub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1660 ## doesn't seem to know anything about it. Hey, Celerity users, get
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1661 ## in touch with us!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1662 celerity-celerity-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1663 machine=celerity opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1664 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1665
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1666 ## Clipper
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1667 ## What operating systems does this chip run that XEmacs has been
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1668 ## tested on?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1669 clipper-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1670 machine=clipper
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1671 ## We'll use the catch-all code at the bottom to guess the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1672 ## operating system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1673 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1674
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1675 ## Convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1676 *-convex-bsd* | *-convex-convexos* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1677 machine=convex opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1678 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1679 NON_GNU_CPP="cc -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1680 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1681
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1682 ## Cubix QBx/386
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1683 i[3-9]86-cubix-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1684 machine=intel386 opsys=usg5-3
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 ## Cydra 5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1688 cydra*-cydrome-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1689 machine=cydra5 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 ## Data General AViiON Machines
20
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 16
diff changeset
1693 i586-dg-dgux5.4R4* | i586-dg-dgux5.4.4* )
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 16
diff changeset
1694 machine=aviion opsys=dgux5-4r4
859a2309aef8 Import from CVS: tag r19-15b93
cvs
parents: 16
diff changeset
1695 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1696 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1697 machine=aviion opsys=dgux5-4r3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1698 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1699 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1700 machine=aviion opsys=dgux5-4r2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1701 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1702 m88k-dg-dgux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1703 machine=aviion opsys=dgux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1704 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1705
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1706 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1707 machine=pmax opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1708 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1709 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1710 machine=pmax opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1711 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1712 mips-dec-ultrix* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1713 machine=pmax opsys=ultrix4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1714 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1715 mips-dec-osf* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1716 machine=pmax opsys=osf1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1717 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1718 mips-dec-mach_bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1719 machine=pmax opsys=mach-bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1720 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1721
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1722 ## Motorola Delta machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1723 m68k-motorola-sysv* | m68000-motorola-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1724 machine=delta opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1725 if test -z "`type gnucc | grep 'not found'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1726 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1727 if test -s /etc/167config
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1728 then CC="gnucc -m68040"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1729 else CC="gnucc -m68881"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1730 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1731 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1732 if test -z "`type gcc | grep 'not found'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1733 then CC=gcc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1734 else CC=cc
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 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1737 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1738 m88k-motorola-sysv4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1739 # 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
1740 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1741 # I hope there are not other 4.0 versions for this machine
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1742 # which really need usg5-4 instead.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1743 machine=delta88k opsys=usg5-4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1744 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1745 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1746 machine=delta88k opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1747 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1748
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1749 ## Dual machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1750 m68*-dual-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1751 machine=dual opsys=usg5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1752 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1753 m68*-dual-uniplus* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1754 machine=dual opsys=unipl5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1755 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1756
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1757 ## Elxsi 6400
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1758 elxsi-elxsi-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1759 machine=elxsi opsys=usg5-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 ## Encore machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1763 ns16k-encore-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1764 machine=ns16000 opsys=umax
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 ## The GEC 93 - apparently, this port isn't really finished yet.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1768
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1769 ## Gould Power Node and NP1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1770 pn-gould-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1771 machine=gould opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1772 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1773 pn-gould-bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1774 machine=gould opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1775 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1776 np1-gould-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1777 machine=gould-np1 opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1778 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1779
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1780 ## 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
1781 ## as far as XEmacs is concerned).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1782 m88k-harris-cxux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1783 # Build needs to be different on 7.0 and later releases
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1784 case "`uname -r`" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1785 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1786 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1787 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1788 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1789 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1790 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1791 m68k-harris-cxux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1792 machine=nh3000 opsys=cxux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1793 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1794 ## Harris power pc NightHawk running Power UNIX (Series 6000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1795 powerpc-harris-powerunix )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1796 machine=nh6000 opsys=powerunix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1797 NON_GNU_CPP="cc -Xo -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1798 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1799
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1800 ## Honeywell XPS100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1801 xps*-honeywell-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1802 machine=xps100 opsys=usg5-2
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 ## HP 9000 series 200 or 300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1806 m68*-hp-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1807 machine=hp9000s300 opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1808 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1809 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1810 m68*-hp-hpux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1811 NON_GNU_CPP="cc -Aa -E"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1812 NON_GNU_CC="cc -Aa"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1813 case "`uname -r`" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1814 ## Someone's system reports A.B8.05 for this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1815 ## I wonder what other possibilities there are.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1816 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1817 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1818 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1819 *.10.* ) machine=hp9000s300 opsys=hpux10 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1820 *) machine=hp9000s300 opsys=hpux ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1821 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1822 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1823
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1824 ## HP 9000 series 700 and 800, running HP/UX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1825 ## XEmacs changes here for shared.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1826 hppa*-hp-hpux7* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1827 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
1828 ;;
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
1829 hppa*-hp-hpux8*shr* )
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1830 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
1831 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1832 hppa*-hp-hpux8* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1833 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
1834 ;;
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
1835 hppa*-hp-hpux9*shr* )
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
1836 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
1837 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1838 hppa*-hp-hpux9* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1839 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
1840 ;;
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
1841 hppa*-hp-hpux10*shr* )
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
1842 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
1843 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1844 hppa*-hp-hpux10* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1845 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
1846 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1847
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1848 ## HP 9000 series 700 and 800, running HP/UX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1849 hppa*-hp-hpux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1850 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1851 ## Cross-compilation? Nah!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1852 case "`uname -r`" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1853 ## Someone's system reports A.B8.05 for this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1854 ## I wonder what other possibilities there are.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1855 *.B8.* ) machine=hp800 opsys=hpux8 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1856 *.08.* ) machine=hp800 opsys=hpux8 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1857 *.09.* ) machine=hp800 opsys=hpux9 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1858 *.10.* ) machine=hp800 opsys=hpux10 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1859 *) machine=hp800 opsys=hpux ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1860 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1861 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1862 hppa-*-nextstep* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1863 machine=hp800 opsys=nextstep
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1864 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1865
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1866 ## Orion machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1867 orion-orion-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1868 machine=orion opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1869 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1870 clipper-orion-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1871 machine=orion105 opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1872 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1873
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1874 ## IBM machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1875 i[3-9]86-ibm-aix1.1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1876 machine=ibmps2-aix opsys=usg5-2-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 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1879 machine=ibmps2-aix opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1880 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1881 i370-ibm-aix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1882 machine=ibm370aix opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1883 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1884 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1885 machine=ibmrs6000 opsys=aix3-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1886 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1887 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1888 machine=ibmrs6000 opsys=aix3-2-5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1889 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1890 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1891 machine=ibmrs6000 opsys=aix4-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1892 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1893 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1894 machine=ibmrs6000 opsys=aix4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1895 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1896 rs6000-ibm-aix* | powerpc-ibm-aix* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1897 machine=ibmrs6000 opsys=aix3-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1898 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1899 romp-ibm-bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1900 machine=ibmrt opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1901 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1902 romp-ibm-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1903 machine=ibmrt opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1904 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1905 romp-ibm-aos4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1906 machine=ibmrt opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1907 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1908 romp-ibm-aos4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1909 machine=ibmrt opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1910 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1911 romp-ibm-aos* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1912 machine=ibmrt opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1913 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1914 romp-ibm-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1915 machine=ibmrt opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1916 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1917 romp-ibm-aix* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1918 machine=ibmrt-aix opsys=usg5-2-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1919 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1920 romp-ibm-mach* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1921 machine=ibmrt opsys=mach-bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1922 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1923
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1924 ## Integrated Solutions `Optimum V'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1925 m68*-isi-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1926 machine=isi-ov opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1927 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1928 m68*-isi-bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1929 machine=isi-ov opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1930 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1931
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1932 ## Intel 386 machines where we do care about the manufacturer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1933 i[3-9]86-intsys-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1934 machine=is386 opsys=usg5-2-2
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 ## Prime EXL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1938 i[3-9]86-prime-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1939 machine=i386 opsys=usg5-3
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 ## Sequent Symmetry running Dynix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1943 i[3-9]86-sequent-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1944 machine=symmetry opsys=bsd4-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/ptx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1948 ## Use the old cpp rather than the newer ANSI one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1949 i[3-9]86-sequent-ptx* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1950 machine=sequent-ptx opsys=ptx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1951 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1952 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1953
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1954 ## Unspecified sysv on an ncr machine defaults to svr4.2.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1955 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1956 i[3-9]86-ncr-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1957 machine=ncr386 opsys=usg5-4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1958 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1959
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1960 ## Intel Paragon OSF/1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1961 i860-intel-osf1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1962 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
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 860
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1966 i860-*-sysv4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1967 machine=i860 opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1968 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1969 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1970 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1971
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1972 ## Masscomp machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1973 m68*-masscomp-rtu* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1974 machine=masscomp opsys=rtu
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 ## Megatest machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1978 m68*-megatest-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1979 machine=mega68 opsys=bsd4-2
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 ## Workstations sold by MIPS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1983 ## This is not necessarily all workstations using the MIPS processor -
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1984 ## Irises are produced by SGI, and DECstations by DEC.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1985
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1986 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1987 ## 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
1988 ## it gives for choosing between the alternatives seems to be "Use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1989 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1990 ## the BSD world." I'll assume that these are instructions for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1991 ## handling two odd situations, and that every other situation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1992 ## should use mips.h and usg5-2-2, they being listed first.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1993 mips-mips-usg* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1994 machine=mips4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1995 ## 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
1996 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1997 mips-mips-riscos4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1998 machine=mips4 opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1999 NON_GNU_CC="cc -systype bsd43"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2000 NON_GNU_CPP="cc -systype bsd43 -E"
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-riscos5* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2003 machine=mips4 opsys=riscos5
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-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2008 machine=mips opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2009 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2010 mips-mips-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2011 machine=mips opsys=usg5-2-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2012 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2013
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2014 ## NeXT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2015 m68*-next-* | m68k-*-nextstep* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2016 machine=m68k opsys=nextstep
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 ## The complete machine from National Semiconductor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2020 ns32k-ns-genix* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2021 machine=ns32000 opsys=usg5-2
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 ## NCR machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2025 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2026 machine=tower32 opsys=usg5-2-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 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2029 machine=tower32v3 opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2030 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2031
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2032 ## Nixdorf Targon 31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2033 m68*-nixdorf-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2034 machine=targon31 opsys=usg5-2-2
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 ## Nu (TI or LMI)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2038 m68*-nu-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2039 machine=nu opsys=usg5-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 ## Plexus
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2043 m68*-plexus-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2044 machine=plexus 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 ## Pyramid machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2048 ## 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
2049 ## so I'm assuming it is its own architecture.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2050 pyramid-pyramid-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2051 machine=pyramid opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2052 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2053
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2054 ## Sequent Balance
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2055 ns32k-sequent-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2056 machine=sequent 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 ns32k-sequent-bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2059 machine=sequent opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2060 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2061
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2062 ## Siemens Nixdorf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2063 mips-siemens-sysv* | mips-sni-sysv*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2064 machine=mips-siemens opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2065 NON_GNU_CC=/usr/ccs/bin/cc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2066 NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2067 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2068
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2069 ## Silicon Graphics machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2070 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2071 m68*-sgi-iris3.5* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2072 machine=irist opsys=iris3-5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2073 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2074 m68*-sgi-iris3.6* | m68*-sgi-iris*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2075 machine=irist opsys=iris3-6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2076 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2077 ## Iris 4D
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2078 mips-sgi-irix3.* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2079 machine=iris4d opsys=irix3-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2080 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2081 mips-sgi-irix4.* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2082 machine=iris4d opsys=irix4-0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2083 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2084 mips-sgi-irix6* )
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
2085 machine=iris4d opsys=irix6-0
62
28a7c63c7e1e Import from CVS: tag r19-16-pre6
cvs
parents: 58
diff changeset
2086 NON_GNU_CPP=/lib/cpp
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2087 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2088 mips-sgi-irix5.[3-9]* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2089 machine=iris4d opsys=irix5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2090 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2091 mips-sgi-irix5.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2092 machine=iris4d opsys=irix5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2093 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2094 mips-sgi-irix5.1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2095 machine=iris4d opsys=irix5-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2096 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2097 mips-sgi-irix5.* | mips-sgi-irix* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2098 machine=iris4d opsys=irix5-0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2099 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2101 ## SONY machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2102 m68*-sony-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2103 machine=news opsys=bsd4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2104 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2105 m68*-sony-bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2106 machine=news opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2107 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2108 m68*-sony-newsos3* | m68*-sony-news3*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2109 machine=news opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2110 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2111 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2112 machine=news-risc opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2113 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2114 mips-sony-news* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2115 machine=news-risc opsys=newsos5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2116 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2117
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2118 ## Stride
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2119 m68*-stride-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2120 machine=stride opsys=usg5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2121 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2122
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2123 ## Suns
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2124 sparc-*-linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2125 machine=sparc opsys=linux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2126 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2127
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2128 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2129 # Hardware type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2130 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2131 m68*-sunos1* ) machine=sun1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2132 m68*-sunos2* ) machine=sun2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2133 m68* ) machine=sun3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2134 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2135 i[3-9]86-*-* ) machine=intel386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2136 rs6000* ) machine=rs6000 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2137 sparc* ) machine=sparc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2138 powerpc* ) machine=powerpc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2139 * ) unported=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2140 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2141
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2142 # Make `canonical' even more so.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2143 case "${canonical}" in *-sunos5*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2144 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2145 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2146
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2147 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2148 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2149 # But, SunOS 5.6 no longer needs dynodump because it has a similar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2150 # function integrated.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2151 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2152 *-sunos4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2153 test -x /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2154 *-solaris2.6* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2155 test -x /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2156 RANLIB=':'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2157 need_dynodump=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2158 *-solaris2* )
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=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2162 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2163
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2164 # (NON)?_GCC_TEST_OPTIONS variables are unused.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2165 # What were they supposed to do, exactly?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2166 # case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2167 # *-sunos4* ) GCC_TEST_OPTIONS=-static NON_GCC_TEST_OPTIONS=-bstatic ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2168 # esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2169
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2170 # 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
2171
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2172 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2173 ## The Sun386 didn't get past 4.0.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2174 i[3-9]86-*-sunos4 ) opsys=sunos4-0 ;;
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2175 *-sunos4*shr* ) opsys=sunos4-0-shr ;;
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2176 *-sunos4-0*shr* ) opsys=sunos4-0-shr ;;
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2177 *-sunos4-1*shr* ) opsys=sunos4-1-shr ;;
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2178 *-sunos4-1-2*shr* ) opsys=sunos4-1-2-shr ;;
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
2179 *-sunos4-1-3*shr* ) opsys=sunos4-1-3-shr ;;
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
2180 *-sunos4-1-[4-9]*shr* ) opsys=sunos4-1-4-shr ;;
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2181 *-sunos4.0* ) opsys=sunos4-0 ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2182 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
2183 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
2184 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2185 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2186
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2187 *-solaris2.3* ) opsys=sol2-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2188 *-solaris2.4* ) opsys=sol2-4 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2189 *-solaris2.5* ) opsys=sol2-5 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2190 *-solaris2.[6-9]* ) opsys=sol2-6 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2191 *-solaris* ) opsys=sol2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2192 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2193 * ) opsys=bsd4-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2194 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2195 ## Watch out for a compiler that we know will not work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2196 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2197 *-solaris* | *-sunos5* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2198 if [ "x$CC" = x/usr/ucb/cc ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2199 ## /usr/ucb/cc doesn't work;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2200 ## we should find some other compiler that does work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2201 unset CC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2202 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2203 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2204 *) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2205 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2206 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2207 sparc-*-nextstep* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2208 machine=sparc opsys=nextstep
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2209 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2210
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2211 ## Tadpole 68k
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2212 m68*-tadpole-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2213 machine=tad68k opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2214 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2215
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2216 ## Tahoe machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2217 tahoe-tahoe-bsd4.2* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2218 machine=tahoe opsys=bsd4-2
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-tahoe-bsd4.3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2221 machine=tahoe opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2222 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2223
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2224 ## Tandem Integrity S2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2225 mips-tandem-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2226 machine=tandem-s2 opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2227 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2228
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2229 ## Tektronix XD88
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2230 m88k-tektronix-sysv3* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2231 machine=tekxd88 opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2232 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2233
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2234 ## Tektronix 16000 box (6130?)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2235 ns16k-tektronix-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2236 machine=ns16000 opsys=bsd4-2
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 4300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2239 ## src/m/tek4300.h hints that this is a m68k machine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2240 m68*-tektronix-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2241 machine=tek4300 opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2242 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2243
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2244 ## Titan P2 or P3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2245 ## We seem to have lost the machine-description file titan.h!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2246 titan-titan-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2247 machine=titan opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2248 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2249
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2250 ## Ustation E30 (SS5E)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2251 m68*-unisys-uniplus* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2252 machine=ustation opsystem=unipl5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2253 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2254
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2255 ## Vaxen.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2256 vax-dec-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2257 machine=vax
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2258 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2259 *-bsd4.1* ) opsys=bsd4-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2260 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2261 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2262 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2263 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2264 *-vms* ) opsys=vms ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2265 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2266 * ) unported=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2267 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2268 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2269
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2270 ## Whitechapel MG1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2271 ns16k-whitechapel-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2272 machine=mg1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2273 ## 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
2274 ## operating system guessing code below try.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2275 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2276
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2277 ## Wicat
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2278 m68*-wicat-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2279 machine=wicat opsys=usg5-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2280 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2281
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2282 ## Intel 386 machines where we don't care about the manufacturer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2283 i[3-9]86-*-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2284 machine=intel386
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
2285 CPPFLAGS_MAKEFILEGEN="${CPPFLAGS_MAKEFILEGEN} -Ui386"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2286 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2287 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2288 *-isc2.2* ) opsys=isc2-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2289 *-isc4.0* ) opsys=isc4-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2290 *-isc4.* ) opsys=isc4-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2291 GCC_TEST_OPTIONS=-posix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2292 NON_GCC_TEST_OPTIONS=-Xp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2293 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2294 *-isc* ) opsys=isc3-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2295 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2296 *-esix* ) opsys=esix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2297 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2298 *-xenix* ) opsys=xenix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2299 *-linux* ) opsys=linux ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2300 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2301 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
2302 *-bsdi3* ) opsys=bsdos3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2303 *-bsdi2.1* ) opsys=bsdos2-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2304 *-bsdi2* ) opsys=bsdos2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2305 *-sco3.2v5* ) opsys=sco5 ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2306 ## This is a pain. Like the current USL cc, SCO's cc -E
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2307 ## tokenizes as it preprocesses, making configure very
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2308 ## unhappy. Unfortunately, /lib/cpp doesn't understand
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2309 ## flags like "-b elf", so we have to cheat in order to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2310 ## pick up the right defines for UNEXEC from the s-file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2311 ## 01/05/95 robertl@dgii.com
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2312 if [ "${dynamic}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2313 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2314 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2315 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2316 fi ;;
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
2317 *-386bsd* ) opsys=386bsd ;;
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
2318 *-freebsd* ) opsys=freebsd ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2319 *-nextstep* ) opsys=nextstep ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2320 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2321 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2322 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2323
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2324 ## Linux/68k
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2325 m68k-*-linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2326 machine=m68k opsys=linux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2327 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2328
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2329 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2330 unported=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2331 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2332 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2333
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2334 ### If the code above didn't choose an operating system, just choose
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2335 ### an operating system based on the configuration name. You really
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2336 ### only want to use this when you have no idea what the right
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2337 ### operating system is; if you know what operating systems a machine
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2338 ### runs, it's cleaner to make it explicit in the case statement
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2339 ### above.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2340 if [ x"${opsys}" = x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2341 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2342 *-gnu* ) opsys=gnu ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2343 *-bsd4.[01] ) opsys=bsd4-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2344 *-bsd4.2 ) opsys=bsd4-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2345 *-bsd4.3 ) opsys=bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2346 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2347 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2348 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2349 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2350 *-sysv4.1* | *-sysvr4.1* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2351 NON_GNU_CPP=/usr/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2352 opsys=usg5-4 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2353 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2354 if [ x$NON_GNU_CPP = x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2355 if [ -f /usr/ccs/lib/cpp ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2356 NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2357 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2358 NON_GNU_CPP=/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2359 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2360 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2361 opsys=usg5-4-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2362 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2363 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2364 unported=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2365 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2366 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2367 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2368
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2369 if test "x$RANLIB" = x; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2370 RANLIB=ranlib
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 ${unported} = yes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2374 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2375 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2376 ) >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2377 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2378 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2379
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2380 if [ "${dynamic}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2381 case "${opsys}" in
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2382 hpux8 ) opsys=hpux8-shr ;;
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2383 hpux9 ) opsys=hpux9-shr ;;
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2384 hpux10 ) opsys=hpux10-shr ;;
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2385 sunos4-0 ) opsys=sunos4-0-shr ;;
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2386 sunos4-1 ) opsys=sunos4-1-shr ;;
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2387 sunos4-1-2 ) opsys=sunos4-1-2-shr ;;
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
2388 sunos4-1-3 ) opsys=sunos4-1-3-shr ;;
32
e04119814345 Import from CVS: tag r19-15b99
cvs
parents: 30
diff changeset
2389 sunos4-1-4 ) opsys=sunos4-1-4-shr ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2390 sco5 ) opsys=sco5-shr ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2391 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2392 elif [ "${dynamic}" = "no" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2393 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2394 sol2 ) opsys=sol2-static ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2395 sol2-3 ) opsys=sol2-3-static ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2396 sol2-4 ) opsys=sol2-4-static ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2397 decosf1-3 ) opsys=decosf1-3-static ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2398 decosf3-1 ) opsys=decosf3-1-static ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2399 decosf3-2 ) opsys=decosf3-2-static ;;
48
56c54cf7c5b6 Import from CVS: tag r19-16b90
cvs
parents: 44
diff changeset
2400 decosf4-0 ) opsys=decosf4-0-static ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2401 linux ) opsys=linux-static ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2402 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2403 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2404
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2405 dynodump_arch=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2406 if [ "${need_dynodump}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2407 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2408 sparc* ) dynodump_arch=sparc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2409 powerpc* ) dynodump_arch=ppc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2410 i[3-9]86* ) dynodump_arch=i386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2411 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2412 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2413
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2414 machfile="m/${machine}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2415 opsysfile="s/${opsys}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2416
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2417
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2418 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2419 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2420 # Determine the compiler, set up for feature testing #
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2425 ac_ext=c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2426 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2427 ac_cpp='${CPP}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2428 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2429
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2430 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2431 trap 'rm -fr confdefs* $ac_clean_files' 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2432
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2433 # Save the original args if we used an alternate arg parser.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2434 ac_configure_temp="${configure_args-$*}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2435 # Strip out --no-create and --norecursion so they don't pile up.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2436 configure_args=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2437 for ac_arg in $ac_configure_temp; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2438 case "$ac_arg" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2440 | --no-cr | --no-c) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2441 -norecursion | --norecursion | --norecursio | --norecursi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2442 | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2443 *) configure_args="$configure_args $ac_arg" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2444 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2445 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2446
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2447 # NLS nuisances.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2448 # These must not be set unconditionally because not all systems understand
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2449 # e.g. LANG=C (notably SCO).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2450 if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2451 if test "${LANG+set}" = 'set'; then LANG=C; export LANG; fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2452
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2454 rm -rf conftest* confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2455 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2456 echo > confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2457
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2458 # A filename unique to this package, relative to the directory that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2459 # configure is in, which we can look for to find out if srcdir is correct.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2460 ac_unique_file=lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2461
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2462 # Find the source files, if location was not specified.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2463 if test -z "$srcdir"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2464 ac_srcdir_defaulted=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2465 # Try the directory containing this script, then `..'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2466 ac_prog=$0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2467 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2468 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2469 srcdir=$ac_confdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2470 if test ! -r $srcdir/$ac_unique_file; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2471 srcdir=..
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2472 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2473 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2474 if test ! -r $srcdir/$ac_unique_file; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2475 if test x$ac_srcdir_defaulted = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2476 echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2477 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2478 echo "configure: can not find sources in ${srcdir}" >&2; exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2479 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2480 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2481 ac_ext=c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2483 ac_cpp='${CPP}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2484 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2485
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2486
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2487
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2488
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2489
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2490
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2491 if [ "${extra_verbose}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2492 # 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
2493 # it omits the redirection of all output to /dev/null.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2494 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2495 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2496
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2497 #### Choose a compiler.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2498 if [ "x$CC" = x ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2499 cc_specified=1
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 # Save the value of CFLAGS that the user specified.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2503 SPECIFIED_CFLAGS="$CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2504
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2505 if [ "${with_gcc}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2506 CC="${compiler-gcc}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2507 GCC=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2508 elif [ "${with_lcc}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2509 CC="${compiler-lcc}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2510 dash_r_space=' ' # this bullshit is here because lcc for solaris
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2511 # will not accept -Rargument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2512 # It needs -R argument instead. Yuck yuck yuck.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2513 if [ "x$NON_GNU_CPP" = x ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2514 NON_GNU_CPP="yes" # this is handled specially below...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2515 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2516 elif [ "${compiler}" != "" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2517 CC="${compiler}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2518 elif [ "${with_gcc}" = "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2519 CC="cc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2520 elif [ "${with_lcc}" = "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2521 if [ "x$CC" = x ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2522 then CC=cc;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2523 else true;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2524 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2525 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2526 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2527 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2528 if test -z "$CC"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2529 # Extract the first word of `gcc', so it can be a program name with args.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2530 set ac_dummy gcc; ac_word=$2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2531 test -n "$silent" || echo "checking for $ac_word"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2533 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2534 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2535 if test -f $ac_dir/$ac_word; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2536 CC="gcc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2537 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2538 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2539 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2540 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2541 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2542 test -z "$CC" && CC="cc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2543 test -n "$CC" && test -n "$verbose" && echo " setting CC to $CC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2544
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2545 # Find out if we are using GNU C, under whatever name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2546 cat > conftest.c <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2547 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2548 yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2549 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2550 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2551 ${CC-cc} -E conftest.c > conftest.out 2>&1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2552 if egrep yes conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2553 GCC=1 # For later tests.
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 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2556
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2557 if [ "${CC}" = "gcc" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2558 with_gcc="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2559 GCC=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2560 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2561 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2562 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2563 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2564
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2565 # On Suns, sometimes $CPP names a directory.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2566 if [ -n "$CPP" ] && [ -d "$CPP" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2567 CPP=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2568 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2569
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2570 #### Some systems specify a CPP to use unless we are using GCC.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2571 #### Now that we know whether we are using GCC, we can decide whether
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2572 #### to use that one.
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
2573
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
2574 if [ "x$GCC" = x1 ] || [ "x$NON_GNU_CPP" = x ] ; then
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
2575 true
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2576 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2577 if [ "x$CPP" = x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2578 if [ "${with_lcc}" = "yes" ] && [ "${NON_GNU_CPP}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2579 CPP='gcc -E -traditional' # cross fingers and hope it's there....
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2580 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2581 CPP="$NON_GNU_CPP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2582 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2583 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2584 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2585
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2586 #### Some systems specify a CC to use unless we are using GCC.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2587 #### Now that we know whether we are using GCC, we can decide whether
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2588 #### to use that one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2589 if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2590 then true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2591 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2592 CC="$NON_GNU_CC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2593 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2594
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2595 ## Huh? I commented out the following because it always enabled
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2596 ## the "test" options, whatever the hell those are supposed to be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2597 ## for, and the result is that SunOS builds were always static.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2598
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2599 #if [ x$GCC = x1 ] && [ "x$GCC_TEST_OPTIONS" != x ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2600 #then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2601 # CC="$CC $GCC_TEST_OPTIONS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2602 #fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2603 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2604 #if [ x$GCC = x ] && [ "x$NON_GCC_TEST_OPTIONS" != x ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2605 #then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2606 # CC="$CC $NON_GCC_TEST_OPTIONS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2607 #fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2608
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2609 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2610 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2611 # Do some misc autoconf-special tests #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2612 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2613 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2614
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2615 #### Some other nice autoconf tests. If you add a test here which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2616 #### 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
2617 #### #undef clause to src/config.h.in for autoconf to modify.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2618
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2619 test -n "$silent" || echo "checking how to run the C preprocessor"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2620 if test -z "$CPP"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2621 # This must be in double quotes, not single quotes, because CPP may get
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2622 # substituted into the Makefile and ``${CC-cc}'' will simply confuse
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2623 # make. It must be expanded now.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2624 CPP="${CC-cc} -E"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2625 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2626 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2627 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2628 Syntax Error
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2629 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2630 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2631 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2632 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2633 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2634 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2635 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2636 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2637 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2638 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2639 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2640 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2641 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2642 CPP="${CC-cc} -E -traditional-cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2643 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2644 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2645 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2646 Syntax Error
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2647 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2648 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2649 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2650 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2651 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2652 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2653 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2654 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2655 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2656 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2657 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2658 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2659 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2660 CPP=/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2661 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2662 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2663 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2664 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2665 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2666 test -n "$verbose" && echo " setting CPP to $CPP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2667
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2668
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2669 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2670 *-sun-sunos* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2671 if [ "${CPP}" = "acc -E" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2672 CPP="acc -E -Xs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2673 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2674 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2675 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2676
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2677 if test -z "$RANLIB"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2678 # Extract the first word of `ranlib', so it can be a program name with args.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2679 set ac_dummy ranlib; ac_word=$2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2680 test -n "$silent" || echo "checking for $ac_word"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2682 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2683 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2684 if test -f $ac_dir/$ac_word; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2685 RANLIB="ranlib"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2686 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2687 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2688 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2689 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2690 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2691 test -z "$RANLIB" && RANLIB=":"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2692 test -n "$RANLIB" && test -n "$verbose" && echo " setting RANLIB to $RANLIB"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2693
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2694 # Make sure to not get the incompatible SysV /etc/install and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2695 # /usr/sbin/install, which might be in PATH before a BSD-like install,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2696 # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2697 # or the AFS install, which mishandles nonexistent args, or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2698 # /usr/ucb/install on SVR4, which tries to use the nonexistent group
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2699 # `staff', or /sbin/install on IRIX which has incompatible command-line
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2700 # syntax. Sigh.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2701 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2702 # On most BSDish systems install is in /usr/bin, not /usr/ucb
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2703 # anyway.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2704 # This turns out not to be true, so the mere pathname isn't an indication
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2705 # of whether the program works. What we really need is a set of tests for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2706 # the install program to see if it actually works in all the required ways.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2707 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2708 # Avoid using ./install, which might have been erroneously created
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2709 # by make from ./install.sh.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2710 if test -z "${INSTALL}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2711 test -n "$silent" || echo "checking for a BSD compatible install"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2713 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2714 case "$ac_dir" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2715 ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2716 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2717 # OSF1 and SCO ODT 3.0 have their own names for install.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2718 for ac_prog in installbsd scoinst install; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2719 if test -f $ac_dir/$ac_prog; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2720 if test $ac_prog = install &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2721 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2722 # AIX install. It has an incompatible calling convention.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2723 # OSF/1 installbsd also uses dspmsg, but is usable.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2724 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2725 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2726 INSTALL="$ac_dir/$ac_prog -c"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2727 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2728 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2729 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2730 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2731 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2732 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2733 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2734 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2735 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2736
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2737 if test -z "$INSTALL"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2738 # As a last resort, use the slow shell script.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2739 for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2740 if test -f $ac_dir/install.sh; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2741 INSTALL="$ac_dir/install.sh -c"; break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2742 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2743 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2744 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2745 if test -z "$INSTALL"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2746 echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2747 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2748 test -n "$verbose" && echo " setting INSTALL to $INSTALL"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2749
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2750 # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2751 # It thinks the first close brace ends the variable substitution.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2753 test -n "$verbose" && echo " setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2754
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2755 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2756 test -n "$verbose" && echo " setting INSTALL_DATA to $INSTALL_DATA"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2757
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2758 for ac_prog in 'bison -y' byacc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2759 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2760 if test -z "$YACC"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2761 # Extract the first word of `$ac_prog', so it can be a program name with args.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2762 set ac_dummy $ac_prog; ac_word=$2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2763 test -n "$silent" || echo "checking for $ac_word"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2765 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2766 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2767 if test -f $ac_dir/$ac_word; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2768 YACC="$ac_prog"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2769 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2770 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2771 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2772 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2773 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2774
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2775 test -n "$YACC" && test -n "$verbose" && echo " setting YACC to $YACC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2776
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2777 test -n "$YACC" && break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2778 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2779 test -n "$YACC" || YACC="yacc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2780
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2781
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2782 test -n "$silent" || echo "checking for AIX"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2783 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2784 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2785 #ifdef _AIX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2786 yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2787 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2788
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2789 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2790 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2791 if egrep "yes" conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2792 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2793
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2794 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2795 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2796 echo " defining _ALL_SOURCE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2797 echo "#define" _ALL_SOURCE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2798 DEFS="$DEFS -D_ALL_SOURCE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2799 ac_sed_defs="${ac_sed_defs}\${ac_dA}_ALL_SOURCE\${ac_dB}_ALL_SOURCE\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2800 \${ac_uA}_ALL_SOURCE\${ac_uB}_ALL_SOURCE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2801 \${ac_eA}_ALL_SOURCE\${ac_eB}_ALL_SOURCE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2802 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2803 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2804
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2805
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2806 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2807 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2808
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2809
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2810
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2811 for ac_hdr in 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
2812 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2813 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2814 test -n "$silent" || echo "checking for ${ac_hdr}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2815 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2816 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2817 #include <${ac_hdr}>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2818 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2819 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2820 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2821 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2822 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2823 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2824 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2825 echo "$ac_err"
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 test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2828 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2829
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2830 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2831 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2832 echo " defining ${ac_tr_hdr}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2833 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2834 DEFS="$DEFS -D${ac_tr_hdr}=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2835 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2836 \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2837 \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2838 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2839 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2840
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2841
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2842 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2843 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2844 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2845
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2846 test -n "$silent" || echo "checking for ANSI C header files"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2847 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2848 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2849 #include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2850 #include <stdarg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2851 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2852 #include <float.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2853 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2854 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2855 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2856 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2857 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2858 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2859 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2860 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2861 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2862 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2863 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2865 echo '#include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2866 #include <string.h>' > conftest.${ac_ext}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2867 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2868 if egrep "memchr" conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2869 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2870 # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2871 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2872 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2873 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2874 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2875 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2876 #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2877 int main () { int i; for (i = 0; i < 256; i++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2878 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2879 exit (0); }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2880
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2881 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2882 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2883 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2885 echo '#include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2886 #include <stdlib.h>' > conftest.${ac_ext}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2887 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2888 if egrep "free" conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2889 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2890
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2891 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2892 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2893 echo " defining STDC_HEADERS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2894 echo "#define" STDC_HEADERS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2895 DEFS="$DEFS -DSTDC_HEADERS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2896 ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2897 \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2898 \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2899 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2900 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2901
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2902
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2903 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2904 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2905
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2906
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2907 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2908 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2909
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2910 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2911 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2912
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2913
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2914 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2915 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2916
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2917 test -n "$silent" || echo "checking for whether time.h and sys/time.h may both be included"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2918 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2919 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2920 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2921 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2922 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2923 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2924 int t() { struct tm *tp;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2925 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2926 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2927 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2928
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2929 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2930 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2931 echo " defining TIME_WITH_SYS_TIME"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2932 echo "#define" TIME_WITH_SYS_TIME "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2933 DEFS="$DEFS -DTIME_WITH_SYS_TIME=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2934 ac_sed_defs="${ac_sed_defs}\${ac_dA}TIME_WITH_SYS_TIME\${ac_dB}TIME_WITH_SYS_TIME\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2935 \${ac_uA}TIME_WITH_SYS_TIME\${ac_uB}TIME_WITH_SYS_TIME\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2936 \${ac_eA}TIME_WITH_SYS_TIME\${ac_eB}TIME_WITH_SYS_TIME\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2937 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2938 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2939
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2940
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2941 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2942 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2943
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2944 test -n "$silent" || echo "checking for sys_siglist declaration in signal.h or unistd.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2945 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2946 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2947 #include <signal.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2948 /* NetBSD declares sys_siglist in <unistd.h>. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2949 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2950 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2951 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2952 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2953 int t() { char *msg = *(sys_siglist + 1);; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2954 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2955 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2956 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2957
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2958 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2959 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2960 echo " defining SYS_SIGLIST_DECLARED"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2961 echo "#define" SYS_SIGLIST_DECLARED "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2962 DEFS="$DEFS -DSYS_SIGLIST_DECLARED=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2963 ac_sed_defs="${ac_sed_defs}\${ac_dA}SYS_SIGLIST_DECLARED\${ac_dB}SYS_SIGLIST_DECLARED\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2964 \${ac_uA}SYS_SIGLIST_DECLARED\${ac_uB}SYS_SIGLIST_DECLARED\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2965 \${ac_eA}SYS_SIGLIST_DECLARED\${ac_eB}SYS_SIGLIST_DECLARED\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2966 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2967 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2968
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2969
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2970 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2971 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2972
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2973
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2974 test -n "$silent" || echo "checking for struct utimbuf"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2975 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2976 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2977 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2978 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2979 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2980 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2981 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2982 #include <sys/time.h>
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 #include <time.h>
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 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2987 #ifdef HAVE_UTIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2988 #include <utime.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2989 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2990 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2991 int t() { static struct utimbuf x; x.actime = x.modtime;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2992 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2993 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2994 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2995
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2996 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2997 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2998 echo " defining HAVE_STRUCT_UTIMBUF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2999 echo "#define" HAVE_STRUCT_UTIMBUF "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3000 DEFS="$DEFS -DHAVE_STRUCT_UTIMBUF=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3001 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRUCT_UTIMBUF\${ac_dB}HAVE_STRUCT_UTIMBUF\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3002 \${ac_uA}HAVE_STRUCT_UTIMBUF\${ac_uB}HAVE_STRUCT_UTIMBUF\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3003 \${ac_eA}HAVE_STRUCT_UTIMBUF\${ac_eB}HAVE_STRUCT_UTIMBUF\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3004 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3005 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3006
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3007
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3008 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3009 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3010
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3011
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3012 test -n "$silent" || echo "checking for return type of signal handlers"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3013 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3014 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3015 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3016 #include <signal.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3017 #ifdef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3018 #undef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3019 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3020 extern void (*signal ()) ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3021 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3022 int t() { int i;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3023 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3024 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3025 rm -rf conftest*
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 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3029 echo " defining" RETSIGTYPE to be "void"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3030 echo "#define" RETSIGTYPE "void" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3031 DEFS="$DEFS -DRETSIGTYPE=void"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3032 ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3033 \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3034 \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3035 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3036 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3037
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3038
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3039 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3040 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3041
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3042 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3043 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3044 echo " defining" RETSIGTYPE to be "int"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3045 echo "#define" RETSIGTYPE "int" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3046 DEFS="$DEFS -DRETSIGTYPE=int"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3047 ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3048 \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3049 \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3050 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3051 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3052
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 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3055
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3056
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3057
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3058 test -n "$silent" || echo "checking for struct timeval"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3059 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3060 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3061 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3062 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3063 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3064 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3065 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3066 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3067 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3068 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3069 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3070 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3071 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3072 int t() { static struct timeval x; x.tv_sec = x.tv_usec;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3073 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3074 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3075 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3076
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3077 HAVE_TIMEVAL=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3078
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3079 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3080 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3081 echo " defining HAVE_TIMEVAL"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3082 echo "#define" HAVE_TIMEVAL "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3083 DEFS="$DEFS -DHAVE_TIMEVAL=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3084 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TIMEVAL\${ac_dB}HAVE_TIMEVAL\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3085 \${ac_uA}HAVE_TIMEVAL\${ac_uB}HAVE_TIMEVAL\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3086 \${ac_eA}HAVE_TIMEVAL\${ac_eB}HAVE_TIMEVAL\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3087 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3088 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3089
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3090
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 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3093 HAVE_TIMEVAL=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3094 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3095 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3096
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3097
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3098 test -n "$silent" || echo "checking for struct tm in time.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3099 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3100 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3101 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3102 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3103 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3104 int t() { struct tm *tp; tp->tm_sec;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3105 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3106 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3107 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3108 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3109 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3110
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3111 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3112 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3113 echo " defining TM_IN_SYS_TIME"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3114 echo "#define" TM_IN_SYS_TIME "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3115 DEFS="$DEFS -DTM_IN_SYS_TIME=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3116 ac_sed_defs="${ac_sed_defs}\${ac_dA}TM_IN_SYS_TIME\${ac_dB}TM_IN_SYS_TIME\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3117 \${ac_uA}TM_IN_SYS_TIME\${ac_uB}TM_IN_SYS_TIME\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3118 \${ac_eA}TM_IN_SYS_TIME\${ac_eB}TM_IN_SYS_TIME\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3119 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3120 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3121
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3122 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3123 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3124
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3125 ac_decl='#include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3126 '
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3127 case "$DEFS" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3128 *TM_IN_SYS_TIME*) ac_decl="$ac_decl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3129 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3130 " ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3131 *) ac_decl="$ac_decl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3132 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3133 " ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3134 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3135 test -n "$silent" || echo "checking for tm_zone in struct tm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3136 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3137 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3138 $ac_decl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3139 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3140 int t() { struct tm tm; tm.tm_zone;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3141 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3142 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3143 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3144
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3145 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3146 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3147 echo " defining HAVE_TM_ZONE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3148 echo "#define" HAVE_TM_ZONE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3149 DEFS="$DEFS -DHAVE_TM_ZONE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3150 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TM_ZONE\${ac_dB}HAVE_TM_ZONE\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3151 \${ac_uA}HAVE_TM_ZONE\${ac_uB}HAVE_TM_ZONE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3152 \${ac_eA}HAVE_TM_ZONE\${ac_eB}HAVE_TM_ZONE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3153 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3154 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3155
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3156
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3157 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3158 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3159 ac_no_tm_zone=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3160 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3161 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3162
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3163 if test -n "$ac_no_tm_zone"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3164 test -n "$silent" || echo "checking for tzname"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3165 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3166 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3167 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3168 #ifndef tzname /* For SGI. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3169 extern char *tzname[]; /* RS6000 and others want it this way. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3170 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3171 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3172 int t() { atoi(*tzname);; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3173 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3174 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3175 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3176
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3177 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3178 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3179 echo " defining HAVE_TZNAME"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3180 echo "#define" HAVE_TZNAME "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3181 DEFS="$DEFS -DHAVE_TZNAME=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3182 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TZNAME\${ac_dB}HAVE_TZNAME\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3183 \${ac_uA}HAVE_TZNAME\${ac_uB}HAVE_TZNAME\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3184 \${ac_eA}HAVE_TZNAME\${ac_eB}HAVE_TZNAME\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3185 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3186 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3187
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3188
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3189 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3190 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3191
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3192 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3193
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3194
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3195 ac_prog='/* Ultrix mips cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3196 typedef int charset[2]; const charset x;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3197 /* SunOS 4.1.1 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3198 char const *const *ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3199 char **p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3200 /* AIX XL C 1.02.0.0 rejects this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3201 It does not let you subtract one const X* pointer from another in an arm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3202 of an if-expression whose if-part is not a constant expression */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3203 const char *g = "string";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3204 ccp = &g + (g ? g-g : 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3205 /* HPUX 7.0 cc rejects these. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3206 ++ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3207 p = (char**) ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3208 ccp = (char const *const *) p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3209 { /* SCO 3.2v4 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3210 char *t;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3211 char const *s = 0 ? (char *) 0 : (char const *) 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3212
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3213 *t++ = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3214 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3215 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3216 int x[] = {25,17};
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3217 const int *foo = &x[0];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3218 ++foo;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3219 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3220 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3221 typedef const int *iptr;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3222 iptr p = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3223 ++p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3224 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3225 { /* AIX XL C 1.02.0.0 rejects this saying
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3226 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3227 struct s { int j; const int *ap[3]; };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3228 struct s *b; b->j = 5;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3229 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3230 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3231 const int foo = 10;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3232 }'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3233 test -n "$silent" || echo "checking for lack of working const"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3234 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3235 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3236
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3237 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3238 int t() { $ac_prog; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3239 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3240 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3241 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3242 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3243 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3244
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3245 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3246 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3247 echo " defining" const to be empty
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3248 echo "#define" const "" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3249 DEFS="$DEFS -Dconst="
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3250 ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3251 \${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3252 \${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3253 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3254 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3255
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3256 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3257 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3258
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3259
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3260 cat > conftestmake <<'EOF'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3261 all:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3262 @echo 'ac_maketemp="${MAKE}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3263 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3265 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3266 if test -n "$ac_maketemp"; then SET_MAKE=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3267 else SET_MAKE="MAKE=${MAKE-make}"; fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3268 rm -f conftestmake
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3269
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3270
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3271 test -n "$silent" || echo "checking byte ordering"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3272 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3273 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3274 main () {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3275 /* Are we little or big endian? From Harbison&Steele. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3276 union
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3277 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3278 long l;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3279 char c[sizeof (long)];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3280 } u;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3281 u.l = 1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3282 exit (u.c[sizeof (long) - 1] == 1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3283 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3284 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3285 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3286 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3287 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3288 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3289
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3290 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3291 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3292 echo " defining WORDS_BIGENDIAN"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3293 echo "#define" WORDS_BIGENDIAN "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3294 DEFS="$DEFS -DWORDS_BIGENDIAN=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3295 ac_sed_defs="${ac_sed_defs}\${ac_dA}WORDS_BIGENDIAN\${ac_dB}WORDS_BIGENDIAN\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3296 \${ac_uA}WORDS_BIGENDIAN\${ac_uB}WORDS_BIGENDIAN\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3297 \${ac_eA}WORDS_BIGENDIAN\${ac_eB}WORDS_BIGENDIAN\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3298 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3299 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3301 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3302 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3303
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3304
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3305 test -n "$silent" || echo "checking for long file names"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3306 ac_some_dir_failed=false
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3307 # Test for long file names in all the places we know might matter:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3308 # . the current directory, where building will happen
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3309 # /tmp where it might want to write temporary files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3310 # /var/tmp likewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3311 # /usr/tmp likewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3312 # $prefix/lib where we will be installing things
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3313 # $exec_prefix/lib likewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3314 # eval it to expand exec_prefix.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3315 for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3316 test -d $ac_dir || continue
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3317 test -w $ac_dir || continue # It's less confusing to not echo anything here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3318 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3319 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3320 val=`cat $ac_dir/conftest9012345 2>/dev/null`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3321 test -f $ac_dir/conftest9012345 && test "$val" = 1 || ac_some_dir_failed=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3322 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2> /dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3323 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3324 $ac_some_dir_failed ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3325 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3326 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3327 echo " defining HAVE_LONG_FILE_NAMES"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3328 echo "#define" HAVE_LONG_FILE_NAMES "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3329 DEFS="$DEFS -DHAVE_LONG_FILE_NAMES=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3330 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LONG_FILE_NAMES\${ac_dB}HAVE_LONG_FILE_NAMES\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3331 \${ac_uA}HAVE_LONG_FILE_NAMES\${ac_uB}HAVE_LONG_FILE_NAMES\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3332 \${ac_eA}HAVE_LONG_FILE_NAMES\${ac_eB}HAVE_LONG_FILE_NAMES\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3333 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3334 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3335
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3336
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3337
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3338 echo "checking for -xildoff compiler flag"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3339 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
3340 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
3341 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3342 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3343 test -n "$verbose" && echo " defining NEED_XILDOFF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3344 need_xildoff=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3345 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3346 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3347
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3348
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3349 # What the hell was this doing here??????
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3350 ### echo > confdefs.h # this gets nuked above...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3351
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3352 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3353 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3354 # Choose a window system #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3355 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3356 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3357
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3358 #### Choose a window system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3359 echo "checking for specified window system"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3360
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3361 window_system=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3362 case "${with_x11}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3363 yes )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3364 window_system=${window_system}x11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3365 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3366 no )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3367 window_system=${window_system}none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3368 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3369
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3370 case "${window_system}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3371 "none" | "x11" ) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3372 "" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3373 # --x-includes or --x-libraries implies --with-x11.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3374 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3375 window_system=x11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3376 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3377 echo " No window system specified. Looking for X11."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3378 # 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
3379 if [ -r /usr/lib/libX11.a \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3380 -o -d /usr/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3381 -o -d /usr/X386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3382 -o -d /usr/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3383 -o -d ${x_includes}/X11 ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3384 window_system=x11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3385 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3386 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3387 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3388 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3389 echo "Don't specify a window system more than once." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3390 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3391 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3392 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3393
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3394 case "${window_system}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3395 "" | "x11" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3396 ### If the user hasn't specified where we should find X, try
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3397 ### letting autoconf figure that out.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3398 if [ -z "${x_includes}" ] && [ -z "${x_libraries}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3399
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3400 # If we find X, set shell vars x_includes and x_libraries to the paths.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3401 no_x=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3402 if test "x$with_x" != xno; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3403 test -n "$silent" || echo "checking for X include and library files with xmkmf"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3404 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3405 if mkdir conftestdir; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3406 cd conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3407 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3408 cat > Imakefile <<'EOF'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3409 acfindx:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3410 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3411 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3412 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3413 no_x=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3414 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3415 eval `make acfindx 2>/dev/null | grep -v make`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3416 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3417 if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3418 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3419 ac_im_usrlibdir=$ac_im_libdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3420 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3421 case "$ac_im_incroot" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3422 /usr/include) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3423 *) test -z "$x_includes" && x_includes="$ac_im_incroot" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3424 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3425 case "$ac_im_usrlibdir" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3426 /usr/lib | /lib) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3427 *) test -z "$x_libraries" && x_libraries="$ac_im_usrlibdir" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3428 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3429 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3430 cd ..
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3431 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3432 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3433
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3434 if test -z "$ac_im_usrlibdir"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3435 test -n "$silent" || echo "checking for X include and library files directly"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3436 if test ".$x_direct_test_library" = . ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3437 x_direct_test_library='Xt'
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 if test ".$x_direct_test_include" = . ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3440 x_direct_test_include='X11/Intrinsic.h'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3441 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3442 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3443 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3444 #include <$x_direct_test_include>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3445 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3446 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3447 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3448 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3449 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3450 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3451 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3452 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3453 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3454 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3455 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3456 no_x=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3457
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3458 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3459 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3460 for ac_dir in \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3461 /usr/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3462 /usr/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3463 /usr/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3464 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3465 /usr/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3466 /usr/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3467 /usr/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3468 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3469 /usr/local/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3470 /usr/local/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3471 /usr/local/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3472 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3473 /usr/local/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3474 /usr/local/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3475 /usr/local/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3476 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3477 /usr/X11/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3478 /usr/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3479 /usr/local/X11/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3480 /usr/local/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3481 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3482 /usr/X386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3483 /usr/x386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3484 /usr/XFree86/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3485 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3486 /usr/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3487 /usr/local/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3488 /usr/unsupported/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3489 /usr/athena/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3490 /usr/local/x11r5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3491 /usr/lpp/Xamples/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3492 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3493 /usr/openwin/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3494 /usr/openwin/share/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3495 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3496 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3497 if test -r "$ac_dir/$x_direct_test_include"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3498 test -z "$x_includes" && x_includes=$ac_dir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3499 no_x=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3500 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3501 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3502 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3503 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3504 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3505
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3506 # Check for the libraries. First see if replacing the `include' by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3507 # `lib' works.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3508 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3509 LIBS="${LIBS} -l"$x_direct_test_library""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3510 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3511 test -n "$silent" || echo "checking for -l"$x_direct_test_library""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3512 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3513 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3514
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3515 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3516 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3517 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3518 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3519 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3520 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3521
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3522 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3523 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3524 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3525 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3526 :; no_x=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3527 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3528 :; for ac_dir in `echo "$x_includes" | sed s/include/lib/` \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3529 /usr/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3530 /usr/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3531 /usr/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3532 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3533 /usr/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3534 /usr/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3535 /usr/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3536 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3537 /usr/local/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3538 /usr/local/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3539 /usr/local/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3540 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3541 /usr/local/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3542 /usr/local/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3543 /usr/local/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3544 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3545 /usr/X11/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3546 /usr/lib/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3547 /usr/local/X11/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3548 /usr/local/lib/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3549 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3550 /usr/X386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3551 /usr/x386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3552 /usr/XFree86/lib/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3553 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3554 /usr/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3555 /usr/local/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3556 /usr/unsupported/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3557 /usr/athena/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3558 /usr/local/x11r5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3559 /usr/lpp/Xamples/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3560 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3561 /usr/openwin/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3562 /usr/openwin/share/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3563 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3564 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3565 for ac_extension in a so sl; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3566 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3567 test -z "$x_libraries" && x_libraries=$ac_dir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3568 no_x=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3569 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3570 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3571 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3572 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3573 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3574
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3575 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3576 test -n "$x_includes" && test -n "$verbose" && echo " X11 headers are in $x_includes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3577 test -n "$x_libraries" && test -n "$verbose" && echo " X11 libraries are in $x_libraries"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3578 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3579
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3580
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3581 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3582 if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3583 window_system=x11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3584 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3585 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3586 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3587
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3588 [ -z "${window_system}" ] && window_system=none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3589
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3590 if [ "${window_system}" = "none" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3591 if [ "${with_tty}" != "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3592 echo "No window system support, and no TTY support." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3593 echo "Unable to proceed." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3594 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3595 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3596 if [ "${with_epoch}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3597 echo "configure: warning: --with-epoch ignored: Not valid without X support" >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3598 with_epoch='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3599 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3600 if [ "x${with_cde}" != x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3601 echo "configure: warning: --with-cde ignored: Not valid without X support" >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3602 with_menubars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3603 fi
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3604 if [ "x${with_offix}" != x ]; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3605 echo "configure: warning: --with-offix ignored: Not valid without X support" >&2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3606 with_offix='no'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3607 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3608 if [ "x${with_menubars}" != x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3609 echo "configure: warning: --with-menubars ignored: Not valid without X support" >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3610 with_menubars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3611 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3612 if [ "x${with_scrollbars}" != x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3613 echo "configure: warning: --with-scrollbars ignored: Not valid without X support" >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3614 with_scrollbars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3615 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3616 if [ "x${with_dialogs}" != x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3617 echo "configure: warning: --with-dialogs ignored: Not valid without X support" >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3618 with_dialogs='no'
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 if [ "x${with_toolbars}" != x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3621 echo "configure: warning: --with-toolbars ignored: Not valid without X support" >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3622 with_toolbars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3623 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3624 with_cde='no'
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3625 with_offix='no'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3626 with_menubars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3627 with_scrollbars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3628 with_dialogs='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3629 with_toolbars='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3630 elif [ -z "${with_toolbars}" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3631 with_toolbars='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3632 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3633
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3634 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3635 *-sun-solaris* | *-sun-sunos5* ) add_runtime_flag=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3636 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3637
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3638 if [ -n "${x_libraries}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3639 if [ "${add_runtime_flag}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3640 LD_SWITCH_X_SITE="-L${x_libraries} -R${dash_r_space}${x_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3641 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3642 LD_SWITCH_X_SITE="-L${x_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3643 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3644 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3645 # 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
3646 # [ -n "${x_libraries}" ] && LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3647 [ -n "${x_includes}" ] && C_SWITCH_X_SITE="-I${x_includes}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3648
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3649 if [ -n "${site_libraries}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3650 for arg in ${site_libraries}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3651 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3652 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3653 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3654 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3655 if [ -n "${site_runtime_libraries}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3656 for arg in ${site_runtime_libraries}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3657 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3658 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3659 LD_SWITCH_SITE="${LD_SWITCH_SITE} -R${dash_r_space}${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3660 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3661 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3662 if [ -n "${site_includes}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3663 for arg in ${site_includes}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3664 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3665 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3666 CPP="${CPP} -I${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3667 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3668 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3669
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3670 # FSF 19.29 has some bitmapdir stuff here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3671 bitmapdir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3672
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3673 # Avoid forcing the search of /usr/include before fixed include files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3674 if [ "$C_SWITCH_X_SITE" = "-I/usr/include" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3675 C_SWITCH_X_SITE=" "
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 # Need for check for audio/Xtutil.h.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3679 CPP="${CPP} ${C_SWITCH_X_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3680
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3681 case "${window_system}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3682 x11 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3683 HAVE_X_WINDOWS=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3684 echo " Using X11."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3685 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3686 none )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3687 HAVE_X_WINDOWS=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3688 echo " Using no window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3689 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3690 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3691
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3692 if test "${opsys}" = "hpux9"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3693 case "${x_libraries}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3694 *X11R4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3695 opsysfile="s/hpux9-x11r4.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3696 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3697 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3698 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3699
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 8
diff changeset
3700 if test "${opsys}" = "hpux9-shr"; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3701 case "${x_libraries}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3702 *X11R4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3703 opsysfile="s/hpux9shxr4.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3704 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3705 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3706 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3707
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3708 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3709 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3710 # Extract some information from the operating system and machine files #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3711 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3712 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3713
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3714 echo "examining the machine- and system-dependent files to find out"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3715 echo " - which libraries the lib-src programs will want, and"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3716 echo " - whether the GNU malloc routines are usable."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3717
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3718 ### First figure out CFLAGS (which we use for running the compiler here)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3719 ### and REAL_CFLAGS (which we use for real compilation).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3720 ### 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
3721 ### different to work around various lossages. For example,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3722 ### 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
3723 ### as implying static linking.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3724
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3725 ### If the CFLAGS env var is specified, we use that value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3726 ### instead of the default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3727
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3728 ### 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
3729 ### two configures in the same directory and have anything work
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3730 ### anyway.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3731 tempcname="conftest.c"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3732
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3733 echo '
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3734 #define NOT_C_CODE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3735 #include "'${srcdir}'/src/'${opsysfile}'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3736 #include "'${srcdir}'/src/'${machfile}'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3737 #ifndef LIBS_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3738 #define LIBS_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3739 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3740 #ifndef LIBS_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3741 #define LIBS_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3742 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3743 #ifndef C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3744 #define C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3745 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3746 #ifndef C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3747 #define C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3748 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3749 #ifndef C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3750 #define C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3751 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3752 #ifndef LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3753 #define LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3754 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3755 #ifndef LIB_STANDARD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3756 #define LIB_STANDARD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3757 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3758 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM LIB_STANDARD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3759 configure___ c_switch_system=C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3760 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3761 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3762 configure___ c_switch_machine=C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3763
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3764 #ifndef LIB_X11_LIB
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3765 #define LIB_X11_LIB -lX11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3766 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3767
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3768 #ifndef LIBX11_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3769 #define LIBX11_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3770 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3771
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3772 #ifndef LIBX11_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3773 #define LIBX11_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3774 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3775 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3776
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3777 #ifdef UNEXEC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3778 configure___ unexec=UNEXEC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3779 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3780 configure___ unexec=unexec.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3781 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3782
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3783 #ifdef SYSTEM_MALLOC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3784 configure___ system_malloc=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3785 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3786 configure___ system_malloc=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3787 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3788
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3789 #ifndef C_DEBUG_SWITCH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3790 #define C_DEBUG_SWITCH -g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3791 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3792
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3793 #ifndef C_OPTIMIZE_SWITCH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3794 #define C_OPTIMIZE_SWITCH -O
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3795 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3796
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3797 #ifdef THIS_IS_CONFIGURE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3798
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3799 /* Get the CFLAGS for tests in configure. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3800 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3801 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3802 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3803 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3804 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3805
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3806 #else /* not THIS_IS_CONFIGURE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3807
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3808 /* Get the CFLAGS for real compilation. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3809 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3810 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3811 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3812 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3813 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3814
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3815 #endif /* not THIS_IS_CONFIGURE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3816 ' > ${tempcname}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3817 # 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
3818 # to get its actual value...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3819 CPP=`eval "echo $CPP"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3820 eval `${CPP} -Isrc ${tempcname} \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3821 | grep 'configure___' \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3822 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3823 if [ "x$SPECIFIED_CFLAGS" = x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3824 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3825 | grep 'configure___' \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3826 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3827 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3828 REAL_CFLAGS="$CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3829 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3830 rm ${tempcname}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3831
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3832 # override CFLAGS if user wishes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3833 if [ "${cflags}" != "NO_CFLAGS_DEFINED" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3834 REAL_CFLAGS=${cflags}
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 ### Compute the unexec source name from the object name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3838 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3839
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3840 # Do the opsystem or machine files prohibit the use of the GNU malloc?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3841 # Assume not, until told otherwise.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3842 GNU_MALLOC=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3843 if [ "${system_malloc}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3844 GNU_MALLOC=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3845 GNU_MALLOC_reason="
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3846 (The GNU allocators don't work with this system configuration.)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3847 elif [ "${use_system_malloc}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3848 GNU_MALLOC=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3849 GNU_MALLOC_reason="
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3850 (User chose not to use GNU allocators.)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3851 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3852
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3853 LISP_FLOAT_TYPE=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3854
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3855
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3856 #### Add the libraries to LIBS and check for some functions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3857
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3858
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3859 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
3860 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
3861 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3862
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3863 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3864 LIBS="${LIBS} -ldnet"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3865 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3866 test -n "$silent" || echo "checking for -ldnet"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3867 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3868 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3869
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3870 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3871 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3872 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3873 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3874 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3875 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3876
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3877 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3878 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3879 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3880 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3881
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3882 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3883 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3884 echo " defining HAVE_LIBDNET"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3885 echo "#define" HAVE_LIBDNET "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3886 DEFS="$DEFS -DHAVE_LIBDNET=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3887 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDNET\${ac_dB}HAVE_LIBDNET\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3888 \${ac_uA}HAVE_LIBDNET\${ac_uB}HAVE_LIBDNET\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3889 \${ac_eA}HAVE_LIBDNET\${ac_eB}HAVE_LIBDNET\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3890 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3891 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3892
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3893 LIBS="${LIBS} -ldnet"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3894 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3895
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3896
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3897 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3898 LIBS="${LIBS} -lXbsd"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3899 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3900 test -n "$silent" || echo "checking for -lXbsd"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3901 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3902 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3903
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3904 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3905 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3906 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3907 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3908 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3909 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3910
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3911 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3912 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3913 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3914 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3915 :; LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3916 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3917 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3918 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3919
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3920
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3921 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3922 LIBS="${LIBS} -lpthreads"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3923 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3924 test -n "$silent" || echo "checking for -lpthreads"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3925 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3926 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3927
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3928 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3929 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3930 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3931 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3932 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3933 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3934
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3935 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3936 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3937 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3938 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3939 :; HAVE_PTHREADS=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3940 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3941 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3942 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3943
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3944 if test -n "${HAVE_PTHREADS}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3945
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3946 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3947 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3948 echo " defining HAVE_PTHREADS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3949 echo "#define" HAVE_PTHREADS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3950 DEFS="$DEFS -DHAVE_PTHREADS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3951 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PTHREADS\${ac_dB}HAVE_PTHREADS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3952 \${ac_uA}HAVE_PTHREADS\${ac_uB}HAVE_PTHREADS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3953 \${ac_eA}HAVE_PTHREADS\${ac_eB}HAVE_PTHREADS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3954 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3955 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3956
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3957 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3958 decosf* ) CFLAGS="${CFLAGS} -threads" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3959 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3960 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3961
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3962 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3963 test -n "$silent" || echo "checking for XFree86"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3964 if test -d /usr/X386/include; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3965 HAVE_XFREE386=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3966 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
3967 elif test -f /etc/XF86Config -o \
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
3968 -f /etc/X11/XF86Config -o \
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
3969 -f /usr/X11R6/lib/X11/XF86Config; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3970 HAVE_XFREE386=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3971 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
3972 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3973 HAVE_XFREE386=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3974 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3975 test -n "$verbose" && echo " ${HAVE_XFREE386}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3976 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3977 HAVE_XFREE386=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3978 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3979
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3980 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3981 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3982 # Test for various X-specific features #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3983 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3984 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3985
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3986 # Change CFLAGS temporarily for damn binutils 2.6.0.10 check.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3987 if test "${HAVE_X_WINDOWS}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3988 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3989 linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3990 CFLAGS="-Wl,-rpath-link,/usr/X11R6/lib $CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3991 test -n "$silent" || echo "checking for whether path-link option is needed"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3992 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3993 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3994
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3995 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3996 int t() { ;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3997 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3998 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3999 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4000 need_path_link=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4001
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4002 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4003 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4004 need_path_link=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4005 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4006 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4007
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4008 if test "${need_path_link}" = "no"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4009 CFLAGS="$REAL_CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4010 test -n "$verbose" && echo " no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4011 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4012 test -n "$verbose" && echo " yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4013 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4014 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4015 esac
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4018 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4019 # 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
4020
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4021 if test "${HAVE_X_WINDOWS}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4022 DEFS="$C_SWITCH_X_SITE $DEFS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4023 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4024 LIBS="$LIBX $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4025 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4026
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4027 # 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
4028 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4029 # but it's more convenient here to set LD_RUN_PATH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4030 # 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
4031 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4032 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4033 export LD_RUN_PATH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4034 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4035
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4036 if test "${HAVE_XFREE386}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4037 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4038 linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4039 test -n "$silent" || echo "checking for whether XFree86 needs -b to link"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4040 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4041 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4042
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4043 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4044 int t() { XOpenDisplay ("foo");; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4045 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4046 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4047 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4048 xfree86_first_failure=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4049
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4050 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4051 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4052 xfree86_first_failure=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4053 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4054 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4055
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4056 if test "${xfree86_first_failure}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4057 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4058 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4059 OLD_CPPFLAGS="$CPPFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4060 OLD_LIBS="$LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4061 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4062 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4063 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4064 LIBS="$LIBS -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4065 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4066 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4067
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4068 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4069 int t() { XOpenDisplay ("foo");; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4070 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4071 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4072 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4073 xfree86_second_failure=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4074
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4075 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4076 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4077 xfree86_second_failure=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4078 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4079 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4080
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4081 if test "${xfree86_second_failure}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4082 # 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
4083 # So take it out. This plays safe.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4084 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4085 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4086 CPPFLAGS="$OLD_CPPFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4087 LIBS="$OLD_LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4088 test -n "$verbose" && echo " no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4089 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4090 test -n "$verbose" && echo " yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4091 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4092 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4093 test -n "$verbose" && echo " no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4094 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4095 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4096 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4097 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4098
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4099 # A C_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4100 #XScreenNumberOfScreen XSetWMProtocols)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4101 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4102
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4103 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4104 # make sure we can find libX11.*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4105 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4106 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4107 internal_xlibs_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4108 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4109 LIBS="${LIBS} -lX11"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4110 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4111 test -n "$silent" || echo "checking for -lX11"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4112 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4113 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4114
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4115 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4116 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4117 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4118 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4119 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4120 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4121
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4122 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4123 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4124 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4125 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4126 :; internal_xlibs_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4127 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4128 :;
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4131 if test "${internal_xlibs_found}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4132 echo "Unable to find X11 libraries." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4133 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4134 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4135 test -n "$verbose" && echo " yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4136 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4137 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4138
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4139 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4140 # make sure we can find Intrinsic.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4141 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4142 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4143 internal_xincludes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4144 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4145 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4146 if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4147 internal_xincludes_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4148 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4149 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4150 if test "${internal_xincludes_found}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4151 echo "Unable to find X11 header files." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4152 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4153 fi
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4156 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4157 # Sun OS 4 systems need the following kludge
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4158 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4159 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4160 case "${canonical}" in *-sunos4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4161 LIBS="$LIBS -u _XtToolkitInitialize -u _get_applicationShellWidgetClass" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4162 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4163 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4164
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4165 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4166 # See if we can find Xauth.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4167 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4168 with_xauth='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4169 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4170 internal_xauth_lib_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4171 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4172 LIBS="${LIBS} -lXau"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4173 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4174 test -n "$silent" || echo "checking for -lXau"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4175 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4176 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4177
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4178 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4179 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4180 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4181 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4182 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4183 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4184
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4185 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4186 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4187 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4188 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4189 :; internal_xauth_lib_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4190 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4191 :;
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4194 if test "${internal_xauth_lib_found}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4195 internal_xauth_includes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4196 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4197 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4198 if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4199 internal_xauth_includes_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4200 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4201 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4202 if test "${internal_xauth_includes_found}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4203 with_xauth='yes'
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 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4206 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4207 if test "${with_xauth}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4208
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4209 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4210 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4211 echo " defining HAVE_XAUTH"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4212 echo "#define" HAVE_XAUTH "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4213 DEFS="$DEFS -DHAVE_XAUTH=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4214 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XAUTH\${ac_dB}HAVE_XAUTH\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4215 \${ac_uA}HAVE_XAUTH\${ac_uB}HAVE_XAUTH\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4216 \${ac_eA}HAVE_XAUTH\${ac_eB}HAVE_XAUTH\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4217 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4218 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4220 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4221
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4222 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4223 # See if we can find CDE.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4224 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4225 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4226 if test "${with_cde}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4227 if test "${with_cde}" != "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4228 internal_cde_lib_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4229 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4230 LIBS="${LIBS} -lDtSvc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4231 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4232 test -n "$silent" || echo "checking for -lDtSvc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4233 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4234 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4235
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4236 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4237 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4238 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4239 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4240 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4241 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4242
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 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4245 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4246 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4247 :; internal_cde_lib_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4248 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4249 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4250 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4251
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4252 if test "${internal_cde_lib_found}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4253 internal_cde_includes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4254 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4255 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4256 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4257 internal_cde_includes_found='yes'
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 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4260 if test "${internal_cde_includes_found}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4261 with_cde='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4262 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4263 fi
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 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4266 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4267 if test "${with_cde}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4268
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4269 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4270 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4271 echo " defining HAVE_CDE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4272 echo "#define" HAVE_CDE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4273 DEFS="$DEFS -DHAVE_CDE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4274 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_CDE\${ac_dB}HAVE_CDE\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4275 \${ac_uA}HAVE_CDE\${ac_uB}HAVE_CDE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4276 \${ac_eA}HAVE_CDE\${ac_eB}HAVE_CDE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4277 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4278 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4279
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4280 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4281
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4282 #
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4283 # See if we can find OffiX.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4284 #
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4285 if test "${window_system}" != "none" ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4286 if test "${with_offix}" != "no" ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4287 if test "${with_offix}" != "yes" ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4288 internal_offix_lib_found='no'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4289 ac_save_LIBS="${LIBS}"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4290 LIBS="${LIBS} -lDnd"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4291 ac_have_lib=""
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4292 test -n "$silent" || echo "checking for -lDnd"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4293 cat > conftest.${ac_ext} <<EOF
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4294 #include "confdefs.h"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4295
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4296 int main() { return 0; }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4297 int t() { main();; return 0; }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4298 EOF
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4299 if eval $ac_compile; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4300 rm -rf conftest*
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4301 ac_have_lib="1"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4302
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4303 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4304 rm -f conftest*
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4305 LIBS="${ac_save_LIBS}"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4306 if test -n "${ac_have_lib}"; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4307 :; internal_offix_lib_found='yes'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4308 else
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4309 :;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4310 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4311
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4312 if test "${internal_offix_lib_found}" = "yes" ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4313 internal_offix_includes_found='no'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4314 for arg in ${DEFS} /usr/include
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4315 do
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4316 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4317 internal_offix_includes_found='yes'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4318 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4319 done
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4320 if test "${internal_offix_includes_found}" = "yes" ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4321 with_offix='yes'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4322 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4323 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4324 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4325 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4326 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4327 if test "${with_offix}" = "yes" ; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4328
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4329 {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4330 test -n "$verbose" && \
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4331 echo " defining HAVE_OFFIX_DND"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4332 echo "#define" HAVE_OFFIX_DND "1" >> confdefs.h
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4333 DEFS="$DEFS -DHAVE_OFFIX_DND=1"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4334 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_OFFIX_DND\${ac_dB}HAVE_OFFIX_DND\${ac_dC}1\${ac_dD}
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4335 \${ac_uA}HAVE_OFFIX_DND\${ac_uB}HAVE_OFFIX_DND\${ac_uC}1\${ac_uD}
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4336 \${ac_eA}HAVE_OFFIX_DND\${ac_eB}HAVE_OFFIX_DND\${ac_eC}1\${ac_eD}
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4337 "
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4338 }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4339
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4340 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4341
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4342 #
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4343 # See if we can find Xlocale.h.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4344 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4345 with_xlocale_h='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4346 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4347 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4348 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4349 if test -f `echo "${arg}/X11/Xlocale.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4350 with_xlocale_h='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4351 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4352 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4353 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4354 if test "${with_xlocale_h}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4355
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4356 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4357 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4358 echo " defining HAVE_XLOCALE_H"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4359 echo "#define" HAVE_XLOCALE_H "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4360 DEFS="$DEFS -DHAVE_XLOCALE_H=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4361 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XLOCALE_H\${ac_dB}HAVE_XLOCALE_H\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4362 \${ac_uA}HAVE_XLOCALE_H\${ac_uB}HAVE_XLOCALE_H\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4363 \${ac_eA}HAVE_XLOCALE_H\${ac_eB}HAVE_XLOCALE_H\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4364 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4365 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4366
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4367 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4368
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4369 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4370 test -n "$silent" || echo "checking the version of X11 being used"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4371 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4372 #include <X11/Intrinsic.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4373 int main() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4374 #if (XlibSpecificationRelease == 4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4375 printf ("X11R4\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4376 #elif (XlibSpecificationRelease == 5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4377 printf ("X11R5\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4378 #elif (XlibSpecificationRelease == 6)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4379 printf ("X11R6\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4380 #elif (XtSpecificationRelease == 4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4381 printf ("X11R4\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4382 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4383 return 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4384 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4385 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4386 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4387 LIBS="${LIBS} ${DEFS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4388 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4389 ac_find_x_version=`./conftest`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4390
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4391 if [ "$ac_find_x_version" = "X11R4" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4392
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4393 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4394 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4395 echo " defining THIS_IS_X11R4"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4396 echo "#define" THIS_IS_X11R4 "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4397 DEFS="$DEFS -DTHIS_IS_X11R4=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4398 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R4\${ac_dB}THIS_IS_X11R4\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4399 \${ac_uA}THIS_IS_X11R4\${ac_uB}THIS_IS_X11R4\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4400 \${ac_eA}THIS_IS_X11R4\${ac_eB}THIS_IS_X11R4\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4401 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4402 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4403
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4404 elif [ "$ac_find_x_version" = "X11R5" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4405
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4406 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4407 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4408 echo " defining THIS_IS_X11R5"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4409 echo "#define" THIS_IS_X11R5 "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4410 DEFS="$DEFS -DTHIS_IS_X11R5=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4411 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R5\${ac_dB}THIS_IS_X11R5\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4412 \${ac_uA}THIS_IS_X11R5\${ac_uB}THIS_IS_X11R5\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4413 \${ac_eA}THIS_IS_X11R5\${ac_eB}THIS_IS_X11R5\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4414 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4415 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4416
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4417 elif [ "$ac_find_x_version" = "X11R6" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4418
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4419 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4420 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4421 echo " defining THIS_IS_X11R6"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4422 echo "#define" THIS_IS_X11R6 "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4423 DEFS="$DEFS -DTHIS_IS_X11R6=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4424 ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R6\${ac_dB}THIS_IS_X11R6\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4425 \${ac_uA}THIS_IS_X11R6\${ac_uB}THIS_IS_X11R6\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4426 \${ac_eA}THIS_IS_X11R6\${ac_eB}THIS_IS_X11R6\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4427 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4428 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4429
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4430 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4431
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 LIBS=$ac_save_LIBS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4434 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4435
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4436 for ac_hdr in X11/Xlocale.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4437 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4438 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4439 test -n "$silent" || echo "checking for ${ac_hdr}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4440 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4441 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4442 #include <${ac_hdr}>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4443 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4444 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4445 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4446 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4447 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4448 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4449 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4450 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4451 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4452 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4453 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4454
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4455 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4456 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4457 echo " defining ${ac_tr_hdr}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4458 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4459 DEFS="$DEFS -D${ac_tr_hdr}=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4460 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4461 \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4462 \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4463 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4464 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4465
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4466
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4467 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4468 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4469 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4470
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4473 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4474 # if Energize specified, make sure we can find its need libraries/headers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4475 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4476 if test "${with_energize}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4477 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4478 LIBS="${LIBS} -lenergize"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4479 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4480 test -n "$silent" || echo "checking for -lenergize"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4481 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4482 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4483
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4484 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4485 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4486 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4487 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4488 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4489 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4490
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4491 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4492 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4493 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4494 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4495 :; energize_version='3.X'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4496 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4497 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4498 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4499
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4500 if test "${energize_version}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4501 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4502 LIBS="${LIBS} -lconn"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4503 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4504 test -n "$silent" || echo "checking for -lconn"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4505 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4506 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4507
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4508 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4509 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4510 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4511 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4512 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4513 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4514
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4515 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4516 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4517 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4518 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4519 :; energize_version='2.X'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4520 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4521 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4522 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4523
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4524 if test "${energize_version}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4525 echo "Unable to find Energize library." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4526 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4527 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4528 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4529
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4530 internal_eincludes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4531 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4532 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4533 if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4534 internal_eincludes_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4535 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4536 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4537 if test "${internal_eincludes_found}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4538 echo "Unable to find Energize editorconn.h header file." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4539 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4540 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4541 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4542
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4543 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4544 # logb and frexp are found in -lm on most systems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4545 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4546 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4547 LIBS="${LIBS} -lm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4548 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4549 test -n "$silent" || echo "checking for -lm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4550 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4551 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4552
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4553 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4554 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4555 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4556 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4557 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4558 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4559
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4560 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4561 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4562 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4563 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4564
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4565 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4566 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4567 echo " defining HAVE_LIBM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4568 echo "#define" HAVE_LIBM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4569 DEFS="$DEFS -DHAVE_LIBM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4570 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBM\${ac_dB}HAVE_LIBM\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4571 \${ac_uA}HAVE_LIBM\${ac_uB}HAVE_LIBM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4572 \${ac_eA}HAVE_LIBM\${ac_eB}HAVE_LIBM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4573 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4574 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4575
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4576 LIBS="${LIBS} -lm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4577 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4578
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4579
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4580 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4581 # see if XPM is hanging around somewhere
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4582 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4583 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4584 if test "${with_xpm}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4585 if test "${with_xpm}" != "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4586 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4587 LIBS="${LIBS} -lXpm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4588 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4589 test -n "$silent" || echo "checking for -lXpm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4590 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4591 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4592
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4593 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4594 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4595 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4596 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4597 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4598 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4599
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4600 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4601 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4602 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4603 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4604 :; with_xpm="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4605 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4606 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4607 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4608
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4609 fi
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 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4612 if test "${with_xpm}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4613
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4614 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4615 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4616 echo " defining HAVE_XPM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4617 echo "#define" HAVE_XPM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4618 DEFS="$DEFS -DHAVE_XPM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4619 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XPM\${ac_dB}HAVE_XPM\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4620 \${ac_uA}HAVE_XPM\${ac_uB}HAVE_XPM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4621 \${ac_eA}HAVE_XPM\${ac_eB}HAVE_XPM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4622 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4623 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4624
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4625 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4626
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4627 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4628 # see if Xmu is hanging around somewhere
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4629 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4630 # FSF 19.31 has this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4631 #dnl If using toolkit, check whether libXmu.a exists.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4632 #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
4633 # OLDLIBS="$LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4634 # if test x$HAVE_X11XTR6 = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4635 # LIBS="-lXt -lSM -lICE $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4636 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4637 # LIBS="-lXt $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4638 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4639 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4640 # LIBS="$OLDLIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4641
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4642 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4643 if test "${with_xmu}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4644 if test "${with_xmu}" != "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4645 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4646 LIBS="${LIBS} -lXmu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4647 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4648 test -n "$silent" || echo "checking for -lXmu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4649 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4650 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4651
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4652 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4653 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4654 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4655 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4656 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4657 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4658
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4659 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4660 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4661 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4662 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4663 :; with_xmu="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4664 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4665 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4666 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4667
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4668 fi
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 20
diff changeset
4669 # 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
4670 # Upgrade to autoconf 2 and use ac_check_lib - mrb
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 20
diff changeset
4671 if test "${with_xmu}" != "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4672 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4673 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4674 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4675 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4676 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4677 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4678 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4679 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4680 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4681 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4682 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4683 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4684 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4685 test -n "${ac_have_lib}" && with_xmu="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4686 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4687 fi
38
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4688 # Sparc/Linux test - fp
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4689 if test "${with_xmu}" != "yes" -a ${machine} = sparc -a ${opsys} = linux; then
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4690 # begin expansion of ac_have_library
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4691 ac_save_LIBS="${LIBS}"
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4692 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm -lICE -lSM"
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4693 ac_have_lib=""
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4694 cat > conftest.${ac_ext} <<EOF
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4695 int main() { return 0; }
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4696 EOF
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4697 if eval $ac_compile; then
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4698 rm -rf conftest*
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4699 ac_have_lib="1"
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4700 fi
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4701 rm -f conftest*
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4702 LIBS="${ac_save_LIBS}"
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4703 test -n "${ac_have_lib}" && with_xmu="yes"
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4704 # end expansion of ac_have_library
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 32
diff changeset
4705 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4706 # On UnixWare 2.1 we must kludge harder to try to detect Xmu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4707 # Upgrade to autoconf 2 and use ac_check_lib - mrb
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4708 if test "${with_xmu}" != "yes" && test -f "/.UpgradeVer2.1" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4709 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4710 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4711 if test x$HAVE_XFREE386 = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4712 LIBS="-lXt -lSM -lICE ${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4713 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4714 LIBS="${LIBS} -lXmu -lXt -lXext -lX11"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4715 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4716 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4717 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4718 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4719 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4720 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4721 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4722 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4723 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4724 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4725 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4726 test -n "${ac_have_lib}" && with_xmu="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4727 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4728 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4729 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4730 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4731 if test "${with_xmu}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4732
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4733 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4734 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4735 echo " defining HAVE_XMU"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4736 echo "#define" HAVE_XMU "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4737 DEFS="$DEFS -DHAVE_XMU=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4738 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XMU\${ac_dB}HAVE_XMU\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4739 \${ac_uA}HAVE_XMU\${ac_uB}HAVE_XMU\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4740 \${ac_eA}HAVE_XMU\${ac_eB}HAVE_XMU\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4741 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4742 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4743
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4744 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4745
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4746 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4747 # see if COMPFACE is hanging around somewhere
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4748 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4749 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4750 if test "${with_xface}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4751 if test "${with_xface}" != "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4752 test -n "$silent" || echo "checking for compface.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4753 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4754 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4755 #include <compface.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4756 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4757 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4758 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4759 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4760 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4761 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4762 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4763 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4764 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4765 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4766 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4767 compface_incl="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4768
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4769 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4770 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4771 with_xface="no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4772 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4773 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4774
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4775 if test "${compface_incl}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4776 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4777 LIBS="${LIBS} -lcompface"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4778 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4779 test -n "$silent" || echo "checking for -lcompface"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4780 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4781 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4782
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4783 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4784 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4785 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4786 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4787 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4788 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4789
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4790 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4791 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4792 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4793 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4794 :; with_xface="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4795 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4796 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4797 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4798
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4799 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4800 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4801 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4802 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4803 if test "${with_xface}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4804
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4805 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4806 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4807 echo " defining HAVE_XFACE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4808 echo "#define" HAVE_XFACE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4809 DEFS="$DEFS -DHAVE_XFACE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4810 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XFACE\${ac_dB}HAVE_XFACE\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4811 \${ac_uA}HAVE_XFACE\${ac_uB}HAVE_XFACE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4812 \${ac_eA}HAVE_XFACE\${ac_eB}HAVE_XFACE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4813 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4814 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4815
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4816 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4817
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4818 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4819 # check whether we're using GIF support
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4820 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4821 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4822 if test -z "${with_gif}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4823 with_gif=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4824 elif test "${with_gif}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4825 echo "GIF support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4826 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4827 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4828 elif test -z "${with_gif}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4829 with_gif=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4830 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4831 if test "${with_gif}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4832
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4833 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4834 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4835 echo " defining HAVE_GIF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4836 echo "#define" HAVE_GIF "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4837 DEFS="$DEFS -DHAVE_GIF=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4838 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_GIF\${ac_dB}HAVE_GIF\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4839 \${ac_uA}HAVE_GIF\${ac_uB}HAVE_GIF\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4840 \${ac_eA}HAVE_GIF\${ac_eB}HAVE_GIF\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4841 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4842 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4843
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4844 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4845
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4846 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4847 # autodetect JPEG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4848 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4849 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4850 if test -z "${with_jpeg}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4851 with_jpeg=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4852 elif test "${with_jpeg}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4853 echo "JPEG support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4854 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4855 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4856 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4857 if test "${with_jpeg}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4858 if test "${with_jpeg}" != "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4859 test -n "$silent" || echo "checking for jpeglib.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4860 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4861 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4862 #include <jpeglib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4863 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4864 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4865 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4866 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4867 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4868 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4869 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4870 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4871 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4872 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4873 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4874 jpeglib_incl="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4875
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4876 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4877 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4878 with_jpeg="no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4879 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4880 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4881
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4882 if test "${jpeglib_incl}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4883 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4884 LIBS="${LIBS} -ljpeg"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4885 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4886 test -n "$silent" || echo "checking for -ljpeg"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4887 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4888 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4889
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4890 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4891 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4892 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4893 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4894 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4895 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4896
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4897 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4898 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4899 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4900 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4901 :; with_jpeg="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4902 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4903 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4904 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4905
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4906 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4907 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4908 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4909 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4910 if test "${with_jpeg}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4911
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4912 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4913 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4914 echo " defining HAVE_JPEG"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4915 echo "#define" HAVE_JPEG "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4916 DEFS="$DEFS -DHAVE_JPEG=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4917 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_JPEG\${ac_dB}HAVE_JPEG\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4918 \${ac_uA}HAVE_JPEG\${ac_uB}HAVE_JPEG\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4919 \${ac_eA}HAVE_JPEG\${ac_eB}HAVE_JPEG\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4920 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4921 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4922
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4923 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4924
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4925 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4926 # autodetect PNG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4927 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4928 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4929 if test -z "${with_png}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4930 with_png=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4931 elif test "${with_png}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4932 echo "PNG support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4933 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4934 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4935 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4936 if test -z "${with_png}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4937 test -n "$silent" || echo "checking for png.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4938 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4939 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4940 #include <png.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4941 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4942 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4943 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4944 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4945 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4946 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4947 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4948 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4949 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4950 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4951 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4952 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4953 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4954 with_png="no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4955 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4956 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4957
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4958 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4959 if test -z "${with_png}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4960 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4961 LIBS="${LIBS} -lpng"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4962 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4963 test -n "$silent" || echo "checking for -lpng"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4964 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4965 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4966
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4967 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4968 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4969 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4970 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4971 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4972 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4973
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4974 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4975 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4976 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4977 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4978 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4979 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4980 :; with_png="no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4981 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4982
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4983 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4984 if test -z "${with_png}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4985 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4986 LIBS="${LIBS} -lz"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4987 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4988 test -n "$silent" || echo "checking for -lz"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4989 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4990 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4991
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4992 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4993 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4994 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4995 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4996 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4997 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4998
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4999 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5000 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5001 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5002 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5003 :; with_png="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5004 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5005 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5006 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5007
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5008 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5009 if test -z "${with_png}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5010 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5011 LIBS="${LIBS} -lgz"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5012 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5013 test -n "$silent" || echo "checking for -lgz"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5014 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5015 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5016
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5017 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5018 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5019 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5020 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5021 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5022 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5023
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5024 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5025 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5026 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5027 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5028 :; with_png="gnuz"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5029 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5030 :; with_png="no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5031 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5032
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5033 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5034 if test "${with_png}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5035
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5036 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5037 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5038 echo " defining HAVE_PNG"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5039 echo "#define" HAVE_PNG "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5040 DEFS="$DEFS -DHAVE_PNG=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5041 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG\${ac_dB}HAVE_PNG\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5042 \${ac_uA}HAVE_PNG\${ac_uB}HAVE_PNG\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5043 \${ac_eA}HAVE_PNG\${ac_eB}HAVE_PNG\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5044 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5045 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5046
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5047 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5048 if test "${with_png}" = "gnuz" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5049
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5050 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5051 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5052 echo " defining HAVE_PNG"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5053 echo "#define" HAVE_PNG "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5054 DEFS="$DEFS -DHAVE_PNG=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5055 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG\${ac_dB}HAVE_PNG\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5056 \${ac_uA}HAVE_PNG\${ac_uB}HAVE_PNG\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5057 \${ac_eA}HAVE_PNG\${ac_eB}HAVE_PNG\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5058 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5059 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5060
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5061
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5062 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5063 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5064 echo " defining HAVE_PNG_GNUZ"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5065 echo "#define" HAVE_PNG_GNUZ "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5066 DEFS="$DEFS -DHAVE_PNG_GNUZ=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5067 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG_GNUZ\${ac_dB}HAVE_PNG_GNUZ\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5068 \${ac_uA}HAVE_PNG_GNUZ\${ac_uB}HAVE_PNG_GNUZ\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5069 \${ac_eA}HAVE_PNG_GNUZ\${ac_eB}HAVE_PNG_GNUZ\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5070 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5071 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5072
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5073 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5074
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5075 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5076 # autodetect TIFF (not yet implemented)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5077 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5078 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5079 if test -z "${with_tiff}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5080 with_tiff=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5081 elif test "${with_tiff}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5082 echo "TIFF support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5083 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5084 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5085 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5086 if test "${with_tiff}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5087
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5088 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5089 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5090 echo " defining HAVE_TIFF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5091 echo "#define" HAVE_TIFF "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5092 DEFS="$DEFS -DHAVE_TIFF=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5093 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TIFF\${ac_dB}HAVE_TIFF\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5094 \${ac_uA}HAVE_TIFF\${ac_uB}HAVE_TIFF\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5095 \${ac_eA}HAVE_TIFF\${ac_eB}HAVE_TIFF\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5096 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5097 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5098
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5099 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5101 # We use Lucid toolkit defaults for the menubars and scrollbars, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5102 # if Motif is available we use it for the dialog boxes.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5103 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5104 if test "x${with_dialogs}" = "x" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5105 # 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
5106 # end of the link line which is insufficient since -lXm will generate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5107 # dependencies on -lXt
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5108 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5109 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5110 LIBS="${LIBS} -lXm -lXt ${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5111 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5112 test -n "$silent" || echo "checking for -lXm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5113 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5114 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5115
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5116 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5117 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5118 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5119 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5120 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5121 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5122
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5123 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5124 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5125 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5126 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5127 :; with_dialogs="motif"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5128 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5129 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5130 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5131 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5132 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5133 if test "${with_dialogs}" != "motif" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5134 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5135 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5136 LIBS="${LIBS} -lXm -lXt -lXpm -lXext ${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5137 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5138 test -n "$silent" || echo "checking for -lXm in another way"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5139 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5140 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5141
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5142 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5143 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5144 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5145 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5146 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5147 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5148
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5149 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5150 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5151 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5152 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5153 :; with_dialogs="motif"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5154 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5155 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5156 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5157 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5158 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5159 if test "${with_dialogs}" = "motif" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5160 test -n "$verbose" && echo " Found Motif"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5161 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5162 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5163 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5164
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5165
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5166 if [ "${with_menubars}" = "motif" ] || [ "${with_scrollbars}" = "motif" ] \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5167 || [ "${with_dialogs}" = "motif" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5168 with_motif='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5169 fi
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
5170 if [ "${with_menubars}" = "athena" ] || [ "${with_scrollbars}" = "athena" ] \
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
5171 || [ "${with_dialogs}" = "athena" ]; then
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
5172 with_athena='yes'
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
5173 fi
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
5174 if [ "${with_menubars}" = "athena3d" ] || [ "${with_scrollbars}" = "athena3d" ] \
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
5175 || [ "${with_dialogs}" = "athena3d" ]; then
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
5176 with_athena='yes'
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
5177 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5178
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5179 # Finish ensuring that we have values for the various toolkit items.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5180 if [ "x${with_menubars}" = "x" ] || [ "${with_menubars}" = "athena" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5181 with_menubars='lucid'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5182 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5183 if [ "x${with_scrollbars}" = "x" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5184 with_scrollbars='lucid'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5185 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5186 if [ "x${with_dialogs}" = "x" ] || [ "${with_dialogs}" = "lucid" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5187 with_dialogs='athena'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5188 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5189
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5190
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5191 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5192 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5193 # Misc other feature tests #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5194 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5195 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5196
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5197 # 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
5198 test -n "$silent" || echo "checking for declaration of h_errno in netdb.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5199 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5200 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5201 #include <netdb.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5202 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5203 int t() { int i = h_errno;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5204 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5205 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5206 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5207
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5208 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5209 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5210 echo " defining HAVE_H_ERRNO"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5211 echo "#define" HAVE_H_ERRNO "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5212 DEFS="$DEFS -DHAVE_H_ERRNO=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5213 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_H_ERRNO\${ac_dB}HAVE_H_ERRNO\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5214 \${ac_uA}HAVE_H_ERRNO\${ac_uB}HAVE_H_ERRNO\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5215 \${ac_eA}HAVE_H_ERRNO\${ac_eB}HAVE_H_ERRNO\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5216 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5217 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5218
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5220 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5221 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5222
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5223
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5224 test -n "$silent" || echo "checking for sigsetjmp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5225 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5226 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5227 #include <setjmp.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5228 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5229 int t() { sigjmp_buf bar; sigsetjmp (bar, 0);; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5230 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5231 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5232 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5233
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5234 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5235 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5236 echo " defining HAVE_SIGSETJMP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5237 echo "#define" HAVE_SIGSETJMP "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5238 DEFS="$DEFS -DHAVE_SIGSETJMP=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5239 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SIGSETJMP\${ac_dB}HAVE_SIGSETJMP\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5240 \${ac_uA}HAVE_SIGSETJMP\${ac_uB}HAVE_SIGSETJMP\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5241 \${ac_eA}HAVE_SIGSETJMP\${ac_eB}HAVE_SIGSETJMP\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5242 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5243 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5244
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5245
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5246 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5247 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5248
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5249
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5250 test -n "$silent" || echo "checking whether localtime caches TZ"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5251 emacs_cv_localtime_cache=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5252 test -n "$silent" || echo "checking whether cross-compiling"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5253 # If we cannot run a trivial program, we must be cross compiling.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5254 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5255 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5256 main(){exit(0);}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5257 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5258 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5259 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5260 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5261 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5262 cross_compiling=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5263 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5264 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5265
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5266 if test -n "$cross_compiling"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5267 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5268 # If we have tzset, assume the worst when cross-compiling.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5269 emacs_cv_localtime_cache=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5270 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5271 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5272 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5273 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5274 #if 1 /* STDC_HEADERS */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5275 # include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5276 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5277 extern char **environ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5278 unset_TZ ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5279 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5280 char **from, **to;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5281 for (to = from = environ; (*to = *from); from++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5282 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5283 to++;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5284 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5285 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5286 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5287 time_t now = time ((time_t *) 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5288 int hour_GMT0, hour_unset;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5289 if (putenv ("TZ=GMT0") != 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5290 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5291 hour_GMT0 = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5292 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5293 hour_unset = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5294 if (putenv ("TZ=PST8") != 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5295 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5296 if (localtime (&now)->tm_hour == hour_GMT0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5297 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5298 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5299 if (localtime (&now)->tm_hour != hour_unset)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5300 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5301 exit (0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5302 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5303 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5304 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5305 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5306 emacs_cv_localtime_cache=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5307
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5308 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5309 emacs_cv_localtime_cache=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5310 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5311 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5312 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5313 test -n "$verbose" && echo " "$emacs_cv_localtime_cache""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5314 if test x$emacs_cv_localtime_cache = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5315
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5316 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5317 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5318 echo " defining LOCALTIME_CACHE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5319 echo "#define" LOCALTIME_CACHE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5320 DEFS="$DEFS -DLOCALTIME_CACHE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5321 ac_sed_defs="${ac_sed_defs}\${ac_dA}LOCALTIME_CACHE\${ac_dB}LOCALTIME_CACHE\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5322 \${ac_uA}LOCALTIME_CACHE\${ac_uB}LOCALTIME_CACHE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5323 \${ac_eA}LOCALTIME_CACHE\${ac_eB}LOCALTIME_CACHE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5324 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5325 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5326
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5327 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5328
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5329 if test "x$HAVE_TIMEVAL" = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5330 test -n "$silent" || echo "checking for whether gettimeofday can't accept two arguments"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5331 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5332 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5333
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5334 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5335 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5336 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5337 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5338 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5339 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5340 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5341 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5342 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5343 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5344
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5345 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5346 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5347 struct timeval time;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5348 struct timezone dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5349 gettimeofday (&time, &dummy);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5350 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5351 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5352 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5353 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5354 test -n "$verbose" && echo " no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5355
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5356 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5357 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5358 test -n "$verbose" && echo " yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5359
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5360 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5361 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5362 echo " defining GETTIMEOFDAY_ONE_ARGUMENT"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5363 echo "#define" GETTIMEOFDAY_ONE_ARGUMENT "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5364 DEFS="$DEFS -DGETTIMEOFDAY_ONE_ARGUMENT=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5365 ac_sed_defs="${ac_sed_defs}\${ac_dA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_dB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5366 \${ac_uA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_uB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5367 \${ac_eA}GETTIMEOFDAY_ONE_ARGUMENT\${ac_eB}GETTIMEOFDAY_ONE_ARGUMENT\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5368 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5369 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5370
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5371 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5372 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5373
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5374 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5375
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5376 test -n "$silent" || echo "checking for whether inline functions are supported"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5377 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5378 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5379
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5380 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5381 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5382 inline int
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5383 foo ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5384 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5385 return 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5386 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5387 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5388 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5389 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5390 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5391
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5392 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5393 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5394 echo " defining HAVE_INLINE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5395 echo "#define" HAVE_INLINE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5396 DEFS="$DEFS -DHAVE_INLINE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5397 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_INLINE\${ac_dB}HAVE_INLINE\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5398 \${ac_uA}HAVE_INLINE\${ac_uB}HAVE_INLINE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5399 \${ac_eA}HAVE_INLINE\${ac_eB}HAVE_INLINE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5400 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5401 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5402
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5403
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5404 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5405 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5406
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5407
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5408 # This does all sorts of magic to make sure alloca() works OK.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5409 # It might even add some junk to the top of <config.h>.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5410 # (I don't understand what goes on here, but it seems to work.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5411 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5412 # for constant arguments. Useless!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5413 test -n "$silent" || echo "checking for working alloca.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5414 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5415 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5416 #include <alloca.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5417 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5418 int t() { char *p = alloca(2 * sizeof(int));; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5419 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5420 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5421 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5422
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5423 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5424 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5425 echo " defining HAVE_ALLOCA_H"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5426 echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5427 DEFS="$DEFS -DHAVE_ALLOCA_H=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5428 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA_H\${ac_dB}HAVE_ALLOCA_H\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5429 \${ac_uA}HAVE_ALLOCA_H\${ac_uB}HAVE_ALLOCA_H\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5430 \${ac_eA}HAVE_ALLOCA_H\${ac_eB}HAVE_ALLOCA_H\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5431 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5432 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5433
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5434
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5435 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5436 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5437
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5438 ac_decl="#ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5439 #define alloca __builtin_alloca
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5440 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5441 #if HAVE_ALLOCA_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5442 #include <alloca.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5443 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5444 #ifdef _AIX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5445 #pragma alloca
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5446 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5447 char *alloca ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5448 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5449 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5450 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5451 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5452 test -n "$silent" || echo "checking for alloca"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5453 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5454 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5455 $ac_decl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5456 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5457 int t() { char *p = (char *) alloca(1);; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5458 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5459 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5460 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5461
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5462 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5463 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5464 echo " defining HAVE_ALLOCA"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5465 echo "#define" HAVE_ALLOCA "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5466 DEFS="$DEFS -DHAVE_ALLOCA=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5467 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA\${ac_dB}HAVE_ALLOCA\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5468 \${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5469 \${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5470 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5471 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5472
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5473
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5474 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5475 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5476 ac_alloca_missing=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5477 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5478 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5479
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5480 #if defined(CRAY) && ! defined(CRAY2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5481 winnitude
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5482 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5483 lossage
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5484 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5485
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5486 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5487 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5488 if egrep "winnitude" conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5489 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5490 test -n "$silent" || echo "checking for _getb67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5491 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5492 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5493 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5494 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5495 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5496 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5497 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5498 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5499 #if defined (__stub__getb67) || defined (__stub____getb67)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5500 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5501 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5502 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5503 extern char _getb67(); _getb67();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5504 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5505 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5506 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5507 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5508 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5509 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5510 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5511 echo " defining" CRAY_STACKSEG_END to be "_getb67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5512 echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5513 DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5514 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}_getb67\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5515 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}_getb67\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5516 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}_getb67\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5517 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5518 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5519
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5520
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5521 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5522 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5523 test -n "$silent" || echo "checking for GETB67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5524 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5525 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5526 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5527 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5528 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5529 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5530 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5531 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5532 #if defined (__stub_GETB67) || defined (__stub___GETB67)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5533 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5534 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5535 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5536 extern char GETB67(); GETB67();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5537 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5538 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5539 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5540 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5541 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5542 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5543 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5544 echo " defining" CRAY_STACKSEG_END to be "GETB67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5545 echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5546 DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5547 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}GETB67\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5548 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}GETB67\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5549 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}GETB67\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5550 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5551 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5552
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5553
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5554 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5555 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5556 test -n "$silent" || echo "checking for getb67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5557 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5558 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5559 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5560 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5561 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5562 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5563 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5564 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5565 #if defined (__stub_getb67) || defined (__stub___getb67)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5566 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5567 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5568 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5569 extern char getb67(); getb67();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5570 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5571 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5572 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5573 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5574 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5575 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5576 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5577 echo " defining" CRAY_STACKSEG_END to be "getb67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5578 echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5579 DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5580 ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}getb67\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5581 \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}getb67\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5582 \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}getb67\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5583 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5584 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5585
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5586
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5587 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5588 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5589
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5590 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5591 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5592
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5593 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5594 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5595
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5596
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5597 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5598 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5599
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5600
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5601 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5602 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5603
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5604 if test -n "$ac_alloca_missing"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5605 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5606 # that cause trouble. Some versions do not even contain alloca or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5607 # contain a buggy version. If you still want to use their alloca,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5608 # use ar to extract alloca.o from them instead of compiling alloca.c.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5609 ALLOCA=alloca.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5610
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5611 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5612 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5613 echo " defining C_ALLOCA"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5614 echo "#define" C_ALLOCA "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5615 DEFS="$DEFS -DC_ALLOCA=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5616 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_ALLOCA\${ac_dB}C_ALLOCA\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5617 \${ac_uA}C_ALLOCA\${ac_uB}C_ALLOCA\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5618 \${ac_eA}C_ALLOCA\${ac_eB}C_ALLOCA\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5619 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5620 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5621
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5622
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5623 test -n "$silent" || echo "checking stack direction for C alloca"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5624 if test -n "$cross_compiling"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5625 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5626
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5627 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5628 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5629 echo " defining" STACK_DIRECTION to be "0"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5630 echo "#define" STACK_DIRECTION "0" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5631 DEFS="$DEFS -DSTACK_DIRECTION=0"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5632 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}0\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5633 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}0\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5634 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}0\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5635 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5636 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5637
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5638 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5639 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5640 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5641 find_stack_direction ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5642 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5643 static char *addr = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5644 auto char dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5645 if (addr == 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5646 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5647 addr = &dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5648 return find_stack_direction ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5649 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5650 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5651 return (&dummy > addr) ? 1 : -1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5652 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5653 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5654 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5655 exit (find_stack_direction() < 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5656 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5657 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5658 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5659 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5660
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5661 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5662 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5663 echo " defining" STACK_DIRECTION to be "1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5664 echo "#define" STACK_DIRECTION "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5665 DEFS="$DEFS -DSTACK_DIRECTION=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5666 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5667 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5668 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5669 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5670 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5671
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5672
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5673 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5674
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5675 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5676 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5677 echo " defining" STACK_DIRECTION to be "-1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5678 echo "#define" STACK_DIRECTION "-1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5679 DEFS="$DEFS -DSTACK_DIRECTION=-1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5680 ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}-1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5681 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}-1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5682 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}-1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5683 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5684 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5685
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5686 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5687 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5688 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5689 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5690
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5691
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5692 # Check whether vfork exists and works correctly. (This does more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5693 # than just check for its existence.) If so, it defines HAVE_VFORK_H.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5694 # If not, it defines vfork to be fork.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5695 test -n "$silent" || echo "checking for pid_t in sys/types.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5696 echo '#include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5697 #include <sys/types.h>' > conftest.${ac_ext}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5698 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5699 if egrep "pid_t" conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5700 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5701 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5702 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5703
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5704 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5705 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5706 echo " defining" pid_t to be "int"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5707 echo "#define" pid_t "int" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5708 DEFS="$DEFS -Dpid_t=int"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5709 ac_sed_defs="${ac_sed_defs}\${ac_dA}pid_t\${ac_dB}pid_t\${ac_dC}int\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5710 \${ac_uA}pid_t\${ac_uB}pid_t\${ac_uC}int\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5711 \${ac_eA}pid_t\${ac_eB}pid_t\${ac_eC}int\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5712 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5713 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5714
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5715 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5716 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5717
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5718 test -n "$silent" || echo "checking for vfork.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5719 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5720 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5721 #include <vfork.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5722 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5723 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5724 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5725 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5726 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5727 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5728 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5729 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5730 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5731 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5732 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5733
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5734 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5735 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5736 echo " defining HAVE_VFORK_H"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5737 echo "#define" HAVE_VFORK_H "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5738 DEFS="$DEFS -DHAVE_VFORK_H=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5739 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_VFORK_H\${ac_dB}HAVE_VFORK_H\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5740 \${ac_uA}HAVE_VFORK_H\${ac_uB}HAVE_VFORK_H\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5741 \${ac_eA}HAVE_VFORK_H\${ac_eB}HAVE_VFORK_H\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5742 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5743 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5744
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5745
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5746 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5747 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5748
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5749 test -n "$silent" || echo "checking for working vfork"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5750
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5751 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5752 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5753 /* Thanks to Paul Eggert for this test. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5754 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5755 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5756 #include <sys/stat.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5757 #include <signal.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5758 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5759 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5760 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5761 #ifdef HAVE_VFORK_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5762 #include <vfork.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5763 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5764 static int signalled;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5765 static RETSIGTYPE catch (s) int s; { signalled = 1; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5766 main() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5767 pid_t parent = getpid ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5768 pid_t child;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5769
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5770 signal (SIGINT, catch);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5771
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5772 child = vfork ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5773
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5774 if (child == 0) {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5775 /* On sparc systems, changes by the child to local and incoming
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5776 argument registers are propagated back to the parent.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5777 The compiler is told about this with #include <vfork.h>,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5778 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5779 Test for this by using lots of local variables, at least
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5780 as many local variables as main has allocated so far
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5781 including compiler temporaries. 4 locals are enough for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5782 gcc 1.40.3 on a sparc, but we use 8 to be safe.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5783 A buggy compiler should reuse the register of parent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5784 for one of the local variables, since it will think that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5785 parent can't possibly be used any more in this routine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5786 Assigning to the local variable will thus munge parent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5787 in the parent process. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5788 pid_t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5789 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5790 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5791 /* Convince the compiler that p..p7 are live; otherwise, it might
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5792 use the same hardware register for all 8 local variables. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5793 if (p != p1 || p != p2 || p != p3 || p != p4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5794 || p != p5 || p != p6 || p != p7)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5795 _exit(1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5796
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5797 /* On some systems (e.g. SunOS 5.2), if the parent is catching
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5798 a signal, the child ignores the signal before execing,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5799 and the parent later receives that signal, the parent dumps core.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5800 Test for this by ignoring SIGINT in the child. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5801 signal (SIGINT, SIG_IGN);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5802
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5803 /* On some systems (e.g. IRIX 3.3),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5804 vfork doesn't separate parent from child file descriptors.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5805 If the child closes a descriptor before it execs or exits,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5806 this munges the parent's descriptor as well.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5807 Test for this by closing stdout in the child. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5808 _exit(close(fileno(stdout)) != 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5809 } else {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5810 int status;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5811 struct stat st;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5812
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5813 while (wait(&status) != child)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5814 ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5815 exit(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5816 /* Was there some problem with vforking? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5817 child < 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5818
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5819 /* Did the child fail? (This shouldn't happen.) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5820 || status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5821
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5822 /* Did the vfork/compiler bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5823 || parent != getpid()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5824
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5825 /* Did the signal handling bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5826 || kill(parent, SIGINT) != 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5827 || signalled != 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5828
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5829 /* Did the file descriptor bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5830 || fstat(fileno(stdout), &st) != 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5831 );
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5832 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5833 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5834 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5835 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5836 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5837 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5838 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5839
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5840 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5841 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5842 echo " defining" vfork to be "fork"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5843 echo "#define" vfork "fork" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5844 DEFS="$DEFS -Dvfork=fork"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5845 ac_sed_defs="${ac_sed_defs}\${ac_dA}vfork\${ac_dB}vfork\${ac_dC}fork\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5846 \${ac_uA}vfork\${ac_uB}vfork\${ac_uC}fork\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5847 \${ac_eA}vfork\${ac_eB}vfork\${ac_eC}fork\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5848 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5849 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5850
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5851 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5852 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5853
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5854
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5855 # Check whether mmap exists and works correctly. (This does more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5856 # than just check for its existence.) If so, it defines HAVE_MMAP.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5857 # Actually, this seems to rule out some cases where mmap() can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5858 # 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
5859 # of using mmap(), so let's go back to the old way.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5860
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5861 # Check whether strcoll exists and works correctly. (This does more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5862 # than just check for its existence.) If so, it defines HAVE_STRCOLL.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5863 test -n "$silent" || echo "checking for strcoll"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5864 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5865 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5866 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5867 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5868 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5869 exit (strcoll ("abc", "def") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5870 strcoll ("ABC", "DEF") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5871 strcoll ("123", "456") >= 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5872 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5873 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5874 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5875 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5876
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5877 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5878 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5879 echo " defining HAVE_STRCOLL"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5880 echo "#define" HAVE_STRCOLL "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5881 DEFS="$DEFS -DHAVE_STRCOLL=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5882 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRCOLL\${ac_dB}HAVE_STRCOLL\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5883 \${ac_uA}HAVE_STRCOLL\${ac_uB}HAVE_STRCOLL\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5884 \${ac_eA}HAVE_STRCOLL\${ac_eB}HAVE_STRCOLL\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5885 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5886 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5887
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5888
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5889 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5890 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5891
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5892 test -n "$silent" || echo "checking size of short"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5893 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5894 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5895 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5896 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5897 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5898 FILE *f=fopen("conftestval", "w");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5899 if (!f) exit(1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5900 fprintf(f, "%d\n", sizeof(short));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5901 exit(0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5902 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5903 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5904 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5905 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5906 ac_size=`cat conftestval`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5907
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5908 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5909 echo "configure: can not determine size of short" >&2; exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5910 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5911 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5912
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5913 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5914 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5915 echo " defining" SIZEOF_SHORT to be "$ac_size"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5916 echo "#define" SIZEOF_SHORT "$ac_size" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5917 DEFS="$DEFS -DSIZEOF_SHORT=$ac_size"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5918 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_SHORT\${ac_dB}SIZEOF_SHORT\${ac_dC}$ac_size\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5919 \${ac_uA}SIZEOF_SHORT\${ac_uB}SIZEOF_SHORT\${ac_uC}$ac_size\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5920 \${ac_eA}SIZEOF_SHORT\${ac_eB}SIZEOF_SHORT\${ac_eC}$ac_size\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5921 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5922 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5923
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5924 test -n "$silent" || echo "checking size of int"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5925 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5926 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5927 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5928 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5929 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5930 FILE *f=fopen("conftestval", "w");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5931 if (!f) exit(1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5932 fprintf(f, "%d\n", sizeof(int));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5933 exit(0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5934 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5935 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5936 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5937 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5938 ac_size=`cat conftestval`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5939
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5940 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5941 echo "configure: can not determine size of int" >&2; exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5942 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5943 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5944
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5945 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5946 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5947 echo " defining" SIZEOF_INT to be "$ac_size"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5948 echo "#define" SIZEOF_INT "$ac_size" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5949 DEFS="$DEFS -DSIZEOF_INT=$ac_size"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5950 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_INT\${ac_dB}SIZEOF_INT\${ac_dC}$ac_size\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5951 \${ac_uA}SIZEOF_INT\${ac_uB}SIZEOF_INT\${ac_uC}$ac_size\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5952 \${ac_eA}SIZEOF_INT\${ac_eB}SIZEOF_INT\${ac_eC}$ac_size\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5953 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5954 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5955
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5956 test -n "$silent" || echo "checking size of long"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5957 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5958 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5959 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5960 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5961 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5962 FILE *f=fopen("conftestval", "w");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5963 if (!f) exit(1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5964 fprintf(f, "%d\n", sizeof(long));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5965 exit(0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5966 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5967 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5968 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5969 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5970 ac_size=`cat conftestval`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5971
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5972 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5973 echo "configure: can not determine size of long" >&2; exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5974 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5975 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5976
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5977 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5978 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5979 echo " defining" SIZEOF_LONG to be "$ac_size"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5980 echo "#define" SIZEOF_LONG "$ac_size" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5981 DEFS="$DEFS -DSIZEOF_LONG=$ac_size"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5982 ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_LONG\${ac_dB}SIZEOF_LONG\${ac_dC}$ac_size\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5983 \${ac_uA}SIZEOF_LONG\${ac_uB}SIZEOF_LONG\${ac_uC}$ac_size\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5984 \${ac_eA}SIZEOF_LONG\${ac_eB}SIZEOF_LONG\${ac_eC}$ac_size\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5985 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5986 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5987
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5988
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5989 # FSF 19.29 does this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5990 # # fmod, logb, and frexp are found in -lm on most systems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5991 # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5992 # A C_CHECK_LIB(m, sqrt)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5993
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5994 for ac_func in 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
5995 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5996 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5997 test -n "$silent" || echo "checking for ${ac_func}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5998 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5999 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6000 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6001 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6002 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6003 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6004 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6005 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6006 #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6007 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6008 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6009 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6010 extern char ${ac_func}(); ${ac_func}();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6011 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6012 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6013 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6014 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6015 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6016 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6017 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6018 echo " defining ${ac_tr_func}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6019 echo "#define" ${ac_tr_func} "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6020 DEFS="$DEFS -D${ac_tr_func}=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6021 ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6022 \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6023 \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6024 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6025 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6026
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6027
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6028 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6029 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6030 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6031
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6032
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6033 # Check for mmap.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6034 found_mmap=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6035 test -n "$silent" || echo "checking for mmap"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6036 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6037 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6038 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6039 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6040 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6041 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6042 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6043 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6044 #if defined (__stub_mmap) || defined (__stub___mmap)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6045 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6046 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6047 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6048 extern char mmap(); mmap();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6049 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6050 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6051 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6052 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6053 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6054 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6055 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6056 found_mmap=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6057 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6058 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6059
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6060 if test -n "$found_mmap"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6061
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6062 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6063 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6064 echo " defining HAVE_MMAP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6065 echo "#define" HAVE_MMAP "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6066 DEFS="$DEFS -DHAVE_MMAP=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6067 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MMAP\${ac_dB}HAVE_MMAP\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6068 \${ac_uA}HAVE_MMAP\${ac_uB}HAVE_MMAP\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6069 \${ac_eA}HAVE_MMAP\${ac_eB}HAVE_MMAP\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6070 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6071 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6072
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6073 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6074
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6075
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6076 # rel_alloc requires either GNU malloc or system malloc with mmap
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6077 if [ "${GNU_MALLOC}" != "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6078 if [ "${found_mmap}" != "true" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6079 rel_alloc=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6080 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6081 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6082
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6083 # We only turn rel_alloc on by default if mmap is available.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6084 if [ "${rel_alloc}" = "default" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6085 if [ "${found_mmap}" = "true" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6086 rel_alloc=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6087 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6088 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6089
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6090
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6091
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6092 # Check for Internet sockets.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6093
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6094 ok_so_far=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6095 test -n "$silent" || echo "checking for socket"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6096 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6097 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6098 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6099 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6100 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6101 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6102 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6103 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6104 #if defined (__stub_socket) || defined (__stub___socket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6105 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6106 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6107 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6108 extern char socket(); socket();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6109 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6110 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6111 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6112 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6113 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6114 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6115 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6116 ok_so_far=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6117 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6118 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6119
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6120 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6121 test -n "$silent" || echo "checking for netinet/in.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6122 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6123 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6124 #include <netinet/in.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6125 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6126 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6127 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6128 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6129 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6130 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6131 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6132 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6133 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6134 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6135 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6136 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6137 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6138 ok_so_far=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6139 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6140 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6141
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6142 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6143 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6144 test -n "$silent" || echo "checking for arpa/inet.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6145 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6146 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6147 #include <arpa/inet.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6148 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6149 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6150 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6151 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6152 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6153 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6154 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6155 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6156 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6157 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6158 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6159 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6160 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6161 ok_so_far=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6162 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6163 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6164
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6165 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6166 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6167
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6168 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6169 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6170 echo " defining HAVE_SOCKETS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6171 echo "#define" HAVE_SOCKETS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6172 DEFS="$DEFS -DHAVE_SOCKETS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6173 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKETS\${ac_dB}HAVE_SOCKETS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6174 \${ac_uA}HAVE_SOCKETS\${ac_uB}HAVE_SOCKETS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6175 \${ac_eA}HAVE_SOCKETS\${ac_eB}HAVE_SOCKETS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6176 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6177 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6178
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6179 # Check for the sun_len member in struct sockaddr_un.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6180
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6181 test -n "$silent" || echo "checking for sun_len member in struct sockaddr_un"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6182 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6183 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6184 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6185 #include <sys/socket.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6186 #include <sys/un.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6187 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6188 int t() { static struct sockaddr_un x; x.sun_len = 1;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6189 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6190 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6191 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6192
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6193 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6194 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6195 echo " defining HAVE_SOCKADDR_SUN_LEN"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6196 echo "#define" HAVE_SOCKADDR_SUN_LEN "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6197 DEFS="$DEFS -DHAVE_SOCKADDR_SUN_LEN=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6198 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKADDR_SUN_LEN\${ac_dB}HAVE_SOCKADDR_SUN_LEN\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6199 \${ac_uA}HAVE_SOCKADDR_SUN_LEN\${ac_uB}HAVE_SOCKADDR_SUN_LEN\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6200 \${ac_eA}HAVE_SOCKADDR_SUN_LEN\${ac_eB}HAVE_SOCKADDR_SUN_LEN\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6201 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6202 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6203
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6204
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6205 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6206 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6207
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6208 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6209
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6210 # Check for SYS V IPC. (Inferior to sockets.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6211
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6212 if test -z "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6213 ok_so_far=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6214 test -n "$silent" || echo "checking for msgget"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6215 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6216 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6217 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6218 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6219 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6220 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6221 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6222 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6223 #if defined (__stub_msgget) || defined (__stub___msgget)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6224 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6225 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6226 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6227 extern char msgget(); msgget();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6228 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6229 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6230 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6231 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6232 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6233 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6234 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6235 ok_so_far=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6236 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6237 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6238
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6239 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6240 test -n "$silent" || echo "checking for sys/ipc.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6241 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6242 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6243 #include <sys/ipc.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6244 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6245 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6246 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6247 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6248 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6249 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6250 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6251 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6252 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6253 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6254 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6255 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6256 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6257 ok_so_far=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6258 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6259 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6260
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6261 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6262 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6263 test -n "$silent" || echo "checking for sys/msg.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6264 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6265 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6266 #include <sys/msg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6267 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6268 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6269 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6270 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6271 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6272 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6273 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6274 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6275 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6276 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6277 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6278 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6279 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6280 ok_so_far=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6281 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6282 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6283
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6284 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6285 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6286
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6287 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6288 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6289 echo " defining HAVE_SYSVIPC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6290 echo "#define" HAVE_SYSVIPC "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6291 DEFS="$DEFS -DHAVE_SYSVIPC=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6292 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYSVIPC\${ac_dB}HAVE_SYSVIPC\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6293 \${ac_uA}HAVE_SYSVIPC\${ac_uB}HAVE_SYSVIPC\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6294 \${ac_eA}HAVE_SYSVIPC\${ac_eB}HAVE_SYSVIPC\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6295 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6296 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6297
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6298 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6299 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6301 # Check for directory variants
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6302
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6303 sysv_system_dir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6304 nonsystem_dir_library=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6305 test -n "$silent" || echo "checking for dirent.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6306 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6307 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6308 #include <dirent.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6309 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6310 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6311 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6312 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6313 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6314 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6315 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6316 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6317 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6318 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6319 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6320 sysv_system_dir=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6321
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6322 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6323 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6324
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6325 if test -z "$sysv_system_dir" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6326 test -n "$silent" || echo "checking for sys/dir.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6327 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6328 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6329 #include <sys/dir.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6330 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6331 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6332 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6333 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6334 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6335 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6336 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6337 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6338 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6339 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6340 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6341 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6342 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6343 nonsystem_dir_library=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6344 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6345 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6346
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6347 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6348 if test -n "$sysv_system_dir" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6349
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6350 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6351 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6352 echo " defining SYSV_SYSTEM_DIR"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6353 echo "#define" SYSV_SYSTEM_DIR "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6354 DEFS="$DEFS -DSYSV_SYSTEM_DIR=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6355 ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSV_SYSTEM_DIR\${ac_dB}SYSV_SYSTEM_DIR\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6356 \${ac_uA}SYSV_SYSTEM_DIR\${ac_uB}SYSV_SYSTEM_DIR\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6357 \${ac_eA}SYSV_SYSTEM_DIR\${ac_eB}SYSV_SYSTEM_DIR\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6358 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6359 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6360
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6361 elif test -n "$nonsystem_dir_library" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6362
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6363 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6364 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6365 echo " defining NONSYSTEM_DIR_LIBRARY"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6366 echo "#define" NONSYSTEM_DIR_LIBRARY "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6367 DEFS="$DEFS -DNONSYSTEM_DIR_LIBRARY=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6368 ac_sed_defs="${ac_sed_defs}\${ac_dA}NONSYSTEM_DIR_LIBRARY\${ac_dB}NONSYSTEM_DIR_LIBRARY\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6369 \${ac_uA}NONSYSTEM_DIR_LIBRARY\${ac_uB}NONSYSTEM_DIR_LIBRARY\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6370 \${ac_eA}NONSYSTEM_DIR_LIBRARY\${ac_eB}NONSYSTEM_DIR_LIBRARY\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6371 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6372 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6373
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6374 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6375
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6376 # Check for terminal I/O variants
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6377
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6378 echo "checking how to do terminal I/O"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6379
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6380 have_termios=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6381 have_termio=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6382 test -n "$silent" || echo "checking for termios.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6383 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6384 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6385 #include <termios.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6386 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6387 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6388 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6389 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6390 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6391 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6392 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6393 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6394 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6395 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6396 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6397 have_termios=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6398
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6399 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6400 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6401
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6402 # TERMIOS systems may have termio.h, but not vice-versa, I think.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6403 if test -z "$have_termios" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6404 test -n "$silent" || echo "checking for termio.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6405 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6406 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6407 #include <termio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6408 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6409 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6410 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6411 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6412 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6413 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6414 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6415 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6416 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6417 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6418 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6419 have_termio=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6420
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6421 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6422 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6423
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6424 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6425 if test -n "$have_termios" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6426
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6427 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6428 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6429 echo " defining HAVE_TERMIOS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6430 echo "#define" HAVE_TERMIOS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6431 DEFS="$DEFS -DHAVE_TERMIOS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6432 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIOS\${ac_dB}HAVE_TERMIOS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6433 \${ac_uA}HAVE_TERMIOS\${ac_uB}HAVE_TERMIOS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6434 \${ac_eA}HAVE_TERMIOS\${ac_eB}HAVE_TERMIOS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6435 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6436 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6437
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6438 elif test -n "$have_termio" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6439
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6440 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6441 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6442 echo " defining HAVE_TERMIO"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6443 echo "#define" HAVE_TERMIO "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6444 DEFS="$DEFS -DHAVE_TERMIO=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6445 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIO\${ac_dB}HAVE_TERMIO\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6446 \${ac_uA}HAVE_TERMIO\${ac_uB}HAVE_TERMIO\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6447 \${ac_eA}HAVE_TERMIO\${ac_eB}HAVE_TERMIO\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6448 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6449 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6450
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6451 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6452
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6453 # Check for nlist.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6454 test -n "$silent" || echo "checking for nlist.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6455 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6456 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6457 #include <nlist.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6458 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6459 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6460 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6461 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6462 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6463 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6464 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6465 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6466 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6467 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6468 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6469
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6470 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6471 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6472 echo " defining NLIST_STRUCT"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6473 echo "#define" NLIST_STRUCT "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6474 DEFS="$DEFS -DNLIST_STRUCT=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6475 ac_sed_defs="${ac_sed_defs}\${ac_dA}NLIST_STRUCT\${ac_dB}NLIST_STRUCT\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6476 \${ac_uA}NLIST_STRUCT\${ac_uB}NLIST_STRUCT\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6477 \${ac_eA}NLIST_STRUCT\${ac_eB}NLIST_STRUCT\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6478 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6479 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6480
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6481
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6482 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6483 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6484
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6485
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6486 if test -f /usr/lpp/X11/bin/smt.exp ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6487
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6488 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6489 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6490 echo " defining" AIX_SMT_EXP to be "-bI:/usr/lpp/X11/bin/smt.exp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6491 echo "#define" AIX_SMT_EXP "-bI:/usr/lpp/X11/bin/smt.exp" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6492 DEFS="$DEFS -DAIX_SMT_EXP=-bI:/usr/lpp/X11/bin/smt.exp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6493 ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6494 \${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6495 \${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6496 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6497 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6498
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6499 elif test -f /usr/bin/X11/smt.exp ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6500
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6501 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6502 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6503 echo " defining" AIX_SMT_EXP to be "-bI:/usr/bin/X11/smt.exp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6504 echo "#define" AIX_SMT_EXP "-bI:/usr/bin/X11/smt.exp" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6505 DEFS="$DEFS -DAIX_SMT_EXP=-bI:/usr/bin/X11/smt.exp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6506 ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}-bI:/usr/bin/X11/smt.exp\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6507 \${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:/usr/bin/X11/smt.exp\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6508 \${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:/usr/bin/X11/smt.exp\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6509 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6510 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6511
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6512 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6513
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6514 # Set up the CFLAGS for real compilation, so we can substitute it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6515 CFLAGS="$REAL_CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6516
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6517
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6518 #### Find out which version of XEmacs this is.
52
461c7ba8286a Import from CVS: tag r19-16-pre1
cvs
parents: 50
diff changeset
6519 version="19.16"
461c7ba8286a Import from CVS: tag r19-16-pre1
cvs
parents: 50
diff changeset
6520 beta=""
461c7ba8286a Import from CVS: tag r19-16-pre1
cvs
parents: 50
diff changeset
6521 alpha=""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6522 if [ "X$beta" != "X" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6523 version=${version}-b${beta}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6524 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6525 if [ "X$alpha" != "X" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6526 version=${version}-a${alpha}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6527 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6528 if [ x"${version}" = x ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6529 echo "${progname}: can't find current emacs version in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6530 \`${srcdir}/lisp/version.el'." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6531 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6532 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6533
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6534 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6535 # Check for sound of various sorts.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6536 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6537
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6538 # the following needs to be fixed for SGI.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6539 if [ -z "${native_sound_lib}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6540 if [ -r /usr/demo/SOUND/lib/libaudio.a ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6541 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6542 elif [ -r /usr/demo/SOUND/libaudio.a ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6543 native_sound_lib=/usr/demo/SOUND/libaudio.a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6544 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6545 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6546 *-sgi-* ) native_sound_lib=-laudio ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6547 hppa*-hp-hpux* ) native_sound_lib=-lAlib ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6548 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6549 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6550 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6551
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6552 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
6553 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
6554 with_sound="native"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6555 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6556 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6557 *-sgi-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6558 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6559 LIBS="${LIBS} -laudio"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6560 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6561 test -n "$silent" || echo "checking for -laudio"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6562 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6563 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6564
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6565 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6566 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6567 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6568 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6569 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6570 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6571
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6572 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6573 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6574 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6575 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6576 :; with_sound="native"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6577 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6578 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6579 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6580
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6581 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6582 hppa*-hp-hpux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6583 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6584 LIBS="${LIBS} -lAlib"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6585 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6586 test -n "$silent" || echo "checking for -lAlib"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6587 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6588 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6589
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6590 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6591 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6592 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6593 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6594 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6595 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6596
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6597 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6598 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6599 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6600 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6601 :; with_sound="native"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6602 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6603 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6604 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6605
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6606 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6607 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6608 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6609 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6610
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6611 #### If the nas library doesn't contain the error jump point, then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6612 #### we force safer behaviour.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6613
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6614 if [ "${with_sound}" = "nas" ] || [ "${with_sound}" = "both" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6615 echo '#include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6616 #include <audio/Xtutil.h>' > conftest.${ac_ext}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6617 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6618 if egrep "AuXtErrorJump" conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6619 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6620 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6621 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6622 old_nas=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6623 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6624 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6625
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6626 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6627
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6628 if [ "${with_tooltalk}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6629 for arg in ${DEFS} "-I/usr/include" "-I${OPENWINHOME-/usr/openwin}/include"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6630 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6631 if [ -f `echo "${arg}/desktop/tt_c.h" | sed 's/^\-I//'` ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6632 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}/desktop"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6633 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6634 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6635
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6636 for arg in ${LIBS} "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6637 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6638 case "${arg}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6639 -L*) if [ -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6640 dash_r=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6641 if [ -n "${add_runtime_flag}" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6642 dash_r=`echo ${arg} | sed "s/^-L/-R${dash_r_space}/"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6643 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6644 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6645 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6646 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6647 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6648 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6649 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6650
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6651 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6652 # Check for ncurses.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6653 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6654
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6655 if [ "${with_tty}" != "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6656 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6657 LIBS="${LIBS} -lncurses"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6658 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6659 test -n "$silent" || echo "checking for -lncurses"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6660 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6661 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6662
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6663 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6664 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6665 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6666 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6667 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6668 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6669
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6670 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6671 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6672 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6673 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6674 :; have_ncurses=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6675 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6676 :; have_ncurses=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6677 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6678
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6679 if [ "${have_ncurses}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6680
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6681 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6682 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6683 echo " defining HAVE_NCURSES"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6684 echo "#define" HAVE_NCURSES "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6685 DEFS="$DEFS -DHAVE_NCURSES=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6686 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES\${ac_dB}HAVE_NCURSES\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6687 \${ac_uA}HAVE_NCURSES\${ac_uB}HAVE_NCURSES\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6688 \${ac_eA}HAVE_NCURSES\${ac_eB}HAVE_NCURSES\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6689 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6690 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6691
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6692 test -n "$silent" || echo "checking for ncurses/term.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6693 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6694 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6695 #include <ncurses/term.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6696 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6697 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6698 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6699 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6700 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6701 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6702 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6703 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6704 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6705 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6706 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6707 have_ncurses_term_h=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6708
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6709 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6710 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6711 have_ncurses_term_h=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6712 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6713 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6714
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6715 if [ "${have_ncurses_term_h}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6716
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6717 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6718 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6719 echo " defining HAVE_NCURSES_TERM_H"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6720 echo "#define" HAVE_NCURSES_TERM_H "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6721 DEFS="$DEFS -DHAVE_NCURSES_TERM_H=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6722 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES_TERM_H\${ac_dB}HAVE_NCURSES_TERM_H\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6723 \${ac_uA}HAVE_NCURSES_TERM_H\${ac_uB}HAVE_NCURSES_TERM_H\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6724 \${ac_eA}HAVE_NCURSES_TERM_H\${ac_eB}HAVE_NCURSES_TERM_H\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6725 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6726 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6727
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6728 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6729 test -n "$silent" || echo "checking for ncurses/curses.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6730 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6731 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6732 #include <ncurses/curses.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6733 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6734 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6735 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6736 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6737 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6738 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6739 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6740 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6741 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6742 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6743 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6744 have_ncurses_curses_h=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6745
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6746 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6747 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6748 have_ncurses_curses_h=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6749 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6750 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6751
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6752 if [ "${have_ncurses_curses_h}" = "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6753 # Try again, and check for the bogus ncurses/ include bug.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6754 # (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6755 # <ncurses/unctrl.h>)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6756 OLD_CPP="${CPP}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6757 CPP="${CPP} -I/usr/include/ncurses"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6758 test -n "$silent" || echo "checking for ncurses/curses.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6759 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6760 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6761 #include <ncurses/curses.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6762 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6763 # Some shells (Coherent) do redirections in the wrong order, so need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6764 # the parens.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6765 # The exec was added by Mly to make this work under BSDI
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6766 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6767 # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6768 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6769 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6770 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6771 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6772 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6773 have_ncurses_curses_h=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6774
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6775 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6776 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6777 have_ncurses_curses_h=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6778 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6779 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6780
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6781 if [ "${have_ncurses_curses_h}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6782 site_includes="${site_includes} /usr/include/ncurses"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6783 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6784 test -n "$verbose" && echo " Your system has the bogus ncurses include bug."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6785 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6786 CPP="${OLD_CPP}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6787 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6788 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6789 if [ "${have_ncurses_curses_h}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6790
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6791 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6792 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6793 echo " defining HAVE_NCURSES_CURSES_H"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6794 echo "#define" HAVE_NCURSES_CURSES_H "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6795 DEFS="$DEFS -DHAVE_NCURSES_CURSES_H=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6796 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NCURSES_CURSES_H\${ac_dB}HAVE_NCURSES_CURSES_H\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6797 \${ac_uA}HAVE_NCURSES_CURSES_H\${ac_uB}HAVE_NCURSES_CURSES_H\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6798 \${ac_eA}HAVE_NCURSES_CURSES_H\${ac_eB}HAVE_NCURSES_CURSES_H\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6799 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6800 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6801
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6802 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6803 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6804 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6805
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6806 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6807 # Check for database support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6808 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6809
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6810
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6811 if [ "${with_database_berkdb}" != "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6812 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6813 LIBS="${LIBS} -ldb"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6814 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6815 test -n "$silent" || echo "checking for -ldb"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6816 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6817 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6818
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6819 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6820 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6821 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6822 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6823 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6824 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6825
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6826 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6827 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6828 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6829 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6830 :; have_libdb=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6831 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6832 :; have_libdb=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6833 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6834
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6835 if [ "${have_libdb}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6836
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6837 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6838 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6839 echo " defining HAVE_LIBDB"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6840 echo "#define" HAVE_LIBDB "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6841 DEFS="$DEFS -DHAVE_LIBDB=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6842 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDB\${ac_dB}HAVE_LIBDB\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6843 \${ac_uA}HAVE_LIBDB\${ac_uB}HAVE_LIBDB\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6844 \${ac_eA}HAVE_LIBDB\${ac_eB}HAVE_LIBDB\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6845 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6846 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6847
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6848 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6849 if [ "${with_database_berkdb}" != "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6850 if [ "${have_libdb}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6851 with_database_berkdb=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6852 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6853 test -n "$silent" || echo "checking for dbopen"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6854 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6855 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6856 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6857 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6858 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6859 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6860 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6861 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6862 #if defined (__stub_dbopen) || defined (__stub___dbopen)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6863 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6864 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6865 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6866 extern char dbopen(); dbopen();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6867 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6868 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6869 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6870 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6871 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6872 have_dbopen=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6873
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6874 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6875 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6876 have_dbopen=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6877 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6878 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6879
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6880 if [ "${have_dbopen}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6881 with_database_berkdb=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6882 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6883 with_database_berkdb=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6884 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6885 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6886 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6887 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6888 if [ "${with_database_berkdb}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6889
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6890 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6891 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6892 echo " defining HAVE_BERKELEY_DB"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6893 echo "#define" HAVE_BERKELEY_DB "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6894 DEFS="$DEFS -DHAVE_BERKELEY_DB=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6895 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_BERKELEY_DB\${ac_dB}HAVE_BERKELEY_DB\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6896 \${ac_uA}HAVE_BERKELEY_DB\${ac_uB}HAVE_BERKELEY_DB\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6897 \${ac_eA}HAVE_BERKELEY_DB\${ac_eB}HAVE_BERKELEY_DB\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6898 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6899 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6900
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6901 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6902
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6903 if [ "${with_database_gnudbm}" != "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6904 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6905 LIBS="${LIBS} -lgdbm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6906 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6907 test -n "$silent" || echo "checking for -lgdbm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6908 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6909 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6910
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6911 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6912 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6913 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6914 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6915 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6916 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6917
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6918 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6919 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6920 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6921 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6922 :; have_libgdbm=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6923 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6924 :; have_libgdbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6925 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6926
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6927 if [ "${have_libgdbm}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6928
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6929 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6930 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6931 echo " defining HAVE_LIBGDBM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6932 echo "#define" HAVE_LIBGDBM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6933 DEFS="$DEFS -DHAVE_LIBGDBM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6934 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBGDBM\${ac_dB}HAVE_LIBGDBM\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6935 \${ac_uA}HAVE_LIBGDBM\${ac_uB}HAVE_LIBGDBM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6936 \${ac_eA}HAVE_LIBGDBM\${ac_eB}HAVE_LIBGDBM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6937 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6938 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6939
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6940 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6941 if [ "${with_database_gnudbm}" != "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6942 if [ "${have_libgdbm}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6943 with_database_gnudbm=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6944 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6945 with_database_gnudbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6946 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6947 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6948 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6949 if [ "${with_database_gnudbm}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6950
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6951 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6952 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6953 echo " defining HAVE_DBM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6954 echo "#define" HAVE_DBM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6955 DEFS="$DEFS -DHAVE_DBM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6956 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DBM\${ac_dB}HAVE_DBM\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6957 \${ac_uA}HAVE_DBM\${ac_uB}HAVE_DBM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6958 \${ac_eA}HAVE_DBM\${ac_eB}HAVE_DBM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6959 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6960 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6961
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6962
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6963 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6964 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6965 echo " defining HAVE_GNU_DBM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6966 echo "#define" HAVE_GNU_DBM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6967 DEFS="$DEFS -DHAVE_GNU_DBM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6968 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_GNU_DBM\${ac_dB}HAVE_GNU_DBM\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6969 \${ac_uA}HAVE_GNU_DBM\${ac_uB}HAVE_GNU_DBM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6970 \${ac_eA}HAVE_GNU_DBM\${ac_eB}HAVE_GNU_DBM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6971 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6972 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6973
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6974 with_database_dbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6975 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6976
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6977 if [ "${with_database_dbm}" != "no" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6978 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6979 LIBS="${LIBS} -ldbm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6980 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6981 test -n "$silent" || echo "checking for -ldbm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6982 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6983 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6984
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6985 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6986 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6987 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6988 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6989 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6990 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6991
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6992 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6993 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6994 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6995 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6996 :; have_libdbm=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6997 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6998 :; have_libdbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6999 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7001 if [ "${have_libdbm}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7002
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7003 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7004 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7005 echo " defining HAVE_LIBDBM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7006 echo "#define" HAVE_LIBDBM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7007 DEFS="$DEFS -DHAVE_LIBDBM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7008 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDBM\${ac_dB}HAVE_LIBDBM\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7009 \${ac_uA}HAVE_LIBDBM\${ac_uB}HAVE_LIBDBM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7010 \${ac_eA}HAVE_LIBDBM\${ac_eB}HAVE_LIBDBM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7011 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7012 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7013
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7014 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7015 if [ "${with_database_dbm}" != "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7016 if [ "${have_libdbm}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7017 with_database_dbm=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7018 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7019 test -n "$silent" || echo "checking for dbm_open"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7020 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7021 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7022 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7023 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7024 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7025 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7026 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7027 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7028 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7029 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7030 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7031 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7032 extern char dbm_open(); dbm_open();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7033 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7034 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7035 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7036 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7037 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7038 have_dbm_open=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7039
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7040 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7041 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7042 have_dbm_open=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7043 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7044 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7045
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7046 if [ "${have_dbm_open}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7047 with_database_dbm=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7048 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7049 with_database_dbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7050 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7051 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7052 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7053 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7054 if [ "${with_database_dbm}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7055
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7056 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7057 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7058 echo " defining HAVE_DBM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7059 echo "#define" HAVE_DBM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7060 DEFS="$DEFS -DHAVE_DBM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7061 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DBM\${ac_dB}HAVE_DBM\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7062 \${ac_uA}HAVE_DBM\${ac_uB}HAVE_DBM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7063 \${ac_eA}HAVE_DBM\${ac_eB}HAVE_DBM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7064 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7065 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7066
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7067 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7068
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7069
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7070 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7071 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7072 # Substitute into Makefile and config.h #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7073 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7074 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7075
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7076 ### 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
7077 ### Use configuration here uncanonicalized to avoid exceeding size limits.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7078
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7079
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7080
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7081
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7082
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7083
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7084
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7085
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7086
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7087
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7088
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7089
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7090
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7091
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7092
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7093
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7094
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7095
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7096
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7097
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7098
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7099
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7101
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7102
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7103
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7105
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7107
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7108
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7110
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7111
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7112
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7113
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7114
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7115
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7116
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7117
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7118
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7119 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7120 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7121 echo " defining" EMACS_CONFIGURATION to be ""\"${canonical}\"""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7122 echo "#define" EMACS_CONFIGURATION ""\"${canonical}\""" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7123 DEFS="$DEFS -DEMACS_CONFIGURATION="\"${canonical}\"""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7124 ac_sed_defs="${ac_sed_defs}\${ac_dA}EMACS_CONFIGURATION\${ac_dB}EMACS_CONFIGURATION\${ac_dC}"\"${canonical}\""\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7125 \${ac_uA}EMACS_CONFIGURATION\${ac_uB}EMACS_CONFIGURATION\${ac_uC}"\"${canonical}\""\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7126 \${ac_eA}EMACS_CONFIGURATION\${ac_eB}EMACS_CONFIGURATION\${ac_eC}"\"${canonical}\""\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7127 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7128 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7130
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7131 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7132 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7133 echo " defining" config_machfile to be ""\"${machfile}\"""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7134 echo "#define" config_machfile ""\"${machfile}\""" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7135 DEFS="$DEFS -Dconfig_machfile="\"${machfile}\"""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7136 ac_sed_defs="${ac_sed_defs}\${ac_dA}config_machfile\${ac_dB}config_machfile\${ac_dC}"\"${machfile}\""\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7137 \${ac_uA}config_machfile\${ac_uB}config_machfile\${ac_uC}"\"${machfile}\""\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7138 \${ac_eA}config_machfile\${ac_eB}config_machfile\${ac_eC}"\"${machfile}\""\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7139 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7140 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7141
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7142
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7143 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7144 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7145 echo " defining" config_opsysfile to be ""\"${opsysfile}\"""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7146 echo "#define" config_opsysfile ""\"${opsysfile}\""" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7147 DEFS="$DEFS -Dconfig_opsysfile="\"${opsysfile}\"""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7148 ac_sed_defs="${ac_sed_defs}\${ac_dA}config_opsysfile\${ac_dB}config_opsysfile\${ac_dC}"\"${opsysfile}\""\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7149 \${ac_uA}config_opsysfile\${ac_uB}config_opsysfile\${ac_uC}"\"${opsysfile}\""\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7150 \${ac_eA}config_opsysfile\${ac_eB}config_opsysfile\${ac_eC}"\"${opsysfile}\""\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7151 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7152 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7153
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7154
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7155 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7156 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7157 echo " defining" LD_SWITCH_X_SITE to be "${LD_SWITCH_X_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7158 echo "#define" LD_SWITCH_X_SITE "${LD_SWITCH_X_SITE}" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7159 DEFS="$DEFS -DLD_SWITCH_X_SITE=${LD_SWITCH_X_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7160 ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_X_SITE\${ac_dB}LD_SWITCH_X_SITE\${ac_dC}${LD_SWITCH_X_SITE}\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7161 \${ac_uA}LD_SWITCH_X_SITE\${ac_uB}LD_SWITCH_X_SITE\${ac_uC}${LD_SWITCH_X_SITE}\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7162 \${ac_eA}LD_SWITCH_X_SITE\${ac_eB}LD_SWITCH_X_SITE\${ac_eC}${LD_SWITCH_X_SITE}\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7163 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7164 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7165
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7166
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7167 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7168 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7169 echo " defining" LD_SWITCH_X_SITE_AUX to be "${LD_SWITCH_X_SITE_AUX}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7170 echo "#define" LD_SWITCH_X_SITE_AUX "${LD_SWITCH_X_SITE_AUX}" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7171 DEFS="$DEFS -DLD_SWITCH_X_SITE_AUX=${LD_SWITCH_X_SITE_AUX}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7172 ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_X_SITE_AUX\${ac_dB}LD_SWITCH_X_SITE_AUX\${ac_dC}${LD_SWITCH_X_SITE_AUX}\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7173 \${ac_uA}LD_SWITCH_X_SITE_AUX\${ac_uB}LD_SWITCH_X_SITE_AUX\${ac_uC}${LD_SWITCH_X_SITE_AUX}\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7174 \${ac_eA}LD_SWITCH_X_SITE_AUX\${ac_eB}LD_SWITCH_X_SITE_AUX\${ac_eC}${LD_SWITCH_X_SITE_AUX}\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7175 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7176 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7177
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7178
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7179 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7180 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7181 echo " defining" C_SWITCH_X_SITE to be "${C_SWITCH_X_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7182 echo "#define" C_SWITCH_X_SITE "${C_SWITCH_X_SITE}" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7183 DEFS="$DEFS -DC_SWITCH_X_SITE=${C_SWITCH_X_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7184 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_SWITCH_X_SITE\${ac_dB}C_SWITCH_X_SITE\${ac_dC}${C_SWITCH_X_SITE}\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7185 \${ac_uA}C_SWITCH_X_SITE\${ac_uB}C_SWITCH_X_SITE\${ac_uC}${C_SWITCH_X_SITE}\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7186 \${ac_eA}C_SWITCH_X_SITE\${ac_eB}C_SWITCH_X_SITE\${ac_eC}${C_SWITCH_X_SITE}\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7187 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7188 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7189
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7190
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7191 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7192 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7193 echo " defining" LD_SWITCH_SITE to be "${LD_SWITCH_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7194 echo "#define" LD_SWITCH_SITE "${LD_SWITCH_SITE}" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7195 DEFS="$DEFS -DLD_SWITCH_SITE=${LD_SWITCH_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7196 ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_SITE\${ac_dB}LD_SWITCH_SITE\${ac_dC}${LD_SWITCH_SITE}\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7197 \${ac_uA}LD_SWITCH_SITE\${ac_uB}LD_SWITCH_SITE\${ac_uC}${LD_SWITCH_SITE}\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7198 \${ac_eA}LD_SWITCH_SITE\${ac_eB}LD_SWITCH_SITE\${ac_eC}${LD_SWITCH_SITE}\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7199 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7200 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7201
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7202
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7203 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7204 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7205 echo " defining" C_SWITCH_SITE to be "${C_SWITCH_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7206 echo "#define" C_SWITCH_SITE "${C_SWITCH_SITE}" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7207 DEFS="$DEFS -DC_SWITCH_SITE=${C_SWITCH_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7208 ac_sed_defs="${ac_sed_defs}\${ac_dA}C_SWITCH_SITE\${ac_dB}C_SWITCH_SITE\${ac_dC}${C_SWITCH_SITE}\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7209 \${ac_uA}C_SWITCH_SITE\${ac_uB}C_SWITCH_SITE\${ac_uC}${C_SWITCH_SITE}\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7210 \${ac_eA}C_SWITCH_SITE\${ac_eB}C_SWITCH_SITE\${ac_eC}${C_SWITCH_SITE}\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7211 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7212 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7213
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7214
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7215 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7216 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7217 echo " defining" UNEXEC_SRC to be "${UNEXEC_SRC}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7218 echo "#define" UNEXEC_SRC "${UNEXEC_SRC}" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7219 DEFS="$DEFS -DUNEXEC_SRC=${UNEXEC_SRC}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7220 ac_sed_defs="${ac_sed_defs}\${ac_dA}UNEXEC_SRC\${ac_dB}UNEXEC_SRC\${ac_dC}${UNEXEC_SRC}\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7221 \${ac_uA}UNEXEC_SRC\${ac_uB}UNEXEC_SRC\${ac_uC}${UNEXEC_SRC}\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7222 \${ac_eA}UNEXEC_SRC\${ac_eB}UNEXEC_SRC\${ac_eC}${UNEXEC_SRC}\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7223 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7224 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7225
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7226
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7227
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7228
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7229 # Note: as a general rule, *only* define things here that are not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7230 # autodetected. For things that are autodetected, define them
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7231 # at the point where the autodetection occurs or would occur,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7232 # so that the user gets immediate feedback on the results of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7233 # autodetection.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7234
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7235 if [ x"${puresize}" != x ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7236
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7237 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7238 test -n "$verbose" && \
28
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
7239 echo " defining" RAW_PURESIZE to be "${puresize}"
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
7240 echo "#define" RAW_PURESIZE "${puresize}" >> confdefs.h
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
7241 DEFS="$DEFS -DRAW_PURESIZE=${puresize}"
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
7242 ac_sed_defs="${ac_sed_defs}\${ac_dA}RAW_PURESIZE\${ac_dB}RAW_PURESIZE\${ac_dC}${puresize}\${ac_dD}
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
7243 \${ac_uA}RAW_PURESIZE\${ac_uB}RAW_PURESIZE\${ac_uC}${puresize}\${ac_uD}
1917ad0d78d7 Import from CVS: tag r19-15b97
cvs
parents: 26
diff changeset
7244 \${ac_eA}RAW_PURESIZE\${ac_eB}RAW_PURESIZE\${ac_eC}${puresize}\${ac_eD}
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7245 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7246 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7247
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7248 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7249 if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7250
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7251 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7252 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7253 echo " defining HAVE_X_WINDOWS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7254 echo "#define" HAVE_X_WINDOWS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7255 DEFS="$DEFS -DHAVE_X_WINDOWS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7256 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_X_WINDOWS\${ac_dB}HAVE_X_WINDOWS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7257 \${ac_uA}HAVE_X_WINDOWS\${ac_uB}HAVE_X_WINDOWS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7258 \${ac_eA}HAVE_X_WINDOWS\${ac_eB}HAVE_X_WINDOWS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7259 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7260 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7261
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7262 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7263 if [ "${HAVE_XFREE386}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7264
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7265 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7266 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7267 echo " defining HAVE_XFREE386"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7268 echo "#define" HAVE_XFREE386 "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7269 DEFS="$DEFS -DHAVE_XFREE386=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7270 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XFREE386\${ac_dB}HAVE_XFREE386\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7271 \${ac_uA}HAVE_XFREE386\${ac_uB}HAVE_XFREE386\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7272 \${ac_eA}HAVE_XFREE386\${ac_eB}HAVE_XFREE386\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7273 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7274 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7275
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7276 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7277 if [ "${GNU_MALLOC}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7278
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7279 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7280 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7281 echo " defining GNU_MALLOC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7282 echo "#define" GNU_MALLOC "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7283 DEFS="$DEFS -DGNU_MALLOC=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7284 ac_sed_defs="${ac_sed_defs}\${ac_dA}GNU_MALLOC\${ac_dB}GNU_MALLOC\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7285 \${ac_uA}GNU_MALLOC\${ac_uB}GNU_MALLOC\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7286 \${ac_eA}GNU_MALLOC\${ac_eB}GNU_MALLOC\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7287 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7288 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7289
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7290 elif [ "${use_system_malloc}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7291
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7292 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7293 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7294 echo " defining USE_SYSTEM_MALLOC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7295 echo "#define" USE_SYSTEM_MALLOC "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7296 DEFS="$DEFS -DUSE_SYSTEM_MALLOC=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7297 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_SYSTEM_MALLOC\${ac_dB}USE_SYSTEM_MALLOC\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7298 \${ac_uA}USE_SYSTEM_MALLOC\${ac_uB}USE_SYSTEM_MALLOC\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7299 \${ac_eA}USE_SYSTEM_MALLOC\${ac_eB}USE_SYSTEM_MALLOC\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7300 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7301 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7302
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7303 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7304 if [ "${rel_alloc}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7305
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7306 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7307 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7308 echo " defining REL_ALLOC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7309 echo "#define" REL_ALLOC "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7310 DEFS="$DEFS -DREL_ALLOC=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7311 ac_sed_defs="${ac_sed_defs}\${ac_dA}REL_ALLOC\${ac_dB}REL_ALLOC\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7312 \${ac_uA}REL_ALLOC\${ac_uB}REL_ALLOC\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7313 \${ac_eA}REL_ALLOC\${ac_eB}REL_ALLOC\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7314 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7315 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7316
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7317 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7318 if [ "${LISP_FLOAT_TYPE}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7319
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7320 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7321 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7322 echo " defining LISP_FLOAT_TYPE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7323 echo "#define" LISP_FLOAT_TYPE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7324 DEFS="$DEFS -DLISP_FLOAT_TYPE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7325 ac_sed_defs="${ac_sed_defs}\${ac_dA}LISP_FLOAT_TYPE\${ac_dB}LISP_FLOAT_TYPE\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7326 \${ac_uA}LISP_FLOAT_TYPE\${ac_uB}LISP_FLOAT_TYPE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7327 \${ac_eA}LISP_FLOAT_TYPE\${ac_eB}LISP_FLOAT_TYPE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7328 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7329 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7330
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7331 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7332 if [ "${with_motif}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7333
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7334 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7335 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7336 echo " defining LWLIB_USES_MOTIF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7337 echo "#define" LWLIB_USES_MOTIF "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7338 DEFS="$DEFS -DLWLIB_USES_MOTIF=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7339 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_USES_MOTIF\${ac_dB}LWLIB_USES_MOTIF\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7340 \${ac_uA}LWLIB_USES_MOTIF\${ac_uB}LWLIB_USES_MOTIF\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7341 \${ac_eA}LWLIB_USES_MOTIF\${ac_eB}LWLIB_USES_MOTIF\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7342 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7343 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7344
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7345 fi
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7346 if [ "${with_athena}" = "yes" ] ; then
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7347
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7348 {
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7349 test -n "$verbose" && \
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7350 echo " defining LWLIB_USES_ATHENA"
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7351 echo "#define" LWLIB_USES_ATHENA "1" >> confdefs.h
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7352 DEFS="$DEFS -DLWLIB_USES_ATHENA=1"
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7353 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_USES_ATHENA\${ac_dB}LWLIB_USES_ATHENA\${ac_dC}1\${ac_dD}
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7354 \${ac_uA}LWLIB_USES_ATHENA\${ac_uB}LWLIB_USES_ATHENA\${ac_uC}1\${ac_uD}
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7355 \${ac_eA}LWLIB_USES_ATHENA\${ac_eB}LWLIB_USES_ATHENA\${ac_eC}1\${ac_eD}
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7356 "
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7357 }
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7358
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 14
diff changeset
7359 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7360 if [ "${with_menubars}" = "lucid" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7361
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7362 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7363 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7364 echo " defining LWLIB_MENUBARS_LUCID"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7365 echo "#define" LWLIB_MENUBARS_LUCID "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7366 DEFS="$DEFS -DLWLIB_MENUBARS_LUCID=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7367 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_LUCID\${ac_dB}LWLIB_MENUBARS_LUCID\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7368 \${ac_uA}LWLIB_MENUBARS_LUCID\${ac_uB}LWLIB_MENUBARS_LUCID\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7369 \${ac_eA}LWLIB_MENUBARS_LUCID\${ac_eB}LWLIB_MENUBARS_LUCID\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7370 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7371 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7372
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7373
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7374 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7375 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7376 echo " defining HAVE_MENUBARS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7377 echo "#define" HAVE_MENUBARS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7378 DEFS="$DEFS -DHAVE_MENUBARS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7379 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MENUBARS\${ac_dB}HAVE_MENUBARS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7380 \${ac_uA}HAVE_MENUBARS\${ac_uB}HAVE_MENUBARS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7381 \${ac_eA}HAVE_MENUBARS\${ac_eB}HAVE_MENUBARS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7382 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7383 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7384
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7385 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7386 if [ "${with_menubars}" = "motif" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7387
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7388 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7389 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7390 echo " defining LWLIB_MENUBARS_MOTIF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7391 echo "#define" LWLIB_MENUBARS_MOTIF "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7392 DEFS="$DEFS -DLWLIB_MENUBARS_MOTIF=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7393 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_MOTIF\${ac_dB}LWLIB_MENUBARS_MOTIF\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7394 \${ac_uA}LWLIB_MENUBARS_MOTIF\${ac_uB}LWLIB_MENUBARS_MOTIF\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7395 \${ac_eA}LWLIB_MENUBARS_MOTIF\${ac_eB}LWLIB_MENUBARS_MOTIF\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7396 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7397 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7398
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7399
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7400 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7401 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7402 echo " defining HAVE_MENUBARS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7403 echo "#define" HAVE_MENUBARS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7404 DEFS="$DEFS -DHAVE_MENUBARS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7405 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MENUBARS\${ac_dB}HAVE_MENUBARS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7406 \${ac_uA}HAVE_MENUBARS\${ac_uB}HAVE_MENUBARS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7407 \${ac_eA}HAVE_MENUBARS\${ac_eB}HAVE_MENUBARS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7408 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7409 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7410
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7411 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7412 if [ "${with_scrollbars}" = "lucid" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7413
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7414 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7415 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7416 echo " defining LWLIB_SCROLLBARS_LUCID"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7417 echo "#define" LWLIB_SCROLLBARS_LUCID "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7418 DEFS="$DEFS -DLWLIB_SCROLLBARS_LUCID=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7419 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_LUCID\${ac_dB}LWLIB_SCROLLBARS_LUCID\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7420 \${ac_uA}LWLIB_SCROLLBARS_LUCID\${ac_uB}LWLIB_SCROLLBARS_LUCID\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7421 \${ac_eA}LWLIB_SCROLLBARS_LUCID\${ac_eB}LWLIB_SCROLLBARS_LUCID\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7422 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7423 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7424
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7425
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7426 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7427 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7428 echo " defining HAVE_SCROLLBARS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7429 echo "#define" HAVE_SCROLLBARS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7430 DEFS="$DEFS -DHAVE_SCROLLBARS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7431 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SCROLLBARS\${ac_dB}HAVE_SCROLLBARS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7432 \${ac_uA}HAVE_SCROLLBARS\${ac_uB}HAVE_SCROLLBARS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7433 \${ac_eA}HAVE_SCROLLBARS\${ac_eB}HAVE_SCROLLBARS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7434 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7435 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7436
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7437 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7438 if [ "${with_scrollbars}" = "motif" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7439
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7440 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7441 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7442 echo " defining LWLIB_SCROLLBARS_MOTIF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7443 echo "#define" LWLIB_SCROLLBARS_MOTIF "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7444 DEFS="$DEFS -DLWLIB_SCROLLBARS_MOTIF=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7445 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_MOTIF\${ac_dB}LWLIB_SCROLLBARS_MOTIF\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7446 \${ac_uA}LWLIB_SCROLLBARS_MOTIF\${ac_uB}LWLIB_SCROLLBARS_MOTIF\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7447 \${ac_eA}LWLIB_SCROLLBARS_MOTIF\${ac_eB}LWLIB_SCROLLBARS_MOTIF\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7448 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7449 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7450
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7451
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7452 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7453 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7454 echo " defining HAVE_SCROLLBARS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7455 echo "#define" HAVE_SCROLLBARS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7456 DEFS="$DEFS -DHAVE_SCROLLBARS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7457 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SCROLLBARS\${ac_dB}HAVE_SCROLLBARS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7458 \${ac_uA}HAVE_SCROLLBARS\${ac_uB}HAVE_SCROLLBARS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7459 \${ac_eA}HAVE_SCROLLBARS\${ac_eB}HAVE_SCROLLBARS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7460 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7461 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7462
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7463 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7464 if [ "${with_scrollbars}" = "athena" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7465
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7466 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7467 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7468 echo " defining LWLIB_SCROLLBARS_ATHENA"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7469 echo "#define" LWLIB_SCROLLBARS_ATHENA "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7470 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7471 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA\${ac_dB}LWLIB_SCROLLBARS_ATHENA\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7472 \${ac_uA}LWLIB_SCROLLBARS_ATHENA\${ac_uB}LWLIB_SCROLLBARS_ATHENA\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7473 \${ac_eA}LWLIB_SCROLLBARS_ATHENA\${ac_eB}LWLIB_SCROLLBARS_ATHENA\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7474 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7475 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7476
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7477
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7478 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7479 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7480 echo " defining HAVE_SCROLLBARS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7481 echo "#define" HAVE_SCROLLBARS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7482 DEFS="$DEFS -DHAVE_SCROLLBARS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7483 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SCROLLBARS\${ac_dB}HAVE_SCROLLBARS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7484 \${ac_uA}HAVE_SCROLLBARS\${ac_uB}HAVE_SCROLLBARS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7485 \${ac_eA}HAVE_SCROLLBARS\${ac_eB}HAVE_SCROLLBARS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7486 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7487 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7488
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7489 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7490 if [ "${with_dialogs}" = "motif" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7491
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7492 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7493 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7494 echo " defining LWLIB_DIALOGS_MOTIF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7495 echo "#define" LWLIB_DIALOGS_MOTIF "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7496 DEFS="$DEFS -DLWLIB_DIALOGS_MOTIF=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7497 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_MOTIF\${ac_dB}LWLIB_DIALOGS_MOTIF\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7498 \${ac_uA}LWLIB_DIALOGS_MOTIF\${ac_uB}LWLIB_DIALOGS_MOTIF\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7499 \${ac_eA}LWLIB_DIALOGS_MOTIF\${ac_eB}LWLIB_DIALOGS_MOTIF\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7500 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7501 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7502
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7503
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7504 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7505 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7506 echo " defining HAVE_DIALOGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7507 echo "#define" HAVE_DIALOGS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7508 DEFS="$DEFS -DHAVE_DIALOGS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7509 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DIALOGS\${ac_dB}HAVE_DIALOGS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7510 \${ac_uA}HAVE_DIALOGS\${ac_uB}HAVE_DIALOGS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7511 \${ac_eA}HAVE_DIALOGS\${ac_eB}HAVE_DIALOGS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7512 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7513 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7514
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7515 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7516 if [ "${with_dialogs}" = "athena" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7517
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7518 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7519 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7520 echo " defining LWLIB_DIALOGS_ATHENA"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7521 echo "#define" LWLIB_DIALOGS_ATHENA "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7522 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7523 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA\${ac_dB}LWLIB_DIALOGS_ATHENA\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7524 \${ac_uA}LWLIB_DIALOGS_ATHENA\${ac_uB}LWLIB_DIALOGS_ATHENA\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7525 \${ac_eA}LWLIB_DIALOGS_ATHENA\${ac_eB}LWLIB_DIALOGS_ATHENA\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7526 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7527 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7528
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7529
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7530 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7531 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7532 echo " defining HAVE_DIALOGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7533 echo "#define" HAVE_DIALOGS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7534 DEFS="$DEFS -DHAVE_DIALOGS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7535 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DIALOGS\${ac_dB}HAVE_DIALOGS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7536 \${ac_uA}HAVE_DIALOGS\${ac_uB}HAVE_DIALOGS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7537 \${ac_eA}HAVE_DIALOGS\${ac_eB}HAVE_DIALOGS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7538 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7539 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7540
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7541 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7542 if [ "${with_toolbars}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7543
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7544 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7545 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7546 echo " defining HAVE_TOOLBARS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7547 echo "#define" HAVE_TOOLBARS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7548 DEFS="$DEFS -DHAVE_TOOLBARS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7549 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TOOLBARS\${ac_dB}HAVE_TOOLBARS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7550 \${ac_uA}HAVE_TOOLBARS\${ac_uB}HAVE_TOOLBARS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7551 \${ac_eA}HAVE_TOOLBARS\${ac_eB}HAVE_TOOLBARS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7552 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7553 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7554
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7555 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7556 if [ "${with_tty}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7557
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7558 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7559 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7560 echo " defining HAVE_TTY"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7561 echo "#define" HAVE_TTY "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7562 DEFS="$DEFS -DHAVE_TTY=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7563 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TTY\${ac_dB}HAVE_TTY\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7564 \${ac_uA}HAVE_TTY\${ac_uB}HAVE_TTY\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7565 \${ac_eA}HAVE_TTY\${ac_eB}HAVE_TTY\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7566 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7567 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7568
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7569 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7570 if [ "${with_tooltalk}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7571
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7572 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7573 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7574 echo " defining TOOLTALK"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7575 echo "#define" TOOLTALK "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7576 DEFS="$DEFS -DTOOLTALK=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7577 ac_sed_defs="${ac_sed_defs}\${ac_dA}TOOLTALK\${ac_dB}TOOLTALK\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7578 \${ac_uA}TOOLTALK\${ac_uB}TOOLTALK\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7579 \${ac_eA}TOOLTALK\${ac_eB}TOOLTALK\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7580 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7581 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7582
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7583 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7584 if [ "$with_mocklisp" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7585
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7586 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7587 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7588 echo " defining MOCKLISP_SUPPORT"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7589 echo "#define" MOCKLISP_SUPPORT "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7590 DEFS="$DEFS -DMOCKLISP_SUPPORT=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7591 ac_sed_defs="${ac_sed_defs}\${ac_dA}MOCKLISP_SUPPORT\${ac_dB}MOCKLISP_SUPPORT\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7592 \${ac_uA}MOCKLISP_SUPPORT\${ac_uB}MOCKLISP_SUPPORT\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7593 \${ac_eA}MOCKLISP_SUPPORT\${ac_eB}MOCKLISP_SUPPORT\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7594 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7595 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7596
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7597 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7598 if [ "${with_sparcworks}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7599
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7600 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7601 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7602 echo " defining SUNPRO"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7603 echo "#define" SUNPRO "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7604 DEFS="$DEFS -DSUNPRO=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7605 ac_sed_defs="${ac_sed_defs}\${ac_dA}SUNPRO\${ac_dB}SUNPRO\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7606 \${ac_uA}SUNPRO\${ac_uB}SUNPRO\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7607 \${ac_eA}SUNPRO\${ac_eB}SUNPRO\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7608 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7609 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7610
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7611 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7612 if [ "${usage_tracking}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7613
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7614 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7615 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7616 echo " defining USAGE_TRACKING"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7617 echo "#define" USAGE_TRACKING "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7618 DEFS="$DEFS -DUSAGE_TRACKING=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7619 ac_sed_defs="${ac_sed_defs}\${ac_dA}USAGE_TRACKING\${ac_dB}USAGE_TRACKING\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7620 \${ac_uA}USAGE_TRACKING\${ac_uB}USAGE_TRACKING\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7621 \${ac_eA}USAGE_TRACKING\${ac_eB}USAGE_TRACKING\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7622 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7623 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7624
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7625 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7626 if [ "${with_energize}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7627
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7628 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7629 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7630 echo " defining ENERGIZE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7631 echo "#define" ENERGIZE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7632 DEFS="$DEFS -DENERGIZE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7633 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE\${ac_dB}ENERGIZE\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7634 \${ac_uA}ENERGIZE\${ac_uB}ENERGIZE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7635 \${ac_eA}ENERGIZE\${ac_eB}ENERGIZE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7636 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7637 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7638
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7639 if [ "${energize_version}" = "2.X" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7640
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7641 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7642 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7643 echo " defining ENERGIZE_2"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7644 echo "#define" ENERGIZE_2 "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7645 DEFS="$DEFS -DENERGIZE_2=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7646 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE_2\${ac_dB}ENERGIZE_2\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7647 \${ac_uA}ENERGIZE_2\${ac_uB}ENERGIZE_2\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7648 \${ac_eA}ENERGIZE_2\${ac_eB}ENERGIZE_2\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7649 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7650 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7651
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7652 elif [ "${energize_version}" = "3.X" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7653
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7654 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7655 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7656 echo " defining ENERGIZE_3"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7657 echo "#define" ENERGIZE_3 "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7658 DEFS="$DEFS -DENERGIZE_3=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7659 ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE_3\${ac_dB}ENERGIZE_3\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7660 \${ac_uA}ENERGIZE_3\${ac_uB}ENERGIZE_3\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7661 \${ac_eA}ENERGIZE_3\${ac_eB}ENERGIZE_3\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7662 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7663 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7664
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7665 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7666 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7667 if [ "${need_dynodump}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7668
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7669 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7670 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7671 echo " defining DYNODUMP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7672 echo "#define" DYNODUMP "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7673 DEFS="$DEFS -DDYNODUMP=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7674 ac_sed_defs="${ac_sed_defs}\${ac_dA}DYNODUMP\${ac_dB}DYNODUMP\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7675 \${ac_uA}DYNODUMP\${ac_uB}DYNODUMP\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7676 \${ac_eA}DYNODUMP\${ac_eB}DYNODUMP\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7677 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7678 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7679
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7680 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7681 if [ "${need_xildoff}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7682
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7683 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7684 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7685 echo " defining NEED_XILDOFF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7686 echo "#define" NEED_XILDOFF "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7687 DEFS="$DEFS -DNEED_XILDOFF=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7688 ac_sed_defs="${ac_sed_defs}\${ac_dA}NEED_XILDOFF\${ac_dB}NEED_XILDOFF\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7689 \${ac_uA}NEED_XILDOFF\${ac_uB}NEED_XILDOFF\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7690 \${ac_eA}NEED_XILDOFF\${ac_eB}NEED_XILDOFF\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7691 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7692 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7693
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7694 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7695 if [ "${with_gcc}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7696
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7697 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7698 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7699 echo " defining USE_GCC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7700 echo "#define" USE_GCC "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7701 DEFS="$DEFS -DUSE_GCC=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7702 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_GCC\${ac_dB}USE_GCC\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7703 \${ac_uA}USE_GCC\${ac_uB}USE_GCC\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7704 \${ac_eA}USE_GCC\${ac_eB}USE_GCC\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7705 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7706 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7707
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7708 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7709 if [ "${with_lcc}" = "yes" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7710
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7711 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7712 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7713 echo " defining USE_LCC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7714 echo "#define" USE_LCC "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7715 DEFS="$DEFS -DUSE_LCC=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7716 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_LCC\${ac_dB}USE_LCC\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7717 \${ac_uA}USE_LCC\${ac_uB}USE_LCC\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7718 \${ac_eA}USE_LCC\${ac_eB}USE_LCC\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7719 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7720 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7721
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7722 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7723 if [ "${with_socks}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7724
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7725 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7726 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7727 echo " defining HAVE_SOCKS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7728 echo "#define" HAVE_SOCKS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7729 DEFS="$DEFS -DHAVE_SOCKS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7730 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKS\${ac_dB}HAVE_SOCKS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7731 \${ac_uA}HAVE_SOCKS\${ac_uB}HAVE_SOCKS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7732 \${ac_eA}HAVE_SOCKS\${ac_eB}HAVE_SOCKS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7733 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7734 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7735
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7736 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7737 if [ "${with_term}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7738
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7739 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7740 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7741 echo " defining HAVE_TERM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7742 echo "#define" HAVE_TERM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7743 DEFS="$DEFS -DHAVE_TERM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7744 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERM\${ac_dB}HAVE_TERM\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7745 \${ac_uA}HAVE_TERM\${ac_uB}HAVE_TERM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7746 \${ac_eA}HAVE_TERM\${ac_eB}HAVE_TERM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7747 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7748 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7749
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7750 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7751 if [ "${with_epoch}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7752
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7753 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7754 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7755 echo " defining EPOCH"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7756 echo "#define" EPOCH "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7757 DEFS="$DEFS -DEPOCH=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7758 ac_sed_defs="${ac_sed_defs}\${ac_dA}EPOCH\${ac_dB}EPOCH\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7759 \${ac_uA}EPOCH\${ac_uB}EPOCH\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7760 \${ac_eA}EPOCH\${ac_eB}EPOCH\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7761 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7762 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7763
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7764 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7765 if [ "${with_sound}" = "native" -o "${with_sound}" = "both" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7766
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7767 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7768 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7769 echo " defining HAVE_NATIVE_SOUND"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7770 echo "#define" HAVE_NATIVE_SOUND "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7771 DEFS="$DEFS -DHAVE_NATIVE_SOUND=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7772 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NATIVE_SOUND\${ac_dB}HAVE_NATIVE_SOUND\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7773 \${ac_uA}HAVE_NATIVE_SOUND\${ac_uB}HAVE_NATIVE_SOUND\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7774 \${ac_eA}HAVE_NATIVE_SOUND\${ac_eB}HAVE_NATIVE_SOUND\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7775 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7776 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7777
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7778 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7779 if [ "${with_sound}" = "nas" -o "${with_sound}" = "both" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7780
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7781 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7782 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7783 echo " defining HAVE_NAS_SOUND"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7784 echo "#define" HAVE_NAS_SOUND "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7785 DEFS="$DEFS -DHAVE_NAS_SOUND=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7786 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NAS_SOUND\${ac_dB}HAVE_NAS_SOUND\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7787 \${ac_uA}HAVE_NAS_SOUND\${ac_uB}HAVE_NAS_SOUND\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7788 \${ac_eA}HAVE_NAS_SOUND\${ac_eB}HAVE_NAS_SOUND\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7789 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7790 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7791
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7792 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7793 if [ "${old_nas}" = "true" ] ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7794
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7795 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7796 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7797 echo " defining NAS_NO_ERROR_JUMP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7798 echo "#define" NAS_NO_ERROR_JUMP "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7799 DEFS="$DEFS -DNAS_NO_ERROR_JUMP=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7800 ac_sed_defs="${ac_sed_defs}\${ac_dA}NAS_NO_ERROR_JUMP\${ac_dB}NAS_NO_ERROR_JUMP\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7801 \${ac_uA}NAS_NO_ERROR_JUMP\${ac_uB}NAS_NO_ERROR_JUMP\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7802 \${ac_eA}NAS_NO_ERROR_JUMP\${ac_eB}NAS_NO_ERROR_JUMP\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7803 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7804 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7805
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7806 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7807 if [ "${external_widget}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7808
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7809 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7810 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7811 echo " defining EXTERNAL_WIDGET"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7812 echo "#define" EXTERNAL_WIDGET "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7813 DEFS="$DEFS -DEXTERNAL_WIDGET=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7814 ac_sed_defs="${ac_sed_defs}\${ac_dA}EXTERNAL_WIDGET\${ac_dB}EXTERNAL_WIDGET\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7815 \${ac_uA}EXTERNAL_WIDGET\${ac_uB}EXTERNAL_WIDGET\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7816 \${ac_eA}EXTERNAL_WIDGET\${ac_eB}EXTERNAL_WIDGET\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7817 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7818 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7819
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7820 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7821 if [ "${with_gnu_make}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7822
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7823 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7824 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7825 echo " defining USE_GNU_MAKE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7826 echo "#define" USE_GNU_MAKE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7827 DEFS="$DEFS -DUSE_GNU_MAKE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7828 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_GNU_MAKE\${ac_dB}USE_GNU_MAKE\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7829 \${ac_uA}USE_GNU_MAKE\${ac_uB}USE_GNU_MAKE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7830 \${ac_eA}USE_GNU_MAKE\${ac_eB}USE_GNU_MAKE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7831 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7832 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7833
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7834 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7835 if [ "${no_doc_file}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7836
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7837 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7838 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7839 echo " defining NO_DOC_FILE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7840 echo "#define" NO_DOC_FILE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7841 DEFS="$DEFS -DNO_DOC_FILE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7842 ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_DOC_FILE\${ac_dB}NO_DOC_FILE\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7843 \${ac_uA}NO_DOC_FILE\${ac_uB}NO_DOC_FILE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7844 \${ac_eA}NO_DOC_FILE\${ac_eB}NO_DOC_FILE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7845 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7846 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7847
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7848 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7849 if [ "${const_is_losing}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7850
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7851 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7852 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7853 echo " defining CONST_IS_LOSING"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7854 echo "#define" CONST_IS_LOSING "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7855 DEFS="$DEFS -DCONST_IS_LOSING=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7856 ac_sed_defs="${ac_sed_defs}\${ac_dA}CONST_IS_LOSING\${ac_dB}CONST_IS_LOSING\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7857 \${ac_uA}CONST_IS_LOSING\${ac_uB}CONST_IS_LOSING\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7858 \${ac_eA}CONST_IS_LOSING\${ac_eB}CONST_IS_LOSING\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7859 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7860 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7861
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7862 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7863 if [ "${use_assertions}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7864
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7865 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7866 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7867 echo " defining USE_ASSERTIONS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7868 echo "#define" USE_ASSERTIONS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7869 DEFS="$DEFS -DUSE_ASSERTIONS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7870 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_ASSERTIONS\${ac_dB}USE_ASSERTIONS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7871 \${ac_uA}USE_ASSERTIONS\${ac_uB}USE_ASSERTIONS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7872 \${ac_eA}USE_ASSERTIONS\${ac_eB}USE_ASSERTIONS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7873 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7874 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7875
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7876 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7877 if [ "${error_check_extents}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7878
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7879 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7880 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7881 echo " defining ERROR_CHECK_EXTENTS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7882 echo "#define" ERROR_CHECK_EXTENTS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7883 DEFS="$DEFS -DERROR_CHECK_EXTENTS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7884 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_EXTENTS\${ac_dB}ERROR_CHECK_EXTENTS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7885 \${ac_uA}ERROR_CHECK_EXTENTS\${ac_uB}ERROR_CHECK_EXTENTS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7886 \${ac_eA}ERROR_CHECK_EXTENTS\${ac_eB}ERROR_CHECK_EXTENTS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7887 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7888 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7889
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7890 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7891 if [ "${error_check_typecheck}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7892
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7893 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7894 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7895 echo " defining ERROR_CHECK_TYPECHECK"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7896 echo "#define" ERROR_CHECK_TYPECHECK "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7897 DEFS="$DEFS -DERROR_CHECK_TYPECHECK=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7898 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_TYPECHECK\${ac_dB}ERROR_CHECK_TYPECHECK\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7899 \${ac_uA}ERROR_CHECK_TYPECHECK\${ac_uB}ERROR_CHECK_TYPECHECK\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7900 \${ac_eA}ERROR_CHECK_TYPECHECK\${ac_eB}ERROR_CHECK_TYPECHECK\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7901 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7902 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7903
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7904 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7905 if [ "${error_check_bufpos}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7906
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7907 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7908 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7909 echo " defining ERROR_CHECK_BUFPOS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7910 echo "#define" ERROR_CHECK_BUFPOS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7911 DEFS="$DEFS -DERROR_CHECK_BUFPOS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7912 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_BUFPOS\${ac_dB}ERROR_CHECK_BUFPOS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7913 \${ac_uA}ERROR_CHECK_BUFPOS\${ac_uB}ERROR_CHECK_BUFPOS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7914 \${ac_eA}ERROR_CHECK_BUFPOS\${ac_eB}ERROR_CHECK_BUFPOS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7915 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7916 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7917
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7918 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7919 if [ "${error_check_gc}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7920
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7921 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7922 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7923 echo " defining ERROR_CHECK_GC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7924 echo "#define" ERROR_CHECK_GC "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7925 DEFS="$DEFS -DERROR_CHECK_GC=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7926 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_GC\${ac_dB}ERROR_CHECK_GC\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7927 \${ac_uA}ERROR_CHECK_GC\${ac_uB}ERROR_CHECK_GC\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7928 \${ac_eA}ERROR_CHECK_GC\${ac_eB}ERROR_CHECK_GC\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7929 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7930 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7931
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7932 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7933 if [ "${error_check_malloc}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7934
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7935 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7936 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7937 echo " defining ERROR_CHECK_MALLOC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7938 echo "#define" ERROR_CHECK_MALLOC "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7939 DEFS="$DEFS -DERROR_CHECK_MALLOC=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7940 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_MALLOC\${ac_dB}ERROR_CHECK_MALLOC\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7941 \${ac_uA}ERROR_CHECK_MALLOC\${ac_uB}ERROR_CHECK_MALLOC\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7942 \${ac_eA}ERROR_CHECK_MALLOC\${ac_eB}ERROR_CHECK_MALLOC\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7943 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7944 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7945
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7946 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7947 if [ "${debug}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7948
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7949 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7950 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7951 echo " defining DEBUG_XEMACS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7952 echo "#define" DEBUG_XEMACS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7953 DEFS="$DEFS -DDEBUG_XEMACS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7954 ac_sed_defs="${ac_sed_defs}\${ac_dA}DEBUG_XEMACS\${ac_dB}DEBUG_XEMACS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7955 \${ac_uA}DEBUG_XEMACS\${ac_uB}DEBUG_XEMACS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7956 \${ac_eA}DEBUG_XEMACS\${ac_eB}DEBUG_XEMACS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7957 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7958 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7959
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7960 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7961 if [ "${memory_usage_stats}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7962
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7963 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7964 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7965 echo " defining MEMORY_USAGE_STATS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7966 echo "#define" MEMORY_USAGE_STATS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7967 DEFS="$DEFS -DMEMORY_USAGE_STATS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7968 ac_sed_defs="${ac_sed_defs}\${ac_dA}MEMORY_USAGE_STATS\${ac_dB}MEMORY_USAGE_STATS\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7969 \${ac_uA}MEMORY_USAGE_STATS\${ac_uB}MEMORY_USAGE_STATS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7970 \${ac_eA}MEMORY_USAGE_STATS\${ac_eB}MEMORY_USAGE_STATS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7971 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7972 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7973
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7974 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7975 if [ "${use_union_type}" != "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7976
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7977 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7978 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7979 echo " defining NO_UNION_TYPE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7980 echo "#define" NO_UNION_TYPE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7981 DEFS="$DEFS -DNO_UNION_TYPE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7982 ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_UNION_TYPE\${ac_dB}NO_UNION_TYPE\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7983 \${ac_uA}NO_UNION_TYPE\${ac_uB}NO_UNION_TYPE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7984 \${ac_eA}NO_UNION_TYPE\${ac_eB}NO_UNION_TYPE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7985 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7986 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7987
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7988 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7989 if [ "${quantify}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7990
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7991 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7992 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7993 echo " defining QUANTIFY"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7994 echo "#define" QUANTIFY "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7995 DEFS="$DEFS -DQUANTIFY=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7996 ac_sed_defs="${ac_sed_defs}\${ac_dA}QUANTIFY\${ac_dB}QUANTIFY\${ac_dC}1\${ac_dD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7997 \${ac_uA}QUANTIFY\${ac_uB}QUANTIFY\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7998 \${ac_eA}QUANTIFY\${ac_eB}QUANTIFY\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7999 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8000 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8001
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8002 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8003
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8004 # ====================== Developer's configuration =======================
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8005
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8006 # The following assignments make sense if you're running XEmacs on a single
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8007 # 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
8008 # directories in the source tree to show up immediately in your working
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8009 # environment. It saves a great deal of disk space by not duplicating the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8010 # lisp and etc directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8011
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8012 if [ "$run_in_place" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8013 prefix='${srcdir}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8014 exec_prefix='${srcdir}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8015 bindir='${exec_prefix}/bin/${configuration}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8016 lispdir='${srcdir}/lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8017 sitelispdir='${lispdir}/site-lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8018 etcdir='${srcdir}/etc'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8019 lockdir='${srcdir}/lock'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8020 archlibdir='${srcdir}/lib-src/${configuration}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8021 infodir='${srcdir}/info'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8022 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8023 #elif [ "$single_tree" = "1" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8024 # if [ "$exec_prefix_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8025 # exec_prefix='${prefix}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8026 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8027 # if [ "$bindir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8028 # bindir='${exec_prefix}/bin/${configuration}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8029 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8030 # if [ "$datadir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8031 # datadir='${prefix}/common'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8032 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8033 # if [ "$statedir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8034 # statedir='${prefix}/common'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8035 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8036 # if [ "$libdir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8037 # libdir='${bindir}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8038 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8039 # if [ "$lispdir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8040 # lispdir='${prefix}/common/lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8041 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8042 # if [ "$locallisppath_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8043 # locallisppath='${prefix}/common/site-lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8044 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8045 # if [ "$lockdir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8046 # lockdir='${prefix}/common/lock'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8047 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8048 # if [ "$archlibdir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8049 # archlibdir='${libdir}/etc'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8050 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8051 # if [ "$etcdir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8052 # etcdir='${prefix}/common/data'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8053 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8054 # if [ "$docdir_specified" = "" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8055 # docdir='${prefix}/common/data'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8056 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8057 #fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8058
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8059 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8060 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8061 # Report on what we decided to do #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8062 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8063 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8064
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8065 echo "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8066
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8067 Configured for \`${canonical}'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8068
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8069 Where should the build process find the source code? ${srcdir}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8070 What installation prefix should install use? ${prefix}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8071 What operating system and machine description files should XEmacs use?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8072 \`${opsysfile}' and \`${machfile}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8073 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8074 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8075 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8076 What window system should XEmacs use? ${window_system}${x_includes+
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8077 Where do we find X Windows header files? }${x_includes}${x_libraries+
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8078 Where do we find X Windows libraries? }${x_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8079
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8080 if [ -n "$site_includes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8081 echo " Additional header files: ${site_includes}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8082 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8083
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8084 if [ -n "$site_libraries" ] && [ -n "$site_runtime_libraries" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8085 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8086 elif [ -n "$site_libraries" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8087 echo " Additional libraries: ${site_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8088 elif [ -n "$site_runtime_libraries" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8089 echo " Additional libraries: ${site_runtime_libraries}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8090 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8091
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8092
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8093 if [ "$with_socks" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8094 echo " Compiling in support for SOCKS."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8095 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8096 if [ "$with_term" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8097 echo " Compiling in support for TERM."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8098 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8099 if [ "$with_xauth" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8100 echo " Compiling in support for XAUTH."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8101 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8102 if [ "$with_xpm" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8103 echo " Compiling in support for XPM."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8104 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8105 if [ "$with_xmu" != "yes" ] && [ "$window_system" != "none" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8106 echo " No Xmu; substituting equivalent routines."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8107 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8108 if [ "$with_xface" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8109 echo " Compiling in support for X-Face headers."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8110 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8111 if [ "$with_gif" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8112 echo " Compiling in support for GIF image conversion."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8113 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8114 if [ "$with_jpeg" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8115 echo " Compiling in support for JPEG image conversion."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8116 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8117 if [ "$with_png" = "yes" ] || [ "$with_png" = "gnuz" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8118 echo " Compiling in support for PNG image conversion."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8119 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8120 if [ "$with_png" = "gnuz" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8121 echo " (Using -lgz instead of -lz.)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8122 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8123 if [ "$with_tiff" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8124 echo " Compiling in support for TIFF image conversion (not implemented)."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8125 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8126 if [ "$with_epoch" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8127 echo " Compiling in extra Epoch compatibility."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8128 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8129 if [ "$with_sound" = "nas" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8130 echo " Compiling in network sound support."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8131 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8132 if [ "$with_sound" = "native" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8133 echo " Compiling in native sound support."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8134 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8135 if [ "$with_sound" = "both" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8136 echo " Compiling in both network and native sound support."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8137 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8138 if [ "$old_nas" = true ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8139 echo " nas library lacks error trapping, will play synchronously"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8140 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8141 if [ "$with_database_berkdb" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8142 echo " Compiling in support for Berkeley DB."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8143 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8144 if [ "$with_database_dbm" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8145 echo " Compiling in support for DBM."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8146 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8147 if [ "$with_database_gnudbm" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8148 echo " Compiling in support for GNU DBM."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8149 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8150 if [ "$with_ncurses" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8151 echo " Compiling in support for ncurses."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8152 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8153 if [ "$with_socks" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8154 echo " Compiling in support for SOCKS."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8155 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8156 if [ "$with_tooltalk" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8157 echo " Compiling in support for ToolTalk."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8158 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8159 if [ "$with_cde" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8160 echo " Compiling in support for CDE."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8161 fi
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
8162 if [ "$with_offix" = "yes" ]; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
8163 echo " Compiling in support for OffiX."
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
8164 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8165 if [ "$with_mocklisp" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8166 echo " Compiling in support for Mocklisp."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8167 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8168 if [ "$with_sparcworks" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8169 echo " Compiling in support for SparcWorks."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8170 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8171 if [ "$with_energize" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8172 echo " Compiling in support for Lucid Energize (doesn't currently work)."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8173 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8174 if [ "$with_menubars" = "lucid" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8175 echo " Using the Lucid menubar."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8176 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8177 if [ "$with_menubars" = "motif" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8178 echo " Using the Motif menubar."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8179 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8180 echo " that you use the Lucid menubar instead. Re-run"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8181 echo " configure with --with-menubars='lucid'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8182 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8183 if [ "$with_scrollbars" = "lucid" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8184 echo " Using the Lucid scrollbar."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8185 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8186 if [ "$with_scrollbars" = "motif" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8187 echo " Using the Motif scrollbar."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8188 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8189 if [ "$with_scrollbars" = "athena" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8190 echo " Using the Athena scrollbar."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8191 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8192 if [ "$with_dialogs" = "motif" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8193 echo " Using the Motif dialog boxes."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8194 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8195 if [ "$with_dialogs" = "athena" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8196 echo " Using the Athena dialog boxes."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8197 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8198 if [ "${use_union_type}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8199 echo " Using the union type for Lisp_Objects."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8200 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8201 if [ "${debug}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8202 echo " Compiling in extra code for debugging."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8203 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8204 if [ "${memory_usage_stats}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8205 echo " Compiling in code for checking XEmacs memory usage."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8206 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8207 if [ "$usage_tracking" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8208 echo " Compiling with usage tracking active (Sun internal)."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8209 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8210 echo "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8211 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8212
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8213 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8214 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8215 # Now generate! #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8216 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8217 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8218
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8219 # 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
8220
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8221 # Remove any trailing slashes in these variables.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8222 test -n "${prefix}" &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8223 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8224 test -n "${exec_prefix}" &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8225 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8226
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8227
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8228 # The preferred way to propogate these variables is regular @ substitutions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8229 if test -n "$prefix"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8230 ac_prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8231 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8232 prefix=/usr/local
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8233 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8234 if test -n "$exec_prefix"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8235 ac_prsub="$ac_prsub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8236 s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8237 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8238 exec_prefix='${prefix}' # Let make expand it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8239 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8240
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8241 # Any assignment to VPATH causes Sun make to only execute
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8242 # the first set of double-colon rules, so remove it if not needed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8243 # If there is a colon in the path, we need to keep it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8244 if test "x$srcdir" = x.; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8245 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8246 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8247
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8248 # Quote sed substitution magic chars in DEFS.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8249 cat >conftest.def <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8250 $DEFS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8251 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8252 ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8253 DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8254 rm -f conftest.def
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8255 # Substitute for predefined variables.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8256
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8257 trap 'rm -f config.status; exit 1' 1 2 15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8258 echo creating config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8259 rm -f config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8260 cat > config.status <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8261 #!/bin/sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8262 # Generated automatically by configure.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8263 # Run this file to recreate the current configuration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8264 # This directory was configured as follows,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8265 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8266 #
54
05472e90ae02 Import from CVS: tag r19-16-pre2
cvs
parents: 52
diff changeset
8267 EOF
05472e90ae02 Import from CVS: tag r19-16-pre2
cvs
parents: 52
diff changeset
8268 sed 's/^/# /' >> config.status <<EOF
05472e90ae02 Import from CVS: tag r19-16-pre2
cvs
parents: 52
diff changeset
8269 $0 $quoted_arguments
05472e90ae02 Import from CVS: tag r19-16-pre2
cvs
parents: 52
diff changeset
8270 EOF
05472e90ae02 Import from CVS: tag r19-16-pre2
cvs
parents: 52
diff changeset
8271 cat >> config.status <<EOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8272 ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8273 for ac_option
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8274 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8275 case "\$ac_option" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48
56c54cf7c5b6 Import from CVS: tag r19-16b90
cvs
parents: 44
diff changeset
8277 echo running \${CONFIG_SHELL-/bin/sh} $0 $quoted_arguments --no-create
56c54cf7c5b6 Import from CVS: tag r19-16b90
cvs
parents: 44
diff changeset
8278 exec \${CONFIG_SHELL-/bin/sh} $0 $quoted_arguments --no-create ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8279 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8280 echo "config.status generated by autoconf version 1.11"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8281 exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8282 -help | --help | --hel | --he | --h)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8283 echo "\$ac_cs_usage"; exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8284 *) echo "\$ac_cs_usage"; exit 1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8285 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8286 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8287
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8288 trap 'rm -fr $internal_makefile_list src/config.h conftest*; exit 1' 1 2 15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8289 LN_S='$LN_S'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8290 CC='$CC'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8291 CPP='$CPP'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8292 RANLIB='$RANLIB'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8293 INSTALL='$INSTALL'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8294 INSTALL_PROGRAM='$INSTALL_PROGRAM'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8295 INSTALL_DATA='$INSTALL_DATA'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8296 YACC='$YACC'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8297 SET_MAKE='$SET_MAKE'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8298 ALLOCA='$ALLOCA'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8299 version='$version'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8300 configuration='$configuration'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8301 canonical='$canonical'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8302 srcdir='$srcdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8303 prefix='$prefix'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8304 exec_prefix='$exec_prefix'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8305 bindir='$bindir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8306 datadir='$datadir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8307 statedir='$statedir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8308 libdir='$libdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8309 mandir='$mandir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8310 infodir='$infodir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8311 infodir_user_defined='$infodir_user_defined'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8312 lispdir='$lispdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8313 lispdir_user_defined='$lispdir_user_defined'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8314 sitelispdir='$sitelispdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8315 etcdir='$etcdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8316 etcdir_user_defined='$etcdir_user_defined'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8317 lockdir='$lockdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8318 lockdir_user_defined='$lockdir_user_defined'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8319 archlibdir='$archlibdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8320 archlibdir_user_defined='$archlibdir_user_defined'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8321 docdir='$docdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8322 bitmapdir='$bitmapdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8323 c_switch_system='$c_switch_system'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8324 c_switch_machine='$c_switch_machine'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8325 libsrc_libs='$libsrc_libs'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8326 LD_SWITCH_X_SITE='$LD_SWITCH_X_SITE'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8327 LD_SWITCH_X_SITE_AUX='$LD_SWITCH_X_SITE_AUX'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8328 C_SWITCH_X_SITE='$C_SWITCH_X_SITE'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8329 LD_SWITCH_SITE='$LD_SWITCH_SITE'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8330 C_SWITCH_SITE='$C_SWITCH_SITE'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8331 CFLAGS='$CFLAGS'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8332 native_sound_lib='$native_sound_lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8333 machfile='$machfile'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8334 opsysfile='$opsysfile'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8335 dynodump_arch='$dynodump_arch'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8336 internal_makefile_list='$internal_makefile_list'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8337 LIBS='$LIBS'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8338 top_srcdir='$top_srcdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8339 ac_prsub='$ac_prsub'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8340 ac_vpsub='$ac_vpsub'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8341 extrasub='$extrasub'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8342 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8343 cat >> config.status <<\EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8344
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8345 ac_given_srcdir=$srcdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8346
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8347 CONFIG_FILES=${CONFIG_FILES-"$internal_makefile_list"}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8348 for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8349 # Remove last slash and all that follows it. Not all systems have dirname.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8350 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8351 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8352 # The file is in a subdirectory.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8353 test ! -d "$ac_dir" && mkdir "$ac_dir"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8354 ac_dir_suffix="/$ac_dir"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8355 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8356 ac_dir_suffix=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8357 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8358
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8359 # A "../" for each directory in $ac_dir_suffix.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8360 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8361 case "$ac_given_srcdir" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8362 .) srcdir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8363 if test -z "$ac_dir_suffix"; then top_srcdir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8364 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8365 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8366 *) # Relative path.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8367 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8368 top_srcdir="$ac_dots$ac_given_srcdir" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8369 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8370
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8371 echo creating "$ac_file"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8372 rm -f "$ac_file"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8373 comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8374 case "$ac_file" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8375 *.c | *.h | *.C | *.cc | *.m ) echo "/* $comment_str */" > "$ac_file" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8376 * ) echo "# $comment_str" > "$ac_file" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8377 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8378 sed -e "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8379 $ac_prsub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8380 $ac_vpsub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8381 $extrasub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8382 s%@LN_S@%$LN_S%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8383 s%@CC@%$CC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8384 s%@CPP@%$CPP%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8385 s%@RANLIB@%$RANLIB%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8386 s%@INSTALL@%$INSTALL%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8387 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8388 s%@INSTALL_DATA@%$INSTALL_DATA%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8389 s%@YACC@%$YACC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8390 s%@SET_MAKE@%$SET_MAKE%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8391 s%@ALLOCA@%$ALLOCA%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8392 s%@version@%$version%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8393 s%@configuration@%$configuration%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8394 s%@canonical@%$canonical%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8395 s%@srcdir@%$srcdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8396 s%@prefix@%$prefix%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8397 s%@exec_prefix@%$exec_prefix%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8398 s%@bindir@%$bindir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8399 s%@datadir@%$datadir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8400 s%@statedir@%$statedir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8401 s%@libdir@%$libdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8402 s%@mandir@%$mandir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8403 s%@infodir@%$infodir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8404 s%@infodir_user_defined@%$infodir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8405 s%@lispdir@%$lispdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8406 s%@lispdir_user_defined@%$lispdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8407 s%@sitelispdir@%$sitelispdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8408 s%@etcdir@%$etcdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8409 s%@etcdir_user_defined@%$etcdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8410 s%@lockdir@%$lockdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8411 s%@lockdir_user_defined@%$lockdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8412 s%@archlibdir@%$archlibdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8413 s%@archlibdir_user_defined@%$archlibdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8414 s%@docdir@%$docdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8415 s%@bitmapdir@%$bitmapdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8416 s%@c_switch_system@%$c_switch_system%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8417 s%@c_switch_machine@%$c_switch_machine%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8418 s%@libsrc_libs@%$libsrc_libs%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8419 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8420 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8421 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8422 s%@LD_SWITCH_SITE@%$LD_SWITCH_SITE%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8423 s%@C_SWITCH_SITE@%$C_SWITCH_SITE%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8424 s%@CFLAGS@%$CFLAGS%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8425 s%@native_sound_lib@%$native_sound_lib%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8426 s%@machfile@%$machfile%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8427 s%@opsysfile@%$opsysfile%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8428 s%@dynodump_arch@%$dynodump_arch%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8429 s%@internal_makefile_list@%$internal_makefile_list%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8430 s%@LIBS@%$LIBS%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8431 s%@top_srcdir@%$top_srcdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8432 s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8433 fi; done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8434
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8435 # These sed commands are put into ac_sed_defs when defining a macro.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8436 # They are broken into pieces to make the sed script easier to manage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8437 # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8438 # is the cpp macro being defined and VALUE is the value it is being given.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8439 # Each defining turns into a single global substitution command.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8440 # Hopefully no one uses "!" as a variable value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8441 # Other candidates for the sed separators, like , and @, do get used.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8442 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8443 # ac_d sets the value in "#define NAME VALUE" lines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8444 ac_dA='s!^\([ ]*\)#\([ ]*define[ ][ ]*\)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8445 ac_dB='\([ ][ ]*\)[^ ]*!\1#\2'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8446 ac_dC='\3'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8447 ac_dD='!g'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8448 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8449 ac_uA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8450 ac_uB='\([ ]\)!\1#\2define\3'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8451 ac_uC=' '
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8452 ac_uD='\4!g'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8453 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8454 ac_eA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8455 ac_eB='$!\1#\2define\3'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8456 ac_eC=' '
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8457 ac_eD='!g'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8458 rm -f conftest.sed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8459 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8460 # Turn off quoting long enough to insert the sed commands.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8461 rm -f conftest.sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8462 cat > conftest.sh <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8463 $ac_sed_defs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8464 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8465
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8466 # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8467 # on the size of here documents.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8468
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8469 # Maximum number of lines to put in a single here document.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8470 ac_max_sh_lines=9
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8471
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8472 while :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8473 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8474 # wc gives bogus results for an empty file on some AIX systems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8475 ac_lines=`grep -c . conftest.sh`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8476 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8477 rm -f conftest.s1 conftest.s2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8478 sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8479 sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8480 # Write a limited-size here document to append to conftest.sed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8481 echo 'cat >> conftest.sed <<CONFEOF' >> config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8482 cat conftest.s1 >> config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8483 echo 'CONFEOF' >> config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8484 rm -f conftest.s1 conftest.sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8485 mv conftest.s2 conftest.sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8486 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8487 rm -f conftest.sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8488
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8489 # Now back to your regularly scheduled config.status.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8490 cat >> config.status <<\EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8491 # This sed command replaces #undef's with comments. This is necessary, for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8492 # example, in the case of _POSIX_SOURCE, which is predefined and required
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8493 # on some systems where configure will not decide to define it in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8494 # src/config.h.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8495 cat >> conftest.sed <<\CONFEOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8496 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8497 CONFEOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8498 rm -f conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8499 # Break up the sed commands because old seds have small limits.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8500 ac_max_sed_lines=20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8501
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8502 CONFIG_HEADERS=${CONFIG_HEADERS-"src/config.h"}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8503 for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8504 echo creating $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8505
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8506 cp $ac_given_srcdir/$ac_file.in conftest.h1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8507 cp conftest.sed conftest.stm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8508 while :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8509 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8510 ac_lines=`grep -c . conftest.stm`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8511 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8512 rm -f conftest.s1 conftest.s2 conftest.h2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8513 sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8514 sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8515 sed -f conftest.s1 < conftest.h1 > conftest.h2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8516 rm -f conftest.s1 conftest.h1 conftest.stm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8517 mv conftest.h2 conftest.h1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8518 mv conftest.s2 conftest.stm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8519 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8520 rm -f conftest.stm conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8521 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8522 cat conftest.h1 >> conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8523 rm -f conftest.h1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8524 if cmp -s $ac_file conftest.h 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8525 # The file exists and we would not be changing it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8526 echo "$ac_file is unchanged"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8527 rm -f conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8528 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8529 rm -f $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8530 mv conftest.h $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8531 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8532 fi; done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8533 rm -f conftest.sed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8534
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8535
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8536
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8537 exit 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8538 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8539 chmod +x config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8540 # Some shells look in PATH for config.status without the "./".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8541 test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8542
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8543 # Build:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8544 # src/Makefile from ${srcdir}/src/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8545 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8546 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8547 # man/*/Makefile from ${srcdir}/man/*/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8548 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8549 # and possibly
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8550 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8551 # 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
8552 # file. Only do the build if "config.status" is present, since its
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8553 # non-presence indicates an error occured.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8554 status=$?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8555 if [ ! -f ./config.status ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8556 exit $status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8557 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8558 topsrcdir=${srcdir}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8559 # We discard all lines in Makefile.in that start with `# Generated' or /**/#
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8560 # because some cpps get confused by them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8561 # Really we should preserve them somehow into Makefile,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8562 # but that is beyond my level of shell programming.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8563 makefile_command='echo "creating src/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8564 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8565 ( cd ./src;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8566 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8567 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
8568 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
8569 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8570 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8571 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8572 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8573 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8574 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8575 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8576 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8577 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8578 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8579 eval `echo $makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8580 lwlib_makefile_command='echo "creating lwlib/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8581 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8582 ( cd ./lwlib;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8583 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8584 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
8585 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
8586 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8587 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8588 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8589 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8590 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8591 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8592 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8593 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8594 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8595 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8596 eval `echo $lwlib_makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8597 lib_src_makefile_command='echo "creating lib-src/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8598 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8599 ( cd ./lib-src;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8600 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8601 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
8602 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
8603 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8604 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8605 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8606 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8607 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8608 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8609 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8610 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8611 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8612 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8613 eval `echo $lib_src_makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8614 dynodump_makefile_command='echo "creating dynodump/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8615 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8616 ( cd ./dynodump;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8617 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8618 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
8619 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
8620 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8621 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8622 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8623 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8624 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8625 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8626 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8627 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8628 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8629 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8630 eval `echo $dynodump_makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8631 if [ "${with_energize}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8632 energize_makefile_command='echo "creating lwlib/energize/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8633 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8634 ( cd ./lwlib/energize;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8635 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8636 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
8637 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
8638 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8639 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8640 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8641 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8642 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8643 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8644 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8645 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8646 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8647 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8648 eval `echo $energize_makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8649 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8650 # AC-OUTPUT has created `config.status' already. We need to add the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8651 # above commands to re-create `src/Makefile', `lwlib/Makefile',
8
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 2
diff changeset
8652 # `lib-src/Makefile', `dynodump/Makefile', and possibly
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8653 # `lwlib/energize/Makefile', and we need to insert them before the final
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8654 # "exit 0" which appears at the end of `config.status'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8655 <config.status sed -e 's/^exit 0$//' >config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8656 echo $makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8657 echo $lwlib_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8658 echo $lib_src_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8659 echo $dynodump_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8660 echo $man_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8661 if [ "${with_energize}" = "yes" ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8662 echo $energize_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8663 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8664 echo exit 0 >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8665 mv -f config.new config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8666 chmod +x config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8667 # 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
8668 # 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: 2
diff changeset
8669 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
8670 for file in $MFS; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8671 chmod a+w $file; touch $file; chmod 444 $file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8672 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8673
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8674 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8675 echo creating src/gdbinit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8676 echo source $topsrcdir/src/gdbinit > src/gdbinit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8677 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8678
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8679 exit 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8680
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8681 # I've removed "mode: ksh" from the following. ksh mode sucks for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8682 # editing this file. (It seems that ksh mode sucks in general.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8683 # I wonder if the new 19.29 shell-script mode is better.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8684
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8685 # Local Variables:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8686 # compile-command: "autoconf"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8687 # End:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8688