annotate configure @ 118:7d55a9ba150c r20-1b11

Import from CVS: tag r20-1b11
author cvs
date Mon, 13 Aug 2007 09:24:17 +0200
parents 9f59509498e1
children cca96a509cfe
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
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
65 #run_in_place='no'
0
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.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
103 error_check_default='yes'
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.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
137 test -n "$CPP" -a -d "$CPP" && CPP=
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 # Usage messages #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 Set compilation and installation parameters for XEmacs, and report.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 CONFIGURATION specifies the machine and operating system to build for.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 Note that for most of the following options, you can explicitly enable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 This is especially useful for auto-detected options.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 Options marked with a (*) are autodetected.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 General options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 --help Issue this usage message.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 --verbose Display the results of configure tests.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 --extra-verbose Also display the output of any compiler invocation.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 (Useful when feature tests are coming out wrong.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 Compiler options:
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=XXXX Specify compiler.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 --with-gcc (*) Use GCC to compile XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 --with-lcc Use Lucid's LCC to compile XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 --with-gcc=no Don't use GCC to compile XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 --with-gnu-make Write the Makefiles to take advantage of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 special features of GNU Make. (GNU Make
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 works fine on the Makefiles even without this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 option. This just allows for simultaneous
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 in-place and --srcdir building.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 --cflags=FLAGS Override the default values for CFLAGS.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 --site-includes=DIR Other header file directories. Separate multiple
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 dirs with spaces and use quotes to enclose.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 --site-libraries=DIR Other library directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 --site-runtime-libraries=DIR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 Paths to add with -R flag.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 --dynamic=yes Link dynamically if supported by system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 --dynamic=no Force static linking on systems where dynamic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 linking is the default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 --srcdir=DIR Look for the XEmacs source files in DIR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 See also --with-gnu-make.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 --const-is-losing=no Allow the use of const in the source code.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 Installation options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 Window-system options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 --with-x (*) Support the X Window System.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 --with-x=no Don't support X.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 --x-includes=DIR Search for X header files in DIR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 --x-libraries=DIR Search for X libraries in DIR.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
201 --with-ns Support NeXTstep windows (not yet implemented).
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 widgets emulate Motif (mostly) but are faster.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 *WARNING* The Motif menubar is currently broken.
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
205 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena,
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
206 athena3d, or no).
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
207 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, athena3d, or no).
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 (Lucid menubars and scrollbars are the default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 Motif dialog boxes will be used if Motif can be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 found.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 --with-cde (*) Compile in support for CDE drag and drop.
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
212 --with-offix (*) Compile in support for OffiX drag and drop.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 --with-xpm (*) Compile with support for XPM files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 It is highly recommended that you obtain XPM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 (version 3.4g or better) if you don't already
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 have it. Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 Additional features:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 --with-toolbars=no Don't compile with any toolbar support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 --with-tooltalk Support the ToolTalk IPC protocol.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 --with-sparcworks Support the Sun Sparcworks development environment.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 --with-energize Support the Lucid Energize development environment.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 This doesn't currently work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 --with-socks Compile with support for SOCKS (an Internet proxy).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 --with-term Compile with support for TERM (a way to multiplex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 serial lines and provide vaguely Internet-like
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 functionality over a simple dialup connection,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 used on Linux and other systems. NOTE: We can't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 guarantee that our TERM support coexists well
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 with standard Internet connections).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 --with-xface (*) Compile with support for X-Face mail header
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 conversion. Requires the compface library.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 --with-gif Compile with support for GIF image conversion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 This requires no special support and defaults to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 \`yes'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 --with-jpeg (*) Compile with support for JPEG image conversion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 Requires libjpeg from the Independent JPEG Group.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 --with-png (*) Compile with support for PNG image conversion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 Requires libpng. Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 Accepted values are \`yes', \`no', and \`gnuz'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 if you want to use -lgz instead of -lz.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 --with-tiff Compile with support for TIFF image conversion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 (not yet implemented).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 --with-database=type (*) Compile with database support. Valid types are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 \`no' or a comma-separated list of one or more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 of \`dbm', \`gnudbm', or \`berkdb'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 --external-widget Compile with external widget support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 --with-sound=native (*) Compile with native sound support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 --with-sound=nas Compile with network sound support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 --with-sound=both Compile with native and network sound support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 --native-sound-lib=LIB Native sound support library. Needed on Suns
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 with --with-sound=both because both sound libraries
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 are called libaudio.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 --with-epoch Compile with additional Epoch compatibility.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 --with-mocklisp Compile with Mocklisp support. Don't do this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 unless you have a Mocklisp program that you need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 to run.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 --usage-tracking Enable some Sun-internal code. If you don't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 know what this is, you don't want it.
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
265 --with-pop support POP for mail retrieval
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
266 --with-kerberos support Kerberos-authenticated POP
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
267 --with-hesiod support Hesiod to get the POP server host
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
269 Internationalization options:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
270
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
271 --with-mule Compile with Mule (MUlti-Lingual Emacs) support,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
272 needed to suport non-Latin-1 (including Asian) languages.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
273 --with-xim=xlib Compile with support for X input methods,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
274 --with-xim=motif (*) Used in conjunction with Mule support.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
275 Use either raw Xlib to provide XIM support, or
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
276 the Motif XmIm* routines (when available).
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
277 If the XmIm* routines are autodetected,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
278 then the default is --with-xim=motif, else --with-xim=no.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
279 --with-canna Compile with support for Canna (a Japanese input method
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
280 used in conjunction with Mule support).
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
281 --with-wnn Compile with support for WNN (a multi-language input method
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
282 used in conjunction with Mule support).
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
283 This is beta level code.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
284 --with-wnn6 Compile with support for WNN version 6
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
285 This is alpha level code.
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
286 --wnn-includes=DIR Search for WNN header files in DIR.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
287 --wnn-libraries=DIR Search for WNN libraries in DIR.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
288 --with-i18n3 Compile with I18N level 3 (support for message
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
289 translation). This doesn't currently work.
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
290 --canna-includes=DIR Search for Canna header files in DIR.
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
291 --canna-libraries=DIR Search for Canna libraries in DIR.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
292
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 Debugging 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 --debug Compile with support for debugging XEmacs.
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
297 (Causes code-size increase and little loss of speed.)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 --error-checking=TYPE[,TYPE]...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 Compile with internal error-checking added.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 Causes noticeable loss of speed. Valid types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 are extents, bufpos, malloc, gc, typecheck.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 --error-checking=none Disable all internal error-checking (the default).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 --error-checking=all Enable all internal error-checking.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 --memory-usage-stats Compile with additional code to allow you to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 determine what XEmacs's memory is being used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 for. Causes a small code increase but no loss
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 of speed. Normally enabled when --debug is given.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 --no-doc-file Don't rebuild the DOC file unless it's explicitly
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 deleted. Only use during development. (It speeds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 up the compile-run-test cycle.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 --use-union-type Enable or disable use of a union, instead of an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 int, for the fundamental Lisp_Object type; this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 provides stricter type-checking. Only works with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 some systems and compilers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 Other options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 --puresize=VALUE Override default amount of space for pure Lisp code.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 --rel-alloc Use the relocating allocator (default for this option
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 is system-dependent).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 --use-system-malloc Force use of the system malloc, rather than GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 malloc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 You may also specify any of the \`path' variables found in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 so on. Note that we recommend against explicitly setting any of these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 variables. See the INSTALL file for a complete list plus the reasons
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
329 we advise not changing them.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 If successful, ${progname} leaves its status in config.status. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 unsuccessful after disturbing the status quo, it removes config.status."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 # Options processing #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 ### Record all the arguments, so we can save them in config.status.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 arguments="$@"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 ### in order to get the arguments back in $@, we have to do an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 ### `eval set x "$quoted_arguments"; shift'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 quoted_arguments=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 for i in "$@"; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 quoted_arguments="$quoted_arguments '$i'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 ### Don't use shift -- that destroys the argument list, which autoconf needs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 ### to produce config.status. It turns out that "set - ${arguments}" doesn't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 ### work portably.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 ### However, it also turns out that many shells cannot expand ${10} at all.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 ### 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
356 ### some shell magic to make 'set x "$arguments"; shift' work portably.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
357 while test $# != 0; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 arg="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 case "${arg}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 ## Anything starting with a hyphen we assume is an option.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 -* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 ## Separate the switch name from the value it's being given.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 case "${arg}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 -*=*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 valomitted=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 # ## special case these strings since echo may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 # ## silently eat them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 # --help ) opt=help val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 # --version ) opt=version val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 # -e ) opt=e val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 # -E ) opt=E val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 # -n ) opt=n val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 -*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 ## If FOO is a boolean argument, --FOO is equivalent to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 ## --FOO=yes. Otherwise, the value comes from the next
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 ## argument - see below.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 val="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 valomitted=yes
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 ## Change `-' in the option name to `_'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 optname="${opt}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 ## Process the option.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 case "${opt}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
394 ## Process (many) boolean options
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
395 run_in_place | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
396 with_x | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
397 with_x11 | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
398 with_gcc | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
399 with_lcc | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
400 with_gnu_make | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
401 with_epoch | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
402 dynamic | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
403 with_term | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
404 with_cde | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
405 with_offix | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
406 with_xpm | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
407 with_gif | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
408 with_jpeg | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
409 with_tiff | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
410 with_socks | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
411 with_xface | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
412 with_xmu | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
413 quantify | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
414 with_ns | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
415 with_toolbars | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
416 with_tty | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
417 with_i18n3 | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
418 with_mule | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
419 with_canna | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
420 with_wnn | \
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
421 with_wnn6 | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
422 with_mocklisp | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
423 with_energize | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
424 with_sparcworks | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
425 with_tooltalk | \
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
426 with_pop | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
427 with_kerberos | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
428 with_hesiod | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
429 external_widget | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
430 extra_verbose | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
431 const_is_losing | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
432 usage_tracking | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
433 use_union_type | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
434 debug | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
435 use_assertions | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
436 memory_usage_stats | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
437 no_doc_file )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 n | no ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 Set it to either \`yes' or \`no'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 echo "${short_usage}") >&2
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
446 exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
448 eval "${opt}=\"${val}\"" ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
449
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
450
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
451 ## Options that take a user-supplied value, as in --puresize=8000000
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
452 srcdir | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
453 compiler | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
454 puresize | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
455 native_sound_lib | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
456 x_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
457 x_libraries | \
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
458 wnn_includes | \
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
459 wnn_libraries | \
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
460 canna_includes | \
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
461 canna_libraries | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
462 site_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
463 site_libraries | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
464 site_runtime_libraries )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 ## If the value was omitted, get it from the next argument.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
466 if test "${valomitted}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 ## Get the next argument from the argument list, if there is one.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
468 if test $# = 0 ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 \`--${optname}=FOO'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
476 eval "${opt}=\"${val}\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
479 ### Options that take "yes", "no", or "default" values
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
480 rel_alloc | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
481 use_system_malloc )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 n | no ) val=no ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
485 d | de | def | defa | defau | defaul | default )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
486 val=default ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 * )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
488 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
489 Set it to either \`yes', \`no', or \`default'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
497 ## Has the user requested database support?
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
498 "with_database" )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
499 if test "${val}" = "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
500 with_database_berkdb=no
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
501 with_database_dbm=no
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
502 with_database_gnudbm=no
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
503 else
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
504 ## Make sure the value given was berkdb, dbm, gnudbm, or a list
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
505 for x in `echo "${val}" | sed 's/,/ /'` ; do
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
506 case "${x}" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
507 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
508 d | db | dbm ) with_database_dbm=yes ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
509 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
510 * )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
511 (echo "${progname}: the \`--${optname}' option is supposed to be either \`no'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
512 or a comma-separated list of one or more of \`berkdb', \`dbm', or \`gnudbm'."
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
513 echo "${short_usage}") >&2
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
514 exit 1
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
515 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
516 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
517 done
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
518 if test "${with_database_dbm}" = "yes" -a "${with_database_gnudbm}" = "yes"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
519 then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
520 (echo "${progname}: only one of \`dbm' and \`gnudbm' should be specified.") >&2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
524 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 ## Has the user requested sound support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 "with_sound" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 ## value can be native, nas or both. yes is allowed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 ## as a backwards compatible synonym for native
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 y | ye | yes ) val=native ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 n | no | non | none ) val=no;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 na | nat | nati | nativ | native ) val=native ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 b | bo | bot | both ) val=both;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 * )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
537 (echo "${progname}: the \`--${optname}' option should have one of the values:"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
538 echo "\`native', \`nas', \`both', or \`none'."
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
539 echo ""
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
540 echo "${short_usage}") >&2
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
541 exit 1
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
542 ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
543 esac
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
544 eval "${opt}=\"${val}\""
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
545 ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
546
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
547 ## Has the user requested XIM support?
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
548 "with_xim" )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
549 ## value can be xlib or motif
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
550 ## as a backwards compatible synonym for native
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 case "${val}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
552 y | ye | yes ) val=yes ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
553 n | no | non | none ) val=no ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
554 x | xl | xli | xlib ) val=xlib ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
555 m | mo | mot | moti | motif ) val=motif ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 * )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
557 (echo "${progname}: the \`--${optname}' option should have one of the values:"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
558 echo "\`motif', \`xlib', \`yes', or \`no'."
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
559 echo ""
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
560 echo "${short_usage}") >&2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 ## Has the user requested PNG support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 "with_png" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 ## Make sure the value given was either "yes", "no", or "gnuz".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570 case "${val}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
571 y | ye | yes ) val=yes ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
572 n | no ) val=no ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
573 g | gn | gnu | gnuz ) val=gnuz ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 (echo "${progname}: the \`--${optname}' option is supposed to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 be either \`yes', \`no', or \`gnuz'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
580 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
581 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 ## Has the user requested error-checking?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585 "error_checking" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586 ## value can be all, none, and/or a list of categories to check.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 ## Example: --error-checking=all,noextents,nobufpos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 ## Example: --error-checking=none,malloc,gc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 for x in `echo "${val}" | sed 's/,/ /'` ; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 case "${x}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 # all and none are only permitted as the first in the list.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593 n | no | non | none ) new_default=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594 a | al | all ) new_default=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 extents ) error_check_extents=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597 noextents ) error_check_extents=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 typecheck ) error_check_typecheck=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600 notypecheck ) error_check_typecheck=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 bufpos ) error_check_bufpos=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 nobufpos ) error_check_bufpos=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 gc ) error_check_gc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606 nogc ) error_check_gc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 malloc ) error_check_malloc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609 nomalloc ) error_check_malloc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 * ) bogus_error_check=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
613 if test "$bogus_error_check" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
614 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 ( echo "${progname}: Valid types for the \`--${optname}' option are:"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
616 if test $error_check_default = yes ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617 echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
620 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621 echo "${short_usage}" ) >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
622 exit 1
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
623 elif test "$new_default" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 error_check_extents=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 error_check_typecheck=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 error_check_bufpos=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 error_check_gc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
628 error_check_malloc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629 new_default= # reset this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
630 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631 echeck_notfirst=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635 ## Has the user tried to tell us where the X files are?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 ## I think these are dopey, but no less than three alpha
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 ## testers, at large sites, have said they have their X files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 ## installed in odd places.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640 ## Has the user specified one of the path options?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 sitelispdir | docdir )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644 ## If the value was omitted, get it from the next argument.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
645 if test "${valomitted}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
646 if test $# = 0 ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
647 (echo \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648 "$progname: You must give a value for the \`--${optname}' option,";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 echo \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 "as in \`--${optname}=`eval echo '$'$optname`.'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 echo "$short_usage") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 ## Changing exec_prefix or libdir will change the default value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659 ## of archlibdir. Changing datadir will change the default value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660 ## of etcdir and lispdir. Changing statedir will change the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661 ## default value of lockdir.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
662 if test "${opt}" = exec_prefix; then archlibdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
663 elif test "${opt}" = libdir ; then archlibdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
664 elif test "${opt}" = archlibdir ; then archlibdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
665 elif test "${opt}" = lispdir ; then lispdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
666 elif test "${opt}" = etcdir ; then etcdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
667 elif test "${opt}" = datadir ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
668 lispdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
669 etcdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
670 elif test "${opt}" = statedir ; then lockdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
671 elif test "${opt}" = lockdir ; then lockdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
672 elif test "${opt}" = infodir ; then infodir_user_defined=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
673 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
675
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676 ## Has the user specified values to override CFLAGS?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677 cflags )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 ## If the value was omitted, get it from the next argument.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
679 if test "${valomitted}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
680 if test $# = 0 ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 (echo \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 "$progname: You must give a value for the \`--${optname}' option,";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 echo \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 "as in \`--${optname}=`eval echo '$'$optname`-g -O'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685 echo "$short_usage") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691 eval "${opt}_specified=1"
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 ## Verbose flag, tested by autoconf macros.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695 "verbose" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 verbose=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
699 ## --no-create added by autoconf for use by config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700 "no_create" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
702
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
703 ## Has the user asked for some help?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
704 "usage" | "help" )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
705 if test -z "$PAGER"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
706 then echo "${short_usage}" | more
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
707 else echo "${short_usage}" | $PAGER
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
709 exit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
711
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
712 ## Has the user specified what toolkit to use for the menubars,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713 ## scrollbar or dialogs?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
714 "with_menubars" | "with_scrollbars" | "with_dialogs" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715 ## value can be lucid, motif, or athena.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 l | lu | luc | luci | lucid ) val=lucid ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718 m | mo | mot | moti | motif ) val=motif ;;
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
719 athena3d | athena-3d ) val=athena3d ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720 a | at | ath | athe | athen | athena ) val=athena ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721 n | no | non | none ) val=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
722 * )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
723 (echo "${progname}: the \`--${optname}' option should have one of the values:"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
724 echo "\`lucid', \`motif', \`athena', or \`no'."
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
725 echo ""
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
726 echo "${short_usage}") >&2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
729 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
731 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
732
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
733 ## Fail on unrecognized arguments.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
734 * )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
735 (echo "${progname}: Error: unrecognized option: ${arg}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
736 echo ""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737 echo "${short_usage}") >& 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
738 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
739 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
740
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
741 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
742 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
743
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
744 ## Anything not starting with a hyphen we assume is a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
745 ## configuration name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
746 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
747 configuration=${arg}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
748 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
749
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
750 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
751 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
753 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
754 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
755 # Finish options processing #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
756 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
757 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
758
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
759 ### Get the arguments back. See the diatribe on Shell Magic above.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
760 eval set x "$quoted_arguments"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
761
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
762 ### Argument interdependencies
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
763 if test "${with_energize}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
764 with_menubars="lucid"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
765 with_scrollbars="motif"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
766 with_dialogs="motif"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
767 with_tooltalk="yes"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
768 internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
769 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
770
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
771 ### --extra-verbose implies --verbose
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
772 test "${extra_verbose}" = yes && verbose=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
773
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
774 ### Sparcworks requires tooltalk
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
775 test "${with_sparcworks}" = yes && with_tooltalk=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
776
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
777 ### debug implies other options
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
778 test "${debug}" = "yes" && use_assertions=yes memory_usage_stats=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
779
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
780 ### with_x is a synonym for with_x11
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
781 test -n "${with_x}" && with_x11="${with_x}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
782
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
783 ### Can't specify 2 compilers
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
784 if test "${with_gcc}" = "yes" -a "${with_lcc}" = "yes"; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
785 (echo "${progname}: only one of --with-gcc and --with-lcc may be specified."
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
786 echo "${short_usage}") >&2
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
787 exit 1
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
788 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
789
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
790 ### Ignore useless run-in-place flag
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
791 if test "${run_in_place}" = "yes"; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
792 echo "configure: warning: The --run-in-place option is ignored because it is unnecessary." >&2
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
793 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
794
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
795 ###########################################################################
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
796 if test "${configuration}" = "" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
797 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
798 - I will attempt to guess the kind of system this is.' 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
799 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
800 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
801 echo "- Looks like this is a ${configuration}" 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
802 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
803 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
804 echo "${short_usage}" >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
805 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
806 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
807 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
808
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
809 ### Find the source directory.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810 case "${srcdir}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
811
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
812 ## If it's not specified, see if `.' or `..' might work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
813 "" )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
814 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
815 if test -f "$dir/src/lisp.h" -a -f "$dir/lisp/version.el" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
816 srcdir="${dir}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
817 break
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
818 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
819 done
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
820 if test -z "${srcdir}" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
821 echo "\
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
822 ${progname}: Neither the current directory nor its parent seem to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
823 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
824 source tree, you should run \`${progname}' in the directory in which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
825 you wish to build XEmacs, using its \`--srcdir' option to say where the
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
826 sources may be found.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
827 ${short_usage}" >&2
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
828 exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
829 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
830 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
831
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
832 ## Otherwise, check if the directory they specified is okay.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
833 * )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
834 if test ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
835 (echo "\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
836 ${progname}: The directory specified with the \`--srcdir' option,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
837 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
838 either run the \`${progname}' script at the top of the XEmacs source
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
839 tree, or use the \`--srcdir' option to specify where the XEmacs sources
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
840 are."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
841 echo "${short_usage}") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
842 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
843 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
844 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
845 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
846
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
847 ## We check for this now instead of later when we check for other
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
848 ## programs because we need to use its return value now.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
849 test -n "$silent" || echo "checking for ln -s"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
850 rm -f conftestdata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
851 if ln -s X conftestdata 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
852 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
853 rm -f conftestdata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
854 LN_S="ln -s"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
855 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
856 LN_S=ln
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
857 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
858
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
859
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
860
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
861 test -n "$verbose" && echo " "setting LN_S to ${LN_S}""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
862
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
863 #### Make symlinks for etc, lisp, and info directories while the path
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
864 #### is still relative. We don't symlink lock because someone may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
865 #### have stuck the source on a read-only partition. Instead we'll
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
866 #### create it as an actual directory later on if it doesn't already
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
867 #### exist.
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 100
diff changeset
868 for dir in lisp etc man info site-lisp
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
869 do
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
870 if test ! -d $dir ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
871 echo Making symbolic link to ${srcdir}/$dir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
872 ${LN_S} ${srcdir}/$dir .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
873 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
874 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
875
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 100
diff changeset
876
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
877 #### Make srcdir absolute, if it isn't already. It's important to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
878 #### avoid running the path through pwd unnecessary, since pwd can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
879 #### give you automounter prefixes, which can go away.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
880 case "${srcdir}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
881 /* ) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
882 . )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
883 ## We may be able to use the $PWD environment variable to make this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
884 ## absolute. But sometimes PWD is inaccurate.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
885 if test "${PWD}" != "" -a "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`"; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
886 srcdir="$PWD"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
887 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
888 srcdir="`(cd ${srcdir}; pwd)`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
889 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
890 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
892 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
893
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
894 #### Check if the source directory already has a configured system in it.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
895 if test `pwd` != `sh -c cd ${srcdir} && pwd` \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
896 && test -f "${srcdir}/src/config.h"; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
897 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
898 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
899 echo " right. To configure in another directory as well, you MUST"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
900 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
901 echo " now do \`make distclean' in ${srcdir},"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
902 echo " and then run ${progname} again.") >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
903 extrasub='/^VPATH[ ]*=/c\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
904 vpath %.c $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
905 vpath %.h $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
906 vpath %.y $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907 vpath %.l $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
908 vpath %.s $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
909 vpath %.in $(srcdir)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
910 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
911
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
912 ### Make the necessary directories, if they don't exist.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
913 for dir in ./src ./lib-src ./dynodump ./lwlib ./lock ; do
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
914 if test ! -d ${dir} ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
915 mkdir ${dir}
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 done
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
918 if test "${with_energize}" = "yes" -a ! -d ./lwlib/energize; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
919 mkdir ./lwlib/energize
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
920 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
921
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
922 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
923 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
924 # Determine the s&m files to use #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
925 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
926 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
927
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
928 #### Given the configuration name, set machfile and opsysfile to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
929 #### names of the m/*.h and s/*.h files we should use.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
930
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
931 ### Canonicalize the configuration name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
932 echo "checking the configuration name"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
933 # allow -energize prefix on configuration name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
934 internal_configuration=`echo ${configuration} | sed 's/-energize//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
935 # allow --sparcworks prefix on configuration name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
936 internal_configuration=`echo ${configuration} | sed 's/-sparcworks//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
937 if canonical=`${srcdir}/config.sub "${internal_configuration}"` ; then : ; else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
938 exit $?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
939 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
940
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
941 ### If you add support for a new configuration, add code to this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
942 ### switch statement to recognize your configuration name and select
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
943 ### the appropriate operating system and machine description files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
944
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
945 ### You would hope that you could choose an m/*.h file pretty much
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
946 ### based on the machine portion of the configuration name, and an s-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
947 ### file based on the operating system portion. However, it turns out
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
948 ### that each m/*.h file is pretty manufacturer-specific - for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
949 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
950 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
951 ### machines. So we basically have to have a special case for each
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
952 ### configuration name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
953 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
954 ### As far as handling version numbers on operating systems is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
955 ### concerned, make sure things will fail in a fixable way. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
956 ### /etc/MACHINES doesn't say anything about version numbers, be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
957 ### prepared to handle anything reasonably. If version numbers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
958 ### matter, be sure /etc/MACHINES says something about it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
959 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
960 ### Eric Raymond says we should accept strings like "sysvr4" to mean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
961 ### "System V Release 4"; he writes, "The old convention encouraged
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
962 ### confusion between `system' and `release' levels'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
963
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
964 machine='' opsys='' unported=no need_dynodump=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
965 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
966
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
967 ## NetBSD ports
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
968 *-*-netbsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
969 opsys=netbsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
970 case "${canonical}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
971 sparc-*-netbsd*) machine=sparc ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
972 i[3-9]86-*-netbsd*) machine=intel386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
973 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
974 # Yes, this is somewhat bogus.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
975 machine=hp9000s300 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
976 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
977 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
978 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
979 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
980
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
981 ## Acorn RISCiX:
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
982 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
983 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
984
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
985 ## Alliant machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
986 ## Strictly speaking, we need the version of the alliant operating
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
987 ## system to choose the right machine file, but currently the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
988 ## configuration name doesn't tell us enough to choose the right
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
989 ## one; we need to give alliants their own operating system name to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
990 ## do this right. When someone cares, they can help us.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
991 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
992 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
993
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
994 ## Alpha (DEC) machines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
995 ## XEmacs change: split apart into numerous files.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
996 alpha-dec-osf1.3 | alpha-dec-osf2* ) machine=alpha opsys=decosf1-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
997 alpha-dec-osf1.2 | alpha-dec-osf1* ) machine=alpha opsys=decosf1-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
998
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
999 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1000 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1001 alpha-dec-osf3.[2-9] ) machine=alpha opsys=decosf3-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1002 alpha-dec-osf3* ) machine=alpha opsys=decosf3-1 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1003 alpha-dec-osf4* ) machine=alpha opsys=decosf4-0 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1004 alpha-*-linux* ) machine=alpha opsys=linux ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1005
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1006 ## Altos 3068
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1007 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1008
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1009 ## Amdahl UTS
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1010 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1011
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1012 ## Apollo, Domain/OS
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1013 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1014
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1015 ## AT&T 3b2, 3b5, 3b15, 3b20
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1016 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1017
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1018 ## AT&T 3b1 - The Mighty Unix PC!
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1019 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1020
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1021 ## Bull machines
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1022 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1023 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1024 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1025
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1026 ## CCI 5/32, 6/32 -- see "Tahoe".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1027
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1028 ## Celerity
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1029 ## I don't know what configuration name to use for this; config.sub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1030 ## doesn't seem to know anything about it. Hey, Celerity users, get
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1031 ## in touch with us!
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1032 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1033
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1034 ## Clipper
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1035 ## What operating systems does this chip run that XEmacs has been
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1036 ## tested on?
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1037 clipper-* ) machine=clipper
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1038 ## We'll use the catch-all code at the bottom to guess the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1039 ## operating system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1040 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1041
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1042 ## Convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1043 *-convex-bsd* | *-convex-convexos* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1044 machine=convex opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1045 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1046 NON_GNU_CPP="cc -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1047 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1048
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1049 ## Cubix QBx/386
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1050 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1051
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1052 ## Cydra 5
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1053 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1054
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1055 ## Data General AViiON Machines
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
1056 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1057 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) machine=aviion opsys=dgux5-4r3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1058 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) machine=aviion opsys=dgux5-4r2 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1059 m88k-dg-dgux* ) machine=aviion opsys=dgux ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1060
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1061 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) machine=pmax opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1062 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) machine=pmax opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1063 mips-dec-ultrix* ) machine=pmax opsys=ultrix4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1064 mips-dec-osf* ) machine=pmax opsys=osf1 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1065 mips-dec-mach_bsd4.3* ) machine=pmax opsys=mach-bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1066
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1067 ## Motorola Delta machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1068 m68k-motorola-sysv* | m68000-motorola-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1069 machine=delta opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1070 if test -z "`type gnucc | grep 'not found'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1071 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1072 if test -s /etc/167config
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1073 then CC="gnucc -m68040"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1074 else CC="gnucc -m68881"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1075 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1076 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1077 if test -z "`type gcc | grep 'not found'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1078 then CC=gcc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1079 else CC=cc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1080 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1081 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1082 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1083 m88k-motorola-sysv4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1084 # 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
1085 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1086 # I hope there are not other 4.0 versions for this machine
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1087 # which really need usg5-4 instead.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1088 machine=delta88k opsys=usg5-4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1089 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1090 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1091
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1092 ## Dual machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1093 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1094 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1095
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1096 ## Elxsi 6400
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1097 elxsi-elxsi-sysv* ) machine=elxsi opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1098
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1099 ## Encore machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1100 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1101
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1102 ## Gould Power Node and NP1
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1103 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1104 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1105 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1107 ## 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
1108 ## as far as XEmacs is concerned).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1109 m88k-harris-cxux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1110 # Build needs to be different on 7.0 and later releases
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1111 case "`uname -r`" in
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1112 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1113 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1114 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1115 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1116 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1117 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1118 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1119 ## Harris power pc NightHawk running Power UNIX (Series 6000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1120 powerpc-harris-powerunix )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1121 machine=nh6000 opsys=powerunix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1122 NON_GNU_CPP="cc -Xo -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1123 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1124
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1125 ## Honeywell XPS100
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1126 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1127
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1128 ## HP 9000 series 200 or 300
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1129 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1130
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1131 ## HP-UX on HP's
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1132 *-hp-hpux* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1133 NON_GNU_CC="cc -Aa"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1134 NON_GNU_CPP="cc -Aa -E"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1135
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1136 ### Figure out machine and opsys orthogonally
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1137 case "${canonical}" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1138 m68* ) machine=hp9000s300 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1139 hppa* ) machine=hp800 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1140 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1141
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1142 case "${canonical}" in
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1143 *-hp-hpux7* ) opsys=hpux ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1144 *-hp-hpux8* ) opsys=hpux8 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1145 *-hp-hpux9* ) opsys=hpux9 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1146 *-hp-hpux10* ) opsys=hpux10 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1147 * )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1148 case "`uname -r`" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1149 ## Someone's system reports A.B8.05 for this.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1150 ## I wonder what other possibilities there are.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1151 *.B8.* ) opsys=hpux8 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1152 *.08.* ) opsys=hpux8 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1153 *.09.* ) opsys=hpux9 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1154 *.10.* ) opsys=hpux10 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1155 * ) opsys=hpux ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1156 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1157 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1158 esac
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1159
92
6a43545367ac Import from CVS: tag r20-0test1
cvs
parents: 90
diff changeset
1160 if test $opsys = hpux10 ; then
90
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
1161 NON_GNU_CC="cc -Ae"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
1162 NON_GNU_CPP="cc -Ae -E"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
1163 fi
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
1164
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1165 case "${canonical}" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1166 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1167
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1168 hppa-*-nextstep* ) machine=hp800 opsys=nextstep ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1169
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1170 ## Orion machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1171 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1172 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1173
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1174 ## IBM machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1175 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1176 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1177 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1178 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) machine=ibmrs6000 opsys=aix3-1 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1179 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) machine=ibmrs6000 opsys=aix3-2-5 ;;
88
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
1180 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) machine=ibmrs6000 opsys=aix4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1181 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) machine=ibmrs6000 opsys=aix4-1 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1182 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) machine=ibmrs6000 opsys=aix4 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1183 rs6000-ibm-aix* | powerpc-ibm-aix* ) machine=ibmrs6000 opsys=aix3-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1184 romp-ibm-bsd4.3* ) machine=ibmrt opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1185 romp-ibm-bsd4.2* ) machine=ibmrt opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1186 romp-ibm-aos4.3* ) machine=ibmrt opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1187 romp-ibm-aos4.2* ) machine=ibmrt opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1188 romp-ibm-aos* ) machine=ibmrt opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1189 romp-ibm-bsd* ) machine=ibmrt opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1190 romp-ibm-aix* ) machine=ibmrt-aix opsys=usg5-2-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1191 romp-ibm-mach* ) machine=ibmrt opsys=mach-bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1192
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1193 ## Integrated Solutions `Optimum V'
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1194 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1195 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1196
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1197 ## Intel 386 machines where we do care about the manufacturer
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1198 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1199
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1200 ## Prime EXL
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1201 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1202
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1203 ## Sequent Symmetry running Dynix
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1204 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1205
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1206 ## Sequent Symmetry running DYNIX/ptx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1207 ## Use the old cpp rather than the newer ANSI one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1208 i[3-9]86-sequent-ptx* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1209 machine=sequent-ptx opsys=ptx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1210 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1211 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1212
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1213 ## Unspecified sysv on an ncr machine defaults to svr4.2.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1214 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1215 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1216
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1217 ## Intel Paragon OSF/1
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1218 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1220 ## Intel 860
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1221 i860-*-sysv4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1222 machine=i860 opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1223 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1224 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1225 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1226
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1227 ## Masscomp machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1228 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1229
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1230 ## Megatest machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1231 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1232
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1233 ## Workstations sold by MIPS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1234 ## This is not necessarily all workstations using the MIPS processor -
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1235 ## Irises are produced by SGI, and DECstations by DEC.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1236
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1237 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1238 ## 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
1239 ## it gives for choosing between the alternatives seems to be "Use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1240 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1241 ## the BSD world." I'll assume that these are instructions for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1242 ## handling two odd situations, and that every other situation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1243 ## should use mips.h and usg5-2-2, they being listed first.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1244 mips-mips-usg* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1245 machine=mips4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1246 ## 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
1247 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1248 mips-mips-riscos4 )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1249 machine=mips4
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1250 NON_GNU_CC="cc -systype bsd43"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1251 NON_GNU_CPP="cc -systype bsd43 -E"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1252 case "${canonical}" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1253 mips-mips-riscos4* ) opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1254 mips-mips-riscos5* ) opsys=riscos5 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1255 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1256 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1257 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1258 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1259
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1260 ## NeXT
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1261 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1262
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1263 ## The complete machine from National Semiconductor
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1264 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1265
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1266 ## NCR machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1267 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1268 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1269
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1270 ## Nixdorf Targon 31
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1271 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1272
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1273 ## Nu (TI or LMI)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1274 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1275
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1276 ## Plexus
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1277 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1278
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1279 ## Pyramid machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1280 ## 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
1281 ## so I'm assuming it is its own architecture.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1282 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1283
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1284 ## Sequent Balance
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1285 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1286 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1287
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1288 ## Siemens Nixdorf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1289 mips-siemens-sysv* | mips-sni-sysv*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1290 machine=mips-siemens opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1291 NON_GNU_CC=/usr/ccs/bin/cc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1292 NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1293 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1294
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1295 ## Silicon Graphics machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1296 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1297 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1298 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1299 ## Iris 4D
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1300 mips-sgi-irix3.* ) machine=iris4d opsys=irix3-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1301 mips-sgi-irix4.* ) machine=iris4d opsys=irix4-0 ;;
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
1302 mips-sgi-irix6* ) machine=iris4d
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
1303 opsys=irix6-0
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
1304 NON_GNU_CC="cc -Olimit 2000" ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1305 mips-sgi-irix5.[3-9]* ) machine=iris4d opsys=irix5-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1306 mips-sgi-irix5.2* ) machine=iris4d opsys=irix5-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1307 mips-sgi-irix5.1* ) machine=iris4d opsys=irix5-1 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1308 mips-sgi-irix* ) machine=iris4d opsys=irix5-0 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1309
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1310 ## SONY machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1311 m68*-sony-bsd4.2* ) machine=news opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1312 m68*-sony-bsd4.3* ) machine=news opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1313 m68*-sony-newsos3* | m68*-sony-news3*) machine=news opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1314 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) machine=news-risc opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1315 mips-sony-news* ) machine=news-risc opsys=newsos5 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1316
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1317 ## Stride
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1318 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1319
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1320 ## Suns
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1321 sparc-*-linux* ) machine=sparc opsys=linux ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1322
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1323 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1324 # Hardware type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1325 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1326 m68*-sunos1* ) machine=sun1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1327 m68*-sunos2* ) machine=sun2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1328 m68* ) machine=sun3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1329 i[3-9]86*-sun-sunos[34]* ) machine=sun386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1330 i[3-9]86-*-* ) machine=intel386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1331 rs6000* ) machine=rs6000 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1332 sparc* ) machine=sparc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1333 powerpc* ) machine=powerpc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1334 * ) unported=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1335 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1336
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1337 # Make `canonical' even more so.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1338 case "${canonical}" in *-sunos5*)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1339 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`";;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1340 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1341
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1342 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1343 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1344 # But, SunOS 5.6 no longer needs dynodump because it has a similar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1345 # function integrated.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1346 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1347 *-sunos4* )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1348 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1349 *-solaris2* )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1350 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1351 RANLIB=':'
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1352 case "${canonical}" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1353 *-solaris2.[6-9]* ) need_dynodump=no ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1354 *-solaris2* ) need_dynodump=yes ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1355 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1356 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1357
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1358 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1359 ## The Sun386 didn't get past 4.0.
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1360 i[3-9]86-*-sunos4* ) opsys=sunos4-0 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1361 *-sunos4.0* ) opsys=sunos4-0 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1362 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1363 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1364 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1365 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1366
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1367 *-solaris2.3* ) opsys=sol2-3 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1368 *-solaris2.4* ) opsys=sol2-4 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1369 *-solaris2.5* ) opsys=sol2-5 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1370 *-solaris2.[6-9]* ) opsys=sol2-6 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1371 *-solaris* ) opsys=sol2 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1372
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1373 *-mach* ) opsys=mach-bsd4-3 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1374 * ) opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1375 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1376
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1377 case "${canonical}" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1378
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1379 ## Watch out for a compiler that is guaranteed not to work.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1380 case "${canonical}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1381 *-solaris* ) test "$CC" = "/usr/ucb/cc" && unset CC ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1382 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1383 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1384
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1385 sparc-*-nextstep* ) machine=sparc opsys=nextstep ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1386
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1387 ## Tadpole 68k
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1388 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1389
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1390 ## Tahoe machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1391 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1392 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1393
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1394 ## Tandem Integrity S2
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1395 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1396
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1397 ## Tektronix XD88
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1398 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1399
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1400 ## Tektronix 16000 box (6130?)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1401 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1402 ## Tektronix 4300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1403 ## src/m/tek4300.h hints that this is a m68k machine.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1404 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1405
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1406 ## Titan P2 or P3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1407 ## We seem to have lost the machine-description file titan.h!
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1408 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1409
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1410 ## Ustation E30 (SS5E)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1411 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1412
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1413 ## Vaxen.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1414 vax-dec-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1415 machine=vax
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1416 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1417 *-bsd4.1* ) opsys=bsd4-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1418 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1419 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1420 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1421 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1422 *-vms* ) opsys=vms ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1423 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1424 * ) unported=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1425 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1426 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1427
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1428 ## Whitechapel MG1
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1429 ## We don't know what sort of OS runs on these; we'll let the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1430 ## operating system guessing code below try.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1431 ns16k-whitechapel-* ) machine=mg1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1432
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1433 ## Wicat
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1434 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1435
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1436 ## Intel 386 machines where we don't care about the manufacturer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1437 i[3-9]86-*-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1438 machine=intel386
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1439 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1440 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1441 *-isc2.2* ) opsys=isc2-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1442 *-isc4.0* ) opsys=isc4-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1443 *-isc4.* ) opsys=isc4-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1444 GCC_TEST_OPTIONS=-posix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1445 NON_GCC_TEST_OPTIONS=-Xp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1446 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1447 *-isc* ) opsys=isc3-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1448 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1449 *-esix* ) opsys=esix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1450 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1451 *-xenix* ) opsys=xenix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1452 *-linux* ) opsys=linux ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1453 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1454 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1455 *-bsdi3* ) opsys=bsdos3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1456 *-bsdi2.1* ) opsys=bsdos2-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1457 *-bsdi2* ) opsys=bsdos2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1458 *-sco3.2v5* ) opsys=sco5 ;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1459 ## This is a pain. Like the current USL cc, SCO's cc -E
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1460 ## tokenizes as it preprocesses, making configure very
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1461 ## unhappy. Unfortunately, /lib/cpp doesn't understand
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1462 ## flags like "-b elf", so we have to cheat in order to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1463 ## pick up the right defines for UNEXEC from the s-file.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1464 ## 01/05/95 robertl@dgii.com
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1465 if test "${dynamic}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1466 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1467 else
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1468 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1469 fi ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1470 *-386bsd* ) opsys=386bsd ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1471 *-freebsd* ) opsys=freebsd ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1472 *-nextstep* ) opsys=nextstep ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1473 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1474 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1475 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1476
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1477 ## Linux/68k
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1478 m68k-*-linux* ) machine=m68k opsys=linux ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1479
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1480 * ) unported=yes ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1481 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1482
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1483 ### If the code above didn't choose an operating system, just choose
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1484 ### an operating system based on the configuration name. You really
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1485 ### only want to use this when you have no idea what the right
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1486 ### operating system is; if you know what operating systems a machine
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1487 ### runs, it's cleaner to make it explicit in the case statement
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1488 ### above.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1489 if test -z "${opsys}" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1490 case "${canonical}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1491 *-gnu* ) opsys=gnu ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1492 *-bsd4.[01] ) opsys=bsd4-1 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1493 *-bsd4.2 ) opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1494 *-bsd4.3 ) opsys=bsd4-3 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1495 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1496 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1497 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1498 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1499 *-sysv4.1* | *-sysvr4.1* ) opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1500 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1501 if test -z "$NON_GNU_CPP" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1502 if test -f /usr/ccs/lib/cpp
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1503 then NON_GNU_CPP=/usr/ccs/lib/cpp
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1504 else NON_GNU_CPP=/lib/cpp
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1505 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1506 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1507 opsys=usg5-4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1508 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1509 * ) unported=yes ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1510 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1511 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1512
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1513 test -z "$RANLIB" && RANLIB=ranlib
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1514
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1515 if test ${unported} = yes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1516 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1517 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1518 ) >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1519 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1520 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1521
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1522 if test "${dynamic}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1523 case "${opsys}" in
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1524 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1525 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1526 elif test "${dynamic}" = "no" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1527 case "${opsys}" in
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
1528 sol2* | decosf1-3 | decosf3-* | decosf4-* | linux ) opsys="${opsys}-static" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1529 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1530 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1531
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1532 dynodump_arch=''
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1533 if test "${need_dynodump}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1534 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1535 sparc* ) dynodump_arch=sparc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1536 powerpc* ) dynodump_arch=ppc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1537 i[3-9]86* ) dynodump_arch=i386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1538 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1539 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1540
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1541 machfile="m/${machine}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1542 opsysfile="s/${opsys}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1543
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1544
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1545 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1546 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1547 # Determine the compiler, set up for feature testing #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1548 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1549 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1550
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1551
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1552
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1553
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1554
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1555 ac_ext=c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1556 # 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
1557 ac_cpp='${CPP}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1558 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
1559
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1560 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
1561 trap 'rm -fr confdefs* $ac_clean_files' 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1562
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1563 # Save the original args if we used an alternate arg parser.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1564 ac_configure_temp="${configure_args-$*}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1565 # Strip out --no-create and --norecursion so they don't pile up.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1566 configure_args=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1567 for ac_arg in $ac_configure_temp; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1568 case "$ac_arg" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1569 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1570 | --no-cr | --no-c) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1571 -norecursion | --norecursion | --norecursio | --norecursi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1572 | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1573 *) configure_args="$configure_args $ac_arg" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1574 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1575 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1576
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1577 # NLS nuisances.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1578 # These must not be set unconditionally because not all systems understand
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1579 # e.g. LANG=C (notably SCO).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1580 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
1581 if test "${LANG+set}" = 'set'; then LANG=C; export LANG; fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1582
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1583 # confdefs.h avoids OS command line length limits that DEFS can exceed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1584 rm -rf conftest* confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1585 # 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
1586 echo > confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1587
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1588 # A filename unique to this package, relative to the directory that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1589 # 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
1590 ac_unique_file=lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1591
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1592 # Find the source files, if location was not specified.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1593 if test -z "$srcdir"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1594 ac_srcdir_defaulted=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1595 # Try the directory containing this script, then `..'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1596 ac_prog=$0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1597 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1598 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1599 srcdir=$ac_confdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1600 if test ! -r $srcdir/$ac_unique_file; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1601 srcdir=..
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1602 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1603 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1604 if test ! -r $srcdir/$ac_unique_file; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1605 if test x$ac_srcdir_defaulted = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1606 echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1607 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1608 echo "configure: can not find sources in ${srcdir}" >&2; exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1609 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1610 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1611 ac_ext=c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1612 # 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
1613 ac_cpp='${CPP}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1614 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
1615
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1616
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1617
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1618
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1619 if test "${extra_verbose}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1620 # 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
1621 # it omits the redirection of all output to /dev/null.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1622 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1623 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1624
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1625 #### Choose a compiler.
92
6a43545367ac Import from CVS: tag r20-0test1
cvs
parents: 90
diff changeset
1626 if test "x$CC" = x ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1627 cc_specified=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1628 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1629
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1630 # Save the value of CFLAGS that the user specified.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1631 SPECIFIED_CFLAGS="$CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1632
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1633 if test "${with_gcc}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1634 CC="${compiler-gcc}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1635 GCC=1
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1636 elif test "${with_lcc}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1637 CC="${compiler-lcc}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1638 dash_r_space=' ' # this bullshit is here because lcc for solaris
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1639 # will not accept -Rargument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1640 # It needs -R argument instead. Yuck yuck yuck.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1641 test -z "$NON_GNU_CPP" && NON_GNU_CPP="yes" # this is handled specially below...
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1642 elif test "${compiler}" != "" ; then CC="${compiler}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1643 elif test "${with_gcc}" = "no" ; then CC="cc"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1644 elif test "${with_lcc}" = "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1645 test -z "$CC" && CC=cc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1646 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1647 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1648 * )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1649 if test -z "$CC"; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1650 # 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
1651 set ac_dummy gcc; ac_word=$2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1652 test -n "$silent" || echo "checking for $ac_word"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1654 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1655 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1656 if test -f $ac_dir/$ac_word; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1657 CC="gcc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1658 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1659 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1660 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1661 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1662 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1663 test -z "$CC" && CC="cc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1664 test -n "$CC" && test -n "$verbose" && echo " setting CC to $CC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1665
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1666 # Find out if we are using GNU C, under whatever name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1667 cat > conftest.c <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1668 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1669 yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1670 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1671 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1672 ${CC-cc} -E conftest.c > conftest.out 2>&1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1673 if egrep yes conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1674 GCC=1 # For later tests.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1675 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1676 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1677
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1678 if test "${CC}" = "gcc" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1679 with_gcc="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1680 GCC=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1681 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1682 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1683 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1684 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1685
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1686
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1687
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1688 #### Some systems specify a CPP to use unless we are using GCC.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1689 #### Now that we know whether we are using GCC, we can decide whether
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1690 #### to use that one.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1691 if test "x$NON_GNU_CPP" = x -o x$GCC = x1
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1692 then true
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1693 else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1694 if test "x$CPP" = x ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1695 if test "${with_lcc}" = "yes" -a "${NON_GNU_CPP}" = "yes"; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1696 CPP='gcc -E -traditional' # cross fingers and hope it's there....
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1697 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1698 CPP="$NON_GNU_CPP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1699 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1700 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1701 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1702
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1703 #### Some systems specify a CC to use unless we are using GCC.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1704 #### Now that we know whether we are using GCC, we can decide whether
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1705 #### to use that one.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1706 if test "x$NON_GNU_CC" = x -o x$GCC = x1 -o x$cc_specified = x1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1707 then true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1708 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1709 CC="$NON_GNU_CC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1710 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1711
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1712 ## Huh? I commented out the following because it always enabled
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1713 ## the "test" options, whatever the hell those are supposed to be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1714 ## for, and the result is that SunOS builds were always static.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1715
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1716 # test x$GCC = x1 -a "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1717 # test x$GCC = x -a "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1718
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1719 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1720 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1721 # Do some misc autoconf-special tests #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1722 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1723 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1724
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1725 #### Some other nice autoconf tests. If you add a test here which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1726 #### 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
1727 #### #undef clause to src/config.h.in for autoconf to modify.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1728
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1729 test -n "$silent" || echo "checking how to run the C preprocessor"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1730 if test -z "$CPP"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1731 # This must be in double quotes, not single quotes, because CPP may get
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1732 # substituted into the Makefile and ``${CC-cc}'' will simply confuse
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1733 # make. It must be expanded now.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1734 CPP="${CC-cc} -E"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1735 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1736 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1737 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1738 Syntax Error
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1739 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1740 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1741 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1742 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1743 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1744 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1745 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1746 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1747 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1748 CPP="${CC-cc} -E -traditional-cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1749 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1750 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1751 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1752 Syntax Error
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1753 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1754 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1755 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1756 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1757 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1758 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1759 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1760 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1761 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1762 CPP=/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1763 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1764 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1765 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1766 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1767 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1768 test -n "$verbose" && echo " setting CPP to $CPP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1769
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1770
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1771 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1772 *-sun-sunos* )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1773 if test "${CPP}" = "acc -E" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1774 CPP="acc -E -Xs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1775 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1776 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1777 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1778
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1779 if test -z "$RANLIB"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1780 # 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
1781 set ac_dummy ranlib; ac_word=$2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1782 test -n "$silent" || echo "checking for $ac_word"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1784 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1785 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1786 if test -f $ac_dir/$ac_word; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1787 RANLIB="ranlib"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1788 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1789 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1790 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1791 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1792 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1793 test -z "$RANLIB" && RANLIB=":"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1794 test -n "$RANLIB" && test -n "$verbose" && echo " setting RANLIB to $RANLIB"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1795
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1796 # Make sure to not get the incompatible SysV /etc/install and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1797 # /usr/sbin/install, which might be in PATH before a BSD-like install,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1798 # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1799 # or the AFS install, which mishandles nonexistent args, or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1800 # /usr/ucb/install on SVR4, which tries to use the nonexistent group
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1801 # `staff', or /sbin/install on IRIX which has incompatible command-line
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1802 # syntax. Sigh.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1803 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1804 # On most BSDish systems install is in /usr/bin, not /usr/ucb
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1805 # anyway.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1806 # 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
1807 # 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
1808 # 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
1809 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1810 # Avoid using ./install, which might have been erroneously created
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1811 # by make from ./install.sh.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1812 if test -z "${INSTALL}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1813 test -n "$silent" || echo "checking for a BSD compatible install"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1815 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1816 case "$ac_dir" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1817 ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1818 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1819 # OSF1 and SCO ODT 3.0 have their own names for install.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1820 for ac_prog in installbsd scoinst install; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1821 if test -f $ac_dir/$ac_prog; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1822 if test $ac_prog = install &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1823 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1824 # AIX install. It has an incompatible calling convention.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1825 # OSF/1 installbsd also uses dspmsg, but is usable.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1826 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1827 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1828 INSTALL="$ac_dir/$ac_prog -c"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1829 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1830 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1831 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1832 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1833 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1834 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1835 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1836 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1837 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1838
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1839 if test -z "$INSTALL"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1840 # As a last resort, use the slow shell script.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1841 for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1842 if test -f $ac_dir/install.sh; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1843 INSTALL="$ac_dir/install.sh -c"; break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1844 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1845 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1846 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1847 if test -z "$INSTALL"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1848 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
1849 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1850 test -n "$verbose" && echo " setting INSTALL to $INSTALL"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1851
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1852 # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1853 # It thinks the first close brace ends the variable substitution.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1855 test -n "$verbose" && echo " setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1856
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1857 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1858 test -n "$verbose" && echo " setting INSTALL_DATA to $INSTALL_DATA"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1859
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1860 for ac_prog in 'bison -y' byacc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1861 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1862 if test -z "$YACC"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1863 # 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
1864 set ac_dummy $ac_prog; ac_word=$2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1865 test -n "$silent" || echo "checking for $ac_word"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1867 for ac_dir in $PATH; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1868 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1869 if test -f $ac_dir/$ac_word; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1870 YACC="$ac_prog"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1871 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1872 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1873 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1874 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1875 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1876
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1877 test -n "$YACC" && test -n "$verbose" && echo " setting YACC to $YACC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1878
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1879 test -n "$YACC" && break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1880 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1881 test -n "$YACC" || YACC="yacc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1882
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1883
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1884 test -n "$silent" || echo "checking for AIX"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1885 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1886 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1887 #ifdef _AIX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1888 yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1889 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1890
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1891 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1892 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1893 if egrep "yes" conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1894 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1895
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1896 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1897 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1898 echo " defining _ALL_SOURCE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1899 echo "#define" _ALL_SOURCE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1900 DEFS="$DEFS -D_ALL_SOURCE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1901 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
1902 \${ac_uA}_ALL_SOURCE\${ac_uB}_ALL_SOURCE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1903 \${ac_eA}_ALL_SOURCE\${ac_eB}_ALL_SOURCE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1904 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1905 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1906
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1907
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1908 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1909 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1910
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1911
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1912
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1913 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 kstat.h sys/pstat.h
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1914 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1915 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1916 test -n "$silent" || echo "checking for ${ac_hdr}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1917 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1918 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1919 #include <${ac_hdr}>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1920 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1921 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1922 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1923 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1924 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1925 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1926 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1927
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1928 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1929 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1930 echo " defining ${ac_tr_hdr}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1931 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1932 DEFS="$DEFS -D${ac_tr_hdr}=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1933 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
1934 \${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
1935 \${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
1936 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1937 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1938
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1939
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1940 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1941 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1942 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1943
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1944 test -n "$silent" || echo "checking for ANSI C header files"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1945 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1946 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1947 #include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1948 #include <stdarg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1949 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1950 #include <float.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1951 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1952 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1953 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1954 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1955 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1956 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1957 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1958 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1959 echo '#include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1960 #include <string.h>' > conftest.${ac_ext}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1961 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1962 if egrep "memchr" conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1963 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1964 # 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
1965 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1966 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1967 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1968 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1969 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1970 #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1971 int main () { int i; for (i = 0; i < 256; i++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1972 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1973 exit (0); }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1974
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1975 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1976 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1977 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1978 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1979 echo '#include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1980 #include <stdlib.h>' > conftest.${ac_ext}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1981 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1982 if egrep "free" conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1983 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1984
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1985 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1986 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1987 echo " defining STDC_HEADERS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1988 echo "#define" STDC_HEADERS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1989 DEFS="$DEFS -DSTDC_HEADERS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1990 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
1991 \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1992 \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1993 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1994 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1995
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1996
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1997 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1998 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1999
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2001 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2002 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2003
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2004 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2005 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2006
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2007
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2008 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2009 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2010
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2011 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
2012 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2013 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2014 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2015 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2016 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2017 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2018 int t() { struct tm *tp;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2019 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2020 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2021 rm -rf conftest*
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 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2025 echo " defining TIME_WITH_SYS_TIME"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2026 echo "#define" TIME_WITH_SYS_TIME "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2027 DEFS="$DEFS -DTIME_WITH_SYS_TIME=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2028 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
2029 \${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
2030 \${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
2031 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2032 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2033
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2034
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2035 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2036 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2037
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2038 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
2039 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2040 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2041 #include <signal.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2042 /* NetBSD declares sys_siglist in <unistd.h>. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2043 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2044 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2045 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2046 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2047 int t() { char *msg = *(sys_siglist + 1);; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2048 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2049 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2050 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2051
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2052 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2053 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2054 echo " defining SYS_SIGLIST_DECLARED"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2055 echo "#define" SYS_SIGLIST_DECLARED "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2056 DEFS="$DEFS -DSYS_SIGLIST_DECLARED=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2057 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
2058 \${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
2059 \${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
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2063
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2064 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2065 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2066
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2067
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2068 test -n "$silent" || echo "checking for struct utimbuf"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2069 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2070 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2071 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2072 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2073 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2074 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2075 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2076 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2077 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2078 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2079 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2080 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2081 #ifdef HAVE_UTIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2082 #include <utime.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2083 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2084 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2085 int t() { static struct utimbuf x; x.actime = x.modtime;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2086 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2087 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2088 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2089
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2090 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2091 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2092 echo " defining HAVE_STRUCT_UTIMBUF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2093 echo "#define" HAVE_STRUCT_UTIMBUF "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2094 DEFS="$DEFS -DHAVE_STRUCT_UTIMBUF=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2095 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
2096 \${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
2097 \${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
2098 "
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2102 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2103 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2105
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2106 test -n "$silent" || echo "checking for return type of signal handlers"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2107 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2108 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2109 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2110 #include <signal.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2111 #ifdef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2112 #undef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2113 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2114 extern void (*signal ()) ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2115 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2116 int t() { int i;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2117 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2118 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2119 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2121 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2122 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2123 echo " defining" RETSIGTYPE to be "void"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2124 echo "#define" RETSIGTYPE "void" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2125 DEFS="$DEFS -DRETSIGTYPE=void"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2126 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
2127 \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2128 \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2129 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2130 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2132
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2133 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2134 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2135
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2136 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2137 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2138 echo " defining" RETSIGTYPE to be "int"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2139 echo "#define" RETSIGTYPE "int" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2140 DEFS="$DEFS -DRETSIGTYPE=int"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2141 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
2142 \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2143 \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2144 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2145 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2146
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2147 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2148 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2149
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2150
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2151
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2152 test -n "$silent" || echo "checking for struct timeval"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2153 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2154 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2155 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2156 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2157 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2158 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2159 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2160 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2161 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2162 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2163 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2164 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2165 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2166 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
2167 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2168 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2169 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2170
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2171 HAVE_TIMEVAL=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2172
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2173 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2174 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2175 echo " defining HAVE_TIMEVAL"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2176 echo "#define" HAVE_TIMEVAL "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2177 DEFS="$DEFS -DHAVE_TIMEVAL=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2178 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
2179 \${ac_uA}HAVE_TIMEVAL\${ac_uB}HAVE_TIMEVAL\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2180 \${ac_eA}HAVE_TIMEVAL\${ac_eB}HAVE_TIMEVAL\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2181 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2182 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2183
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2184
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2185 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2186 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2187 HAVE_TIMEVAL=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2188 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2189 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2190
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2191
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2192 test -n "$silent" || echo "checking for struct tm in time.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2193 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2194 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2195 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2196 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2197 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2198 int t() { struct tm *tp; tp->tm_sec;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2199 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2200 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2201 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2202 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2203 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2204
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2205 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2206 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2207 echo " defining TM_IN_SYS_TIME"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2208 echo "#define" TM_IN_SYS_TIME "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2209 DEFS="$DEFS -DTM_IN_SYS_TIME=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2210 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
2211 \${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
2212 \${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
2213 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2214 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2215
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2216 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2217 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2218
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2219 ac_decl='#include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2220 '
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2221 case "$DEFS" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2222 *TM_IN_SYS_TIME*) ac_decl="$ac_decl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2223 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2224 " ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2225 *) ac_decl="$ac_decl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2226 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2227 " ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2228 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2229 test -n "$silent" || echo "checking for tm_zone in struct tm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2230 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2231 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2232 $ac_decl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2233 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2234 int t() { struct tm tm; tm.tm_zone;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2235 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2236 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2237 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2238
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2239 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2240 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2241 echo " defining HAVE_TM_ZONE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2242 echo "#define" HAVE_TM_ZONE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2243 DEFS="$DEFS -DHAVE_TM_ZONE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2244 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
2245 \${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
2246 \${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
2247 "
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2251 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2252 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2253 ac_no_tm_zone=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2254 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2255 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2256
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2257 if test -n "$ac_no_tm_zone"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2258 test -n "$silent" || echo "checking for tzname"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2259 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2260 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2261 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2262 #ifndef tzname /* For SGI. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2263 extern char *tzname[]; /* RS6000 and others want it this way. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2264 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2265 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2266 int t() { atoi(*tzname);; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2267 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2268 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2269 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2270
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2271 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2272 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2273 echo " defining HAVE_TZNAME"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2274 echo "#define" HAVE_TZNAME "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2275 DEFS="$DEFS -DHAVE_TZNAME=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2276 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
2277 \${ac_uA}HAVE_TZNAME\${ac_uB}HAVE_TZNAME\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2278 \${ac_eA}HAVE_TZNAME\${ac_eB}HAVE_TZNAME\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2279 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2280 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2281
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2282
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2283 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2284 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2285
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2286 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2287
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2288
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2289 ac_prog='/* Ultrix mips cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2290 typedef int charset[2]; const charset x;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2291 /* SunOS 4.1.1 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2292 char const *const *ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2293 char **p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2294 /* AIX XL C 1.02.0.0 rejects this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2295 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
2296 of an if-expression whose if-part is not a constant expression */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2297 const char *g = "string";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2298 ccp = &g + (g ? g-g : 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2299 /* HPUX 7.0 cc rejects these. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2300 ++ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2301 p = (char**) ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2302 ccp = (char const *const *) p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2303 { /* SCO 3.2v4 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2304 char *t;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2305 char const *s = 0 ? (char *) 0 : (char const *) 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2306
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2307 *t++ = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2308 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2309 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2310 int x[] = {25,17};
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2311 const int *foo = &x[0];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2312 ++foo;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2313 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2314 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2315 typedef const int *iptr;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2316 iptr p = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2317 ++p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2318 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2319 { /* AIX XL C 1.02.0.0 rejects this saying
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2320 "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
2321 struct s { int j; const int *ap[3]; };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2322 struct s *b; b->j = 5;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2323 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2324 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2325 const int foo = 10;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2326 }'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2327 test -n "$silent" || echo "checking for lack of working const"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2328 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2329 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2330
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2331 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2332 int t() { $ac_prog; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2333 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2334 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2335 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2336 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2337 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2338
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2339 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2340 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2341 echo " defining" const to be empty
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2342 echo "#define" const "" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2343 DEFS="$DEFS -Dconst="
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2344 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
2345 \${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2346 \${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2347 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2348 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2349
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2350 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2351 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2352
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2353
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2354 cat > conftestmake <<'EOF'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2355 all:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2356 @echo 'ac_maketemp="${MAKE}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2357 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2358 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2359 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2360 if test -n "$ac_maketemp"; then SET_MAKE=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2361 else SET_MAKE="MAKE=${MAKE-make}"; fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2362 rm -f conftestmake
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2363
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2364
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2365 test -n "$silent" || echo "checking byte ordering"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2366 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2367 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2368 main () {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2369 /* Are we little or big endian? From Harbison&Steele. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2370 union
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2371 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2372 long l;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2373 char c[sizeof (long)];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2374 } u;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2375 u.l = 1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2376 exit (u.c[sizeof (long) - 1] == 1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2377 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2378 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2379 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2380 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2381 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2382 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2383
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2384 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2385 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2386 echo " defining WORDS_BIGENDIAN"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2387 echo "#define" WORDS_BIGENDIAN "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2388 DEFS="$DEFS -DWORDS_BIGENDIAN=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2389 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
2390 \${ac_uA}WORDS_BIGENDIAN\${ac_uB}WORDS_BIGENDIAN\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2391 \${ac_eA}WORDS_BIGENDIAN\${ac_eB}WORDS_BIGENDIAN\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2392 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2393 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2394
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2395 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2396 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2397
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2398
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2399 test -n "$silent" || echo "checking for long file names"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2400 ac_some_dir_failed=false
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2401 # Test for long file names in all the places we know might matter:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2402 # . the current directory, where building will happen
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2403 # /tmp where it might want to write temporary files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2404 # /var/tmp likewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2405 # /usr/tmp likewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2406 # $prefix/lib where we will be installing things
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2407 # $exec_prefix/lib likewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2408 # eval it to expand exec_prefix.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2409 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
2410 test -d $ac_dir || continue
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2411 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
2412 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2413 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2414 val=`cat $ac_dir/conftest9012345 2>/dev/null`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2415 test -f $ac_dir/conftest9012345 && test "$val" = 1 || ac_some_dir_failed=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2416 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2> /dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2417 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2418 $ac_some_dir_failed ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2419 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2420 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2421 echo " defining HAVE_LONG_FILE_NAMES"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2422 echo "#define" HAVE_LONG_FILE_NAMES "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2423 DEFS="$DEFS -DHAVE_LONG_FILE_NAMES=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2424 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
2425 \${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
2426 \${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
2427 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2428 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2429
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2430
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2431
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2432 echo "checking for -xildoff compiler flag"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2433 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
2434 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
2435 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2436 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2437 test -n "$verbose" && echo " defining NEED_XILDOFF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2438 need_xildoff=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2439 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2440 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2441
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2442
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2443 # What the hell was this doing here??????
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2444 ### echo > confdefs.h # this gets nuked above...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2445
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2446 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2447 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2448 # Choose a window system #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2449 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2450 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2451
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2452 #### Choose a window system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2453 echo "checking for specified window system"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2454
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2455 window_system=''
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2456 case "${with_x11}" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2457 yes ) window_system=${window_system}x11 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2458 no ) window_system=${window_system}none ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2459 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2460
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2461 case "${window_system}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2462 "none" | "x11" ) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2463 "" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2464 # --x-includes or --x-libraries implies --with-x11.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2465 if test -n "${x_includes}" -o -n "${x_libraries}"; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2466 window_system=x11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2467 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2468 echo " No window system specified. Looking for X11."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2469 # If the user didn't specify a window system and we found X11, use it.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2470 if test -r /usr/lib/libX11.a \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2471 -o -d /usr/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2472 -o -d /usr/X386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2473 -o -d /usr/X11R6/include \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2474 -o -d ${x_includes}/X11 ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2475 window_system=x11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2476 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2477 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2478 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2479 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2480 echo "Don't specify a window system more than once." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2481 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2482 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2483 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2484
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2485
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2486 case "${window_system}" in "" | "x11" )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2487 ### If the user hasn't specified where we should find X, try
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2488 ### letting autoconf figure that out.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2489 if test -z "${x_includes}${x_libraries}" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2490 # If we find X, set shell vars x_includes and x_libraries to the paths.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2491 no_x=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2492 if test "x$with_x" != xno; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2493 test -n "$silent" || echo "checking for X include and library files with xmkmf"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2494 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2495 if mkdir conftestdir; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2496 cd conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2497 # 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
2498 cat > Imakefile <<'EOF'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2499 acfindx:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2500 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2501 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2502 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2503 no_x=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2504 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2505 eval `make acfindx 2>/dev/null | grep -v make`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2506 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2507 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
2508 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2509 ac_im_usrlibdir=$ac_im_libdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2510 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2511 case "$ac_im_incroot" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2512 /usr/include) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2513 *) test -z "$x_includes" && x_includes="$ac_im_incroot" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2514 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2515 case "$ac_im_usrlibdir" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2516 /usr/lib | /lib) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2517 *) test -z "$x_libraries" && x_libraries="$ac_im_usrlibdir" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2518 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2519 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2520 cd ..
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2521 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2522 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2523
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2524 if test -z "$ac_im_usrlibdir"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2525 test -n "$silent" || echo "checking for X include and library files directly"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2526 if test ".$x_direct_test_library" = . ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2527 x_direct_test_library='Xt'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2528 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2529 if test ".$x_direct_test_include" = . ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2530 x_direct_test_include='X11/Intrinsic.h'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2531 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2532 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2533 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2534 #include <$x_direct_test_include>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2535 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2536 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2537 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2538 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2539 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2540 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2541 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2542 no_x=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2543
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2544 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2545 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2546 for ac_dir in \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2547 /usr/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2548 /usr/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2549 /usr/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2550 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2551 /usr/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2552 /usr/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2553 /usr/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2554 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2555 /usr/local/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2556 /usr/local/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2557 /usr/local/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2558 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2559 /usr/local/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2560 /usr/local/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2561 /usr/local/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2562 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2563 /usr/X11/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2564 /usr/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2565 /usr/local/X11/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2566 /usr/local/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2567 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2568 /usr/X386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2569 /usr/x386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2570 /usr/XFree86/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2571 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2572 /usr/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2573 /usr/local/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2574 /usr/unsupported/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2575 /usr/athena/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2576 /usr/local/x11r5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2577 /usr/lpp/Xamples/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2578 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2579 /usr/openwin/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2580 /usr/openwin/share/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2581 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2582 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2583 if test -r "$ac_dir/$x_direct_test_include"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2584 test -z "$x_includes" && x_includes=$ac_dir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2585 no_x=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2586 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2587 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2588 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2589 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2590 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2591
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2592 # Check for the libraries. First see if replacing the `include' by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2593 # `lib' works.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2594 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2595 LIBS="${LIBS} -l"$x_direct_test_library""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2596 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2597 test -n "$silent" || echo "checking for -l"$x_direct_test_library""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2598 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2599 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2600
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2601 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2602 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2603 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2604 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2605 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2606 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2607
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2608 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2609 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2610 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2611 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2612 :; no_x=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2613 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2614 :; for ac_dir in `echo "$x_includes" | sed s/include/lib/` \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2615 /usr/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2616 /usr/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2617 /usr/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2618 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2619 /usr/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2620 /usr/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2621 /usr/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2622 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2623 /usr/local/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2624 /usr/local/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2625 /usr/local/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2626 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2627 /usr/local/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2628 /usr/local/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2629 /usr/local/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2630 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2631 /usr/X11/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2632 /usr/lib/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2633 /usr/local/X11/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2634 /usr/local/lib/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2635 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2636 /usr/X386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2637 /usr/x386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2638 /usr/XFree86/lib/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2639 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2640 /usr/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2641 /usr/local/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2642 /usr/unsupported/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2643 /usr/athena/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2644 /usr/local/x11r5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2645 /usr/lpp/Xamples/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2646 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2647 /usr/openwin/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2648 /usr/openwin/share/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2649 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2650 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2651 for ac_extension in a so sl; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2652 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2653 test -z "$x_libraries" && x_libraries=$ac_dir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2654 no_x=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2655 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2656 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2657 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2658 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2659 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2660
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 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
2663 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
2664 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2665
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2666 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2667 if test -n "${x_includes}${x_libraries}" ; then window_system=x11 ; fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2668 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2669 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2670
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2671 test -z "${window_system}" && window_system="none"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2672
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2673 if test "${window_system}" = "none" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2674 if test "${with_tty}" != "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2675 echo "No window system support, and no TTY support." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2676 echo "Unable to proceed." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2677 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2678 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2679 for feature in epoch cde offix menubars scrollbars toolbars dialogs xim tiff
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2680 do
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2681 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2682 echo "configure: warning: --with-$feature ignored: Not valid without X support" >&2
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2683 fi
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
2684 eval "with_$feature=no"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2685 done
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2686 elif test -z "${with_toolbars}" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2687 with_toolbars='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2688 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2689
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2690 runtime_arg="-R${dash_r_space}"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2691
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2692 case "${canonical}" in
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2693 *-sun-solaris* | *-sun-sunos5* )
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2694 add_runtime_flag=yes ;;
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2695 *-sgi-irix5.* )
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2696 # In the IRIX 5.3 ld, only the last -rpath arg has any effect. This is
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2697 # fundamentaly incompatible with having separate LD_SWITCH_X_SITE
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2698 # and LD_SWITCH_SITE variables. Fortunately, SGI fixed this by 6.2.
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
2699 if test -n "${x_libraries}" || test -n "${site_runtime_libraries}" ; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2700 (echo "WARNING: The IRIX 5 ld ignores all but the last -rpath argument,";
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2701 echo " so if you need to specify more than one additional";
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2702 echo " runtime library directory, you will have to do so";
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2703 echo " manually by setting the environment variable";
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2704 echo " LD_SWITCH_SITE to '-rpath <path>' before running";
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2705 echo " configure. If you have only one additional directory,"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2706 echo " you can specify it with --site-runtime-libraries.") >&2
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2707 fi
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2708 runtime_arg="-rpath " ;;
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2709 *-sgi-irix* )
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2710 # Note that IRIX gcc (as of 2.7.2) doesn't accept -rpath, so
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2711 # using it can cause trouble. Specifying --use-gcc=no will work
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2712 # around this, but the real problem is that configure uses $LDFLAGS
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2713 # as arguments to $(CC), instead of using prefix-args like the
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2714 # src/Makefile does.
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2715 add_runtime_flag=yes;
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2716 runtime_arg="-rpath " ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2717 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2718
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2719 if test -n "${x_libraries}" ; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2720 if test "${add_runtime_flag}" = "yes" ; then
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2721 LD_SWITCH_X_SITE="-L${x_libraries} ${runtime_arg}${x_libraries}"
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
2722 else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2723 LD_SWITCH_X_SITE="-L${x_libraries}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2724 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2725 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2726 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2727 # test -n "${x_libraries}" -a LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2728 test -n "${x_includes}" && C_SWITCH_X_SITE="-I${x_includes}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2729
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2730 if test -n "${site_libraries}" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2731 for arg in ${site_libraries}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2732 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2733 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2734 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2735 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2736 if test -n "${site_runtime_libraries}" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2737 for arg in ${site_runtime_libraries}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2738 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2739 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2740 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${runtime_arg}${arg}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2741 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2742 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2743 if test -n "${site_includes}" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2744 for arg in ${site_includes}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2745 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2746 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2747 CPP="${CPP} -I${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2748 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2749 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2750
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2751 # FSF 19.29 has some bitmapdir stuff here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2752 bitmapdir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2753
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2754 # Avoid forcing the search of /usr/include before fixed include files.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2755 test "$C_SWITCH_X_SITE" = "-I/usr/include" && C_SWITCH_X_SITE=" "
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2756
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2757 # Need for check for audio/Xtutil.h.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2758 CPP="${CPP} ${C_SWITCH_X_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2759
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2760 case "${window_system}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2761 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2762 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2763 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2764
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2765 if test "${opsys}" = "hpux9"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2766 case "${x_libraries}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2767 *X11R4* ) opsysfile="s/hpux9-x11r4.h" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2768 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2769 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2770
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
2771 if test "${opsys}" = "hpux9-shr"; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2772 case "${x_libraries}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2773 *X11R4* ) opsysfile="s/hpux9shxr4.h" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2774 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2775 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2776
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2777 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2778 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2779 # Extract some information from the operating system and machine files #
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2783 echo "examining the machine- and system-dependent files to find out"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2784 echo " - which libraries the lib-src programs will want, and"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2785 echo " - whether the GNU malloc routines are usable."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2786
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2787 ### First figure out CFLAGS (which we use for running the compiler here)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2788 ### and REAL_CFLAGS (which we use for real compilation).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2789 ### 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
2790 ### different to work around various lossages. For example,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2791 ### 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
2792 ### as implying static linking.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2793
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2794 ### If the CFLAGS env var is specified, we use that value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2795 ### instead of the default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2796
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2797 ### 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
2798 ### two configures in the same directory and have anything work
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2799 ### anyway.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2800 tempcname="conftest.c"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2801
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2802 echo '
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2803 #define NOT_C_CODE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2804 #include "'${srcdir}'/src/'${opsysfile}'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2805 #include "'${srcdir}'/src/'${machfile}'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2806 #ifndef LIBS_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2807 #define LIBS_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2808 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2809 #ifndef LIBS_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2810 #define LIBS_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2811 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2812 #ifndef C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2813 #define C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2814 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2815 #ifndef C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2816 #define C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2817 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2818 #ifndef C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2819 #define C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2820 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2821 #ifndef LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2822 #define LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2823 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2824 #ifndef LIB_STANDARD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2825 #define LIB_STANDARD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2826 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2827 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM LIB_STANDARD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2828 configure___ c_switch_system=C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2829 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2830 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2831 configure___ c_switch_machine=C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2832
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2833 #ifndef LIB_X11_LIB
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2834 #define LIB_X11_LIB -lX11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2835 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2836
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2837 #ifndef LIBX11_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2838 #define LIBX11_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2839 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2840
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2841 #ifndef LIBX11_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2842 #define LIBX11_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2843 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2844 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2845
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2846 #ifdef UNEXEC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2847 configure___ unexec=UNEXEC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2848 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2849 configure___ unexec=unexec.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2850 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2851
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2852 #ifdef SYSTEM_MALLOC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2853 configure___ system_malloc=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2854 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2855 configure___ system_malloc=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2856 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2857
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2858 #ifndef C_DEBUG_SWITCH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2859 #define C_DEBUG_SWITCH -g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2860 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2861
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2862 #ifndef C_OPTIMIZE_SWITCH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2863 #define C_OPTIMIZE_SWITCH -O
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2864 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2865
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2866 #ifdef THIS_IS_CONFIGURE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2867
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2868 /* Get the CFLAGS for tests in configure. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2869 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2870 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2871 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2872 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2873 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2874
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2875 #else /* not THIS_IS_CONFIGURE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2876
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2877 /* Get the CFLAGS for real compilation. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2878 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2879 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2880 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2881 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2882 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2883
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2884 #endif /* not THIS_IS_CONFIGURE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2885 ' > ${tempcname}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2886 # 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
2887 # to get its actual value...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2888 CPP=`eval "echo $CPP"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2889 eval `${CPP} -Isrc ${tempcname} \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2890 | grep 'configure___' \
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
2891 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2892 if test "x$SPECIFIED_CFLAGS" = x ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2893 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2894 | grep 'configure___' \
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
2895 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2896 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2897 REAL_CFLAGS="$CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2898 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2899 rm ${tempcname}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2900
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2901 # override CFLAGS if user wishes
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2902 if test "${cflags}" != "NO_CFLAGS_DEFINED" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2903 REAL_CFLAGS=${cflags}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2904 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2905
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2906 ### Compute the unexec source name from the object name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2907 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2908
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2909 # Do the opsystem or machine files prohibit the use of the GNU malloc?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2910 # Assume not, until told otherwise.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2911 GNU_MALLOC=yes
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2912 if test "${system_malloc}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2913 GNU_MALLOC=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2914 GNU_MALLOC_reason="
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2915 (The GNU allocators don't work with this system configuration.)"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2916 elif test "${use_system_malloc}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2917 GNU_MALLOC=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2918 GNU_MALLOC_reason="
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2919 (User chose not to use GNU allocators.)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2920 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2921
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2922 LISP_FLOAT_TYPE=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2923
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2924
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2925 #### Add the libraries to LIBS and check for some functions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2926
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
2927
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2928 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
2929 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
2930 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2931
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2932 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2933 LIBS="${LIBS} -ldnet"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2934 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2935 test -n "$silent" || echo "checking for -ldnet"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2936 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2937 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2938
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2939 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2940 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2941 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2942 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2943 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2944 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2945
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2946 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2947 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2948 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2949 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2950
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2951 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2952 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2953 echo " defining HAVE_LIBDNET"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2954 echo "#define" HAVE_LIBDNET "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2955 DEFS="$DEFS -DHAVE_LIBDNET=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2956 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
2957 \${ac_uA}HAVE_LIBDNET\${ac_uB}HAVE_LIBDNET\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2958 \${ac_eA}HAVE_LIBDNET\${ac_eB}HAVE_LIBDNET\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2959 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2960 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2961
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2962 LIBS="${LIBS} -ldnet"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2963 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2964
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2965
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2966 ac_save_LIBS="${LIBS}"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2967 LIBS="${LIBS} -lkstat"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2968 ac_have_lib=""
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2969 test -n "$silent" || echo "checking for -lkstat"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2970 cat > conftest.${ac_ext} <<EOF
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2971 #include "confdefs.h"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2972
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2973 int main() { return 0; }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2974 int t() { main();; return 0; }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2975 EOF
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2976 if eval $ac_compile; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2977 rm -rf conftest*
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2978 ac_have_lib="1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2979
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2980 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2981 rm -f conftest*
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2982 LIBS="${ac_save_LIBS}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2983 if test -n "${ac_have_lib}"; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2984
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2985 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2986 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2987 echo " defining HAVE_LIBKSTAT"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2988 echo "#define" HAVE_LIBKSTAT "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2989 DEFS="$DEFS -DHAVE_LIBKSTAT=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2990 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBKSTAT\${ac_dB}HAVE_LIBKSTAT\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2991 \${ac_uA}HAVE_LIBKSTAT\${ac_uB}HAVE_LIBKSTAT\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2992 \${ac_eA}HAVE_LIBKSTAT\${ac_eB}HAVE_LIBKSTAT\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2993 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2994 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2995
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2996 LIBS="${LIBS} -lkstat"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2997 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2998
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2999
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3000 ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3001 LIBS="${LIBS} -lXbsd"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3002 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3003 test -n "$silent" || echo "checking for -lXbsd"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3004 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3005 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3006
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3007 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3008 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3009 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3010 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3011 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3012 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3013
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3014 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3015 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3016 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3017 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3018 :; LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3019 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3020 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3021 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3022
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3023
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3024 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3025 LIBS="${LIBS} -lpthreads"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3026 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3027 test -n "$silent" || echo "checking for -lpthreads"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3028 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3029 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3030
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3031 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3032 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3033 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3034 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3035 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3036 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3037
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3038 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3039 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3040 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3041 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3042 :; HAVE_PTHREADS=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3043 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3044 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3045 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3046
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3047 if test -n "${HAVE_PTHREADS}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3048
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3049 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3050 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3051 echo " defining HAVE_PTHREADS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3052 echo "#define" HAVE_PTHREADS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3053 DEFS="$DEFS -DHAVE_PTHREADS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3054 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
3055 \${ac_uA}HAVE_PTHREADS\${ac_uB}HAVE_PTHREADS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3056 \${ac_eA}HAVE_PTHREADS\${ac_eB}HAVE_PTHREADS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3057 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3058 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3059
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3060 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3061 decosf* ) CFLAGS="${CFLAGS} -threads" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3062 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3063 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3064
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3065 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3066 test -n "$silent" || echo "checking for XFree86"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3067 if test -d /usr/X386/include; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3068 HAVE_XFREE386=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3069 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
3070 elif test -f /etc/XF86Config -o \
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
3071 -f /etc/X11/XF86Config -o \
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
3072 -f /usr/X11R6/lib/X11/XF86Config; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3073 HAVE_XFREE386=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3074 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
3075 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3076 HAVE_XFREE386=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3077 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3078 test -n "$verbose" && echo " ${HAVE_XFREE386}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3079 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3080 HAVE_XFREE386=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3081 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3082
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3083 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3084 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3085 # Test for various X-specific features #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3086 # #
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 # Change CFLAGS temporarily for damn binutils 2.6.0.10 check.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3090 if test "${HAVE_X_WINDOWS}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3091 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3092 linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3093 CFLAGS="-Wl,-rpath-link,/usr/X11R6/lib $CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3094 test -n "$silent" || echo "checking for whether path-link option is needed"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3095 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3096 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3097
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3098 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3099 int t() { ;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3100 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3101 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3102 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3103 need_path_link=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3105 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3106 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3107 need_path_link=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3108 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3109 rm -f 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 if test "${need_path_link}" = "no"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3112 CFLAGS="$REAL_CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3113 test -n "$verbose" && echo " no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3114 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3115 test -n "$verbose" && echo " yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3116 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3117 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3118 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3119 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3121 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3122 # 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
3123
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3124 if test "${HAVE_X_WINDOWS}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3125 DEFS="$C_SWITCH_X_SITE $DEFS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3126 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3127 LIBS="$LIBX $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3128 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3130 # 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
3131 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3132 # but it's more convenient here to set LD_RUN_PATH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3133 # 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
3134 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3135 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3136 export LD_RUN_PATH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3137 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3138
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3139 if test "${HAVE_XFREE386}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3140 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3141 linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3142 test -n "$silent" || echo "checking for whether XFree86 needs -b to link"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3143 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3144 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3145
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3146 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3147 int t() { XOpenDisplay ("foo");; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3148 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3149 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3150 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3151 xfree86_first_failure=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3152
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3153 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3154 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3155 xfree86_first_failure=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3156 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3157 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3158
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3159 if test "${xfree86_first_failure}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3160 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3161 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3162 OLD_CPPFLAGS="$CPPFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3163 OLD_LIBS="$LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3164 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3165 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3166 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3167 LIBS="$LIBS -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3168 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3169 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3170
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() { XOpenDisplay ("foo");; 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 xfree86_second_failure=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3177
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3178 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3179 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3180 xfree86_second_failure=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3181 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3182 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3183
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3184 if test "${xfree86_second_failure}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3185 # 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
3186 # So take it out. This plays safe.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3187 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3188 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3189 CPPFLAGS="$OLD_CPPFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3190 LIBS="$OLD_LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3191 test -n "$verbose" && echo " no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3192 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3193 test -n "$verbose" && echo " yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3194 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3195 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3196 test -n "$verbose" && echo " no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3197 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3198 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3199 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3200 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3201
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3202 # A C_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3203 #XScreenNumberOfScreen XSetWMProtocols)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3204 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3205
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3206 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3207 # make sure we can find libX11.*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3208 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3209 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3210 internal_xlibs_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3211 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3212 LIBS="${LIBS} -lX11"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3213 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3214 test -n "$silent" || echo "checking for -lX11"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3215 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3216 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3217
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3218 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3219 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3220 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3221 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3222 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3223 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3224
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3225 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3226 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3227 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3228 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3229 :; internal_xlibs_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3230 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3231 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3232 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3233
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3234 if test "${internal_xlibs_found}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3235 echo "Unable to find X11 libraries." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3236 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3237 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3238 test -n "$verbose" && echo " yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3239 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3240 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3241
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3242 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3243 # make sure we can find Intrinsic.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3244 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3245 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3246 internal_xincludes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3247 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3248 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3249 if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3250 internal_xincludes_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3251 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3252 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3253 if test "${internal_xincludes_found}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3254 echo "Unable to find X11 header files." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3255 exit 1
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 fi
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 # Sun OS 4 systems need the following kludge
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3261 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3262 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3263 case "${canonical}" in *-sunos4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3264 LIBS="$LIBS -u _XtToolkitInitialize -u _get_applicationShellWidgetClass" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3265 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3266 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3267
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3268 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3269 # See if we can find Xauth.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3270 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3271 with_xauth='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3272 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3273 internal_xauth_lib_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3274 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3275 LIBS="${LIBS} -lXau"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3276 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3277 test -n "$silent" || echo "checking for -lXau"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3278 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3279 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3280
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3281 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3282 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3283 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3284 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3285 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3286 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3287
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3288 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3289 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3290 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3291 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3292 :; internal_xauth_lib_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3293 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3294 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3295 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3296
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3297 if test "${internal_xauth_lib_found}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3298 internal_xauth_includes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3299 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3300 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3301 if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3302 internal_xauth_includes_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3303 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3304 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3305 if test "${internal_xauth_includes_found}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3306 with_xauth='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3307 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3308 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3309 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3310 test "${with_xauth}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3311 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3312 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3313 echo " defining HAVE_XAUTH"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3314 echo "#define" HAVE_XAUTH "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3315 DEFS="$DEFS -DHAVE_XAUTH=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3316 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
3317 \${ac_uA}HAVE_XAUTH\${ac_uB}HAVE_XAUTH\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3318 \${ac_eA}HAVE_XAUTH\${ac_eB}HAVE_XAUTH\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3319 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3320 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3321
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3322
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3323 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3324 # See if we can find CDE.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3325 #
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3326 if test "${window_system}" != "none" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3327 "${with_cde}" != "no" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3328 "${with_cde}" != "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3329 internal_cde_lib_found='no'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3330 ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3331 LIBS="${LIBS} -lDtSvc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3332 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3333 test -n "$silent" || echo "checking for -lDtSvc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3334 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3335 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3336
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3337 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3338 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3339 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3340 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3341 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3342 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3343
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3344 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3345 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3346 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3347 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3348 :; internal_cde_lib_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3349 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3350 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3351 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3352
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
3353 if test "${internal_cde_lib_found}" = "no" -a -f "/usr/dt/lib/libDtSvc.a"; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
3354 internal_cde_lib_found="yes"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
3355 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3356 if test "${internal_cde_lib_found}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3357 internal_cde_includes_found='no'
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
3358 for arg in ${DEFS} /usr/include /usr/dt/include ; do
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3359 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3360 internal_cde_includes_found='yes'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3361 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3362 done
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3363 if test "${internal_cde_includes_found}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3364 with_cde='yes'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3365 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3366 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3367 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3368 test "${with_cde}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3369 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3370 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3371 echo " defining HAVE_CDE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3372 echo "#define" HAVE_CDE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3373 DEFS="$DEFS -DHAVE_CDE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3374 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
3375 \${ac_uA}HAVE_CDE\${ac_uB}HAVE_CDE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3376 \${ac_eA}HAVE_CDE\${ac_eB}HAVE_CDE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3377 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3378 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3379
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3380
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
3381 # having CDE implies Tooltalk
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
3382 if test "${with_cde}" = "yes" -a \
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
3383 "${with_tooltalk}" != "no" -a \
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
3384 "${with_tooltalk}" != "none" ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
3385 with_tooltalk='yes'
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
3386 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
3387
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
3388 # having CDE requires Motif
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
3389 if test "${with_cde}" = "yes" ; then
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
3390 motif_libs="-lXm -lXt"
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
3391 fi
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
3392
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3393 #
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3394 # See if we can find OffiX.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3395 #
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3396 if test "${window_system}" != "none" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3397 "${with_offix}" != "no" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3398 "${with_offix}" != "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3399 internal_offix_lib_found='no'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3400 ac_save_LIBS="${LIBS}"
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3401 LIBS="${LIBS} -lDnd"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3402 ac_have_lib=""
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3403 test -n "$silent" || echo "checking for -lDnd"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3404 cat > conftest.${ac_ext} <<EOF
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3405 #include "confdefs.h"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3406
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3407 int main() { return 0; }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3408 int t() { main();; return 0; }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3409 EOF
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3410 if eval $ac_compile; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3411 rm -rf conftest*
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3412 ac_have_lib="1"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3413
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3414 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3415 rm -f conftest*
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3416 LIBS="${ac_save_LIBS}"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3417 if test -n "${ac_have_lib}"; then
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3418 :; internal_offix_lib_found='yes'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3419 else
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3420 :;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3421 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3422
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3423 if test "${internal_offix_lib_found}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3424 internal_offix_includes_found='no'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3425 for arg in ${DEFS} /usr/include ; do
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3426 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3427 internal_offix_includes_found='yes'
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3428 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3429 done
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3430 test "${internal_offix_includes_found}" = "yes" && with_offix='yes'
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3431 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3432 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3433 test "${with_offix}" = yes &&
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3434 {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3435 test -n "$verbose" && \
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3436 echo " defining HAVE_OFFIX_DND"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3437 echo "#define" HAVE_OFFIX_DND "1" >> confdefs.h
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3438 DEFS="$DEFS -DHAVE_OFFIX_DND=1"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3439 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
3440 \${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
3441 \${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
3442 "
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3443 }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
3444
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3445
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3446 # X window options
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3447 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3448 test -n "$silent" || echo "checking the version of X11 being used"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3449 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3450 #include <X11/Intrinsic.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3451 int main() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3452 #if (XlibSpecificationRelease == 4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3453 printf ("X11R4\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3454 #elif (XlibSpecificationRelease == 5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3455 printf ("X11R5\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3456 #elif (XlibSpecificationRelease == 6)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3457 printf ("X11R6\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3458 #elif (XtSpecificationRelease == 4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3459 printf ("X11R4\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3460 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3461 return 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3462 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3463 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3464 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3465 LIBS="${LIBS} ${DEFS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3466 if eval $ac_compile; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3467 case "`./conftest`" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3468 X11R4 )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3469 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3470 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3471 echo " defining THIS_IS_X11R4"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3472 echo "#define" THIS_IS_X11R4 "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3473 DEFS="$DEFS -DTHIS_IS_X11R4=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3474 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
3475 \${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
3476 \${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
3477 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3478 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3479 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3480 X11R5 )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3481 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3482 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3483 echo " defining THIS_IS_X11R5"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3484 echo "#define" THIS_IS_X11R5 "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3485 DEFS="$DEFS -DTHIS_IS_X11R5=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3486 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
3487 \${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
3488 \${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
3489 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3490 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3491 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3492 X11R6 )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3493 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3494 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3495 echo " defining THIS_IS_X11R6"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3496 echo "#define" THIS_IS_X11R6 "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3497 DEFS="$DEFS -DTHIS_IS_X11R6=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3498 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
3499 \${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
3500 \${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
3501 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3502 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3503 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3504 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3505 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3506 LIBS=$ac_save_LIBS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3507 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3508
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3509 for ac_hdr in X11/Xlocale.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3510 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3511 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3512 test -n "$silent" || echo "checking for ${ac_hdr}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3513 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3514 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3515 #include <${ac_hdr}>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3516 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3517 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3518 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3519 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3520 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3521 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3522 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3523
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3524 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3525 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3526 echo " defining ${ac_tr_hdr}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3527 echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3528 DEFS="$DEFS -D${ac_tr_hdr}=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3529 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
3530 \${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
3531 \${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
3532 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3533 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3534
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3535
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3536 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3537 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3538 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3539
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3540 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3541
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3542 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3543 # if Energize specified, make sure we can find its need libraries/headers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3544 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3545 if test "${with_energize}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3546 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3547 LIBS="${LIBS} -lenergize"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3548 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3549 test -n "$silent" || echo "checking for -lenergize"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3550 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3551 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3552
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3553 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3554 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3555 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3556 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3557 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3558 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3559
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3560 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3561 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3562 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3563 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3564 :; energize_version='3.X'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3565 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3566 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3567 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3568
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3569 if test "${energize_version}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3570 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3571 LIBS="${LIBS} -lconn"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3572 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3573 test -n "$silent" || echo "checking for -lconn"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3574 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3575 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3576
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3577 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3578 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3579 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3580 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3581 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3582 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3583
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 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3586 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3587 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3588 :; energize_version='2.X'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3589 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3590 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3591 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3592
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3593 if test "${energize_version}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3594 echo "Unable to find Energize library." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3595 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3596 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3597 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3598
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3599 internal_eincludes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3600 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3601 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3602 if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3603 internal_eincludes_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3604 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3605 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3606 if test "${internal_eincludes_found}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3607 echo "Unable to find Energize editorconn.h header file." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3608 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3609 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3610 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3611
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3612 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3613 # logb and frexp are found in -lm on most systems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3614 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3615 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3616 LIBS="${LIBS} -lm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3617 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3618 test -n "$silent" || echo "checking for -lm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3619 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3620 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3621
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3622 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3623 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3624 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3625 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3626 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3627 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3628
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3629 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3630 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3631 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3632 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3633
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3634 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3635 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3636 echo " defining HAVE_LIBM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3637 echo "#define" HAVE_LIBM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3638 DEFS="$DEFS -DHAVE_LIBM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3639 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
3640 \${ac_uA}HAVE_LIBM\${ac_uB}HAVE_LIBM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3641 \${ac_eA}HAVE_LIBM\${ac_eB}HAVE_LIBM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3642 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3643 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3644
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3645 LIBS="${LIBS} -lm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3646 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3647
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3648
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3649 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3650 # see if XPM is hanging around somewhere
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3651 #
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3652 test "${window_system}" != "none" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3653 "${with_xpm}" != "no" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3654 "${with_xpm}" != "yes" && { ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3655 LIBS="${LIBS} -lXpm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3656 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3657 test -n "$silent" || echo "checking for -lXpm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3658 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3659 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3660
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3661 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3662 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3663 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3664 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3665 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3666 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3667
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 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3670 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3671 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3672 :; with_xpm="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3673 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3674 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3675 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3676 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3677
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3678 test "${with_xpm}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3679 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3680 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3681 echo " defining HAVE_XPM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3682 echo "#define" HAVE_XPM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3683 DEFS="$DEFS -DHAVE_XPM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3684 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
3685 \${ac_uA}HAVE_XPM\${ac_uB}HAVE_XPM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3686 \${ac_eA}HAVE_XPM\${ac_eB}HAVE_XPM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3687 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3688 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3689
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3690
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3691 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3692 # see if Xmu is hanging around somewhere
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3693 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3694 # FSF 19.31 has this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3695 #dnl If using toolkit, check whether libXmu.a exists.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3696 #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
3697 # OLDLIBS="$LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3698 # if test x$HAVE_X11XTR6 = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3699 # LIBS="-lXt -lSM -lICE $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3700 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3701 # LIBS="-lXt $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3702 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3703 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3704 # LIBS="$OLDLIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3705
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3706 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3707 if test "${with_xmu}" != "no" ; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3708 test "${with_xmu}" != "yes" && { ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3709 LIBS="${LIBS} -lXmu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3710 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3711 test -n "$silent" || echo "checking for -lXmu"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3712 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3713 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3714
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3715 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3716 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3717 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3718 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3719 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3720 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3721
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3722 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3723 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3724 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3725 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3726 :; with_xmu="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3727 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3728 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3729 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3730 }
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
3731 # 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
3732 # Upgrade to autoconf 2 and use ac_check_lib - mrb
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
3733 if test "${with_xmu}" != "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3734 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3735 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3736 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm"
88
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
3737 if test ${machine} = sparc -a ${opsys} = linux; then
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
3738 LIBS="${LIBS} -lICE -lSM"
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
3739 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3740 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3741 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3742 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3743 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3744 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3745 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3746 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3747 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3748 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3749 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3750 test -n "${ac_have_lib}" && with_xmu="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3751 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3752 fi
90
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3753 # Sparc/Linux test - fp
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3754 if test "${with_xmu}" != "yes" -a ${machine} = sparc -a ${opsys} = linux; then
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3755 # begin expansion of ac_have_library
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3756 ac_save_LIBS="${LIBS}"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3757 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm -lICE -lSM"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3758 ac_have_lib=""
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3759 cat > conftest.${ac_ext} <<EOF
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3760 int main() { return 0; }
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3761 EOF
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3762 if eval $ac_compile; then
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3763 rm -rf conftest*
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3764 ac_have_lib="1"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3765 fi
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3766 rm -f conftest*
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3767 LIBS="${ac_save_LIBS}"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3768 test -n "${ac_have_lib}" && with_xmu="yes"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3769 # end expansion of ac_have_library
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
3770 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3771 # On UnixWare 2.1 we must kludge harder to try to detect Xmu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3772 # Upgrade to autoconf 2 and use ac_check_lib - mrb
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3773 if test "${with_xmu}" != "yes" && test -f "/.UpgradeVer2.1" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3774 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3775 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3776 if test x$HAVE_XFREE386 = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3777 LIBS="-lXt -lSM -lICE ${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3778 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3779 LIBS="${LIBS} -lXmu -lXt -lXext -lX11"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3780 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3781 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3782 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3783 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3784 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3785 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3786 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3787 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3788 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3789 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3790 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3791 test -n "${ac_have_lib}" && with_xmu="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3792 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3793 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3794 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3795 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3796 test "${with_xmu}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3797 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3798 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3799 echo " defining HAVE_XMU"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3800 echo "#define" HAVE_XMU "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3801 DEFS="$DEFS -DHAVE_XMU=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3802 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
3803 \${ac_uA}HAVE_XMU\${ac_uB}HAVE_XMU\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3804 \${ac_eA}HAVE_XMU\${ac_eB}HAVE_XMU\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3805 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3806 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3807
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3808
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3809 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3810 # see if COMPFACE is hanging around somewhere
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3811 #
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3812 if test "${window_system}" != "none" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3813 "${with_xface}" != "no" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3814 "${with_xface}" != "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3815 test -n "$silent" || echo "checking for compface.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3816 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3817 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3818 #include <compface.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3819 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3820 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3821 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3822 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3823 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3824 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3825 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3826 compface_incl="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3827
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3828 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3829 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3830 with_xface="no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3831 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3832 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3833
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3834 if test "${compface_incl}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3835 ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3836 LIBS="${LIBS} -lcompface"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3837 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3838 test -n "$silent" || echo "checking for -lcompface"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3839 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3840 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3841
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3842 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3843 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3844 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3845 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3846 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3847 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3848
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3849 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3850 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3851 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3852 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3853 :; with_xface="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3854 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3855 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3856 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3857
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3858 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3859 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3860 test "${with_xface}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3861 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3862 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3863 echo " defining HAVE_XFACE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3864 echo "#define" HAVE_XFACE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3865 DEFS="$DEFS -DHAVE_XFACE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3866 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
3867 \${ac_uA}HAVE_XFACE\${ac_uB}HAVE_XFACE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3868 \${ac_eA}HAVE_XFACE\${ac_eB}HAVE_XFACE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3869 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3870 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3871
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3872
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3873 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3874 # check whether we're using GIF support
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3875 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3876 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3877 if test -z "${with_gif}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3878 with_gif=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3879 elif test "${with_gif}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3880 echo "GIF support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3881 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3882 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3883 elif test -z "${with_gif}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3884 with_gif=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3885 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3886 test "${with_gif}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3887 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3888 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3889 echo " defining HAVE_GIF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3890 echo "#define" HAVE_GIF "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3891 DEFS="$DEFS -DHAVE_GIF=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3892 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
3893 \${ac_uA}HAVE_GIF\${ac_uB}HAVE_GIF\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3894 \${ac_eA}HAVE_GIF\${ac_eB}HAVE_GIF\${ac_eC}1\${ac_eD}
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
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3898
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3899 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3900 if test -z "${with_jpeg}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3901 with_jpeg=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3902 elif test "${with_jpeg}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3903 echo "JPEG support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3904 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3905 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3906 else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3907 if test "${with_jpeg}" != "no" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3908 "${with_jpeg}" != "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3909 test -n "$silent" || echo "checking for jpeglib.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3910 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3911 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3912 #include <jpeglib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3913 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3914 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3915 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3916 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3917 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3918 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3919 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3920 jpeglib_incl="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3921
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3922 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3923 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3924 with_jpeg="no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3925 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3926 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3927
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3928 test "${jpeglib_incl}" = "yes" && { ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3929 LIBS="${LIBS} -ljpeg"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3930 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3931 test -n "$silent" || echo "checking for -ljpeg"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3932 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3933 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3934
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3935 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3936 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3937 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3938 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3939 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3940 ac_have_lib="1"
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 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3944 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3945 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3946 :; with_jpeg="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3947 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3948 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3949 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3950 }
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3951 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3952 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3953 test "${with_jpeg}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3954 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3955 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3956 echo " defining HAVE_JPEG"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3957 echo "#define" HAVE_JPEG "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3958 DEFS="$DEFS -DHAVE_JPEG=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3959 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
3960 \${ac_uA}HAVE_JPEG\${ac_uB}HAVE_JPEG\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3961 \${ac_eA}HAVE_JPEG\${ac_eB}HAVE_JPEG\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3962 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3963 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3964
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3965
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3966 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3967 if test -z "${with_png}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3968 with_png=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3969 elif test "${with_png}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3970 echo "PNG support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3971 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3972 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3973 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3974 test -z "${with_png}" && { test -n "$silent" || echo "checking for png.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3975 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3976 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3977 #include <png.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3978 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3979 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3980 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3981 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3982 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3983 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3984 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3985 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3986 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3987 with_png="no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3988 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3989 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3990 }
84
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
3991 test -z "${with_png}" && { test -n "$silent" || echo "checking for pow"
0
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"
84
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
3994 #include <ctype.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3995 int main() { return 0; }
84
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
3996 int t() {
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
3997 /* The GNU C library defines this for functions which it implements
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
3998 to always fail with ENOSYS. Some functions are actually named
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
3999 something starting with __ and the normal name is an alias. */
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4000 #if defined (__stub_pow) || defined (__stub___pow)
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4001 choke me
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4002 #else
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4003 /* Override any gcc2 internal prototype to avoid an error. */
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4004 extern char pow(); pow();
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4005 #endif
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4006 ; return 0; }
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4007 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4008 if eval $ac_compile; then
84
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4009 :
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4010 else
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4011 rm -rf conftest*
84
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4012 with_png="no"
0
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 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4015 }
84
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4016 if test -z "${with_png}" ; then
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4017 ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4018 LIBS="${LIBS} -lz"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4019 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4020 test -n "$silent" || echo "checking for -lz"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4021 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4022 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4023
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4024 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4025 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4026 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4027 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4028 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4029 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4030
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4031 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4032 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4033 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4034 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4035 :; with_png="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4036 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4037 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4038 fi
84
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4039
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4040 test -z "${with_png}" && { ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4041 LIBS="${LIBS} -lgz"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4042 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4043 test -n "$silent" || echo "checking for -lgz"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4044 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4045 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4046
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4047 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4048 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4049 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4050 if eval $ac_compile; then
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 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4053
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4054 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4055 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4056 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4057 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4058 :; with_png="gnuz"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4059 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4060 :; with_png="no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4061 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4062 }
84
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4063 if test "${with_png}" != "no"; then
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4064 png_save_libs="${LIBS}"
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4065 case "${with_png}" in
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4066 yes ) LIBS="${LIBS} -lz" ;;
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4067 gnuz ) LIBS="${LIBS} -lgz" ;;
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4068 esac
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4069 ac_save_LIBS="${LIBS}"
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4070 LIBS="${LIBS} -lpng"
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4071 ac_have_lib=""
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4072 test -n "$silent" || echo "checking for -lpng"
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4073 cat > conftest.${ac_ext} <<EOF
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4074 #include "confdefs.h"
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4075
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4076 int main() { return 0; }
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4077 int t() { main();; return 0; }
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4078 EOF
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4079 if eval $ac_compile; then
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4080 rm -rf conftest*
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4081 ac_have_lib="1"
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4082
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4083 fi
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4084 rm -f conftest*
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4085 LIBS="${ac_save_LIBS}"
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4086 if test -n "${ac_have_lib}"; then
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4087 :;
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4088 else
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4089 :; with_png="no"
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4090 fi
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4091
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4092 LIBS="$png_save_libs"
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4093 fi
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
4094 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4095 case "${with_png}" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4096 yes )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4097 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4098 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4099 echo " defining HAVE_PNG"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4100 echo "#define" HAVE_PNG "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4101 DEFS="$DEFS -DHAVE_PNG=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4102 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
4103 \${ac_uA}HAVE_PNG\${ac_uB}HAVE_PNG\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4104 \${ac_eA}HAVE_PNG\${ac_eB}HAVE_PNG\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4105 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4106 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4107 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4108 gnuz )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4109 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4110 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4111 echo " defining HAVE_PNG"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4112 echo "#define" HAVE_PNG "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4113 DEFS="$DEFS -DHAVE_PNG=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4114 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
4115 \${ac_uA}HAVE_PNG\${ac_uB}HAVE_PNG\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4116 \${ac_eA}HAVE_PNG\${ac_eB}HAVE_PNG\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4117 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4118 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4119
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4120 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4121 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4122 echo " defining HAVE_PNG_GNUZ"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4123 echo "#define" HAVE_PNG_GNUZ "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4124 DEFS="$DEFS -DHAVE_PNG_GNUZ=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4125 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
4126 \${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
4127 \${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
4128 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4129 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4130 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4131 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4132
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4133 test "${with_tiff}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4134 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4135 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4136 echo " defining HAVE_TIFF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4137 echo "#define" HAVE_TIFF "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4138 DEFS="$DEFS -DHAVE_TIFF=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4139 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
4140 \${ac_uA}HAVE_TIFF\${ac_uB}HAVE_TIFF\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4141 \${ac_eA}HAVE_TIFF\${ac_eB}HAVE_TIFF\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4142 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4143 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4144
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4145
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4146 # We use Lucid toolkit defaults for the menubars and scrollbars, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4147 # if Motif is available we use it for the dialog boxes.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4148 if test "${window_system}" != "none" ; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4149 save_libs="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4150 if test "x${with_dialogs}" = "x" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4151 # 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
4152 # end of the link line which is insufficient since -lXm will generate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4153 # dependencies on -lXt
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4154 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4155 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4156 LIBS="${LIBS} -lXm -lXt ${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4157 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4158 test -n "$silent" || echo "checking for -lXm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4159 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4160 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4161
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4162 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4163 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4164 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4165 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4166 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4167 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4168
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4169 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4170 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4171 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4172 if test -n "${ac_have_lib}"; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4173 :; with_dialogs="motif" motif_libs="-lXm -lXt"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4174 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4175 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4176 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4177 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4178 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4179 if test "${with_dialogs}" != "motif" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4180 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4181 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4182 LIBS="${LIBS} -lXm -lXt -lXpm -lXext ${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4183 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4184 test -n "$silent" || echo "checking for -lXm in another way"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4185 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4186 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4187
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4188 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4189 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4190 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4191 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4192 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4193 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4194
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4195 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4196 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4197 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4198 if test -n "${ac_have_lib}"; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4199 :; with_dialogs="motif" motif_libs="-lXm -lXt -lXpm -lXext"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4200 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4201 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4202 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4203 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4204 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4205 test "${with_dialogs}" = "motif" && test -n "$verbose" && echo " Found Motif"
0
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 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4208
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4209 # Finish ensuring that we have values for the various toolkit items.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4210
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4211 test "${with_menubars}" = "motif" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4212 "${with_scrollbars}" = "motif" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4213 "${with_dialogs}" = "motif" && with_motif="yes"
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4214 test "${with_menubars}" = "athena" -o \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4215 "${with_scrollbars}" = "athena" -o \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4216 "${with_dialogs}" = "athena" && with_athena="yes"
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4217 test "${with_menubars}" = "athena3d" -o \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4218 "${with_scrollbars}" = "athena3d" -o \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4219 "${with_dialogs}" = "athena3d" && with_athena="yes"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4220 test "${with_menubars}" = "" && with_menubars="lucid"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4221 test "${with_menubars}" = "athena" && with_menubars="lucid"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4222 test "${with_scrollbars}" = "" && with_scrollbars="lucid"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4223 test "${with_dialogs}" = "" && with_dialogs="athena"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4224 test "${with_dialogs}" = "lucid" && with_dialogs="athena"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4225
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4226 test "${with_menubars}" != "no" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4227 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4228 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4229 echo " defining HAVE_MENUBARS"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4230 echo "#define" HAVE_MENUBARS "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4231 DEFS="$DEFS -DHAVE_MENUBARS=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4232 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MENUBARS\${ac_dB}HAVE_MENUBARS\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4233 \${ac_uA}HAVE_MENUBARS\${ac_uB}HAVE_MENUBARS\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4234 \${ac_eA}HAVE_MENUBARS\${ac_eB}HAVE_MENUBARS\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4235 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4236 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4237
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4238 test "${with_scrollbars}" != "no" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4239 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4240 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4241 echo " defining HAVE_SCROLLBARS"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4242 echo "#define" HAVE_SCROLLBARS "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4243 DEFS="$DEFS -DHAVE_SCROLLBARS=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4244 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SCROLLBARS\${ac_dB}HAVE_SCROLLBARS\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4245 \${ac_uA}HAVE_SCROLLBARS\${ac_uB}HAVE_SCROLLBARS\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4246 \${ac_eA}HAVE_SCROLLBARS\${ac_eB}HAVE_SCROLLBARS\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4247 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4248 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4249
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
4250 test "${with_dialogs}" != "no" &&
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4251 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4252 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4253 echo " defining HAVE_DIALOGS"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4254 echo "#define" HAVE_DIALOGS "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4255 DEFS="$DEFS -DHAVE_DIALOGS=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4256 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DIALOGS\${ac_dB}HAVE_DIALOGS\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4257 \${ac_uA}HAVE_DIALOGS\${ac_uB}HAVE_DIALOGS\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4258 \${ac_eA}HAVE_DIALOGS\${ac_eB}HAVE_DIALOGS\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4259 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4260 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4261
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4262
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4263 test "${with_menubars}" = "lucid" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4264 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4265 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4266 echo " defining LWLIB_MENUBARS_LUCID"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4267 echo "#define" LWLIB_MENUBARS_LUCID "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4268 DEFS="$DEFS -DLWLIB_MENUBARS_LUCID=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4269 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_LUCID\${ac_dB}LWLIB_MENUBARS_LUCID\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4270 \${ac_uA}LWLIB_MENUBARS_LUCID\${ac_uB}LWLIB_MENUBARS_LUCID\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4271 \${ac_eA}LWLIB_MENUBARS_LUCID\${ac_eB}LWLIB_MENUBARS_LUCID\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4272 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4273 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4274
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4275 test "${with_menubars}" = "motif" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4276 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4277 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4278 echo " defining LWLIB_MENUBARS_MOTIF"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4279 echo "#define" LWLIB_MENUBARS_MOTIF "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4280 DEFS="$DEFS -DLWLIB_MENUBARS_MOTIF=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4281 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_MOTIF\${ac_dB}LWLIB_MENUBARS_MOTIF\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4282 \${ac_uA}LWLIB_MENUBARS_MOTIF\${ac_uB}LWLIB_MENUBARS_MOTIF\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4283 \${ac_eA}LWLIB_MENUBARS_MOTIF\${ac_eB}LWLIB_MENUBARS_MOTIF\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4284 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4285 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4286
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4287 test "${with_scrollbars}" = "lucid" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4288 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4289 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4290 echo " defining LWLIB_SCROLLBARS_LUCID"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4291 echo "#define" LWLIB_SCROLLBARS_LUCID "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4292 DEFS="$DEFS -DLWLIB_SCROLLBARS_LUCID=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4293 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_LUCID\${ac_dB}LWLIB_SCROLLBARS_LUCID\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4294 \${ac_uA}LWLIB_SCROLLBARS_LUCID\${ac_uB}LWLIB_SCROLLBARS_LUCID\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4295 \${ac_eA}LWLIB_SCROLLBARS_LUCID\${ac_eB}LWLIB_SCROLLBARS_LUCID\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4296 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4297 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4298
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4299 test "${with_scrollbars}" = "motif" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4300 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4301 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4302 echo " defining LWLIB_SCROLLBARS_MOTIF"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4303 echo "#define" LWLIB_SCROLLBARS_MOTIF "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4304 DEFS="$DEFS -DLWLIB_SCROLLBARS_MOTIF=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4305 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_MOTIF\${ac_dB}LWLIB_SCROLLBARS_MOTIF\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4306 \${ac_uA}LWLIB_SCROLLBARS_MOTIF\${ac_uB}LWLIB_SCROLLBARS_MOTIF\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4307 \${ac_eA}LWLIB_SCROLLBARS_MOTIF\${ac_eB}LWLIB_SCROLLBARS_MOTIF\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4308 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4309 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4310
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4311 test "${with_scrollbars}" = "athena" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4312 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4313 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4314 echo " defining LWLIB_SCROLLBARS_ATHENA"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4315 echo "#define" LWLIB_SCROLLBARS_ATHENA "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4316 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4317 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA\${ac_dB}LWLIB_SCROLLBARS_ATHENA\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4318 \${ac_uA}LWLIB_SCROLLBARS_ATHENA\${ac_uB}LWLIB_SCROLLBARS_ATHENA\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4319 \${ac_eA}LWLIB_SCROLLBARS_ATHENA\${ac_eB}LWLIB_SCROLLBARS_ATHENA\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4320 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4321 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4322
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4323 if test "${with_scrollbars}" = "athena3d"; then
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4324
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4325 {
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4326 test -n "$verbose" && \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4327 echo " defining LWLIB_SCROLLBARS_ATHENA"
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4328 echo "#define" LWLIB_SCROLLBARS_ATHENA "1" >> confdefs.h
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4329 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA=1"
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4330 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA\${ac_dB}LWLIB_SCROLLBARS_ATHENA\${ac_dC}1\${ac_dD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4331 \${ac_uA}LWLIB_SCROLLBARS_ATHENA\${ac_uB}LWLIB_SCROLLBARS_ATHENA\${ac_uC}1\${ac_uD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4332 \${ac_eA}LWLIB_SCROLLBARS_ATHENA\${ac_eB}LWLIB_SCROLLBARS_ATHENA\${ac_eC}1\${ac_eD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4333 "
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4334 }
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4335
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4336
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4337 {
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4338 test -n "$verbose" && \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4339 echo " defining LWLIB_SCROLLBARS_ATHENA3D"
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4340 echo "#define" LWLIB_SCROLLBARS_ATHENA3D "1" >> confdefs.h
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4341 DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA3D=1"
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4342 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA3D\${ac_dB}LWLIB_SCROLLBARS_ATHENA3D\${ac_dC}1\${ac_dD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4343 \${ac_uA}LWLIB_SCROLLBARS_ATHENA3D\${ac_uB}LWLIB_SCROLLBARS_ATHENA3D\${ac_uC}1\${ac_uD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4344 \${ac_eA}LWLIB_SCROLLBARS_ATHENA3D\${ac_eB}LWLIB_SCROLLBARS_ATHENA3D\${ac_eC}1\${ac_eD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4345 "
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4346 }
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4347
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4348 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4349 test "${with_dialogs}" = "motif" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4350 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4351 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4352 echo " defining LWLIB_DIALOGS_MOTIF"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4353 echo "#define" LWLIB_DIALOGS_MOTIF "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4354 DEFS="$DEFS -DLWLIB_DIALOGS_MOTIF=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4355 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_MOTIF\${ac_dB}LWLIB_DIALOGS_MOTIF\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4356 \${ac_uA}LWLIB_DIALOGS_MOTIF\${ac_uB}LWLIB_DIALOGS_MOTIF\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4357 \${ac_eA}LWLIB_DIALOGS_MOTIF\${ac_eB}LWLIB_DIALOGS_MOTIF\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4358 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4359 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4360
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4361 test "${with_dialogs}" = "athena" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4362 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4363 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4364 echo " defining LWLIB_DIALOGS_ATHENA"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4365 echo "#define" LWLIB_DIALOGS_ATHENA "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4366 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4367 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA\${ac_dB}LWLIB_DIALOGS_ATHENA\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4368 \${ac_uA}LWLIB_DIALOGS_ATHENA\${ac_uB}LWLIB_DIALOGS_ATHENA\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4369 \${ac_eA}LWLIB_DIALOGS_ATHENA\${ac_eB}LWLIB_DIALOGS_ATHENA\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4370 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4371 }
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4372
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4373 if test "${with_dialogs}" = "athena3d"; then
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4374
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4375 {
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4376 test -n "$verbose" && \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4377 echo " defining LWLIB_DIALOGS_ATHENA"
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4378 echo "#define" LWLIB_DIALOGS_ATHENA "1" >> confdefs.h
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4379 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA=1"
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4380 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA\${ac_dB}LWLIB_DIALOGS_ATHENA\${ac_dC}1\${ac_dD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4381 \${ac_uA}LWLIB_DIALOGS_ATHENA\${ac_uB}LWLIB_DIALOGS_ATHENA\${ac_uC}1\${ac_uD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4382 \${ac_eA}LWLIB_DIALOGS_ATHENA\${ac_eB}LWLIB_DIALOGS_ATHENA\${ac_eC}1\${ac_eD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4383 "
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4384 }
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4385
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4386
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4387 {
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4388 test -n "$verbose" && \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4389 echo " defining LWLIB_DIALOGS_ATHENA3D"
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4390 echo "#define" LWLIB_DIALOGS_ATHENA3D "1" >> confdefs.h
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4391 DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA3D=1"
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4392 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA3D\${ac_dB}LWLIB_DIALOGS_ATHENA3D\${ac_dC}1\${ac_dD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4393 \${ac_uA}LWLIB_DIALOGS_ATHENA3D\${ac_uB}LWLIB_DIALOGS_ATHENA3D\${ac_uC}1\${ac_uD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4394 \${ac_eA}LWLIB_DIALOGS_ATHENA3D\${ac_eB}LWLIB_DIALOGS_ATHENA3D\${ac_eC}1\${ac_eD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4395 "
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4396 }
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4397
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
4398 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4399
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4400 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4401 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4402 # Misc other feature tests #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4403 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4404 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4405
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4406 # Mule-dependent option processing
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4407 if test "$with_mule" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4408 # Do we have the XmIm* routines? And if so, do we want to use them?
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4409 test "$with_xim" != no && test -n "$silent" || echo "checking for XIM"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4410 if test -z "$with_xim" -o "$with_xim" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4411 xim_save_libs="$LIBS"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4412 LIBS="${motif_libs} ${LIBS}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4413 test -n "$silent" || echo "checking for XmImMbLookupString"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4414 cat > conftest.${ac_ext} <<EOF
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4415 #include "confdefs.h"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4416 #include <ctype.h>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4417 int main() { return 0; }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4418 int t() {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4419 /* The GNU C library defines this for functions which it implements
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4420 to always fail with ENOSYS. Some functions are actually named
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4421 something starting with __ and the normal name is an alias. */
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4422 #if defined (__stub_XmImMbLookupString) || defined (__stub___XmImMbLookupString)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4423 choke me
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4424 #else
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4425 /* Override any gcc2 internal prototype to avoid an error. */
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4426 extern char XmImMbLookupString(); XmImMbLookupString();
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4427 #endif
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4428 ; return 0; }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4429 EOF
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4430 if eval $ac_compile; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4431 rm -rf conftest*
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4432 have_XmIm=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4433
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4434 else
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4435 rm -rf conftest*
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4436 have_XmIm=no
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4437 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4438 rm -f conftest*
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4439
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4440 LIBS="$xim_save_libs"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4441 if test "$have_XmIm" = "yes"; then with_xim=motif
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4442 elif test "$with_xim" = "yes"; then with_xim=xlib
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4443 else with_xim=no
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4444 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4445 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4446 if test "$with_xim" != "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4447
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4448 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4449 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4450 echo " defining HAVE_XIM"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4451 echo "#define" HAVE_XIM "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4452 DEFS="$DEFS -DHAVE_XIM=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4453 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XIM\${ac_dB}HAVE_XIM\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4454 \${ac_uA}HAVE_XIM\${ac_uB}HAVE_XIM\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4455 \${ac_eA}HAVE_XIM\${ac_eB}HAVE_XIM\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4456 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4457 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4458
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4459 test "$with_xim" = "xlib" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4460 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4461 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4462 echo " defining XIM_XLIB"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4463 echo "#define" XIM_XLIB "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4464 DEFS="$DEFS -DXIM_XLIB=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4465 ac_sed_defs="${ac_sed_defs}\${ac_dA}XIM_XLIB\${ac_dB}XIM_XLIB\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4466 \${ac_uA}XIM_XLIB\${ac_uB}XIM_XLIB\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4467 \${ac_eA}XIM_XLIB\${ac_eB}XIM_XLIB\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4468 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4469 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4470
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4471 test "$with_xim" = "motif" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4472 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4473 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4474 echo " defining XIM_MOTIF"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4475 echo "#define" XIM_MOTIF "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4476 DEFS="$DEFS -DXIM_MOTIF=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4477 ac_sed_defs="${ac_sed_defs}\${ac_dA}XIM_MOTIF\${ac_dB}XIM_MOTIF\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4478 \${ac_uA}XIM_MOTIF\${ac_uB}XIM_MOTIF\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4479 \${ac_eA}XIM_MOTIF\${ac_eB}XIM_MOTIF\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4480 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4481 }
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4482
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
4483 fi
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
4484 # wnn6 implies wnn support
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
4485 if test "$with_wnn6" = "yes" ; then
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
4486 with_wnn=yes
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4487 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4488 else # Other internationalization features depend on Mule
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4489 with_mule="no"
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
4490 for feature in xim canna wnn wnn6 ; do
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4491 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4492 echo "configure: warning: --with-$feature ignored: Not valid without Mule support" >&2
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4493 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4494 eval "with_$feature=no"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4495 done
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4496 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
4497
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4498 #
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4499 # set defaults for finding WNN includes and libs
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4500 #
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4501 if test "${with_wnn}" = "yes" ; then
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
4502 for arg in "-I${wnn_includes}" "-I/usr/X11R6/include/wnn" "-I/usr/include/wnn"
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4503 do
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4504 if test -f `echo "${arg}/wnnerror.h" | sed 's/^\-I//'` ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4505 C_SWITCH_SITE="${C_SWITCH_SITE} ${arg}"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4506 wnn_includes=${arg}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4507 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4508 done
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
4509 for arg in "-L${wnn_libraries}" "-L/usr/X11R6/lib" "-L/usr/lib"
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4510 do
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4511 if test -f `echo "${arg}/libwnn.a" | sed 's/^\-L//'` ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4512 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${arg}"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4513 wnn_libraries=${arg}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4514 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4515 done
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4516 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
4517
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4518 #
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4519 # set defaults for finding Canna includes and libs
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4520 #
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4521 if test "${with_canna}" = "yes" ; then
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4522 for arg in "-I${canna_includes}" "-I/usr/X11R6/include"
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4523 do
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4524 if test -f `echo "${arg}/canna/RK.h" | sed 's/^\-I//'` ; then
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4525 C_SWITCH_SITE="${C_SWITCH_SITE} ${arg}"
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4526 canna_includes=${arg}
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4527 fi
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4528 done
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
4529 for arg in "-L${canna_libraries}" "-L/usr/X11R6/lib"
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4530 do
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4531 if test -f `echo "${arg}/libcanna.a" | sed 's/^\-L//'` ; then
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4532 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${arg}"
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4533 canna_libraries=${arg}
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4534 fi
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4535 done
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4536 fi
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
4537
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4538 # 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
4539 test -n "$silent" || echo "checking for declaration of h_errno in netdb.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4540 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4541 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4542 #include <netdb.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4543 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4544 int t() { int i = h_errno;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4545 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4546 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4547 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4548
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4549 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4550 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4551 echo " defining HAVE_H_ERRNO"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4552 echo "#define" HAVE_H_ERRNO "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4553 DEFS="$DEFS -DHAVE_H_ERRNO=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4554 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
4555 \${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
4556 \${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
4557 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4558 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4559
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4560
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4561 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4562 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4563
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4564
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4565 test -n "$silent" || echo "checking for sigsetjmp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4566 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4567 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4568 #include <setjmp.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4569 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4570 int t() { sigjmp_buf bar; sigsetjmp (bar, 0);; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4571 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4572 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4573 rm -rf conftest*
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 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4577 echo " defining HAVE_SIGSETJMP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4578 echo "#define" HAVE_SIGSETJMP "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4579 DEFS="$DEFS -DHAVE_SIGSETJMP=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4580 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
4581 \${ac_uA}HAVE_SIGSETJMP\${ac_uB}HAVE_SIGSETJMP\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4582 \${ac_eA}HAVE_SIGSETJMP\${ac_eB}HAVE_SIGSETJMP\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4583 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4584 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4585
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4586
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4587 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4588 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4589
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4590
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4591 test -n "$silent" || echo "checking whether localtime caches TZ"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4592 emacs_cv_localtime_cache=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4593 test -n "$silent" || echo "checking whether cross-compiling"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4594 # If we cannot run a trivial program, we must be cross compiling.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4595 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4596 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4597 main(){exit(0);}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4598 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4599 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4600 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4601 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4602 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4603 cross_compiling=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4604 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4605 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4606
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4607 if test -n "$cross_compiling"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4608 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4609 # If we have tzset, assume the worst when cross-compiling.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4610 emacs_cv_localtime_cache=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4611 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4612 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4613 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4614 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4615 #if 1 /* STDC_HEADERS */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4616 # include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4617 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4618 extern char **environ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4619 unset_TZ ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4620 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4621 char **from, **to;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4622 for (to = from = environ; (*to = *from); from++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4623 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4624 to++;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4625 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4626 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4627 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4628 time_t now = time ((time_t *) 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4629 int hour_GMT0, hour_unset;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4630 if (putenv ("TZ=GMT0") != 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4631 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4632 hour_GMT0 = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4633 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4634 hour_unset = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4635 if (putenv ("TZ=PST8") != 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4636 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4637 if (localtime (&now)->tm_hour == hour_GMT0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4638 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4639 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4640 if (localtime (&now)->tm_hour != hour_unset)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4641 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4642 exit (0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4643 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4644 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4645 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4646 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4647 emacs_cv_localtime_cache=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4648
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4649 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4650 emacs_cv_localtime_cache=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4651 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4652 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4653 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4654 test -n "$verbose" && echo " "$emacs_cv_localtime_cache""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4655 if test x$emacs_cv_localtime_cache = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4656
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4657 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4658 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4659 echo " defining LOCALTIME_CACHE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4660 echo "#define" LOCALTIME_CACHE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4661 DEFS="$DEFS -DLOCALTIME_CACHE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4662 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
4663 \${ac_uA}LOCALTIME_CACHE\${ac_uB}LOCALTIME_CACHE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4664 \${ac_eA}LOCALTIME_CACHE\${ac_eB}LOCALTIME_CACHE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4665 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4666 }
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4669
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4670 if test "x$HAVE_TIMEVAL" = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4671 test -n "$silent" || echo "checking for whether gettimeofday can't accept two arguments"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4672 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4673 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4674
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4675 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4676 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4677 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4678 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4679 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4680 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4681 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4682 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4683 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4684 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4685
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4686 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4687 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4688 struct timeval time;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4689 struct timezone dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4690 gettimeofday (&time, &dummy);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4691 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4692 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4693 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4694 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4695 test -n "$verbose" && echo " no"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4696
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4697 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4698 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4699 test -n "$verbose" && echo " yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4700
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4701 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4702 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4703 echo " defining GETTIMEOFDAY_ONE_ARGUMENT"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4704 echo "#define" GETTIMEOFDAY_ONE_ARGUMENT "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4705 DEFS="$DEFS -DGETTIMEOFDAY_ONE_ARGUMENT=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4706 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
4707 \${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
4708 \${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
4709 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4710 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4711
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4712 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4713 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4714
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4717 test -n "$silent" || echo "checking for whether inline functions are supported"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4718 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4719 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4720
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4721 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4722 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4723 inline int
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4724 foo ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4725 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4726 return 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4727 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4728 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4729 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4730 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4731 rm -rf conftest*
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_INLINE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4736 echo "#define" HAVE_INLINE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4737 DEFS="$DEFS -DHAVE_INLINE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4738 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
4739 \${ac_uA}HAVE_INLINE\${ac_uB}HAVE_INLINE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4740 \${ac_eA}HAVE_INLINE\${ac_eB}HAVE_INLINE\${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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4745 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4746 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4747
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4748
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4749 # This does all sorts of magic to make sure alloca() works OK.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4750 # It might even add some junk to the top of <config.h>.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4751 # (I don't understand what goes on here, but it seems to work.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4752 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4753 # for constant arguments. Useless!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4754 test -n "$silent" || echo "checking for working alloca.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4755 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4756 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4757 #include <alloca.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4758 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4759 int t() { char *p = alloca(2 * sizeof(int));; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4760 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4761 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4762 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4763
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4764 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4765 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4766 echo " defining HAVE_ALLOCA_H"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4767 echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4768 DEFS="$DEFS -DHAVE_ALLOCA_H=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4769 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
4770 \${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
4771 \${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
4772 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4773 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4774
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4775
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4776 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4777 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4778
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4779 ac_decl="#ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4780 #define alloca __builtin_alloca
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4781 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4782 #if HAVE_ALLOCA_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4783 #include <alloca.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4784 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4785 #ifdef _AIX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4786 #pragma alloca
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4787 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4788 char *alloca ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4789 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4790 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4791 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4792 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4793 test -n "$silent" || echo "checking for alloca"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4794 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4795 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4796 $ac_decl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4797 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4798 int t() { char *p = (char *) alloca(1);; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4799 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4800 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4801 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4802
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4803 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4804 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4805 echo " defining HAVE_ALLOCA"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4806 echo "#define" HAVE_ALLOCA "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4807 DEFS="$DEFS -DHAVE_ALLOCA=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4808 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
4809 \${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4810 \${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4811 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4812 }
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 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4816 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4817 ac_alloca_missing=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4818 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4819 #include "confdefs.h"
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 defined(CRAY) && ! defined(CRAY2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4822 winnitude
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4823 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4824 lossage
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4825 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4826
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4827 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4828 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4829 if egrep "winnitude" conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4830 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4831 test -n "$silent" || echo "checking for _getb67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4832 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4833 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4834 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4835 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4836 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4837 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4838 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4839 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4840 #if defined (__stub__getb67) || defined (__stub____getb67)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4841 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4842 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4843 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4844 extern char _getb67(); _getb67();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4845 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4846 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4847 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4848 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4849 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4850 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4851 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4852 echo " defining" CRAY_STACKSEG_END to be "_getb67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4853 echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4854 DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4855 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
4856 \${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
4857 \${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
4858 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4859 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4860
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4861
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4862 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4863 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4864 test -n "$silent" || echo "checking for GETB67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4865 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4866 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4867 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4868 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4869 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4870 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4871 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4872 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4873 #if defined (__stub_GETB67) || defined (__stub___GETB67)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4874 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4875 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4876 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4877 extern char GETB67(); GETB67();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4878 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4879 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4880 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4881 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4882 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4883 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4884 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4885 echo " defining" CRAY_STACKSEG_END to be "GETB67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4886 echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4887 DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4888 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
4889 \${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
4890 \${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
4891 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4892 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4893
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4894
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4895 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4896 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4897 test -n "$silent" || echo "checking for getb67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4898 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4899 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4900 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4901 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4902 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4903 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4904 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4905 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4906 #if defined (__stub_getb67) || defined (__stub___getb67)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4907 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4908 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4909 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4910 extern char getb67(); getb67();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4911 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4912 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4913 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4914 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4915 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4916 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4917 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4918 echo " defining" CRAY_STACKSEG_END to be "getb67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4919 echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4920 DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4921 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
4922 \${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
4923 \${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
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4927
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4928 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4929 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4930
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4931 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4932 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4933
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 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4936
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4937
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4938 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4939 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4940
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4941
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4942 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4943 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4944
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4945 if test -n "$ac_alloca_missing"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4946 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4947 # that cause trouble. Some versions do not even contain alloca or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4948 # contain a buggy version. If you still want to use their alloca,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4949 # use ar to extract alloca.o from them instead of compiling alloca.c.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4950 ALLOCA=alloca.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4951
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4952 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4953 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4954 echo " defining C_ALLOCA"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4955 echo "#define" C_ALLOCA "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4956 DEFS="$DEFS -DC_ALLOCA=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4957 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
4958 \${ac_uA}C_ALLOCA\${ac_uB}C_ALLOCA\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4959 \${ac_eA}C_ALLOCA\${ac_eB}C_ALLOCA\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4960 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4961 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4962
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4963
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4964 test -n "$silent" || echo "checking stack direction for C alloca"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4965 if test -n "$cross_compiling"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4966 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4967
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4968 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4969 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4970 echo " defining" STACK_DIRECTION to be "0"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4971 echo "#define" STACK_DIRECTION "0" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4972 DEFS="$DEFS -DSTACK_DIRECTION=0"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4973 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
4974 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}0\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4975 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}0\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4976 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4977 }
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 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4981 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4982 find_stack_direction ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4983 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4984 static char *addr = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4985 auto char dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4986 if (addr == 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4987 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4988 addr = &dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4989 return find_stack_direction ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4990 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4991 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4992 return (&dummy > addr) ? 1 : -1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4993 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4994 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4995 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4996 exit (find_stack_direction() < 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4997 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4998 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4999 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5000 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5001
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5002 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5003 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5004 echo " defining" STACK_DIRECTION to be "1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5005 echo "#define" STACK_DIRECTION "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5006 DEFS="$DEFS -DSTACK_DIRECTION=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5007 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
5008 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5009 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5010 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5011 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5012
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5013
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5014 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5015
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5016 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5017 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5018 echo " defining" STACK_DIRECTION to be "-1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5019 echo "#define" STACK_DIRECTION "-1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5020 DEFS="$DEFS -DSTACK_DIRECTION=-1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5021 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
5022 \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}-1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5023 \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}-1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5024 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5025 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5026
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5027 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5028 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5029 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5030 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5031
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5032
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5033 # Check whether vfork exists and works correctly. (This does more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5034 # than just check for its existence.) If so, it defines HAVE_VFORK_H.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5035 # If not, it defines vfork to be fork.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5036 test -n "$silent" || echo "checking for pid_t in sys/types.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5037 echo '#include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5038 #include <sys/types.h>' > conftest.${ac_ext}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5039 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5040 if egrep "pid_t" conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5041 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5042 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5043 rm -rf conftest*
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 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5047 echo " defining" pid_t to be "int"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5048 echo "#define" pid_t "int" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5049 DEFS="$DEFS -Dpid_t=int"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5050 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
5051 \${ac_uA}pid_t\${ac_uB}pid_t\${ac_uC}int\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5052 \${ac_eA}pid_t\${ac_eB}pid_t\${ac_eC}int\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5053 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5054 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5055
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5056 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5057 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5058
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5059 test -n "$silent" || echo "checking for vfork.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5060 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5061 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5062 #include <vfork.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5063 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5064 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5065 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5066 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5067 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5068 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5069 rm -rf conftest*
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 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5073 echo " defining HAVE_VFORK_H"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5074 echo "#define" HAVE_VFORK_H "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5075 DEFS="$DEFS -DHAVE_VFORK_H=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5076 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
5077 \${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
5078 \${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
5079 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5080 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5081
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5082
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5083 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5084 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5085
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5086 test -n "$silent" || echo "checking for working vfork"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5087
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5088 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5089 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5090 /* Thanks to Paul Eggert for this test. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5091 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5092 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5093 #include <sys/stat.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5094 #include <signal.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5095 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5096 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5097 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5098 #ifdef HAVE_VFORK_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5099 #include <vfork.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5100 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5101 static int signalled;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5102 static RETSIGTYPE catch (s) int s; { signalled = 1; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5103 main() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5104 pid_t parent = getpid ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5105 pid_t child;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5107 signal (SIGINT, catch);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5108
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5109 child = vfork ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5110
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5111 if (child == 0) {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5112 /* On sparc systems, changes by the child to local and incoming
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5113 argument registers are propagated back to the parent.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5114 The compiler is told about this with #include <vfork.h>,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5115 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5116 Test for this by using lots of local variables, at least
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5117 as many local variables as main has allocated so far
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5118 including compiler temporaries. 4 locals are enough for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5119 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
5120 A buggy compiler should reuse the register of parent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5121 for one of the local variables, since it will think that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5122 parent can't possibly be used any more in this routine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5123 Assigning to the local variable will thus munge parent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5124 in the parent process. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5125 pid_t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5126 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5127 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5128 /* Convince the compiler that p..p7 are live; otherwise, it might
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5129 use the same hardware register for all 8 local variables. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5130 if (p != p1 || p != p2 || p != p3 || p != p4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5131 || p != p5 || p != p6 || p != p7)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5132 _exit(1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5133
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5134 /* On some systems (e.g. SunOS 5.2), if the parent is catching
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5135 a signal, the child ignores the signal before execing,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5136 and the parent later receives that signal, the parent dumps core.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5137 Test for this by ignoring SIGINT in the child. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5138 signal (SIGINT, SIG_IGN);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5139
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5140 /* On some systems (e.g. IRIX 3.3),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5141 vfork doesn't separate parent from child file descriptors.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5142 If the child closes a descriptor before it execs or exits,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5143 this munges the parent's descriptor as well.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5144 Test for this by closing stdout in the child. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5145 _exit(close(fileno(stdout)) != 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5146 } else {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5147 int status;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5148 struct stat st;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5149
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5150 while (wait(&status) != child)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5151 ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5152 exit(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5153 /* Was there some problem with vforking? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5154 child < 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5155
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5156 /* Did the child fail? (This shouldn't happen.) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5157 || status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5158
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5159 /* Did the vfork/compiler bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5160 || parent != getpid()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5161
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5162 /* Did the signal handling bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5163 || kill(parent, SIGINT) != 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5164 || signalled != 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5165
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5166 /* Did the file descriptor bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5167 || fstat(fileno(stdout), &st) != 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5168 );
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5169 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5170 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5171 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5172 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5173 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5174 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5175 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5176
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5177 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5178 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5179 echo " defining" vfork to be "fork"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5180 echo "#define" vfork "fork" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5181 DEFS="$DEFS -Dvfork=fork"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5182 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
5183 \${ac_uA}vfork\${ac_uB}vfork\${ac_uC}fork\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5184 \${ac_eA}vfork\${ac_eB}vfork\${ac_eC}fork\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5185 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5186 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5187
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 rm -fr conftest*
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 # Check whether mmap exists and works correctly. (This does more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5193 # than just check for its existence.) If so, it defines HAVE_MMAP.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5194 # Actually, this seems to rule out some cases where mmap() can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5195 # 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
5196 # of using mmap(), so let's go back to the old way.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5197
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5198 # Check whether strcoll exists and works correctly. (This does more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5199 # than just check for its existence.) If so, it defines HAVE_STRCOLL.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5200 test -n "$silent" || echo "checking for strcoll"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5201 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5202 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5203 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5204 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5205 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5206 exit (strcoll ("abc", "def") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5207 strcoll ("ABC", "DEF") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5208 strcoll ("123", "456") >= 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5209 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5210 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5211 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5212 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5213
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5214 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5215 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5216 echo " defining HAVE_STRCOLL"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5217 echo "#define" HAVE_STRCOLL "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5218 DEFS="$DEFS -DHAVE_STRCOLL=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5219 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
5220 \${ac_uA}HAVE_STRCOLL\${ac_uB}HAVE_STRCOLL\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5221 \${ac_eA}HAVE_STRCOLL\${ac_eB}HAVE_STRCOLL\${ac_eC}1\${ac_eD}
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5225
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5226 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5227 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5228
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5229 test -n "$silent" || echo "checking size of short"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5230 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5231 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5232 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5233 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5234 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5235 FILE *f=fopen("conftestval", "w");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5236 if (!f) exit(1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5237 fprintf(f, "%d\n", sizeof(short));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5238 exit(0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5239 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5240 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5241 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5242 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5243 ac_size=`cat conftestval`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5244
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5245 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5246 echo "configure: can not determine size of short" >&2; exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5247 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5248 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5249
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5250 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5251 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5252 echo " defining" SIZEOF_SHORT to be "$ac_size"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5253 echo "#define" SIZEOF_SHORT "$ac_size" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5254 DEFS="$DEFS -DSIZEOF_SHORT=$ac_size"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5255 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
5256 \${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
5257 \${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
5258 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5259 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5260
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5261 test -n "$silent" || echo "checking size of int"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5262 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5263 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5264 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5265 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5266 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5267 FILE *f=fopen("conftestval", "w");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5268 if (!f) exit(1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5269 fprintf(f, "%d\n", sizeof(int));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5270 exit(0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5271 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5272 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5273 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5274 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5275 ac_size=`cat conftestval`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5276
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5277 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5278 echo "configure: can not determine size of int" >&2; exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5279 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5280 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5281
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5282 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5283 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5284 echo " defining" SIZEOF_INT to be "$ac_size"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5285 echo "#define" SIZEOF_INT "$ac_size" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5286 DEFS="$DEFS -DSIZEOF_INT=$ac_size"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5287 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
5288 \${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
5289 \${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
5290 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5291 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5292
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5293 test -n "$silent" || echo "checking size of long"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5294 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5295 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5296 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5297 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5298 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5299 FILE *f=fopen("conftestval", "w");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5300 if (!f) exit(1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5301 fprintf(f, "%d\n", sizeof(long));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5302 exit(0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5303 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5304 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5305 eval $ac_compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5306 if test -s conftest && (./conftest; exit) 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5307 ac_size=`cat conftestval`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5308
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5309 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5310 echo "configure: can not determine size of long" >&2; exit 1
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5314 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5315 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5316 echo " defining" SIZEOF_LONG to be "$ac_size"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5317 echo "#define" SIZEOF_LONG "$ac_size" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5318 DEFS="$DEFS -DSIZEOF_LONG=$ac_size"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5319 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
5320 \${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
5321 \${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
5322 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5323 }
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 # FSF 19.29 does this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5327 # # fmod, logb, and frexp are found in -lm on most systems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5328 # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5329 # A C_CHECK_LIB(m, sqrt)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5330
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
5331 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random realpath rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5332 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5333 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5334 test -n "$silent" || echo "checking for ${ac_func}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5335 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5336 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5337 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5338 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5339 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5340 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5341 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5342 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5343 #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5344 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5345 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5346 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5347 extern char ${ac_func}(); ${ac_func}();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5348 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5349 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5350 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5351 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5352 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5353 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5354 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5355 echo " defining ${ac_tr_func}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5356 echo "#define" ${ac_tr_func} "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5357 DEFS="$DEFS -D${ac_tr_func}=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5358 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
5359 \${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
5360 \${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
5361 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5362 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5363
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5364
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5365 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5366 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5367 done
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 # Check for mmap.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5371 found_mmap=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5372 test -n "$silent" || echo "checking for mmap"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5373 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5374 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5375 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5376 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5377 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5378 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5379 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5380 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5381 #if defined (__stub_mmap) || defined (__stub___mmap)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5382 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5383 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5384 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5385 extern char mmap(); mmap();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5386 #endif
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 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5391 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5392 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5393 found_mmap=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5394 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5395 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5396
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5397 test -n "$found_mmap" &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5398 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5399 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5400 echo " defining HAVE_MMAP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5401 echo "#define" HAVE_MMAP "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5402 DEFS="$DEFS -DHAVE_MMAP=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5403 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
5404 \${ac_uA}HAVE_MMAP\${ac_uB}HAVE_MMAP\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5405 \${ac_eA}HAVE_MMAP\${ac_eB}HAVE_MMAP\${ac_eC}1\${ac_eD}
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
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5409
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5410 test "${GNU_MALLOC}" != "yes" -a "${found_mmap}" != "true" && rel_alloc=no
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5411 test "${rel_alloc}" = "default" -a "${found_mmap}" = "true" && rel_alloc=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5412
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5413 # Check for Internet sockets.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5414
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5415 ok_so_far=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5416 test -n "$silent" || echo "checking for socket"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5417 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5418 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5419 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5420 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5421 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5422 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5423 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5424 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5425 #if defined (__stub_socket) || defined (__stub___socket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5426 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5427 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5428 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5429 extern char socket(); socket();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5430 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5431 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5432 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5433 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5434 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5435 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5436 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5437 ok_so_far=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5438 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5439 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5440
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5441 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for netinet/in.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5442 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5443 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5444 #include <netinet/in.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5445 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5446 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5447 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5448 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5449 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5450 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5451 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5452 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5453 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5454 ok_so_far=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5455 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5456 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5457 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5458 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for arpa/inet.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5459 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5460 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5461 #include <arpa/inet.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5462 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5463 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5464 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5465 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5466 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5467 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5468 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5469 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5470 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5471 ok_so_far=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5472 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5473 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5474 }
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5475 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5476
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5477 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5478 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5479 echo " defining HAVE_SOCKETS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5480 echo "#define" HAVE_SOCKETS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5481 DEFS="$DEFS -DHAVE_SOCKETS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5482 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
5483 \${ac_uA}HAVE_SOCKETS\${ac_uB}HAVE_SOCKETS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5484 \${ac_eA}HAVE_SOCKETS\${ac_eB}HAVE_SOCKETS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5485 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5486 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5487
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5488 # Check for the sun_len member in struct sockaddr_un.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5489
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5490 test -n "$silent" || echo "checking for sun_len member in struct sockaddr_un"
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 <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5494 #include <sys/socket.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5495 #include <sys/un.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5496 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5497 int t() { static struct sockaddr_un x; x.sun_len = 1;; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5498 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5499 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5500 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5501
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5502 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5503 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5504 echo " defining HAVE_SOCKADDR_SUN_LEN"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5505 echo "#define" HAVE_SOCKADDR_SUN_LEN "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5506 DEFS="$DEFS -DHAVE_SOCKADDR_SUN_LEN=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5507 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
5508 \${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
5509 \${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
5510 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5511 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5512
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5513
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5514 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5515 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5516
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5517 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5518
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5519 # Check for SYS V IPC. (Inferior to sockets.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5520
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5521 if test -z "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5522 ok_so_far=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5523 test -n "$silent" || echo "checking for msgget"
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_msgget) || defined (__stub___msgget)
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 msgget(); msgget();
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 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5542 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5543 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5544 ok_so_far=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5545 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5546 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5547
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5548 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for sys/ipc.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5549 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5550 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5551 #include <sys/ipc.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5552 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5553 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5554 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5555 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5556 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5557 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5558 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5559 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5560 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5561 ok_so_far=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5562 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5563 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5564 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5565 test -n "$ok_so_far" && { test -n "$silent" || echo "checking for sys/msg.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5566 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5567 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5568 #include <sys/msg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5569 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5570 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5571 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5572 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5573 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5574 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5575 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5576 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5577 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5578 ok_so_far=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5579 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5580 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5581 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5582 test -n "$ok_so_far" &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5583 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5584 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5585 echo " defining HAVE_SYSVIPC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5586 echo "#define" HAVE_SYSVIPC "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5587 DEFS="$DEFS -DHAVE_SYSVIPC=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5588 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
5589 \${ac_uA}HAVE_SYSVIPC\${ac_uB}HAVE_SYSVIPC\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5590 \${ac_eA}HAVE_SYSVIPC\${ac_eB}HAVE_SYSVIPC\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5591 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5592 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5593
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5594 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5595
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5596 # Check for directory variants
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5597
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5598 sysv_system_dir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5599 nonsystem_dir_library=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5600 test -n "$silent" || echo "checking for dirent.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5601 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5602 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5603 #include <dirent.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5604 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5605 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5606 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5607 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5608 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5609 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5610 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5611 sysv_system_dir=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5612
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5613 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5614 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5615
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5616 test -z "$sysv_system_dir" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5617 { test -n "$silent" || echo "checking for sys/dir.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5618 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5619 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5620 #include <sys/dir.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5621 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5622 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5623 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5624 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5625 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5626 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5627 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5628 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5629 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5630 nonsystem_dir_library=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5631 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5632 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5633 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5634 if test -n "$sysv_system_dir" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5635 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5636 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5637 echo " defining SYSV_SYSTEM_DIR"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5638 echo "#define" SYSV_SYSTEM_DIR "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5639 DEFS="$DEFS -DSYSV_SYSTEM_DIR=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5640 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
5641 \${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
5642 \${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
5643 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5644 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5645
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5646 elif test -n "$nonsystem_dir_library" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5647 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5648 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5649 echo " defining NONSYSTEM_DIR_LIBRARY"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5650 echo "#define" NONSYSTEM_DIR_LIBRARY "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5651 DEFS="$DEFS -DNONSYSTEM_DIR_LIBRARY=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5652 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
5653 \${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
5654 \${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
5655 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5656 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5657
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5658 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5659
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5660
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5661 echo "checking how to do terminal I/O"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5662
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5663 have_termios=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5664 have_termio=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5665 test -n "$silent" || echo "checking for termios.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5666 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5667 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5668 #include <termios.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5669 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5670 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5671 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5672 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5673 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5674 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5675 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5676 have_termios=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5677
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5678 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5679 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5680
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5681 test -z "$have_termios" && { test -n "$silent" || echo "checking for termio.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5682 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5683 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5684 #include <termio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5685 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5686 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5687 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5688 echo "$ac_err"
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 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5691 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5692 have_termio=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5693
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5694 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5695 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5696 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5697 if test -n "$have_termios" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5698 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5699 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5700 echo " defining HAVE_TERMIOS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5701 echo "#define" HAVE_TERMIOS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5702 DEFS="$DEFS -DHAVE_TERMIOS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5703 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
5704 \${ac_uA}HAVE_TERMIOS\${ac_uB}HAVE_TERMIOS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5705 \${ac_eA}HAVE_TERMIOS\${ac_eB}HAVE_TERMIOS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5706 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5707 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5708
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5709 elif test -n "$have_termio" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5710 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5711 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5712 echo " defining HAVE_TERMIO"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5713 echo "#define" HAVE_TERMIO "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5714 DEFS="$DEFS -DHAVE_TERMIO=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5715 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
5716 \${ac_uA}HAVE_TERMIO\${ac_uB}HAVE_TERMIO\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5717 \${ac_eA}HAVE_TERMIO\${ac_eB}HAVE_TERMIO\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5718 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5719 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5720
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5721 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5722
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5723 # Check for nlist.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5724 test -n "$silent" || echo "checking for nlist.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5725 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5726 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5727 #include <nlist.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5728 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5729 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5730 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5731 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5732 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5733 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5734 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5735
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5736 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5737 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5738 echo " defining NLIST_STRUCT"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5739 echo "#define" NLIST_STRUCT "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5740 DEFS="$DEFS -DNLIST_STRUCT=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5741 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
5742 \${ac_uA}NLIST_STRUCT\${ac_uB}NLIST_STRUCT\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5743 \${ac_eA}NLIST_STRUCT\${ac_eB}NLIST_STRUCT\${ac_eC}1\${ac_eD}
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5747
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5748 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5749 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5750
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5751
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5752 # AIX export list
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5753 if test -f /usr/lpp/X11/bin/smt.exp ; then
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5754
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5755 {
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5756 test -n "$verbose" && \
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5757 echo " defining" AIX_SMT_EXP to be "-bI:/usr/lpp/X11/bin/smt.exp"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5758 echo "#define" AIX_SMT_EXP "-bI:/usr/lpp/X11/bin/smt.exp" >> confdefs.h
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5759 DEFS="$DEFS -DAIX_SMT_EXP=-bI:/usr/lpp/X11/bin/smt.exp"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5760 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}
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5761 \${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_uD}
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5762 \${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_eD}
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5763 "
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5764 }
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5765
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5766 elif test -f /usr/bin/X11/smt.exp ; then
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5767
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5768 {
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5769 test -n "$verbose" && \
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5770 echo " defining" AIX_SMT_EXP to be "-bI:/usr/bin/X11/smt.exp"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5771 echo "#define" AIX_SMT_EXP "-bI:/usr/bin/X11/smt.exp" >> confdefs.h
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5772 DEFS="$DEFS -DAIX_SMT_EXP=-bI:/usr/bin/X11/smt.exp"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5773 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}
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5774 \${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:/usr/bin/X11/smt.exp\${ac_uD}
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5775 \${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:/usr/bin/X11/smt.exp\${ac_eD}
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5776 "
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5777 }
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5778
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 74
diff changeset
5779 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5780
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5781 CFLAGS="$REAL_CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5782
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5783 file="${srcdir}/lisp/version.el"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5784 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"`
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5785 if test -z "${version}"; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5786 echo "${progname}: can't find current emacs version in \"$file\"." >&2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5787 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5788 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5789 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([0-9][0-9]*\)).*$/\1/p' "$file"`
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5790 test -n "$beta" && version="${version}-b${beta}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5791
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5792
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5793
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5794 # the following needs to be fixed for SGI.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5795 if test -z "${native_sound_lib}" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5796 if test -r /usr/demo/SOUND/lib/libaudio.a; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5797 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5798 elif test -r /usr/demo/SOUND/libaudio.a ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5799 native_sound_lib=/usr/demo/SOUND/libaudio.a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5800 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5801 case "${canonical}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5802 *-sgi-* ) ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5803 LIBS="${LIBS} -laudio"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5804 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5805 test -n "$silent" || echo "checking for -laudio"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5806 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5807 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5808
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5809 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5810 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5811 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5812 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5813 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5814 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5815
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5816 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5817 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5818 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5819 if test -n "${ac_have_lib}"; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5820 :; native_sound_lib="-laudio"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5821 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5822 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5823 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5824 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5825 hppa*-hp-hpux* ) ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5826 LIBS="${LIBS} -lAlib"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5827 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5828 test -n "$silent" || echo "checking for -lAlib"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5829 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5830 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5831
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5832 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5833 int t() { main();; return 0; }
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 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5836 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5837 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5838
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5839 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5840 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5841 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5842 if test -n "${ac_have_lib}"; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5843 :; native_sound_lib="-lAlib"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5844 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5845 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5846 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5847 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5848 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5849 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5850 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5851 test -z "${with_sound}" -a -n "${native_sound_lib}" && with_sound="native";
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5852
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5853 #### If the nas library doesn't contain the error jump point, then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5854 #### we force safer behaviour.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5855
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5856 if test "${with_sound}" = "nas" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5857 "${with_sound}" = "both"; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5858 echo '#include "confdefs.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5859 #include <audio/Xtutil.h>' > conftest.${ac_ext}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5860 eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5861 if egrep "AuXtErrorJump" conftest.out >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5862 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5863 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5864 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5865 old_nas=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5866 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5867 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5868
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5869 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5870
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
5871 if test "${with_cde}" = "yes" ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
5872 if test -f "/usr/dt/include/Dt/Dt.h" ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
5873 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} -I/usr/dt/include"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
5874 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
5875 if test -f "/usr/dt/lib/libDtSvc.a" ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
5876 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} -L/usr/dt/lib"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
5877 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
5878 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
5879
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5880 if test "${with_tooltalk}" = "yes" ; then
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
5881 for arg in "-I/usr/include/desktop" "-I${OPENWINHOME-/usr/openwin}/include/desktop" "-I/usr/dt/include/Tt"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5882 do
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
5883 if test -f `echo "${arg}/tt_c.h" | sed 's/^\-I//'` ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
5884 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5885 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5886 done
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
5887 for arg in "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib" "-L/usr/dt/lib"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5888 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5889 case "${arg}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5890 -L*) if test -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5891 dash_r=''
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
5892 if test "${add_runtime_flag}" = "yes" ; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
5893 dash_r=`echo ${arg} | sed "s/^-L */${runtime_arg}/"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5894 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5895 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5896 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5897 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5898 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5899 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5900 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5901
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5902
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5903 if test "${with_tty}" != "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5904 ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5905 LIBS="${LIBS} -lncurses"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5906 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5907 test -n "$silent" || echo "checking for -lncurses"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5908 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5909 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5910
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5911 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5912 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5913 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5914 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5915 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5916 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5917
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5918 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5919 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5920 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5921 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5922 :; have_ncurses=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5923 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5924 :; have_ncurses=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5925 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5926
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5927 if test "${have_ncurses}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5928
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5929 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5930 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5931 echo " defining HAVE_NCURSES"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5932 echo "#define" HAVE_NCURSES "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5933 DEFS="$DEFS -DHAVE_NCURSES=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5934 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
5935 \${ac_uA}HAVE_NCURSES\${ac_uB}HAVE_NCURSES\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5936 \${ac_eA}HAVE_NCURSES\${ac_eB}HAVE_NCURSES\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5937 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5938 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5939
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5940 test -n "$silent" || echo "checking for ncurses/term.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5941 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5942 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5943 #include <ncurses/term.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5944 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5945 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5946 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5947 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5948 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5949 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5950 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5951 have_ncurses_term_h=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5952
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5953 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5954 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5955 have_ncurses_term_h=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5956 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5957 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5958
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5959 test "${have_ncurses_term_h}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5960 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5961 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5962 echo " defining HAVE_NCURSES_TERM_H"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5963 echo "#define" HAVE_NCURSES_TERM_H "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5964 DEFS="$DEFS -DHAVE_NCURSES_TERM_H=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5965 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
5966 \${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
5967 \${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
5968 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5969 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5970
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5971 test -n "$silent" || echo "checking for ncurses/curses.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5972 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5973 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5974 #include <ncurses/curses.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5975 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5976 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5977 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5978 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5979 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5980 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5981 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5982 have_ncurses_curses_h=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5983
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5984 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5985 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5986 have_ncurses_curses_h=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5987 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5988 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5989
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5990 if test "${have_ncurses_curses_h}" = "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5991 OLD_CPP="${CPP}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5992 CPP="${CPP} -I/usr/include/ncurses"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
5993 test -n "$silent" || echo "checking for ncurses/curses.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5994 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5995 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5996 #include <ncurses/curses.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5997 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5998 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5999 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6000 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6001 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6002 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6003 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6004 have_ncurses_curses_h=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6005
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6006 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6007 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6008 have_ncurses_curses_h=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6009 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6010 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6011
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6012 if test "${have_ncurses_curses_h}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6013 site_includes="${site_includes} /usr/include/ncurses"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6014 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6015 test -n "$verbose" && echo " Your system has the bogus ncurses include bug."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6016 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6017 CPP="${OLD_CPP}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6018 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6019 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6020 test "${have_ncurses_curses_h}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6021 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6022 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6023 echo " defining HAVE_NCURSES_CURSES_H"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6024 echo "#define" HAVE_NCURSES_CURSES_H "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6025 DEFS="$DEFS -DHAVE_NCURSES_CURSES_H=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6026 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
6027 \${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
6028 \${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
6029 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6030 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6031
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6032 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6033 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6034
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6035
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6036
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6037 if test "${with_database_berkdb}" != "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6038 ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6039 LIBS="${LIBS} -ldb"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6040 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6041 test -n "$silent" || echo "checking for -ldb"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6042 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6043 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6044
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6045 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6046 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6047 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6048 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6049 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6050 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6051
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6052 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6053 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6054 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6055 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6056 :; have_libdb=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6057 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6058 :; have_libdb=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6059 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6060
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6061 test "${have_libdb}" = yes &&
0
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_LIBDB"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6065 echo "#define" HAVE_LIBDB "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6066 DEFS="$DEFS -DHAVE_LIBDB=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6067 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
6068 \${ac_uA}HAVE_LIBDB\${ac_uB}HAVE_LIBDB\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6069 \${ac_eA}HAVE_LIBDB\${ac_eB}HAVE_LIBDB\${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 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6072
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6073 if test "${with_database_berkdb}" != "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6074 if test "${have_libdb}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6075 with_database_berkdb=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6076 else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6077 test -n "$silent" || echo "checking for dbopen"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6078 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6079 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6080 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6081 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6082 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6083 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6084 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6085 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6086 #if defined (__stub_dbopen) || defined (__stub___dbopen)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6087 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6088 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6089 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6090 extern char dbopen(); dbopen();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6091 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6092 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6093 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6094 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6095 rm -rf conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6096 with_database_berkdb=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6097
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6098 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6099 rm -rf conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6100 with_database_berkdb=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6101 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6102 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6103
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6104 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6105 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6106 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6107 test "${with_database_berkdb}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6108 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6109 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6110 echo " defining HAVE_BERKELEY_DB"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6111 echo "#define" HAVE_BERKELEY_DB "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6112 DEFS="$DEFS -DHAVE_BERKELEY_DB=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6113 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
6114 \${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
6115 \${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
6116 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6117 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6118
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6119
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6120 if test "${with_database_gnudbm}" != "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6121 ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6122 LIBS="${LIBS} -lgdbm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6123 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6124 test -n "$silent" || echo "checking for -lgdbm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6125 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6126 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6127
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6128 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6129 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6130 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6131 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6132 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6133 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6134
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6135 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6136 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6137 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6138 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6139 :; have_libgdbm=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6140 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6141 :; have_libgdbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6142 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6143
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6144 test "${have_libgdbm}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6145 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6146 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6147 echo " defining HAVE_LIBGDBM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6148 echo "#define" HAVE_LIBGDBM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6149 DEFS="$DEFS -DHAVE_LIBGDBM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6150 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
6151 \${ac_uA}HAVE_LIBGDBM\${ac_uB}HAVE_LIBGDBM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6152 \${ac_eA}HAVE_LIBGDBM\${ac_eB}HAVE_LIBGDBM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6153 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6154 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6155
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6156 test -z "${with_database_gnudbm}" && with_database_gnudbm="${have_libgdbm}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6157 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6158 if test "${with_database_gnudbm}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6159
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6160 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6161 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6162 echo " defining HAVE_DBM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6163 echo "#define" HAVE_DBM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6164 DEFS="$DEFS -DHAVE_DBM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6165 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
6166 \${ac_uA}HAVE_DBM\${ac_uB}HAVE_DBM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6167 \${ac_eA}HAVE_DBM\${ac_eB}HAVE_DBM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6168 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6169 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6170
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6171
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6172 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6173 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6174 echo " defining HAVE_GNU_DBM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6175 echo "#define" HAVE_GNU_DBM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6176 DEFS="$DEFS -DHAVE_GNU_DBM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6177 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
6178 \${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
6179 \${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
6180 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6181 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6182
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6183 with_database_dbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6184 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6185
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6186 if test "${with_database_dbm}" != "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6187 ac_save_LIBS="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6188 LIBS="${LIBS} -ldbm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6189 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6190 test -n "$silent" || echo "checking for -ldbm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6191 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6192 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6193
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6194 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6195 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6196 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6197 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6198 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6199 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6200
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6201 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6202 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6203 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6204 if test -n "${ac_have_lib}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6205 :; have_libdbm=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6206 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6207 :; have_libdbm=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6208 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6209
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6210 test "${have_libdbm}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6211 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6212 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6213 echo " defining HAVE_LIBDBM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6214 echo "#define" HAVE_LIBDBM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6215 DEFS="$DEFS -DHAVE_LIBDBM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6216 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
6217 \${ac_uA}HAVE_LIBDBM\${ac_uB}HAVE_LIBDBM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6218 \${ac_eA}HAVE_LIBDBM\${ac_eB}HAVE_LIBDBM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6219 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6220 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6221
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6222 if test "${with_database_dbm}" != "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6223 if test "${have_libdbm}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6224 with_database_dbm=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6225 else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6226 test -n "$silent" || echo "checking for dbm_open"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6227 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6228 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6229 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6230 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6231 int t() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6232 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6233 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6234 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6235 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6236 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6237 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6238 /* Override any gcc2 internal prototype to avoid an error. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6239 extern char dbm_open(); dbm_open();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6240 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6241 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6242 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6243 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6244 rm -rf conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6245 with_database_dbm=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6246
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6247 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6248 rm -rf conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6249 with_database_dbm=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6250 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6251 rm -f conftest*
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6252
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6253 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6254 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6255 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6256 test "${with_database_dbm}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6257 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6258 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6259 echo " defining HAVE_DBM"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6260 echo "#define" HAVE_DBM "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6261 DEFS="$DEFS -DHAVE_DBM=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6262 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
6263 \${ac_uA}HAVE_DBM\${ac_uB}HAVE_DBM\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6264 \${ac_eA}HAVE_DBM\${ac_eB}HAVE_DBM\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6265 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6266 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6267
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6268
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6269
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6270 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6271 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6272 # Substitute into Makefile and config.h #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6273 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6274 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6275
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6276
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6277
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6278
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6279
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6280
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6281
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6282
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6283
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6284
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6285
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6286
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6287
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6288
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6289
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6290
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6291
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6292
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6293
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6294
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6295
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6296
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6297
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6298
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6299
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6300
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6301
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6302
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6303
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6304
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6305
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6306
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6307
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6308
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6309
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6310
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6311
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6312
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6313
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6314
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6315
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6316
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6317 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6318 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6319 echo " defining" EMACS_VERSION to be ""${version}""
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6320 echo "#define" EMACS_VERSION ""${version}"" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6321 DEFS="$DEFS -DEMACS_VERSION="${version}""
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6322 ac_sed_defs="${ac_sed_defs}\${ac_dA}EMACS_VERSION\${ac_dB}EMACS_VERSION\${ac_dC}"${version}"\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6323 \${ac_uA}EMACS_VERSION\${ac_uB}EMACS_VERSION\${ac_uC}"${version}"\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6324 \${ac_eA}EMACS_VERSION\${ac_eB}EMACS_VERSION\${ac_eC}"${version}"\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6325 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6326 }
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6327
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6328
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6329 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6330 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6331 echo " defining" EMACS_CONFIGURATION to be ""\"${canonical}\"""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6332 echo "#define" EMACS_CONFIGURATION ""\"${canonical}\""" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6333 DEFS="$DEFS -DEMACS_CONFIGURATION="\"${canonical}\"""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6334 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
6335 \${ac_uA}EMACS_CONFIGURATION\${ac_uB}EMACS_CONFIGURATION\${ac_uC}"\"${canonical}\""\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6336 \${ac_eA}EMACS_CONFIGURATION\${ac_eB}EMACS_CONFIGURATION\${ac_eC}"\"${canonical}\""\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6337 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6338 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6339
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6340
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6341 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6342 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6343 echo " defining" config_machfile to be ""\"${machfile}\"""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6344 echo "#define" config_machfile ""\"${machfile}\""" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6345 DEFS="$DEFS -Dconfig_machfile="\"${machfile}\"""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6346 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
6347 \${ac_uA}config_machfile\${ac_uB}config_machfile\${ac_uC}"\"${machfile}\""\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6348 \${ac_eA}config_machfile\${ac_eB}config_machfile\${ac_eC}"\"${machfile}\""\${ac_eD}
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6352
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6353 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6354 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6355 echo " defining" config_opsysfile to be ""\"${opsysfile}\"""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6356 echo "#define" config_opsysfile ""\"${opsysfile}\""" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6357 DEFS="$DEFS -Dconfig_opsysfile="\"${opsysfile}\"""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6358 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
6359 \${ac_uA}config_opsysfile\${ac_uB}config_opsysfile\${ac_uC}"\"${opsysfile}\""\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6360 \${ac_eA}config_opsysfile\${ac_eB}config_opsysfile\${ac_eC}"\"${opsysfile}\""\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6361 "
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6365 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6366 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6367 echo " defining" LD_SWITCH_X_SITE to be "${LD_SWITCH_X_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6368 echo "#define" LD_SWITCH_X_SITE "${LD_SWITCH_X_SITE}" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6369 DEFS="$DEFS -DLD_SWITCH_X_SITE=${LD_SWITCH_X_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6370 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
6371 \${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
6372 \${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
6373 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6374 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6375
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6376
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6377 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6378 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6379 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
6380 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
6381 DEFS="$DEFS -DLD_SWITCH_X_SITE_AUX=${LD_SWITCH_X_SITE_AUX}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6382 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
6383 \${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
6384 \${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
6385 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6386 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6387
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6388
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6389 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6390 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6391 echo " defining" C_SWITCH_X_SITE to be "${C_SWITCH_X_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6392 echo "#define" C_SWITCH_X_SITE "${C_SWITCH_X_SITE}" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6393 DEFS="$DEFS -DC_SWITCH_X_SITE=${C_SWITCH_X_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6394 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
6395 \${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
6396 \${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
6397 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6398 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6399
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6400
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6401 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6402 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6403 echo " defining" LD_SWITCH_SITE to be "${LD_SWITCH_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6404 echo "#define" LD_SWITCH_SITE "${LD_SWITCH_SITE}" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6405 DEFS="$DEFS -DLD_SWITCH_SITE=${LD_SWITCH_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6406 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
6407 \${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
6408 \${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
6409 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6410 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6411
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6412
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6413 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6414 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6415 echo " defining" C_SWITCH_SITE to be "${C_SWITCH_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6416 echo "#define" C_SWITCH_SITE "${C_SWITCH_SITE}" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6417 DEFS="$DEFS -DC_SWITCH_SITE=${C_SWITCH_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6418 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
6419 \${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
6420 \${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
6421 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6422 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6423
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6424
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6425 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6426 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6427 echo " defining" UNEXEC_SRC to be "${UNEXEC_SRC}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6428 echo "#define" UNEXEC_SRC "${UNEXEC_SRC}" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6429 DEFS="$DEFS -DUNEXEC_SRC=${UNEXEC_SRC}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6430 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
6431 \${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
6432 \${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
6433 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6434 }
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
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6438 test -n "${puresize}" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6439 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6440 test -n "$verbose" && \
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 100
diff changeset
6441 echo " defining" RAW_PURESIZE to be "${puresize}"
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 100
diff changeset
6442 echo "#define" RAW_PURESIZE "${puresize}" >> confdefs.h
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 100
diff changeset
6443 DEFS="$DEFS -DRAW_PURESIZE=${puresize}"
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 100
diff changeset
6444 ac_sed_defs="${ac_sed_defs}\${ac_dA}RAW_PURESIZE\${ac_dB}RAW_PURESIZE\${ac_dC}${puresize}\${ac_dD}
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 100
diff changeset
6445 \${ac_uA}RAW_PURESIZE\${ac_uB}RAW_PURESIZE\${ac_uC}${puresize}\${ac_uD}
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 100
diff changeset
6446 \${ac_eA}RAW_PURESIZE\${ac_eB}RAW_PURESIZE\${ac_eC}${puresize}\${ac_eD}
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6447 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6448 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6449
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6450 test "${HAVE_X_WINDOWS}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6451 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6452 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6453 echo " defining HAVE_X_WINDOWS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6454 echo "#define" HAVE_X_WINDOWS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6455 DEFS="$DEFS -DHAVE_X_WINDOWS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6456 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
6457 \${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
6458 \${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
6459 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6460 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6461
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6462 test "${HAVE_XFREE386}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6463 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6464 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6465 echo " defining HAVE_XFREE386"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6466 echo "#define" HAVE_XFREE386 "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6467 DEFS="$DEFS -DHAVE_XFREE386=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6468 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
6469 \${ac_uA}HAVE_XFREE386\${ac_uB}HAVE_XFREE386\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6470 \${ac_eA}HAVE_XFREE386\${ac_eB}HAVE_XFREE386\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6471 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6472 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6473
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6474
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6475 if test "${GNU_MALLOC}" = yes; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6476 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6477 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6478 echo " defining GNU_MALLOC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6479 echo "#define" GNU_MALLOC "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6480 DEFS="$DEFS -DGNU_MALLOC=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6481 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
6482 \${ac_uA}GNU_MALLOC\${ac_uB}GNU_MALLOC\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6483 \${ac_eA}GNU_MALLOC\${ac_eB}GNU_MALLOC\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6484 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6485 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6486
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6487 elif test "${use_system_malloc}" = yes; then
0
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 USE_SYSTEM_MALLOC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6491 echo "#define" USE_SYSTEM_MALLOC "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6492 DEFS="$DEFS -DUSE_SYSTEM_MALLOC=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6493 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
6494 \${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
6495 \${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
6496 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6497 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6498
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6499 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6500 test "${rel_alloc}" = yes &&
0
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 REL_ALLOC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6504 echo "#define" REL_ALLOC "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6505 DEFS="$DEFS -DREL_ALLOC=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6506 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
6507 \${ac_uA}REL_ALLOC\${ac_uB}REL_ALLOC\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6508 \${ac_eA}REL_ALLOC\${ac_eB}REL_ALLOC\${ac_eC}1\${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 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6511
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6512 test "${LISP_FLOAT_TYPE}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6513 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6514 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6515 echo " defining LISP_FLOAT_TYPE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6516 echo "#define" LISP_FLOAT_TYPE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6517 DEFS="$DEFS -DLISP_FLOAT_TYPE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6518 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
6519 \${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
6520 \${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
6521 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6522 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6523
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6524 test "${with_motif}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6525 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6526 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6527 echo " defining LWLIB_USES_MOTIF"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6528 echo "#define" LWLIB_USES_MOTIF "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6529 DEFS="$DEFS -DLWLIB_USES_MOTIF=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6530 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
6531 \${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
6532 \${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
6533 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6534 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6535
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
6536 test "${with_athena}" = yes &&
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
6537 {
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
6538 test -n "$verbose" && \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
6539 echo " defining LWLIB_USES_ATHENA"
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
6540 echo "#define" LWLIB_USES_ATHENA "1" >> confdefs.h
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
6541 DEFS="$DEFS -DLWLIB_USES_ATHENA=1"
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
6542 ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_USES_ATHENA\${ac_dB}LWLIB_USES_ATHENA\${ac_dC}1\${ac_dD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
6543 \${ac_uA}LWLIB_USES_ATHENA\${ac_uB}LWLIB_USES_ATHENA\${ac_uC}1\${ac_uD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
6544 \${ac_eA}LWLIB_USES_ATHENA\${ac_eB}LWLIB_USES_ATHENA\${ac_eC}1\${ac_eD}
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
6545 "
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
6546 }
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
6547
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6548 test "${with_toolbars}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6549 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6550 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6551 echo " defining HAVE_TOOLBARS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6552 echo "#define" HAVE_TOOLBARS "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6553 DEFS="$DEFS -DHAVE_TOOLBARS=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6554 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
6555 \${ac_uA}HAVE_TOOLBARS\${ac_uB}HAVE_TOOLBARS\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6556 \${ac_eA}HAVE_TOOLBARS\${ac_eB}HAVE_TOOLBARS\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6557 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6558 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6559
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6560 test "${with_tty}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6561 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6562 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6563 echo " defining HAVE_TTY"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6564 echo "#define" HAVE_TTY "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6565 DEFS="$DEFS -DHAVE_TTY=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6566 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
6567 \${ac_uA}HAVE_TTY\${ac_uB}HAVE_TTY\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6568 \${ac_eA}HAVE_TTY\${ac_eB}HAVE_TTY\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6569 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6570 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6571
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6572 test "${with_tooltalk}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6573 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6574 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6575 echo " defining TOOLTALK"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6576 echo "#define" TOOLTALK "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6577 DEFS="$DEFS -DTOOLTALK=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6578 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
6579 \${ac_uA}TOOLTALK\${ac_uB}TOOLTALK\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6580 \${ac_eA}TOOLTALK\${ac_eB}TOOLTALK\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6581 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6582 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6583
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6584 test "${with_i18n3}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6585 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6586 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6587 echo " defining I18N3"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6588 echo "#define" I18N3 "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6589 DEFS="$DEFS -DI18N3=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6590 ac_sed_defs="${ac_sed_defs}\${ac_dA}I18N3\${ac_dB}I18N3\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6591 \${ac_uA}I18N3\${ac_uB}I18N3\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6592 \${ac_eA}I18N3\${ac_eB}I18N3\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6593 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6594 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6595
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6596 test "${with_mule}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6597 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6598 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6599 echo " defining MULE"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6600 echo "#define" MULE "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6601 DEFS="$DEFS -DMULE=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6602 ac_sed_defs="${ac_sed_defs}\${ac_dA}MULE\${ac_dB}MULE\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6603 \${ac_uA}MULE\${ac_uB}MULE\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6604 \${ac_eA}MULE\${ac_eB}MULE\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6605 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6606 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6607
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6608 test "${with_canna}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6609 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6610 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6611 echo " defining HAVE_CANNA"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6612 echo "#define" HAVE_CANNA "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6613 DEFS="$DEFS -DHAVE_CANNA=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6614 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_CANNA\${ac_dB}HAVE_CANNA\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6615 \${ac_uA}HAVE_CANNA\${ac_uB}HAVE_CANNA\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6616 \${ac_eA}HAVE_CANNA\${ac_eB}HAVE_CANNA\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6617 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6618 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6619
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6620 test "${with_wnn}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6621 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6622 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6623 echo " defining HAVE_WNN"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6624 echo "#define" HAVE_WNN "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6625 DEFS="$DEFS -DHAVE_WNN=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6626 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_WNN\${ac_dB}HAVE_WNN\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6627 \${ac_uA}HAVE_WNN\${ac_uB}HAVE_WNN\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6628 \${ac_eA}HAVE_WNN\${ac_eB}HAVE_WNN\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6629 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6630 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6631
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
6632 test "${with_wnn6}" = yes &&
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
6633 {
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
6634 test -n "$verbose" && \
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
6635 echo " defining WNN6"
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
6636 echo "#define" WNN6 "1" >> confdefs.h
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
6637 DEFS="$DEFS -DWNN6=1"
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
6638 ac_sed_defs="${ac_sed_defs}\${ac_dA}WNN6\${ac_dB}WNN6\${ac_dC}1\${ac_dD}
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
6639 \${ac_uA}WNN6\${ac_uB}WNN6\${ac_uC}1\${ac_uD}
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
6640 \${ac_eA}WNN6\${ac_eB}WNN6\${ac_eC}1\${ac_eD}
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
6641 "
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
6642 }
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
6643
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6644 test "${with_mock}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6645 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6646 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6647 echo " defining MOCKLISP_SUPPORT"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6648 echo "#define" MOCKLISP_SUPPORT "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6649 DEFS="$DEFS -DMOCKLISP_SUPPORT=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6650 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
6651 \${ac_uA}MOCKLISP_SUPPORT\${ac_uB}MOCKLISP_SUPPORT\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6652 \${ac_eA}MOCKLISP_SUPPORT\${ac_eB}MOCKLISP_SUPPORT\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6653 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6654 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6655
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6656 test "${with_sparcworks}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6657 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6658 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6659 echo " defining SUNPRO"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6660 echo "#define" SUNPRO "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6661 DEFS="$DEFS -DSUNPRO=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6662 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
6663 \${ac_uA}SUNPRO\${ac_uB}SUNPRO\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6664 \${ac_eA}SUNPRO\${ac_eB}SUNPRO\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6665 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6666 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6667
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6668 test "${usage_tracking}" = yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6669 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6670 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6671 echo " defining USAGE_TRACKING"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6672 echo "#define" USAGE_TRACKING "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6673 DEFS="$DEFS -DUSAGE_TRACKING=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6674 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
6675 \${ac_uA}USAGE_TRACKING\${ac_uB}USAGE_TRACKING\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6676 \${ac_eA}USAGE_TRACKING\${ac_eB}USAGE_TRACKING\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6677 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6678 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6679
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6680 test "${need_dynodump}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6681 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6682 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6683 echo " defining DYNODUMP"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6684 echo "#define" DYNODUMP "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6685 DEFS="$DEFS -DDYNODUMP=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6686 ac_sed_defs="${ac_sed_defs}\${ac_dA}DYNODUMP\${ac_dB}DYNODUMP\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6687 \${ac_uA}DYNODUMP\${ac_uB}DYNODUMP\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6688 \${ac_eA}DYNODUMP\${ac_eB}DYNODUMP\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6689 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6690 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6691
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6692 test "${need_xildoff}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6693 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6694 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6695 echo " defining NEED_XILDOFF"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6696 echo "#define" NEED_XILDOFF "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6697 DEFS="$DEFS -DNEED_XILDOFF=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6698 ac_sed_defs="${ac_sed_defs}\${ac_dA}NEED_XILDOFF\${ac_dB}NEED_XILDOFF\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6699 \${ac_uA}NEED_XILDOFF\${ac_uB}NEED_XILDOFF\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6700 \${ac_eA}NEED_XILDOFF\${ac_eB}NEED_XILDOFF\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6701 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6702 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6703
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6704 test "${with_gcc}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6705 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6706 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6707 echo " defining USE_GCC"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6708 echo "#define" USE_GCC "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6709 DEFS="$DEFS -DUSE_GCC=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6710 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_GCC\${ac_dB}USE_GCC\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6711 \${ac_uA}USE_GCC\${ac_uB}USE_GCC\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6712 \${ac_eA}USE_GCC\${ac_eB}USE_GCC\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6713 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6714 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6715
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6716 test "${with_lcc}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6717 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6718 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6719 echo " defining USE_LCC"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6720 echo "#define" USE_LCC "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6721 DEFS="$DEFS -DUSE_LCC=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6722 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_LCC\${ac_dB}USE_LCC\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6723 \${ac_uA}USE_LCC\${ac_uB}USE_LCC\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6724 \${ac_eA}USE_LCC\${ac_eB}USE_LCC\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6725 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6726 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6727
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6728 test "${with_socks}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6729 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6730 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6731 echo " defining HAVE_SOCKS"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6732 echo "#define" HAVE_SOCKS "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6733 DEFS="$DEFS -DHAVE_SOCKS=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6734 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKS\${ac_dB}HAVE_SOCKS\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6735 \${ac_uA}HAVE_SOCKS\${ac_uB}HAVE_SOCKS\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6736 \${ac_eA}HAVE_SOCKS\${ac_eB}HAVE_SOCKS\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6737 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6738 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6739
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6740 test "${with_term}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6741 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6742 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6743 echo " defining HAVE_TERM"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6744 echo "#define" HAVE_TERM "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6745 DEFS="$DEFS -DHAVE_TERM=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6746 ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERM\${ac_dB}HAVE_TERM\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6747 \${ac_uA}HAVE_TERM\${ac_uB}HAVE_TERM\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6748 \${ac_eA}HAVE_TERM\${ac_eB}HAVE_TERM\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6749 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6750 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6751
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6752 test "${with_epoch}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6753 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6754 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6755 echo " defining EPOCH"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6756 echo "#define" EPOCH "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6757 DEFS="$DEFS -DEPOCH=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6758 ac_sed_defs="${ac_sed_defs}\${ac_dA}EPOCH\${ac_dB}EPOCH\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6759 \${ac_uA}EPOCH\${ac_uB}EPOCH\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6760 \${ac_eA}EPOCH\${ac_eB}EPOCH\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6761 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6762 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6763
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6764 test "${external_widget}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6765 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6766 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6767 echo " defining EXTERNAL_WIDGET"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6768 echo "#define" EXTERNAL_WIDGET "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6769 DEFS="$DEFS -DEXTERNAL_WIDGET=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6770 ac_sed_defs="${ac_sed_defs}\${ac_dA}EXTERNAL_WIDGET\${ac_dB}EXTERNAL_WIDGET\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6771 \${ac_uA}EXTERNAL_WIDGET\${ac_uB}EXTERNAL_WIDGET\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6772 \${ac_eA}EXTERNAL_WIDGET\${ac_eB}EXTERNAL_WIDGET\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6773 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6774 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6775
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6776 test "${with_gnu_make}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6777 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6778 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6779 echo " defining USE_GNU_MAKE"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6780 echo "#define" USE_GNU_MAKE "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6781 DEFS="$DEFS -DUSE_GNU_MAKE=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6782 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_GNU_MAKE\${ac_dB}USE_GNU_MAKE\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6783 \${ac_uA}USE_GNU_MAKE\${ac_uB}USE_GNU_MAKE\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6784 \${ac_eA}USE_GNU_MAKE\${ac_eB}USE_GNU_MAKE\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6785 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6786 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6787
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6788 test "${no_doc_file}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6789 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6790 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6791 echo " defining NO_DOC_FILE"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6792 echo "#define" NO_DOC_FILE "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6793 DEFS="$DEFS -DNO_DOC_FILE=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6794 ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_DOC_FILE\${ac_dB}NO_DOC_FILE\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6795 \${ac_uA}NO_DOC_FILE\${ac_uB}NO_DOC_FILE\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6796 \${ac_eA}NO_DOC_FILE\${ac_eB}NO_DOC_FILE\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6797 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6798 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6799
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6800 test "${const_is_losing}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6801 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6802 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6803 echo " defining CONST_IS_LOSING"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6804 echo "#define" CONST_IS_LOSING "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6805 DEFS="$DEFS -DCONST_IS_LOSING=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6806 ac_sed_defs="${ac_sed_defs}\${ac_dA}CONST_IS_LOSING\${ac_dB}CONST_IS_LOSING\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6807 \${ac_uA}CONST_IS_LOSING\${ac_uB}CONST_IS_LOSING\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6808 \${ac_eA}CONST_IS_LOSING\${ac_eB}CONST_IS_LOSING\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6809 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6810 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6811
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6812 test "${use_assertions}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6813 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6814 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6815 echo " defining USE_ASSERTIONS"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6816 echo "#define" USE_ASSERTIONS "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6817 DEFS="$DEFS -DUSE_ASSERTIONS=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6818 ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_ASSERTIONS\${ac_dB}USE_ASSERTIONS\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6819 \${ac_uA}USE_ASSERTIONS\${ac_uB}USE_ASSERTIONS\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6820 \${ac_eA}USE_ASSERTIONS\${ac_eB}USE_ASSERTIONS\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6821 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6822 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6823
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6824 test "${debug}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6825 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6826 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6827 echo " defining DEBUG_XEMACS"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6828 echo "#define" DEBUG_XEMACS "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6829 DEFS="$DEFS -DDEBUG_XEMACS=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6830 ac_sed_defs="${ac_sed_defs}\${ac_dA}DEBUG_XEMACS\${ac_dB}DEBUG_XEMACS\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6831 \${ac_uA}DEBUG_XEMACS\${ac_uB}DEBUG_XEMACS\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6832 \${ac_eA}DEBUG_XEMACS\${ac_eB}DEBUG_XEMACS\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6833 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6834 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6835
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6836 test "${quantify}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6837 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6838 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6839 echo " defining QUANTIFY"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6840 echo "#define" QUANTIFY "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6841 DEFS="$DEFS -DQUANTIFY=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6842 ac_sed_defs="${ac_sed_defs}\${ac_dA}QUANTIFY\${ac_dB}QUANTIFY\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6843 \${ac_uA}QUANTIFY\${ac_uB}QUANTIFY\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6844 \${ac_eA}QUANTIFY\${ac_eB}QUANTIFY\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6845 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6846 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6847
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6848 test "${memory_usage_stats}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6849 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6850 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6851 echo " defining MEMORY_USAGE_STATS"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6852 echo "#define" MEMORY_USAGE_STATS "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6853 DEFS="$DEFS -DMEMORY_USAGE_STATS=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6854 ac_sed_defs="${ac_sed_defs}\${ac_dA}MEMORY_USAGE_STATS\${ac_dB}MEMORY_USAGE_STATS\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6855 \${ac_uA}MEMORY_USAGE_STATS\${ac_uB}MEMORY_USAGE_STATS\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6856 \${ac_eA}MEMORY_USAGE_STATS\${ac_eB}MEMORY_USAGE_STATS\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6857 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6858 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6859
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6860 test "${with_pop}" = yes &&
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6861 {
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6862 test -n "$verbose" && \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6863 echo " defining MAIL_USE_POP"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6864 echo "#define" MAIL_USE_POP "1" >> confdefs.h
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6865 DEFS="$DEFS -DMAIL_USE_POP=1"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6866 ac_sed_defs="${ac_sed_defs}\${ac_dA}MAIL_USE_POP\${ac_dB}MAIL_USE_POP\${ac_dC}1\${ac_dD}
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6867 \${ac_uA}MAIL_USE_POP\${ac_uB}MAIL_USE_POP\${ac_uC}1\${ac_uD}
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6868 \${ac_eA}MAIL_USE_POP\${ac_eB}MAIL_USE_POP\${ac_eC}1\${ac_eD}
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6869 "
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6870 }
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6871
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6872 test "${with_kerberos}" = yes &&
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6873 {
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6874 test -n "$verbose" && \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6875 echo " defining KERBEROS"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6876 echo "#define" KERBEROS "1" >> confdefs.h
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6877 DEFS="$DEFS -DKERBEROS=1"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6878 ac_sed_defs="${ac_sed_defs}\${ac_dA}KERBEROS\${ac_dB}KERBEROS\${ac_dC}1\${ac_dD}
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6879 \${ac_uA}KERBEROS\${ac_uB}KERBEROS\${ac_uC}1\${ac_uD}
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6880 \${ac_eA}KERBEROS\${ac_eB}KERBEROS\${ac_eC}1\${ac_eD}
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6881 "
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6882 }
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6883
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6884 test "${with_hesiod}" = yes &&
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6885 {
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6886 test -n "$verbose" && \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6887 echo " defining HESIOD"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6888 echo "#define" HESIOD "1" >> confdefs.h
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6889 DEFS="$DEFS -DHESIOD=1"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6890 ac_sed_defs="${ac_sed_defs}\${ac_dA}HESIOD\${ac_dB}HESIOD\${ac_dC}1\${ac_dD}
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6891 \${ac_uA}HESIOD\${ac_uB}HESIOD\${ac_uC}1\${ac_uD}
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6892 \${ac_eA}HESIOD\${ac_eB}HESIOD\${ac_eC}1\${ac_eD}
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6893 "
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6894 }
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
6895
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6896
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6897 test "${error_check_extents}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6898 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6899 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6900 echo " defining ERROR_CHECK_EXTENTS"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6901 echo "#define" ERROR_CHECK_EXTENTS "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6902 DEFS="$DEFS -DERROR_CHECK_EXTENTS=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6903 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_EXTENTS\${ac_dB}ERROR_CHECK_EXTENTS\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6904 \${ac_uA}ERROR_CHECK_EXTENTS\${ac_uB}ERROR_CHECK_EXTENTS\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6905 \${ac_eA}ERROR_CHECK_EXTENTS\${ac_eB}ERROR_CHECK_EXTENTS\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6906 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6907 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6908
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6909 test "${error_check_typecheck}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6910 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6911 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6912 echo " defining ERROR_CHECK_TYPECHECK"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6913 echo "#define" ERROR_CHECK_TYPECHECK "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6914 DEFS="$DEFS -DERROR_CHECK_TYPECHECK=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6915 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_TYPECHECK\${ac_dB}ERROR_CHECK_TYPECHECK\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6916 \${ac_uA}ERROR_CHECK_TYPECHECK\${ac_uB}ERROR_CHECK_TYPECHECK\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6917 \${ac_eA}ERROR_CHECK_TYPECHECK\${ac_eB}ERROR_CHECK_TYPECHECK\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6918 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6919 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6920
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6921 test "${error_check_bufpos}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6922 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6923 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6924 echo " defining ERROR_CHECK_BUFPOS"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6925 echo "#define" ERROR_CHECK_BUFPOS "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6926 DEFS="$DEFS -DERROR_CHECK_BUFPOS=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6927 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_BUFPOS\${ac_dB}ERROR_CHECK_BUFPOS\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6928 \${ac_uA}ERROR_CHECK_BUFPOS\${ac_uB}ERROR_CHECK_BUFPOS\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6929 \${ac_eA}ERROR_CHECK_BUFPOS\${ac_eB}ERROR_CHECK_BUFPOS\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6930 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6931 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6932
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6933 test "${error_check_gc}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6934 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6935 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6936 echo " defining ERROR_CHECK_GC"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6937 echo "#define" ERROR_CHECK_GC "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6938 DEFS="$DEFS -DERROR_CHECK_GC=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6939 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_GC\${ac_dB}ERROR_CHECK_GC\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6940 \${ac_uA}ERROR_CHECK_GC\${ac_uB}ERROR_CHECK_GC\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6941 \${ac_eA}ERROR_CHECK_GC\${ac_eB}ERROR_CHECK_GC\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6942 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6943 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6944
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6945 test "${error_check_malloc}" = yes &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6946 {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6947 test -n "$verbose" && \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6948 echo " defining ERROR_CHECK_MALLOC"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6949 echo "#define" ERROR_CHECK_MALLOC "1" >> confdefs.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6950 DEFS="$DEFS -DERROR_CHECK_MALLOC=1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6951 ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_MALLOC\${ac_dB}ERROR_CHECK_MALLOC\${ac_dC}1\${ac_dD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6952 \${ac_uA}ERROR_CHECK_MALLOC\${ac_uB}ERROR_CHECK_MALLOC\${ac_uC}1\${ac_uD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6953 \${ac_eA}ERROR_CHECK_MALLOC\${ac_eB}ERROR_CHECK_MALLOC\${ac_eC}1\${ac_eD}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6954 "
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6955 }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6956
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6957
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6958 if test "${with_energize}" = yes; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6959
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6960 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6961 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6962 echo " defining ENERGIZE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6963 echo "#define" ENERGIZE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6964 DEFS="$DEFS -DENERGIZE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6965 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
6966 \${ac_uA}ENERGIZE\${ac_uB}ENERGIZE\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6967 \${ac_eA}ENERGIZE\${ac_eB}ENERGIZE\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6968 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6969 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6970
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6971 test "${energize_version}" = "2.X" &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6972 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6973 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6974 echo " defining ENERGIZE_2"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6975 echo "#define" ENERGIZE_2 "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6976 DEFS="$DEFS -DENERGIZE_2=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6977 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
6978 \${ac_uA}ENERGIZE_2\${ac_uB}ENERGIZE_2\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6979 \${ac_eA}ENERGIZE_2\${ac_eB}ENERGIZE_2\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6980 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6981 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6982
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6983 test "${energize_version}" = "3.X" &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6984 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6985 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6986 echo " defining ENERGIZE_3"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6987 echo "#define" ENERGIZE_3 "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6988 DEFS="$DEFS -DENERGIZE_3=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6989 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
6990 \${ac_uA}ENERGIZE_3\${ac_uB}ENERGIZE_3\${ac_uC}1\${ac_uD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6991 \${ac_eA}ENERGIZE_3\${ac_eB}ENERGIZE_3\${ac_eC}1\${ac_eD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6992 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6993 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6994
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6995 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6996
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6997 test "${with_sound}" = "native" -o "${with_sound}" = "both" &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6998 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6999 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7000 echo " defining HAVE_NATIVE_SOUND"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7001 echo "#define" HAVE_NATIVE_SOUND "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7002 DEFS="$DEFS -DHAVE_NATIVE_SOUND=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7003 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
7004 \${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
7005 \${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
7006 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7007 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7008
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7009 test "${with_sound}" = "nas" -o "${with_sound}" = "both" &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7010 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7011 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7012 echo " defining HAVE_NAS_SOUND"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7013 echo "#define" HAVE_NAS_SOUND "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7014 DEFS="$DEFS -DHAVE_NAS_SOUND=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7015 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
7016 \${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
7017 \${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
7018 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7019 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7020
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7021 test "${old_nas}" = "true" &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7022 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7023 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7024 echo " defining NAS_NO_ERROR_JUMP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7025 echo "#define" NAS_NO_ERROR_JUMP "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7026 DEFS="$DEFS -DNAS_NO_ERROR_JUMP=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7027 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
7028 \${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
7029 \${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
7030 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7031 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7032
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7033
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7034 test "${use_union_type}" != yes &&
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7035 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7036 test -n "$verbose" && \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7037 echo " defining NO_UNION_TYPE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7038 echo "#define" NO_UNION_TYPE "1" >> confdefs.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7039 DEFS="$DEFS -DNO_UNION_TYPE=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7040 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
7041 \${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
7042 \${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
7043 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7044 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7045
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7046
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7047
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7048 (
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7049 echo "uname -a: `uname -a`"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7050 echo ""
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7051 echo "$0 $configure_args"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7052 ) >> Installation
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7053 # Start stdout redirection to '| tee -a Installation'
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7054 (
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7055 echo "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7056
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7057 Configured for \`${canonical}'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7058
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7059 Where should the build process find the source code? ${srcdir}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7060 What installation prefix should install use? ${prefix}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7061 What operating system and machine description files should XEmacs use?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7062 \`${opsysfile}' and \`${machfile}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7063 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7064 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7065 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7066 What window system should XEmacs use? ${window_system}${x_includes+
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7067 Where do we find X Windows header files? }${x_includes}${x_libraries+
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7068 Where do we find X Windows libraries? }${x_libraries}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7069
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7070 if test -n "$site_includes"; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7071 echo " Additional header files: ${site_includes}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7072 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7073
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7074 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7075 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7076 elif test -n "$site_libraries"; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7077 echo " Additional libraries: ${site_libraries}"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7078 elif test -n "$site_runtime_libraries"; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7079 echo " Additional libraries: ${site_runtime_libraries}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7080 fi
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7081 if test "$with_wnn" = yes ; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7082 echo " Finding WNN includes with: ${wnn_includes}"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7083 echo " Loading WNN libs with: ${wnn_libraries}"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7084 fi
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7085 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7086 test "$with_term" = yes && echo " Compiling in support for TERM."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7087 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7088 test "$with_xpm" = yes && echo " Compiling in support for XPM."
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7089 if test "$with_xmu" != yes -a "$window_system" != none; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7090 echo " No Xmu; substituting equivalent routines."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7091 fi
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7092 test "$with_xface" = yes && echo " Compiling in support for X-Face headers."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7093 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7094 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion."
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7095 if test "$with_png" = yes -o "$with_png" = gnuz; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7096 echo " Compiling in support for PNG image conversion."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7097 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7098 if test "$with_png" = gnuz; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7099 echo " (Using -lgz instead of -lz.)"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7100 fi
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7101 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7102 test "$with_epoch" = yes && echo " Compiling in extra Epoch compatibility."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7103
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7104 test "$with_sound" = nas && echo " Compiling in network sound support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7105 test "$with_sound" = native && echo " Compiling in native sound support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7106 test "$with_sound" = both && echo " Compiling in both network and native sound support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7107 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7108
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7109 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7110 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7111 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7112
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7113 test "$have_ncurses" = yes && echo " Compiling in support for ncurses."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7114 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7115
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7116 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7117 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7118 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7119 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7120 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7121 test "$with_wnn" = yes && echo " Compiling in support for WNN on Mule."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7122 test "$with_wnn6" = yes && echo " WNN support for version 6."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7123 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7124
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7125 test "$with_cde" = yes && echo " Compiling in support for CDE."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7126 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7127 test "$with_offix" = yes && echo " Compiling in support for OffiX."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7128 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7129 test "$with_sparcworks" = yes && echo " Compiling in support for SparcWorks."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7130 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7131 test "$with_menubars" = "lucid" && echo " Using the Lucid menubar."
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7132 if test "$with_menubars" = "motif"; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7133 echo " Using the Motif menubar."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7134 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7135 echo " that you use the Lucid menubar instead. Re-run"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7136 echo " configure with --with-menubars='lucid'."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7137 fi
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7138 test "$with_scrollbars" = lucid && echo " Using the Lucid scrollbar."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7139 test "$with_scrollbars" = motif && echo " Using the Motif scrollbar."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7140 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7141 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7142 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7143 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7144 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes."
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7145 test "$with_pop" = yes && "Using POP for mail access"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7146 test "$with_kerberos" = yes && "Using Kerberos for POP authentication"
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7147 test "$with_hesiod" = yes && "Using Hesiod to get POP server host"
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7148
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7149 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7150 test "${debug}" = yes && echo " Compiling in extra code for debugging."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7151 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7152 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7153 echo ""
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
7154 ) | tee -a Installation
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7155 echo 'The above configure report is appended to "Installation" file.'
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7156 echo ""
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
7157
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7158
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7159
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7160 # Remove any trailing slashes in these variables.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7161 test -n "${prefix}" &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7162 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7163 test -n "${exec_prefix}" &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7164 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
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 # The preferred way to propogate these variables is regular @ substitutions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7168 if test -n "$prefix"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7169 ac_prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7170 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7171 prefix=/usr/local
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7172 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7173 if test -n "$exec_prefix"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7174 ac_prsub="$ac_prsub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7175 s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7176 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7177 exec_prefix='${prefix}' # Let make expand it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7178 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7179
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7180 # Any assignment to VPATH causes Sun make to only execute
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7181 # the first set of double-colon rules, so remove it if not needed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7182 # If there is a colon in the path, we need to keep it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7183 if test "x$srcdir" = x.; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7184 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7185 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7186
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7187 # Quote sed substitution magic chars in DEFS.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7188 cat >conftest.def <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7189 $DEFS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7190 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7191 ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7192 DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7193 rm -f conftest.def
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7194 # Substitute for predefined variables.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7195
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7196 trap 'rm -f config.status; exit 1' 1 2 15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7197 echo creating config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7198 rm -f config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7199 cat > config.status <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7200 #!/bin/sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7201 # Generated automatically by configure.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7202 # Run this file to recreate the current configuration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7203 # This directory was configured as follows,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7204 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7205 #
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7206 # $0 $configure_args
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7207
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7208 ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7209 for ac_option
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7210 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7211 case "\$ac_option" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7213 echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7214 exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7215 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7216 echo "config.status generated by autoconf version 1.11"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7217 exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7218 -help | --help | --hel | --he | --h)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7219 echo "\$ac_cs_usage"; exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7220 *) echo "\$ac_cs_usage"; exit 1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7221 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7222 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7223
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7224 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
7225 LN_S='$LN_S'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7226 CC='$CC'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7227 CPP='$CPP'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7228 RANLIB='$RANLIB'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7229 INSTALL='$INSTALL'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7230 INSTALL_PROGRAM='$INSTALL_PROGRAM'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7231 INSTALL_DATA='$INSTALL_DATA'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7232 YACC='$YACC'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7233 SET_MAKE='$SET_MAKE'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7234 ALLOCA='$ALLOCA'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7235 version='$version'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7236 configuration='$configuration'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7237 canonical='$canonical'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7238 srcdir='$srcdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7239 prefix='$prefix'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7240 exec_prefix='$exec_prefix'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7241 bindir='$bindir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7242 datadir='$datadir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7243 statedir='$statedir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7244 libdir='$libdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7245 mandir='$mandir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7246 infodir='$infodir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7247 infodir_user_defined='$infodir_user_defined'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7248 lispdir='$lispdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7249 lispdir_user_defined='$lispdir_user_defined'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7250 sitelispdir='$sitelispdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7251 etcdir='$etcdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7252 etcdir_user_defined='$etcdir_user_defined'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7253 lockdir='$lockdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7254 lockdir_user_defined='$lockdir_user_defined'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7255 archlibdir='$archlibdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7256 archlibdir_user_defined='$archlibdir_user_defined'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7257 docdir='$docdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7258 bitmapdir='$bitmapdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7259 c_switch_system='$c_switch_system'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7260 c_switch_machine='$c_switch_machine'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7261 libsrc_libs='$libsrc_libs'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7262 LD_SWITCH_X_SITE='$LD_SWITCH_X_SITE'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7263 LD_SWITCH_X_SITE_AUX='$LD_SWITCH_X_SITE_AUX'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7264 C_SWITCH_X_SITE='$C_SWITCH_X_SITE'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7265 LD_SWITCH_SITE='$LD_SWITCH_SITE'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7266 C_SWITCH_SITE='$C_SWITCH_SITE'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7267 CFLAGS='$CFLAGS'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7268 native_sound_lib='$native_sound_lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7269 machfile='$machfile'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7270 opsysfile='$opsysfile'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7271 dynodump_arch='$dynodump_arch'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7272 internal_makefile_list='$internal_makefile_list'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7273 LIBS='$LIBS'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7274 top_srcdir='$top_srcdir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7275 ac_prsub='$ac_prsub'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7276 ac_vpsub='$ac_vpsub'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7277 extrasub='$extrasub'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7278 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7279 cat >> config.status <<\EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7280
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7281 ac_given_srcdir=$srcdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7282
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7283 CONFIG_FILES=${CONFIG_FILES-"$internal_makefile_list"}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7284 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
7285 # Remove last slash and all that follows it. Not all systems have dirname.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7286 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7287 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7288 # The file is in a subdirectory.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7289 test ! -d "$ac_dir" && mkdir "$ac_dir"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7290 ac_dir_suffix="/$ac_dir"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7291 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7292 ac_dir_suffix=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7293 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7294
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7295 # A "../" for each directory in $ac_dir_suffix.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7296 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7297 case "$ac_given_srcdir" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7298 .) srcdir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7299 if test -z "$ac_dir_suffix"; then top_srcdir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7300 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7301 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7302 *) # Relative path.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7303 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7304 top_srcdir="$ac_dots$ac_given_srcdir" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7305 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7306
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7307 echo creating "$ac_file"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7308 rm -f "$ac_file"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7309 comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7310 case "$ac_file" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7311 *.c | *.h | *.C | *.cc | *.m ) echo "/* $comment_str */" > "$ac_file" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7312 * ) echo "# $comment_str" > "$ac_file" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7313 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7314 sed -e "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7315 $ac_prsub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7316 $ac_vpsub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7317 $extrasub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7318 s%@LN_S@%$LN_S%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7319 s%@CC@%$CC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7320 s%@CPP@%$CPP%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7321 s%@RANLIB@%$RANLIB%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7322 s%@INSTALL@%$INSTALL%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7323 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7324 s%@INSTALL_DATA@%$INSTALL_DATA%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7325 s%@YACC@%$YACC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7326 s%@SET_MAKE@%$SET_MAKE%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7327 s%@ALLOCA@%$ALLOCA%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7328 s%@version@%$version%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7329 s%@configuration@%$configuration%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7330 s%@canonical@%$canonical%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7331 s%@srcdir@%$srcdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7332 s%@prefix@%$prefix%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7333 s%@exec_prefix@%$exec_prefix%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7334 s%@bindir@%$bindir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7335 s%@datadir@%$datadir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7336 s%@statedir@%$statedir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7337 s%@libdir@%$libdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7338 s%@mandir@%$mandir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7339 s%@infodir@%$infodir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7340 s%@infodir_user_defined@%$infodir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7341 s%@lispdir@%$lispdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7342 s%@lispdir_user_defined@%$lispdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7343 s%@sitelispdir@%$sitelispdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7344 s%@etcdir@%$etcdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7345 s%@etcdir_user_defined@%$etcdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7346 s%@lockdir@%$lockdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7347 s%@lockdir_user_defined@%$lockdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7348 s%@archlibdir@%$archlibdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7349 s%@archlibdir_user_defined@%$archlibdir_user_defined%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7350 s%@docdir@%$docdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7351 s%@bitmapdir@%$bitmapdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7352 s%@c_switch_system@%$c_switch_system%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7353 s%@c_switch_machine@%$c_switch_machine%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7354 s%@libsrc_libs@%$libsrc_libs%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7355 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7356 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7357 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7358 s%@LD_SWITCH_SITE@%$LD_SWITCH_SITE%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7359 s%@C_SWITCH_SITE@%$C_SWITCH_SITE%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7360 s%@CFLAGS@%$CFLAGS%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7361 s%@native_sound_lib@%$native_sound_lib%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7362 s%@machfile@%$machfile%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7363 s%@opsysfile@%$opsysfile%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7364 s%@dynodump_arch@%$dynodump_arch%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7365 s%@internal_makefile_list@%$internal_makefile_list%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7366 s%@LIBS@%$LIBS%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7367 s%@top_srcdir@%$top_srcdir%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7368 s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7369 fi; done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7370
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7371 # These sed commands are put into ac_sed_defs when defining a macro.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7372 # They are broken into pieces to make the sed script easier to manage.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7373 # 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
7374 # 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
7375 # Each defining turns into a single global substitution command.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7376 # Hopefully no one uses "!" as a variable value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7377 # Other candidates for the sed separators, like , and @, do get used.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7378 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7379 # ac_d sets the value in "#define NAME VALUE" lines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7380 ac_dA='s!^\([ ]*\)#\([ ]*define[ ][ ]*\)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7381 ac_dB='\([ ][ ]*\)[^ ]*!\1#\2'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7382 ac_dC='\3'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7383 ac_dD='!g'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7384 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7385 ac_uA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7386 ac_uB='\([ ]\)!\1#\2define\3'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7387 ac_uC=' '
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7388 ac_uD='\4!g'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7389 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7390 ac_eA='s!^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7391 ac_eB='$!\1#\2define\3'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7392 ac_eC=' '
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7393 ac_eD='!g'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7394 rm -f conftest.sed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7395 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7396 # Turn off quoting long enough to insert the sed commands.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7397 rm -f conftest.sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7398 cat > conftest.sh <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7399 $ac_sed_defs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7400 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7401
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7402 # 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
7403 # on the size of here documents.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7404
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7405 # Maximum number of lines to put in a single here document.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7406 ac_max_sh_lines=9
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7407
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7408 while :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7409 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7410 # wc gives bogus results for an empty file on some AIX systems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7411 ac_lines=`grep -c . conftest.sh`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7412 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7413 rm -f conftest.s1 conftest.s2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7414 sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7415 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
7416 # Write a limited-size here document to append to conftest.sed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7417 echo 'cat >> conftest.sed <<CONFEOF' >> config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7418 cat conftest.s1 >> config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7419 echo 'CONFEOF' >> config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7420 rm -f conftest.s1 conftest.sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7421 mv conftest.s2 conftest.sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7422 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7423 rm -f conftest.sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7424
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7425 # Now back to your regularly scheduled config.status.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7426 cat >> config.status <<\EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7427 # This sed command replaces #undef's with comments. This is necessary, for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7428 # example, in the case of _POSIX_SOURCE, which is predefined and required
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7429 # on some systems where configure will not decide to define it in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7430 # src/config.h.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7431 cat >> conftest.sed <<\CONFEOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7432 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7433 CONFEOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7434 rm -f conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7435 # Break up the sed commands because old seds have small limits.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7436 ac_max_sed_lines=20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7437
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7438 CONFIG_HEADERS=${CONFIG_HEADERS-"src/config.h"}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7439 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
7440 echo creating $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7441
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7442 cp $ac_given_srcdir/$ac_file.in conftest.h1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7443 cp conftest.sed conftest.stm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7444 while :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7445 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7446 ac_lines=`grep -c . conftest.stm`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7447 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7448 rm -f conftest.s1 conftest.s2 conftest.h2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7449 sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7450 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
7451 sed -f conftest.s1 < conftest.h1 > conftest.h2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7452 rm -f conftest.s1 conftest.h1 conftest.stm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7453 mv conftest.h2 conftest.h1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7454 mv conftest.s2 conftest.stm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7455 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7456 rm -f conftest.stm conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7457 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7458 cat conftest.h1 >> conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7459 rm -f conftest.h1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7460 if cmp -s $ac_file conftest.h 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7461 # The file exists and we would not be changing it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7462 echo "$ac_file is unchanged"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7463 rm -f conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7464 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7465 rm -f $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7466 mv conftest.h $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7467 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7468 fi; done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7469 rm -f conftest.sed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7470
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7471
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7472
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7473 exit 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7474 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7475 chmod +x config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7476 # Some shells look in PATH for config.status without the "./".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7477 test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7478
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7479 # Build:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7480 # src/Makefile from ${srcdir}/src/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7481 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7482 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7483 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7484 # and possibly
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7485 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7486 # 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
7487 # file. Only do the build if "config.status" is present, since its
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7488 # non-presence indicates an error occured.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7489 status=$?
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7490 if test ! -f ./config.status ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7491 exit $status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7492 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7493 topsrcdir=${srcdir}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7494 # We discard all lines in Makefile.in that start with `# Generated' or /**/#
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7495 # because some cpps get confused by them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7496 # Really we should preserve them somehow into Makefile,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7497 # but that is beyond my level of shell programming.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7498 makefile_command='echo "creating src/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7499 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7500 ( cd ./src;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7501 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7502 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7503 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7504 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7505 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7506 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7507 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7508 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7509 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7510 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7511 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7512 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7513 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7514 eval `echo $makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7515 lwlib_makefile_command='echo "creating lwlib/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7516 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7517 ( cd ./lwlib;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7518 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7519 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7520 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7521 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7522 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7523 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7524 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7525 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7526 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7527 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7528 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7529 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7530 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7531 eval `echo $lwlib_makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7532 lib_src_makefile_command='echo "creating lib-src/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7533 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7534 ( cd ./lib-src;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7535 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7536 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7537 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7538 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7539 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7540 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7541 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7542 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7543 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7544 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7545 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7546 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7547 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7548 eval `echo $lib_src_makefile_command`
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7549
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7550 # Mule utilitity programs - currently disabled
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7551 if test "${with_mule_util}" = "yes"; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7552 lib_src_mule_makefile_command='echo "creating lib-src/mule/Makefile";
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7553 topsrcdir='"${topsrcdir}"';
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7554 ( cd ./lib-src/mule;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7555 rm -f junk.c;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7556 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7557 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7558 < junk.cpp '\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7559 ' sed -e '\''s/^#.*//'\'' '\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7560 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7561 ' -e '\''s/^ / /'\'' '\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7562 ' | sed -n -e '\''/^..*$/p'\'' '\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7563 ' > Makefile.new;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7564 chmod 444 Makefile.new;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7565 mv -f Makefile.new Makefile;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7566 rm -f junk.c junk.cpp;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7567 )'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7568 eval `echo $lib_src_mule_makefile_command`
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7569 fi # Mule
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7570
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7571 dynodump_makefile_command='echo "creating dynodump/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7572 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7573 ( cd ./dynodump;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7574 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7575 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7576 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7577 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7578 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7579 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7580 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7581 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7582 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7583 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7584 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7585 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7586 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7587 eval `echo $dynodump_makefile_command`
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7588 if test "${with_energize}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7589 energize_makefile_command='echo "creating lwlib/energize/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7590 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7591 ( cd ./lwlib/energize;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7592 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7593 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7594 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7595 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7596 ' sed -e '\''s/^#.*//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7597 ' -e '\''s/^[ \f\t][ \f\t]*$//'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7598 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7599 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7600 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7601 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7602 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7603 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7604 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7605 eval `echo $energize_makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7606 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7607 # AC-OUTPUT has created `config.status' already. We need to add the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7608 # above commands to re-create `src/Makefile', `lwlib/Makefile',
8
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 2
diff changeset
7609 # `lib-src/Makefile', `dynodump/Makefile', and possibly
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7610 # `lwlib/energize/Makefile', and we need to insert them before the final
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7611 # "exit 0" which appears at the end of `config.status'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7612 <config.status sed -e 's/^exit 0$//' >config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7613 echo $makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7614 echo $lwlib_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7615 echo $lib_src_makefile_command >>config.new
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7616 if test "${with_mule_util}" = "yes"; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7617 echo $lib_src_mule_makefile_command >>config.new
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7618 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7619 echo $dynodump_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7620 echo $man_makefile_command >>config.new
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7621 if test "${with_energize}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7622 echo $energize_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7623 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7624 echo exit 0 >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7625 mv -f config.new config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7626 chmod +x config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7627 # 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
7628 # that it is now newer. We have just rewritten all of the Makefiles as well.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7629 MFS="Makefile \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7630 src/Makefile src/Makefile.in \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7631 lib-src/Makefile lib-src/Makefile.in \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7632 dynodump/Makefile dynodump/Makefile.in \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7633 lwlib/Makefile lwlib/Makefile.in"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7634 chmod a+w $MFS
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7635 touch $MFS
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7636 chmod 444 $MFS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7637
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7638 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7639 echo creating src/gdbinit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7640 echo source $topsrcdir/src/gdbinit > src/gdbinit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7641 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7642
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7643 exit 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7644