|
149
|
1 #! /bin/sh
|
|
|
2
|
|
|
3 #### Configuration script for XEmacs. Largely divergent from FSF.
|
|
|
4 #### Guess values for system-dependent variables and create Makefiles.
|
|
|
5 #### Generated automatically using autoconf version 2.12
|
|
|
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
|
0
|
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
|
|
149
|
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
|
|
0
|
9 #### Copyright (C) 1995, 1996 Ben Wing.
|
|
|
10
|
|
|
11 ### Don't edit this script!
|
|
|
12 ### This script was automatically generated by the `autoconf' program
|
|
|
13 ### from the file `./configure.in'.
|
|
|
14 ### To rebuild it, execute the command
|
|
|
15 ### autoconf
|
|
149
|
16 ### in the this directory. You must have autoconf version 2.12 or later.
|
|
0
|
17
|
|
|
18 ### This file is part of XEmacs.
|
|
|
19
|
|
|
20 ### XEmacs is free software; you can redistribute it and/or modify it
|
|
|
21 ### under the terms of the GNU General Public License as published by
|
|
|
22 ### the Free Software Foundation; either version 2, or (at your
|
|
|
23 ### option) any later version.
|
|
|
24
|
|
|
25 ### XEmacs is distributed in the hope that it will be useful, but
|
|
|
26 ### WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
27 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
28 ### General Public License for more details.
|
|
|
29
|
|
|
30 ### You should have received a copy of the GNU General Public License
|
|
|
31 ### along with XEmacs; see the file COPYING. If not, write to the Free
|
|
|
32 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
33 ### 02111-1307, USA.
|
|
|
34
|
|
149
|
35 ### For usage, run `./configure --help'
|
|
|
36 ### For more detailed information on building and installing XEmacs,
|
|
|
37 ### read the file `INSTALL'.
|
|
0
|
38 ###
|
|
|
39 ### If configure succeeds, it leaves its status in config.status.
|
|
149
|
40 ### A log of configuration tests can be found in config.log.
|
|
0
|
41 ### If configure fails after disturbing the status quo,
|
|
|
42 ### config.status is removed.
|
|
|
43
|
|
149
|
44 ac_help="$ac_help
|
|
|
45 --with-x use the X Window System"
|
|
|
46
|
|
|
47 exec_prefix=NONE
|
|
|
48 host=NONE
|
|
|
49 no_create=
|
|
|
50 nonopt=NONE
|
|
|
51 no_recursion=
|
|
|
52 prefix=NONE
|
|
|
53 program_prefix=NONE
|
|
|
54 program_suffix=NONE
|
|
|
55 program_transform_name=s,x,x,
|
|
|
56 silent=
|
|
|
57 site=
|
|
|
58 srcdir=
|
|
|
59 target=NONE
|
|
|
60 verbose=
|
|
|
61 x_includes=NONE
|
|
|
62 x_libraries=NONE
|
|
155
|
63 CDPATH=.; export CDPATH
|
|
185
|
64 package_path=NONE
|
|
153
|
65
|
|
|
66 if test -n "$ZSH_VERSION"; then
|
|
|
67 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
|
|
|
68 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
|
|
|
69 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
|
|
|
70 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
|
|
|
71 fi
|
|
|
72
|
|
149
|
73 bindir='${exec_prefix}/bin'
|
|
|
74 sbindir='${exec_prefix}/sbin'
|
|
|
75 libexecdir='${exec_prefix}/libexec'
|
|
|
76 datadir='${prefix}/share'
|
|
|
77 sysconfdir='${prefix}/etc'
|
|
|
78 sharedstatedir='${prefix}/com'
|
|
|
79 localstatedir='${prefix}/var'
|
|
|
80 libdir='${{exec_prefix}}/lib'
|
|
|
81 includedir='${prefix}/include'
|
|
|
82 oldincludedir='/usr/include'
|
|
|
83 infodir='${prefix}/info'
|
|
|
84 mandir='${prefix}/man'
|
|
|
85
|
|
|
86 subdirs=
|
|
|
87 MFLAGS= MAKEFLAGS=
|
|
|
88 ac_max_here_lines=12
|
|
|
89
|
|
|
90 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
91
|
|
|
92 # File descriptor usage:
|
|
|
93 # 0 standard input
|
|
|
94 # 1 file creation
|
|
|
95 # 2 errors and warnings
|
|
|
96 # 3 some systems may open it to /dev/tty
|
|
|
97 # 4 used on the Kubota Titan
|
|
|
98 # 6 checking for... messages and results
|
|
|
99 # 5 compiler messages saved in config.log
|
|
|
100 if test "$silent" = yes; then
|
|
|
101 exec 6>/dev/null
|
|
|
102 else
|
|
|
103 exec 6>&1
|
|
|
104 fi
|
|
|
105 exec 5>./config.log
|
|
|
106
|
|
|
107 echo "\
|
|
|
108 This file contains any messages produced by compilers while
|
|
|
109 running configure, to aid debugging if configure makes a mistake.
|
|
|
110 " 1>&5
|
|
|
111
|
|
|
112 # Strip out --no-create and --no-recursion so they do not pile up.
|
|
|
113 # Also quote any args containing shell metacharacters.
|
|
|
114 ac_configure_args=
|
|
|
115 for ac_arg
|
|
|
116 do
|
|
|
117 case "$ac_arg" in
|
|
|
118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
|
119 | --no-cr | --no-c) ;;
|
|
|
120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
|
121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
|
122 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|
|
123 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
|
124 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
|
125 esac
|
|
|
126 done
|
|
|
127
|
|
|
128 # NLS nuisances.
|
|
|
129 # Only set these to C if already set. These must not be set unconditionally
|
|
|
130 # because not all systems understand e.g. LANG=C (notably SCO).
|
|
|
131 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|
|
132 # Non-C LC_CTYPE values break the ctype check.
|
|
|
133 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|
|
134 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|
|
135 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|
|
136 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|
|
137
|
|
|
138 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
|
139 rm -rf conftest* confdefs.h
|
|
|
140 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
|
141 echo > confdefs.h
|
|
|
142
|
|
|
143 # A filename unique to this package, relative to the directory that
|
|
|
144 # configure is in, which we can look for to find out if srcdir is correct.
|
|
|
145 ac_unique_file=src/lisp.h
|
|
|
146
|
|
|
147 # Find the source files, if location was not specified.
|
|
|
148 if test -z "$srcdir"; then
|
|
|
149 ac_srcdir_defaulted=yes
|
|
|
150 # Try the directory containing this script, then its parent.
|
|
|
151 ac_prog=$0
|
|
|
152 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
|
153 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
|
154 srcdir=$ac_confdir
|
|
|
155 if test ! -r $srcdir/$ac_unique_file; then
|
|
|
156 srcdir=..
|
|
|
157 fi
|
|
|
158 else
|
|
|
159 ac_srcdir_defaulted=no
|
|
|
160 fi
|
|
|
161 if test ! -r $srcdir/$ac_unique_file; then
|
|
|
162 if test "$ac_srcdir_defaulted" = yes; then
|
|
|
163 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|
|
164 else
|
|
|
165 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|
|
166 fi
|
|
|
167 fi
|
|
|
168 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|
|
169
|
|
|
170 # Prefer explicitly selected file to automatically selected ones.
|
|
|
171 if test -z "$CONFIG_SITE"; then
|
|
|
172 if test "x$prefix" != xNONE; then
|
|
|
173 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|
|
174 else
|
|
|
175 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|
|
176 fi
|
|
|
177 fi
|
|
|
178 for ac_site_file in $CONFIG_SITE; do
|
|
|
179 if test -r "$ac_site_file"; then
|
|
|
180 echo "loading site script $ac_site_file"
|
|
|
181 . "$ac_site_file"
|
|
|
182 fi
|
|
|
183 done
|
|
|
184
|
|
|
185
|
|
|
186 ac_ext=c
|
|
151
|
187 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
|
188 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
|
173
|
189 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
|
149
|
190 ac_cpp='$CPP '"$xe_cppflags"
|
|
151
|
191 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
|
192 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
149
|
193 cross_compiling=no
|
|
|
194
|
|
|
195 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|
|
196 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|
|
197 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|
|
198 ac_n= ac_c='
|
|
|
199 ' ac_t=' '
|
|
|
200 else
|
|
|
201 ac_n=-n ac_c= ac_t=
|
|
|
202 fi
|
|
|
203 else
|
|
|
204 ac_n= ac_c='\c' ac_t=
|
|
|
205 fi
|
|
|
206
|
|
|
207
|
|
0
|
208 progname="`echo $0 | sed 's:^\./\./:\./:'`"
|
|
|
209
|
|
149
|
210
|
|
151
|
211 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
|
|
167
|
212 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
|
149
|
213
|
|
0
|
214 prefix='/usr/local'
|
|
|
215 exec_prefix='${prefix}'
|
|
|
216 bindir='${exec_prefix}/bin'
|
|
|
217 datadir='${prefix}/lib'
|
|
|
218 statedir='${prefix}/lib'
|
|
|
219 libdir='${exec_prefix}/lib'
|
|
|
220 mandir='${prefix}/man/man1'
|
|
215
|
221 infodir='${datadir}/xemacs-${version}/info'
|
|
0
|
222 infodir_user_defined='no'
|
|
215
|
223 infopath='/usr/local/info:/usr/info:/usr/local/lib/texmf/doc/info:/usr/lib/texmf/doc/info'
|
|
203
|
224 infopath_user_defined='no'
|
|
0
|
225 lispdir='${datadir}/xemacs-${version}/lisp'
|
|
|
226 lispdir_user_defined='no'
|
|
|
227 sitelispdir='${datadir}/xemacs/site-lisp'
|
|
|
228 etcdir='${datadir}/xemacs-${version}/etc'
|
|
|
229 etcdir_user_defined='no'
|
|
|
230 lockdir='${statedir}/xemacs/lock'
|
|
|
231 lockdir_user_defined='no'
|
|
|
232 archlibdir='${libdir}/xemacs-${version}/${configuration}'
|
|
|
233 archlibdir_user_defined='no'
|
|
|
234 with_menubars=''
|
|
|
235 with_scrollbars=''
|
|
|
236 with_dialogs=''
|
|
|
237 const_is_losing='yes'
|
|
|
238 puresize=''
|
|
157
|
239 cflags='UNSPECIFIED'
|
|
0
|
240 dynamic=''
|
|
|
241 with_x11=''
|
|
|
242 rel_alloc='default'
|
|
181
|
243 with_system_malloc='default'
|
|
0
|
244 native_sound_lib=''
|
|
153
|
245 use_assertions="yes"
|
|
|
246 with_toolbars=""
|
|
157
|
247 with_tty=""
|
|
153
|
248 use_union_type="no"
|
|
|
249 with_dnet=""
|
|
0
|
250
|
|
149
|
251
|
|
|
252
|
|
|
253
|
|
0
|
254 arguments="$@"
|
|
|
255
|
|
120
|
256 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
|
|
0
|
257 quoted_arguments=
|
|
|
258 for i in "$@"; do
|
|
120
|
259 case "$i" in
|
|
|
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
|
261 | --no-cr | --no-c) ;;
|
|
153
|
262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
|
263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
120
|
264 *)
|
|
159
|
265 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
|
|
120
|
266 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
|
|
|
267 esac
|
|
0
|
268 done
|
|
|
269
|
|
70
|
270 while test $# != 0; do
|
|
0
|
271 arg="$1"; shift
|
|
149
|
272 case "$arg" in
|
|
157
|
273 --no-create|--no-recursion) ;;
|
|
149
|
274 -* )
|
|
|
275 case "$arg" in
|
|
0
|
276 -*=*)
|
|
149
|
277 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
|
|
|
278 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
|
|
0
|
279 valomitted=no
|
|
|
280 ;;
|
|
149
|
281 -*)
|
|
|
282 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
|
|
0
|
283 val="yes"
|
|
|
284 valomitted=yes
|
|
|
285 ;;
|
|
|
286 esac
|
|
|
287
|
|
149
|
288 optname="$opt"
|
|
|
289 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
|
|
|
290
|
|
|
291 case "$opt" in
|
|
|
292
|
|
|
293 run_in_place | \
|
|
70
|
294 with_x | \
|
|
|
295 with_x11 | \
|
|
|
296 with_gcc | \
|
|
|
297 with_gnu_make | \
|
|
|
298 dynamic | \
|
|
149
|
299 with_ncurses | \
|
|
|
300 with_dnet | \
|
|
70
|
301 with_term | \
|
|
149
|
302 with_socks | \
|
|
70
|
303 with_cde | \
|
|
|
304 with_offix | \
|
|
149
|
305 with_gpm | \
|
|
|
306 with_xpm | \
|
|
|
307 with_xface | \
|
|
207
|
308 with_imagick | \
|
|
179
|
309 with_session | \
|
|
70
|
310 with_xmu | \
|
|
149
|
311 with_quantify | \
|
|
70
|
312 with_toolbars | \
|
|
|
313 with_tty | \
|
|
215
|
314 with_xfs | \
|
|
70
|
315 with_i18n3 | \
|
|
|
316 with_mule | \
|
|
|
317 with_canna | \
|
|
|
318 with_wnn | \
|
|
98
|
319 with_wnn6 | \
|
|
149
|
320 with_workshop | \
|
|
70
|
321 with_sparcworks | \
|
|
|
322 with_tooltalk | \
|
|
118
|
323 with_pop | \
|
|
|
324 with_kerberos | \
|
|
|
325 with_hesiod | \
|
|
136
|
326 with_dnet | \
|
|
70
|
327 external_widget | \
|
|
120
|
328 verbose | \
|
|
|
329 extra_verbose | \
|
|
70
|
330 const_is_losing | \
|
|
|
331 usage_tracking | \
|
|
|
332 use_union_type | \
|
|
|
333 debug | \
|
|
|
334 use_assertions | \
|
|
|
335 memory_usage_stats | \
|
|
173
|
336 with_clash_detection | \
|
|
149
|
337 no_doc_file )
|
|
|
338 case "$val" in
|
|
0
|
339 y | ye | yes ) val=yes ;;
|
|
|
340 n | no ) val=no ;;
|
|
149
|
341 * ) (echo "$progname: Usage error:"
|
|
|
342 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
|
|
|
343 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
344 esac
|
|
149
|
345 eval "$opt=\"$val\"" ;;
|
|
|
346
|
|
|
347
|
|
153
|
348 srcdir | \
|
|
70
|
349 compiler | \
|
|
157
|
350 cflags | \
|
|
70
|
351 puresize | \
|
|
153
|
352 cache_file | \
|
|
120
|
353 native_sound_lib | \
|
|
173
|
354 package_path | \
|
|
70
|
355 x_includes | \
|
|
|
356 x_libraries | \
|
|
|
357 site_includes | \
|
|
|
358 site_libraries | \
|
|
209
|
359 site_prefixes | \
|
|
149
|
360 site_runtime_libraries )
|
|
|
361 if test "$valomitted" = "yes" ; then
|
|
|
362 if test "$#" = 0 ; then
|
|
|
363 (echo "$progname: Usage error:"
|
|
|
364 echo " " "The \`--$optname' option requires a value."
|
|
|
365 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
|
0
|
366 fi
|
|
|
367 val="$1"; shift
|
|
|
368 fi
|
|
149
|
369 eval "$opt=\"$val\""
|
|
0
|
370 ;;
|
|
|
371
|
|
149
|
372 rel_alloc | \
|
|
181
|
373 with_debug_malloc | use_debug_malloc | \
|
|
|
374 with_system_malloc | use_system_malloc )
|
|
149
|
375 case "$val" in
|
|
0
|
376 y | ye | yes ) val=yes ;;
|
|
|
377 n | no ) val=no ;;
|
|
181
|
378 d | de | def | defa | defau | defaul | default ) val=default ;;
|
|
149
|
379 * ) (echo "$progname: Usage error:"
|
|
|
380 echo " " "The \`--$optname' option requires one of these values:
|
|
120
|
381 \`yes', \`no', or \`default'."
|
|
149
|
382 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
383 esac
|
|
181
|
384 case "$opt" in use_* ) opt="`echo $opt | sed /use/with/`" ;; esac
|
|
149
|
385 eval "$opt=\"$val\""
|
|
0
|
386 ;;
|
|
|
387
|
|
149
|
388 "with_database" )
|
|
120
|
389 with_database_berkdb=no
|
|
|
390 with_database_dbm=no
|
|
|
391 with_database_gnudbm=no
|
|
159
|
392 for x in `echo "$val" | sed -e 's/,/ /'` ; do
|
|
149
|
393 case "$x" in
|
|
151
|
394 no ) ;;
|
|
120
|
395 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
|
|
|
396 d | db | dbm ) with_database_dbm=yes ;;
|
|
70
|
397 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
|
|
149
|
398 * ) (echo "$progname: Usage error:"
|
|
|
399 echo " " "The \`--$optname' option value
|
|
120
|
400 must be either \`no' or a comma-separated list
|
|
|
401 of one or more of \`berkdb', \`dbm', or \`gnudbm'."
|
|
149
|
402 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
120
|
403 esac
|
|
|
404 done
|
|
149
|
405 if test "$with_database_dbm" = "yes" -a \
|
|
151
|
406 "$with_database_gnudbm" = "yes"; then
|
|
149
|
407 (echo "$progname: Usage error:"
|
|
120
|
408 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
|
|
149
|
409 with the \`--$optname' option."
|
|
|
410 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
0
|
411 fi
|
|
70
|
412 ;;
|
|
0
|
413
|
|
149
|
414 "with_sound" )
|
|
|
415 case "$val" in
|
|
0
|
416 y | ye | yes ) val=native ;;
|
|
|
417 n | no | non | none ) val=no;;
|
|
|
418 na | nat | nati | nativ | native ) val=native ;;
|
|
149
|
419 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
|
|
0
|
420 b | bo | bot | both ) val=both;;
|
|
149
|
421 * ) (echo "$progname: Usage error:"
|
|
|
422 echo " " "The \`--$optname' option must have one of these values:
|
|
120
|
423 \`native', \`nas', \`both', or \`none'."
|
|
149
|
424 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
2
|
425 esac
|
|
149
|
426 eval "$opt=\"$val\""
|
|
0
|
427 ;;
|
|
|
428
|
|
149
|
429 "with_xim" )
|
|
|
430 case "$val" in
|
|
|
431 y | ye | yes ) val=yes ;;
|
|
|
432 n | no | non | none ) val=no ;;
|
|
|
433 x | xl | xli | xlib ) val=xlib ;;
|
|
|
434 m | mo | mot | moti | motif ) val=motif ;;
|
|
|
435 * ) (echo "$progname: Usage error:"
|
|
|
436 echo " " "The \`--$optname' option must have one of these values:
|
|
|
437 \`motif', \`xlib', \`yes', or \`no'."
|
|
|
438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
439 esac
|
|
149
|
440 eval "$opt=\"$val\""
|
|
0
|
441 ;;
|
|
|
442
|
|
177
|
443 "with_xfs" )
|
|
|
444 case "$val" in
|
|
187
|
445 y | ye | yes ) val=yes ;;
|
|
|
446 n | no | non | none ) val=no ;;
|
|
177
|
447 * ) (echo "$progname: Usage error:"
|
|
|
448 echo " " "The \`--$optname' option must have one of these values:
|
|
|
449 \`yes', or \`no'."
|
|
|
450 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
|
451 esac
|
|
|
452 eval "$opt=\"$val\""
|
|
|
453 ;;
|
|
|
454
|
|
149
|
455 "mail_locking" )
|
|
|
456 case "$val" in
|
|
|
457 lockf ) val=lockf ;;
|
|
|
458 flock ) val=flock ;;
|
|
151
|
459 file ) val=file ;;
|
|
149
|
460 * ) (echo "$progname: Usage error:"
|
|
|
461 echo " " "The \`--$optname' option must have one of these values:
|
|
|
462 \`lockf', \`flock', or \`file'."
|
|
|
463 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
|
464 esac
|
|
|
465 eval "$opt=\"$val\""
|
|
|
466 ;;
|
|
|
467
|
|
|
468 "error_checking" )
|
|
|
469
|
|
159
|
470 for x in `echo "$val" | sed -e 's/,/ /'` ; do
|
|
149
|
471 case "$x" in
|
|
|
472 n | no | non | none ) new_default=no ;;
|
|
0
|
473 a | al | all ) new_default=yes ;;
|
|
|
474
|
|
|
475 extents ) error_check_extents=yes ;;
|
|
|
476 noextents ) error_check_extents=no ;;
|
|
|
477
|
|
|
478 typecheck ) error_check_typecheck=yes ;;
|
|
|
479 notypecheck ) error_check_typecheck=no ;;
|
|
|
480
|
|
|
481 bufpos ) error_check_bufpos=yes ;;
|
|
|
482 nobufpos ) error_check_bufpos=no ;;
|
|
|
483
|
|
|
484 gc ) error_check_gc=yes ;;
|
|
|
485 nogc ) error_check_gc=no ;;
|
|
|
486
|
|
|
487 malloc ) error_check_malloc=yes ;;
|
|
|
488 nomalloc ) error_check_malloc=no ;;
|
|
149
|
489
|
|
0
|
490 * ) bogus_error_check=yes ;;
|
|
|
491 esac
|
|
70
|
492 if test "$bogus_error_check" -o \
|
|
|
493 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
|
|
|
494 if test $error_check_default = yes ; then
|
|
120
|
495 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
|
|
0
|
496 else
|
|
120
|
497 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
|
|
0
|
498 fi
|
|
149
|
499 (echo "$progname: Usage error:"
|
|
|
500 echo " " "Valid types for the \`--$optname' option are:
|
|
120
|
501 $types."
|
|
149
|
502 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
151
|
503 elif test -n "$new_default" ; then
|
|
0
|
504 error_check_extents=$new_default
|
|
|
505 error_check_typecheck=$new_default
|
|
|
506 error_check_bufpos=$new_default
|
|
|
507 error_check_gc=$new_default
|
|
|
508 error_check_malloc=$new_default
|
|
|
509 new_default= # reset this
|
|
|
510 fi
|
|
|
511 echeck_notfirst=true
|
|
|
512 done
|
|
|
513 ;;
|
|
|
514
|
|
149
|
515
|
|
|
516 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
|
203
|
517 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
|
|
|
518 archlibdir | sitelispdir | docdir )
|
|
151
|
519 if test "$valomitted" = "yes"; then
|
|
|
520 if test "$#" = 0; then
|
|
149
|
521 (echo "$progname: Usage error:"
|
|
|
522 echo " " "The \`--$optname' option requires a value."
|
|
|
523 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
|
120
|
524 fi
|
|
|
525 val="$1"; shift
|
|
0
|
526 fi
|
|
149
|
527 eval "$opt=\"$val\""
|
|
|
528
|
|
|
529 case "$opt" in
|
|
|
530 lispdir ) lispdir_user_defined=yes ;;
|
|
|
531 etcdir ) etcdir_user_defined=yes ;;
|
|
|
532 infodir ) infodir_user_defined=yes ;;
|
|
203
|
533 infopath ) infopath_user_defined=yes ;;
|
|
149
|
534 datadir ) lispdir_user_defined=yes etcdir_user_defined=yes ;;
|
|
|
535 statedir | lockdir ) lockdir_user_defined=yes ;;
|
|
|
536 exec_prefix | libdir | archlibdir ) archlibdir_user_defined=yes ;;
|
|
|
537 esac
|
|
0
|
538 ;;
|
|
|
539
|
|
149
|
540 "no_create" ) ;;
|
|
|
541
|
|
215
|
542 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
|
|
149
|
543
|
|
|
544 "with_menubars" | "with_scrollbars" | "with_dialogs" )
|
|
|
545 case "$val" in
|
|
0
|
546 l | lu | luc | luci | lucid ) val=lucid ;;
|
|
|
547 m | mo | mot | moti | motif ) val=motif ;;
|
|
82
|
548 athena3d | athena-3d ) val=athena3d ;;
|
|
0
|
549 a | at | ath | athe | athen | athena ) val=athena ;;
|
|
|
550 n | no | non | none ) val=no ;;
|
|
149
|
551 * ) (echo "$progname: Usage error:"
|
|
|
552 echo " " "The \`--$optname' option must have one of these values:
|
|
|
553 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
|
|
|
554 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
555 esac
|
|
149
|
556 eval "$opt=\"$val\""
|
|
0
|
557 ;;
|
|
|
558
|
|
149
|
559 * ) (echo "$progname: Usage error:"
|
|
|
560 echo " " "Unrecognized option: $arg"
|
|
|
561 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
562
|
|
|
563 esac
|
|
|
564 ;;
|
|
|
565
|
|
149
|
566 *) configuration="$arg" ;;
|
|
0
|
567
|
|
|
568 esac
|
|
|
569 done
|
|
|
570
|
|
149
|
571
|
|
203
|
572 if test "$infopath_user_defined" = "no" -a -n "$INFOPATH" ; then
|
|
|
573 infopath="$INFOPATH"
|
|
|
574 fi
|
|
|
575
|
|
0
|
576 eval set x "$quoted_arguments"; shift
|
|
|
577
|
|
149
|
578 test "$extra_verbose" = "yes" && verbose=yes
|
|
|
579
|
|
187
|
580 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
|
581 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
209
|
582 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
187
|
583 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
149
|
584
|
|
|
585 test -n "$with_x" && with_x11="$with_x"
|
|
|
586
|
|
|
587 if test "$run_in_place" = "yes"; then
|
|
|
588 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2
|
|
|
589 fi
|
|
|
590
|
|
|
591 if test "$configuration" = "" ; then
|
|
0
|
592 echo '- You did not tell me what kind of host system you want to configure.
|
|
|
593 - I will attempt to guess the kind of system this is.' 1>&2
|
|
149
|
594 guesssys=`echo $progname | sed 's/configure$/config.guess/'`
|
|
|
595 if configuration=`${CONFIG_SHELL-/bin/sh} $guesssys | \
|
|
|
596 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then
|
|
|
597 echo "- Looks like this is a $configuration" 1>&2
|
|
0
|
598 else
|
|
149
|
599 (echo "$progname: Usage error:"
|
|
120
|
600 echo " " "Failed to guess the system type. You need to tell me."
|
|
149
|
601 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
0
|
602 fi
|
|
|
603 fi
|
|
|
604
|
|
149
|
605 case "$srcdir" in
|
|
|
606
|
|
|
607 "" )
|
|
70
|
608 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
|
|
120
|
609 if test -f "$dir/src/lisp.h" -a \
|
|
|
610 -f "$dir/lisp/version.el" ; then
|
|
149
|
611 srcdir="$dir"
|
|
70
|
612 break
|
|
|
613 fi
|
|
|
614 done
|
|
149
|
615 if test -z "$srcdir" ; then
|
|
|
616 (echo "$progname: Usage error:"
|
|
120
|
617 echo " " "Neither the current directory nor its parent seem to
|
|
|
618 contain the XEmacs sources. If you do not want to build XEmacs in its
|
|
149
|
619 source tree, you should run \`$progname' in the directory in which
|
|
120
|
620 you wish to build XEmacs, using the \`--srcdir' option to say where the
|
|
|
621 sources may be found."
|
|
149
|
622 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
120
|
623 fi
|
|
0
|
624 ;;
|
|
|
625
|
|
149
|
626 * )
|
|
|
627 if test ! -d "$srcdir" -o \
|
|
|
628 ! -f "$srcdir/src/lisp.h" -o \
|
|
|
629 ! -f "$srcdir/lisp/version.el" ; then
|
|
|
630 (echo "$progname: Usage error:"
|
|
120
|
631 echo " " "The directory specified with the \`--srcdir' option,
|
|
149
|
632 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
|
|
|
633 either run the \`$progname' script at the top of the XEmacs source
|
|
120
|
634 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
|
|
149
|
635 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
0
|
636 fi
|
|
|
637 ;;
|
|
|
638 esac
|
|
|
639
|
|
149
|
640 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|
217
|
641 echo "configure:642: checking whether ln -s works" >&5
|
|
149
|
642
|
|
0
|
643 rm -f conftestdata
|
|
|
644 if ln -s X conftestdata 2>/dev/null
|
|
|
645 then
|
|
|
646 rm -f conftestdata
|
|
149
|
647 ac_cv_prog_LN_S="ln -s"
|
|
|
648 else
|
|
|
649 ac_cv_prog_LN_S=ln
|
|
|
650 fi
|
|
|
651 LN_S="$ac_cv_prog_LN_S"
|
|
|
652 if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|
|
653 echo "$ac_t""yes" 1>&6
|
|
|
654 else
|
|
|
655 echo "$ac_t""no" 1>&6
|
|
|
656 fi
|
|
|
657
|
|
|
658
|
|
207
|
659 for dir in lisp etc man info; do
|
|
149
|
660 if test ! -d "$dir" ; then
|
|
|
661 echo Making symbolic link to "$srcdir/$dir"
|
|
157
|
662 ${LN_S} "$srcdir/$dir" "$dir"
|
|
0
|
663 fi
|
|
|
664 done
|
|
|
665
|
|
181
|
666 absolute_pwd="`pwd`";
|
|
187
|
667 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
|
|
181
|
668 then blddir="$PWD"
|
|
|
669 else blddir="$absolute_pwd"
|
|
|
670 fi
|
|
|
671
|
|
|
672
|
|
149
|
673 case "$srcdir" in
|
|
0
|
674 /* ) ;;
|
|
181
|
675 . ) srcdir="$blddir" ;;
|
|
|
676 * ) srcdir="`cd $srcdir && pwd`" ;;
|
|
0
|
677 esac
|
|
|
678
|
|
149
|
679 if test `pwd` != `sh -c cd $srcdir && pwd` \
|
|
|
680 && test -f "$srcdir/src/config.h"; then
|
|
|
681 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
|
|
0
|
682 echo " as a build directory right now; it has been configured in its own"
|
|
|
683 echo " right. To configure in another directory as well, you MUST"
|
|
|
684 echo " use GNU make. If you do not have GNU make, then you must"
|
|
149
|
685 echo " now do \`make distclean' in $srcdir,"
|
|
|
686 echo " and then run $progname again.") >&2
|
|
0
|
687 extrasub='/^VPATH[ ]*=/c\
|
|
|
688 vpath %.c $(srcdir)\
|
|
|
689 vpath %.h $(srcdir)\
|
|
|
690 vpath %.y $(srcdir)\
|
|
|
691 vpath %.l $(srcdir)\
|
|
|
692 vpath %.s $(srcdir)\
|
|
|
693 vpath %.in $(srcdir)'
|
|
|
694 fi
|
|
|
695
|
|
171
|
696 . "$srcdir/version.sh" || exit 1;
|
|
173
|
697 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
|
|
|
698 : "${extra_verbose=$beta}"
|
|
171
|
699 version="${emacs_major_version}.${emacs_minor_version}"
|
|
|
700 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
701 Defining EMACS_MAJOR_VERSION = $emacs_major_version
|
|
|
702 EOF
|
|
|
703 cat >> confdefs.h <<EOF
|
|
|
704 #define EMACS_MAJOR_VERSION $emacs_major_version
|
|
|
705 EOF
|
|
|
706 }
|
|
|
707
|
|
|
708 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
709 Defining EMACS_MINOR_VERSION = $emacs_minor_version
|
|
|
710 EOF
|
|
|
711 cat >> confdefs.h <<EOF
|
|
|
712 #define EMACS_MINOR_VERSION $emacs_minor_version
|
|
|
713 EOF
|
|
|
714 }
|
|
|
715
|
|
|
716 if test -n "$emacs_beta_version"; then
|
|
|
717 version="${version}-b${emacs_beta_version}"
|
|
|
718 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
719 Defining EMACS_BETA_VERSION = $emacs_beta_version
|
|
|
720 EOF
|
|
|
721 cat >> confdefs.h <<EOF
|
|
|
722 #define EMACS_BETA_VERSION $emacs_beta_version
|
|
|
723 EOF
|
|
|
724 }
|
|
|
725
|
|
|
726 fi
|
|
|
727 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
728 Defining XEMACS_CODENAME = "$xemacs_codename"
|
|
|
729 EOF
|
|
|
730 cat >> confdefs.h <<EOF
|
|
|
731 #define XEMACS_CODENAME "$xemacs_codename"
|
|
|
732 EOF
|
|
|
733 }
|
|
|
734
|
|
|
735 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
736 Defining EMACS_VERSION = "$version"
|
|
|
737 EOF
|
|
|
738 cat >> confdefs.h <<EOF
|
|
|
739 #define EMACS_VERSION "$version"
|
|
|
740 EOF
|
|
|
741 }
|
|
|
742
|
|
|
743
|
|
|
744 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
|
|
|
745 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
746 Defining ERROR_CHECK_EXTENTS
|
|
|
747 EOF
|
|
|
748 cat >> confdefs.h <<\EOF
|
|
|
749 #define ERROR_CHECK_EXTENTS 1
|
|
|
750 EOF
|
|
|
751 }
|
|
|
752
|
|
|
753 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
754 Defining ERROR_CHECK_TYPECHECK
|
|
|
755 EOF
|
|
|
756 cat >> confdefs.h <<\EOF
|
|
|
757 #define ERROR_CHECK_TYPECHECK 1
|
|
|
758 EOF
|
|
|
759 }
|
|
|
760
|
|
|
761 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
762 Defining ERROR_CHECK_BUFPOS
|
|
|
763 EOF
|
|
|
764 cat >> confdefs.h <<\EOF
|
|
|
765 #define ERROR_CHECK_BUFPOS 1
|
|
|
766 EOF
|
|
|
767 }
|
|
|
768
|
|
|
769 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
770 Defining ERROR_CHECK_GC
|
|
|
771 EOF
|
|
|
772 cat >> confdefs.h <<\EOF
|
|
|
773 #define ERROR_CHECK_GC 1
|
|
|
774 EOF
|
|
|
775 }
|
|
|
776
|
|
|
777 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
778 Defining ERROR_CHECK_MALLOC
|
|
|
779 EOF
|
|
|
780 cat >> confdefs.h <<\EOF
|
|
|
781 #define ERROR_CHECK_MALLOC 1
|
|
|
782 EOF
|
|
|
783 }
|
|
|
784
|
|
|
785 if test "${debug=beta}" = "yes"; then
|
|
|
786 use_assertions=yes memory_usage_stats=yes
|
|
|
787 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
|
|
|
788 echo " xemacs will be linked with \"debug.o\""
|
|
|
789 fi
|
|
|
790 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
791 Defining DEBUG_XEMACS
|
|
|
792 EOF
|
|
|
793 cat >> confdefs.h <<\EOF
|
|
|
794 #define DEBUG_XEMACS 1
|
|
|
795 EOF
|
|
|
796 }
|
|
|
797
|
|
|
798 fi
|
|
|
799 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
800 Defining USE_ASSERTIONS
|
|
|
801 EOF
|
|
|
802 cat >> confdefs.h <<\EOF
|
|
|
803 #define USE_ASSERTIONS 1
|
|
|
804 EOF
|
|
|
805 }
|
|
|
806
|
|
|
807 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
808 Defining MEMORY_USAGE_STATS
|
|
|
809 EOF
|
|
|
810 cat >> confdefs.h <<\EOF
|
|
|
811 #define MEMORY_USAGE_STATS 1
|
|
|
812 EOF
|
|
|
813 }
|
|
|
814
|
|
|
815
|
|
149
|
816
|
|
|
817 echo "checking "the configuration name"" 1>&6
|
|
217
|
818 echo "configure:819: checking "the configuration name"" >&5
|
|
|
819 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
|
|
149
|
820 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
|
|
0
|
821 exit $?
|
|
|
822 fi
|
|
|
823
|
|
149
|
824
|
|
|
825
|
|
|
826
|
|
|
827
|
|
151
|
828 machine='' opsys=''
|
|
149
|
829
|
|
|
830 case "$canonical" in
|
|
|
831 sparc-*-* ) machine=sparc ;;
|
|
|
832 alpha-*-* ) machine=alpha ;;
|
|
|
833 vax-*-* ) machine=vax ;;
|
|
|
834 mips-dec-* ) machine=pmax ;;
|
|
|
835 mips-sgi-* ) machine=iris4d ;;
|
|
|
836 romp-ibm-* ) machine=ibmrt ;;
|
|
|
837 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
|
|
|
838 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
|
|
163
|
839 powerpc*-* ) machine=powerpc ;;
|
|
149
|
840 hppa-*-* ) machine=hp800 ;;
|
|
|
841 m88k-dg-* ) machine=aviion ;;
|
|
|
842 m68*-sony-* ) machine=news ;;
|
|
|
843 mips-sony-* ) machine=news-risc ;;
|
|
|
844 clipper-* ) machine=clipper ;;
|
|
|
845 esac
|
|
|
846
|
|
|
847 case "$canonical" in
|
|
|
848 *-*-linux* ) opsys=linux ;;
|
|
|
849 *-*-netbsd* ) opsys=netbsd ;;
|
|
|
850 *-*-nextstep* ) opsys=nextstep ;;
|
|
|
851 *-*-vms ) opsys=vms ;;
|
|
|
852
|
|
|
853 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
|
|
|
854 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
|
|
|
855 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
|
|
|
856 *-dec-osf3* ) opsys=decosf3-1 ;;
|
|
|
857 *-dec-osf4* ) opsys=decosf4-0 ;;
|
|
|
858
|
|
|
859 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
|
860 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
|
|
|
861 *-*-ultrix* ) opsys=ultrix4-3 ;;
|
|
|
862
|
|
|
863 *-*-aix3.1* ) opsys=aix3-1 ;;
|
|
|
864 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
|
|
|
865 *-*-aix3* ) opsys=aix3-2 ;;
|
|
|
866 *-*-aix4.2* ) opsys=aix4-2 ;;
|
|
|
867 *-*-aix4.1* ) opsys=aix4-1 ;;
|
|
|
868 *-*-aix4* ) opsys=aix4 ;;
|
|
|
869
|
|
|
870 *-gnu* ) opsys=gnu ;;
|
|
|
871 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
|
872 *-*-bsd4.2 ) opsys=bsd4-2 ;;
|
|
|
873 *-*-bsd4.3 ) opsys=bsd4-3 ;;
|
|
|
874 *-*-aos4.2 ) opsys=bsd4-2 ;;
|
|
|
875 *-*-aos* ) opsys=bsd4-3 ;;
|
|
|
876 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
|
|
|
877 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
|
|
|
878 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
|
879 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
|
|
|
880 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
|
|
|
881 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
|
|
882 if test -z "$NON_GNU_CPP" ; then
|
|
151
|
883 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
|
|
|
884 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
|
|
|
885 done
|
|
149
|
886 fi
|
|
|
887 opsys=usg5-4-2 ;;
|
|
|
888 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
|
889 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
|
|
|
890 esac
|
|
|
891
|
|
|
892 case "$canonical" in
|
|
|
893
|
|
|
894 *-*-netbsd* )
|
|
|
895 case "$canonical" in
|
|
0
|
896 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
|
897 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
|
149
|
898 machine=hp9000s300 ;;
|
|
70
|
899 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
|
900 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
|
0
|
901 esac
|
|
|
902 ;;
|
|
|
903
|
|
149
|
904 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
|
|
70
|
905 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
|
|
0
|
906
|
|
149
|
907 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
|
|
70
|
908 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
|
|
0
|
909
|
|
149
|
910 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
|
|
|
911
|
|
|
912 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
|
|
|
913
|
|
|
914 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
|
|
|
915
|
|
|
916 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
|
|
|
917
|
|
|
918 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
|
|
|
919
|
|
|
920 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
|
|
74
|
921 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
|
|
|
922 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
|
|
0
|
923
|
|
149
|
924
|
|
|
925 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
|
|
|
926
|
|
|
927 *-convex-bsd* | *-convex-convexos* )
|
|
0
|
928 machine=convex opsys=bsd4-3
|
|
|
929 NON_GNU_CPP="cc -E -P"
|
|
|
930 ;;
|
|
|
931
|
|
149
|
932 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
|
|
|
933
|
|
|
934 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
|
|
|
935 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
|
|
|
936 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
|
|
|
937 m88k-dg-dgux* ) opsys=dgux ;;
|
|
|
938
|
|
|
939 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
|
|
0
|
940 m88k-motorola-sysv4* )
|
|
149
|
941 machine=delta88k opsys=usg5-4-2
|
|
0
|
942 ;;
|
|
70
|
943 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
|
|
0
|
944
|
|
149
|
945 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
|
|
70
|
946 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
|
|
0
|
947
|
|
149
|
948 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
|
|
|
949
|
|
|
950 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
|
|
70
|
951 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
|
|
|
952 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
|
|
0
|
953
|
|
149
|
954 m88k-harris-cxux* )
|
|
|
955 case "`uname -r`" in
|
|
74
|
956 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
|
70
|
957 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
|
0
|
958 esac
|
|
|
959 NON_GNU_CPP="/lib/cpp"
|
|
|
960 ;;
|
|
149
|
961 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
|
|
|
962 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
|
|
|
963
|
|
|
964 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
|
|
|
965
|
|
|
966 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
|
|
|
967
|
|
|
968 *-hp-hpux* )
|
|
|
969 case "$canonical" in
|
|
70
|
970 m68* ) machine=hp9000s300 ;;
|
|
|
971 hppa* ) machine=hp800 ;;
|
|
|
972 esac
|
|
|
973
|
|
149
|
974 case "$canonical" in
|
|
|
975 *-hp-hpux7* ) opsys=hpux ;;
|
|
|
976 *-hp-hpux8* ) opsys=hpux8 ;;
|
|
|
977 *-hp-hpux9* ) opsys=hpux9 ;;
|
|
|
978 *-hp-hpux10* ) opsys=hpux10 ;;
|
|
151
|
979 * ) opsys=hpux ;;
|
|
0
|
980 esac
|
|
72
|
981
|
|
151
|
982 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
|
|
|
983 echo " xemacs will be linked with \"strcat.o\""
|
|
|
984 fi ;; esac
|
|
149
|
985
|
|
|
986 if test "$opsys" = "hpux10"; then ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
|
|
|
987 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
|
|
|
988
|
|
|
989 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
|
|
0
|
990 ;;
|
|
|
991
|
|
149
|
992 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
|
|
70
|
993 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
|
|
0
|
994
|
|
149
|
995 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
|
|
70
|
996 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
|
|
|
997 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
|
|
149
|
998 romp-ibm-aos* ) opsys=bsd4-3 ;;
|
|
|
999 romp-ibm-bsd* ) opsys=bsd4-3 ;;
|
|
|
1000 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
|
|
|
1001
|
|
|
1002 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
|
|
70
|
1003 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
|
|
0
|
1004
|
|
149
|
1005 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
|
|
|
1006
|
|
|
1007 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
|
|
|
1008
|
|
|
1009 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
|
|
|
1010
|
|
|
1011 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
|
|
|
1012
|
|
|
1013 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
|
|
|
1014
|
|
|
1015 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
|
|
|
1016
|
|
|
1017 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
|
|
|
1018
|
|
|
1019 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
|
|
|
1020
|
|
|
1021 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
|
|
|
1022
|
|
|
1023 mips-mips-usg* ) machine=mips4 ;;
|
|
70
|
1024 mips-mips-riscos4 )
|
|
|
1025 machine=mips4
|
|
0
|
1026 NON_GNU_CC="cc -systype bsd43"
|
|
|
1027 NON_GNU_CPP="cc -systype bsd43 -E"
|
|
149
|
1028 case "$canonical" in
|
|
70
|
1029 mips-mips-riscos4* ) opsys=bsd4-3 ;;
|
|
|
1030 mips-mips-riscos5* ) opsys=riscos5 ;;
|
|
|
1031 esac
|
|
0
|
1032 ;;
|
|
70
|
1033 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
|
|
|
1034 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
|
|
0
|
1035
|
|
149
|
1036 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
|
|
|
1037
|
|
|
1038 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
|
|
|
1039
|
|
|
1040 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
|
|
70
|
1041 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
|
|
0
|
1042
|
|
149
|
1043 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
|
|
|
1044
|
|
|
1045 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
|
|
|
1046
|
|
|
1047 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
|
|
|
1048
|
|
|
1049 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
|
|
|
1050
|
|
|
1051 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
|
|
70
|
1052 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
|
|
0
|
1053
|
|
149
|
1054 mips-siemens-sysv* | mips-sni-sysv*)
|
|
0
|
1055 machine=mips-siemens opsys=usg5-4
|
|
|
1056 NON_GNU_CC=/usr/ccs/bin/cc
|
|
|
1057 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
|
1058 ;;
|
|
|
1059
|
|
149
|
1060 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
|
|
70
|
1061 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
|
|
149
|
1062 mips-sgi-irix3.* ) opsys=irix3-3 ;;
|
|
|
1063 mips-sgi-irix4.* ) opsys=irix4-0 ;;
|
|
207
|
1064 mips-sgi-irix6* ) opsys=irix6-0 ;;
|
|
149
|
1065 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
|
|
|
1066 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
|
|
|
1067 mips-sgi-irix5.* ) opsys=irix5-3 ;;
|
|
|
1068 mips-sgi-irix* ) opsys=irix5-0 ;;
|
|
|
1069
|
|
|
1070 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
|
|
|
1071 *-sony-news* ) opsys=newsos5 ;;
|
|
|
1072
|
|
|
1073 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
|
|
|
1074
|
|
|
1075 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
|
1076 case "$canonical" in
|
|
0
|
1077 m68*-sunos1* ) machine=sun1 ;;
|
|
|
1078 m68*-sunos2* ) machine=sun2 ;;
|
|
|
1079 m68* ) machine=sun3 ;;
|
|
163
|
1080 i*86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
|
1081 i*86-*-* ) machine=intel386 ;;
|
|
0
|
1082 rs6000* ) machine=rs6000 ;;
|
|
|
1083 esac
|
|
149
|
1084
|
|
|
1085 case "$canonical" in *-sunos5*)
|
|
163
|
1086 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
|
|
0
|
1087 esac
|
|
|
1088
|
|
149
|
1089 case "$canonical" in
|
|
0
|
1090 *-sunos4* )
|
|
157
|
1091 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
|
1092 : ;;
|
|
70
|
1093 *-solaris2* )
|
|
157
|
1094 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
|
1095 RANLIB=':' ;;
|
|
151
|
1096 esac
|
|
149
|
1097
|
|
|
1098 case "$canonical" in
|
|
163
|
1099 *-solaris* )
|
|
|
1100 opsys=sol2
|
|
|
1101 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
|
|
|
1102 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
1103 Defining OS_RELEASE = $os_release
|
|
|
1104 EOF
|
|
|
1105 cat >> confdefs.h <<EOF
|
|
|
1106 #define OS_RELEASE $os_release
|
|
|
1107 EOF
|
|
|
1108 }
|
|
|
1109 ;;
|
|
|
1110
|
|
|
1111 i*86-*-sunos4* ) opsys=sunos4-0 ;;
|
|
74
|
1112 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
|
1113 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
|
110
|
1114 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
|
120
|
1115 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
|
74
|
1116 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
|
1117 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
|
1118 * ) opsys=bsd4-2 ;;
|
|
0
|
1119 esac
|
|
70
|
1120
|
|
149
|
1121 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
|
|
|
1122
|
|
163
|
1123 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
|
|
0
|
1124 ;;
|
|
70
|
1125
|
|
149
|
1126 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
|
|
|
1127
|
|
|
1128 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
|
|
70
|
1129 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
|
|
0
|
1130
|
|
149
|
1131 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
|
|
|
1132
|
|
|
1133 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
|
|
|
1134
|
|
|
1135 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
|
|
|
1136 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
|
|
|
1137
|
|
|
1138 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
|
|
|
1139
|
|
|
1140 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
|
|
|
1141
|
|
|
1142 vax-dec-* )
|
|
|
1143 case "$canonical" in
|
|
|
1144 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
|
1145 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
|
1146 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
0
|
1147 esac
|
|
|
1148 ;;
|
|
|
1149
|
|
149
|
1150 ns16k-whitechapel-* ) machine=mg1 ;;
|
|
|
1151
|
|
|
1152 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
|
|
|
1153
|
|
|
1154 i[3-9]86-*-* )
|
|
0
|
1155 machine=intel386
|
|
149
|
1156 case "$canonical" in
|
|
120
|
1157 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
|
0
|
1158 *-isc2.2* ) opsys=isc2-2 ;;
|
|
|
1159 *-isc4.0* ) opsys=isc4-0 ;;
|
|
|
1160 *-isc4.* ) opsys=isc4-1
|
|
|
1161 GCC_TEST_OPTIONS=-posix
|
|
|
1162 NON_GCC_TEST_OPTIONS=-Xp
|
|
|
1163 ;;
|
|
|
1164 *-isc* ) opsys=isc3-0 ;;
|
|
149
|
1165 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
|
|
0
|
1166 *-esix* ) opsys=esix ;;
|
|
|
1167 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
|
1168 *-xenix* ) opsys=xenix ;;
|
|
149
|
1169 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
|
|
0
|
1170 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
|
110
|
1171 *-bsdi3* ) opsys=bsdos3 ;;
|
|
0
|
1172 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
|
1173 *-bsdi2* ) opsys=bsdos2 ;;
|
|
149
|
1174 *-sco3.2v5* ) opsys=sco5 ;
|
|
|
1175 if test "$dynamic" = "yes" ; then
|
|
70
|
1176 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
|
|
|
1177 else
|
|
|
1178 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
|
|
|
1179 fi ;;
|
|
|
1180 *-386bsd* ) opsys=386bsd ;;
|
|
|
1181 *-freebsd* ) opsys=freebsd ;;
|
|
0
|
1182 *-nextstep* ) opsys=nextstep ;;
|
|
149
|
1183 esac
|
|
0
|
1184 ;;
|
|
|
1185
|
|
149
|
1186 m68k-*-linux* ) machine=m68k opsys=linux ;;
|
|
|
1187
|
|
0
|
1188 esac
|
|
|
1189
|
|
149
|
1190 if test -z "$machine" -o -z "$opsys"; then
|
|
|
1191 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
|
|
|
1192 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
|
|
0
|
1193 ) >&2
|
|
|
1194 exit 1
|
|
|
1195 fi
|
|
|
1196
|
|
173
|
1197 if test -z "$dynamic"; then
|
|
|
1198 case "$opsys" in
|
|
|
1199 hpux* | sunos4* | sco5 ) dynamic=no ;;
|
|
|
1200 *) dynamic=yes ;;
|
|
|
1201 esac
|
|
|
1202 fi
|
|
|
1203 if test "$dynamic" = "yes"; then
|
|
149
|
1204 case "$opsys" in
|
|
72
|
1205 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
|
|
173
|
1206 decosf* ) ld_call_shared="-call_shared" ;;
|
|
0
|
1207 esac
|
|
173
|
1208 else case "$opsys" in
|
|
187
|
1209 sol2 )
|
|
173
|
1210 echo "Static linking is not supported on Solaris 2."
|
|
|
1211 echo "Rerun configure without specifying --dynamic=no."
|
|
|
1212 exit 1 ;;
|
|
|
1213 linux ) ld_call_shared="-Bstatic" ;;
|
|
|
1214 decosf* ) ld_call_shared="-non_shared" ;;
|
|
0
|
1215 esac
|
|
|
1216 fi
|
|
|
1217
|
|
207
|
1218 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
|
|
|
1219
|
|
177
|
1220 stack_trace_eye_catcher=`echo xemacs_${version}_${canonical} | sed 'y/.-/__/'`
|
|
173
|
1221 { test "$extra_verbose" = "yes" && cat << EOF
|
|
177
|
1222 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
|
|
173
|
1223 EOF
|
|
|
1224 cat >> confdefs.h <<EOF
|
|
177
|
1225 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
|
|
173
|
1226 EOF
|
|
|
1227 }
|
|
|
1228
|
|
|
1229
|
|
0
|
1230 machfile="m/${machine}.h"
|
|
|
1231 opsysfile="s/${opsys}.h"
|
|
|
1232
|
|
|
1233
|
|
151
|
1234 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
|
|
|
1235 if test "$with_workshop" = "yes"; then
|
|
|
1236 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
1237 Defining SUNPRO
|
|
|
1238 EOF
|
|
|
1239 cat >> confdefs.h <<\EOF
|
|
|
1240 #define SUNPRO 1
|
|
|
1241 EOF
|
|
|
1242 }
|
|
|
1243
|
|
|
1244 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
|
|
|
1245 echo " xemacs will be linked with \"sunpro.o\""
|
|
|
1246 fi
|
|
|
1247 with_tooltalk=yes
|
|
|
1248 fi
|
|
|
1249
|
|
175
|
1250 if test "$with_clash_detection" = "yes"; then
|
|
|
1251 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
1252 Defining CLASH_DETECTION
|
|
|
1253 EOF
|
|
|
1254 cat >> confdefs.h <<\EOF
|
|
|
1255 #define CLASH_DETECTION 1
|
|
|
1256 EOF
|
|
|
1257 }
|
|
|
1258
|
|
|
1259 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
|
|
|
1260 echo " xemacs will be linked with \"filelock.o\""
|
|
|
1261 fi
|
|
|
1262 fi
|
|
|
1263
|
|
169
|
1264 test -n "$compiler" && CC="$compiler"
|
|
|
1265 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
|
|
|
1266 fi
|
|
149
|
1267
|
|
157
|
1268 test "$cflags" != "UNSPECIFIED" && CFLAGS="$cflags"
|
|
|
1269 xe_save_CFLAGS="$CFLAGS"
|
|
|
1270
|
|
149
|
1271 # Extract the first word of "gcc", so it can be a program name with args.
|
|
|
1272 set dummy gcc; ac_word=$2
|
|
|
1273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
217
|
1274 echo "configure:1275: checking for $ac_word" >&5
|
|
149
|
1275
|
|
|
1276 if test -n "$CC"; then
|
|
|
1277 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1278 else
|
|
|
1279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1280 for ac_dir in $PATH; do
|
|
|
1281 test -z "$ac_dir" && ac_dir=.
|
|
|
1282 if test -f $ac_dir/$ac_word; then
|
|
|
1283 ac_cv_prog_CC="gcc"
|
|
|
1284 break
|
|
|
1285 fi
|
|
|
1286 done
|
|
|
1287 IFS="$ac_save_ifs"
|
|
|
1288 fi
|
|
|
1289 CC="$ac_cv_prog_CC"
|
|
|
1290 if test -n "$CC"; then
|
|
|
1291 echo "$ac_t""$CC" 1>&6
|
|
|
1292 else
|
|
|
1293 echo "$ac_t""no" 1>&6
|
|
|
1294 fi
|
|
|
1295
|
|
|
1296 if test -z "$CC"; then
|
|
|
1297 # Extract the first word of "cc", so it can be a program name with args.
|
|
|
1298 set dummy cc; ac_word=$2
|
|
|
1299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
217
|
1300 echo "configure:1301: checking for $ac_word" >&5
|
|
149
|
1301
|
|
|
1302 if test -n "$CC"; then
|
|
|
1303 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1304 else
|
|
|
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1306 ac_prog_rejected=no
|
|
|
1307 for ac_dir in $PATH; do
|
|
|
1308 test -z "$ac_dir" && ac_dir=.
|
|
|
1309 if test -f $ac_dir/$ac_word; then
|
|
|
1310 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
|
1311 ac_prog_rejected=yes
|
|
|
1312 continue
|
|
|
1313 fi
|
|
|
1314 ac_cv_prog_CC="cc"
|
|
|
1315 break
|
|
|
1316 fi
|
|
|
1317 done
|
|
|
1318 IFS="$ac_save_ifs"
|
|
|
1319 if test $ac_prog_rejected = yes; then
|
|
|
1320 # We found a bogon in the path, so make sure we never use it.
|
|
|
1321 set dummy $ac_cv_prog_CC
|
|
|
1322 shift
|
|
|
1323 if test $# -gt 0; then
|
|
|
1324 # We chose a different compiler from the bogus one.
|
|
|
1325 # However, it has the same basename, so the bogon will be chosen
|
|
|
1326 # first if we set CC to just the basename; use the full file name.
|
|
|
1327 shift
|
|
|
1328 set dummy "$ac_dir/$ac_word" "$@"
|
|
|
1329 shift
|
|
|
1330 ac_cv_prog_CC="$@"
|
|
|
1331 fi
|
|
|
1332 fi
|
|
|
1333 fi
|
|
|
1334 CC="$ac_cv_prog_CC"
|
|
|
1335 if test -n "$CC"; then
|
|
|
1336 echo "$ac_t""$CC" 1>&6
|
|
|
1337 else
|
|
|
1338 echo "$ac_t""no" 1>&6
|
|
|
1339 fi
|
|
|
1340
|
|
|
1341 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
|
1342 fi
|
|
|
1343
|
|
|
1344 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
217
|
1345 echo "configure:1346: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
70
|
1346
|
|
0
|
1347 ac_ext=c
|
|
151
|
1348 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
|
1349 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
|
173
|
1350 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
|
149
|
1351 ac_cpp='$CPP '"$xe_cppflags"
|
|
151
|
1352 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
|
1353 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
149
|
1354 cross_compiling=no
|
|
|
1355
|
|
|
1356 cat > conftest.$ac_ext <<EOF
|
|
217
|
1357 #line 1358 "configure"
|
|
149
|
1358 #include "confdefs.h"
|
|
|
1359 main(){return(0);}
|
|
|
1360 EOF
|
|
217
|
1361 if { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
1362 ac_cv_prog_cc_works=yes
|
|
|
1363 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
1364 if (./conftest; exit) 2>/dev/null; then
|
|
|
1365 ac_cv_prog_cc_cross=no
|
|
|
1366 else
|
|
|
1367 ac_cv_prog_cc_cross=yes
|
|
0
|
1368 fi
|
|
149
|
1369 else
|
|
|
1370 echo "configure: failed program was:" >&5
|
|
|
1371 cat conftest.$ac_ext >&5
|
|
|
1372 ac_cv_prog_cc_works=no
|
|
|
1373 fi
|
|
|
1374 rm -fr conftest*
|
|
|
1375
|
|
|
1376 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
|
1377 if test $ac_cv_prog_cc_works = no; then
|
|
|
1378 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
|
1379 fi
|
|
|
1380 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
217
|
1381 echo "configure:1382: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
149
|
1382 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
1383 cross_compiling=$ac_cv_prog_cc_cross
|
|
|
1384
|
|
|
1385 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|
217
|
1386 echo "configure:1387: checking whether we are using GNU C" >&5
|
|
149
|
1387
|
|
|
1388 cat > conftest.c <<EOF
|
|
|
1389 #ifdef __GNUC__
|
|
|
1390 yes;
|
|
|
1391 #endif
|
|
|
1392 EOF
|
|
217
|
1393 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
149
|
1394 ac_cv_prog_gcc=yes
|
|
|
1395 else
|
|
|
1396 ac_cv_prog_gcc=no
|
|
|
1397 fi
|
|
|
1398
|
|
|
1399 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
1400
|
|
|
1401 if test $ac_cv_prog_gcc = yes; then
|
|
|
1402 GCC=yes
|
|
|
1403 ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
1404 ac_save_CFLAGS="$CFLAGS"
|
|
|
1405 CFLAGS=
|
|
|
1406 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
217
|
1407 echo "configure:1408: checking whether ${CC-cc} accepts -g" >&5
|
|
149
|
1408
|
|
|
1409 echo 'void f(){}' > conftest.c
|
|
|
1410 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
|
1411 ac_cv_prog_cc_g=yes
|
|
|
1412 else
|
|
|
1413 ac_cv_prog_cc_g=no
|
|
|
1414 fi
|
|
|
1415 rm -f conftest*
|
|
|
1416
|
|
|
1417
|
|
|
1418 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
|
1419 if test "$ac_test_CFLAGS" = set; then
|
|
|
1420 CFLAGS="$ac_save_CFLAGS"
|
|
|
1421 elif test $ac_cv_prog_cc_g = yes; then
|
|
|
1422 CFLAGS="-g -O2"
|
|
0
|
1423 else
|
|
149
|
1424 CFLAGS="-O2"
|
|
0
|
1425 fi
|
|
149
|
1426 else
|
|
|
1427 GCC=
|
|
|
1428 test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|
|
1429 fi
|
|
169
|
1430
|
|
|
1431 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
|
|
149
|
1432 CC=${NON_GNU_CC-cc}
|
|
|
1433 # Extract the first word of "gcc", so it can be a program name with args.
|
|
|
1434 set dummy gcc; ac_word=$2
|
|
|
1435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
217
|
1436 echo "configure:1437: checking for $ac_word" >&5
|
|
149
|
1437
|
|
|
1438 if test -n "$CC"; then
|
|
|
1439 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1440 else
|
|
0
|
1441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1442 for ac_dir in $PATH; do
|
|
|
1443 test -z "$ac_dir" && ac_dir=.
|
|
|
1444 if test -f $ac_dir/$ac_word; then
|
|
149
|
1445 ac_cv_prog_CC="gcc"
|
|
|
1446 break
|
|
|
1447 fi
|
|
|
1448 done
|
|
|
1449 IFS="$ac_save_ifs"
|
|
|
1450 fi
|
|
|
1451 CC="$ac_cv_prog_CC"
|
|
|
1452 if test -n "$CC"; then
|
|
|
1453 echo "$ac_t""$CC" 1>&6
|
|
|
1454 else
|
|
|
1455 echo "$ac_t""no" 1>&6
|
|
|
1456 fi
|
|
|
1457
|
|
|
1458 if test -z "$CC"; then
|
|
|
1459 # Extract the first word of "cc", so it can be a program name with args.
|
|
|
1460 set dummy cc; ac_word=$2
|
|
|
1461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
217
|
1462 echo "configure:1463: checking for $ac_word" >&5
|
|
157
|
1463
|
|
|
1464 if test -n "$CC"; then
|
|
|
1465 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1466 else
|
|
|
1467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1468 ac_prog_rejected=no
|
|
|
1469 for ac_dir in $PATH; do
|
|
|
1470 test -z "$ac_dir" && ac_dir=.
|
|
|
1471 if test -f $ac_dir/$ac_word; then
|
|
|
1472 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
|
1473 ac_prog_rejected=yes
|
|
|
1474 continue
|
|
|
1475 fi
|
|
|
1476 ac_cv_prog_CC="cc"
|
|
|
1477 break
|
|
|
1478 fi
|
|
|
1479 done
|
|
|
1480 IFS="$ac_save_ifs"
|
|
|
1481 if test $ac_prog_rejected = yes; then
|
|
|
1482 # We found a bogon in the path, so make sure we never use it.
|
|
|
1483 set dummy $ac_cv_prog_CC
|
|
|
1484 shift
|
|
|
1485 if test $# -gt 0; then
|
|
|
1486 # We chose a different compiler from the bogus one.
|
|
|
1487 # However, it has the same basename, so the bogon will be chosen
|
|
|
1488 # first if we set CC to just the basename; use the full file name.
|
|
|
1489 shift
|
|
|
1490 set dummy "$ac_dir/$ac_word" "$@"
|
|
|
1491 shift
|
|
|
1492 ac_cv_prog_CC="$@"
|
|
|
1493 fi
|
|
|
1494 fi
|
|
|
1495 fi
|
|
|
1496 CC="$ac_cv_prog_CC"
|
|
|
1497 if test -n "$CC"; then
|
|
|
1498 echo "$ac_t""$CC" 1>&6
|
|
|
1499 else
|
|
|
1500 echo "$ac_t""no" 1>&6
|
|
|
1501 fi
|
|
|
1502
|
|
|
1503 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
|
1504 fi
|
|
|
1505
|
|
|
1506 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
217
|
1507 echo "configure:1508: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
157
|
1508
|
|
|
1509 ac_ext=c
|
|
|
1510 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
|
1511 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
|
173
|
1512 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
|
157
|
1513 ac_cpp='$CPP '"$xe_cppflags"
|
|
|
1514 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
|
1515 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
|
1516 cross_compiling=no
|
|
|
1517
|
|
|
1518 cat > conftest.$ac_ext <<EOF
|
|
217
|
1519 #line 1520 "configure"
|
|
157
|
1520 #include "confdefs.h"
|
|
|
1521 main(){return(0);}
|
|
|
1522 EOF
|
|
217
|
1523 if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
157
|
1524 ac_cv_prog_cc_works=yes
|
|
|
1525 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
1526 if (./conftest; exit) 2>/dev/null; then
|
|
|
1527 ac_cv_prog_cc_cross=no
|
|
|
1528 else
|
|
|
1529 ac_cv_prog_cc_cross=yes
|
|
|
1530 fi
|
|
|
1531 else
|
|
|
1532 echo "configure: failed program was:" >&5
|
|
|
1533 cat conftest.$ac_ext >&5
|
|
|
1534 ac_cv_prog_cc_works=no
|
|
|
1535 fi
|
|
|
1536 rm -fr conftest*
|
|
|
1537
|
|
|
1538 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
|
1539 if test $ac_cv_prog_cc_works = no; then
|
|
|
1540 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
|
1541 fi
|
|
|
1542 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
217
|
1543 echo "configure:1544: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
157
|
1544 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
1545 cross_compiling=$ac_cv_prog_cc_cross
|
|
|
1546
|
|
|
1547 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|
217
|
1548 echo "configure:1549: checking whether we are using GNU C" >&5
|
|
157
|
1549
|
|
|
1550 cat > conftest.c <<EOF
|
|
|
1551 #ifdef __GNUC__
|
|
|
1552 yes;
|
|
|
1553 #endif
|
|
|
1554 EOF
|
|
217
|
1555 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
157
|
1556 ac_cv_prog_gcc=yes
|
|
|
1557 else
|
|
|
1558 ac_cv_prog_gcc=no
|
|
|
1559 fi
|
|
|
1560
|
|
|
1561 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
1562
|
|
|
1563 if test $ac_cv_prog_gcc = yes; then
|
|
|
1564 GCC=yes
|
|
|
1565 ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
1566 ac_save_CFLAGS="$CFLAGS"
|
|
|
1567 CFLAGS=
|
|
|
1568 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
217
|
1569 echo "configure:1570: checking whether ${CC-cc} accepts -g" >&5
|
|
157
|
1570
|
|
|
1571 echo 'void f(){}' > conftest.c
|
|
|
1572 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
|
1573 ac_cv_prog_cc_g=yes
|
|
|
1574 else
|
|
|
1575 ac_cv_prog_cc_g=no
|
|
|
1576 fi
|
|
|
1577 rm -f conftest*
|
|
|
1578
|
|
|
1579
|
|
|
1580 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
|
1581 if test "$ac_test_CFLAGS" = set; then
|
|
|
1582 CFLAGS="$ac_save_CFLAGS"
|
|
|
1583 elif test $ac_cv_prog_cc_g = yes; then
|
|
|
1584 CFLAGS="-g -O2"
|
|
|
1585 else
|
|
|
1586 CFLAGS="-O2"
|
|
|
1587 fi
|
|
|
1588 else
|
|
|
1589 GCC=
|
|
|
1590 test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|
|
1591 fi
|
|
|
1592
|
|
169
|
1593 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
|
|
157
|
1594 CC=gcc
|
|
|
1595 # Extract the first word of "gcc", so it can be a program name with args.
|
|
|
1596 set dummy gcc; ac_word=$2
|
|
|
1597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
217
|
1598 echo "configure:1599: checking for $ac_word" >&5
|
|
157
|
1599
|
|
|
1600 if test -n "$CC"; then
|
|
|
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1602 else
|
|
|
1603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1604 for ac_dir in $PATH; do
|
|
|
1605 test -z "$ac_dir" && ac_dir=.
|
|
|
1606 if test -f $ac_dir/$ac_word; then
|
|
|
1607 ac_cv_prog_CC="gcc"
|
|
|
1608 break
|
|
|
1609 fi
|
|
|
1610 done
|
|
|
1611 IFS="$ac_save_ifs"
|
|
|
1612 fi
|
|
|
1613 CC="$ac_cv_prog_CC"
|
|
|
1614 if test -n "$CC"; then
|
|
|
1615 echo "$ac_t""$CC" 1>&6
|
|
|
1616 else
|
|
|
1617 echo "$ac_t""no" 1>&6
|
|
|
1618 fi
|
|
|
1619
|
|
|
1620 if test -z "$CC"; then
|
|
|
1621 # Extract the first word of "cc", so it can be a program name with args.
|
|
|
1622 set dummy cc; ac_word=$2
|
|
|
1623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
217
|
1624 echo "configure:1625: checking for $ac_word" >&5
|
|
149
|
1625
|
|
|
1626 if test -n "$CC"; then
|
|
|
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1628 else
|
|
|
1629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1630 ac_prog_rejected=no
|
|
|
1631 for ac_dir in $PATH; do
|
|
|
1632 test -z "$ac_dir" && ac_dir=.
|
|
|
1633 if test -f $ac_dir/$ac_word; then
|
|
|
1634 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
|
1635 ac_prog_rejected=yes
|
|
|
1636 continue
|
|
|
1637 fi
|
|
|
1638 ac_cv_prog_CC="cc"
|
|
|
1639 break
|
|
|
1640 fi
|
|
|
1641 done
|
|
|
1642 IFS="$ac_save_ifs"
|
|
|
1643 if test $ac_prog_rejected = yes; then
|
|
|
1644 # We found a bogon in the path, so make sure we never use it.
|
|
|
1645 set dummy $ac_cv_prog_CC
|
|
|
1646 shift
|
|
|
1647 if test $# -gt 0; then
|
|
|
1648 # We chose a different compiler from the bogus one.
|
|
|
1649 # However, it has the same basename, so the bogon will be chosen
|
|
|
1650 # first if we set CC to just the basename; use the full file name.
|
|
|
1651 shift
|
|
|
1652 set dummy "$ac_dir/$ac_word" "$@"
|
|
|
1653 shift
|
|
|
1654 ac_cv_prog_CC="$@"
|
|
|
1655 fi
|
|
|
1656 fi
|
|
|
1657 fi
|
|
|
1658 CC="$ac_cv_prog_CC"
|
|
|
1659 if test -n "$CC"; then
|
|
|
1660 echo "$ac_t""$CC" 1>&6
|
|
|
1661 else
|
|
|
1662 echo "$ac_t""no" 1>&6
|
|
|
1663 fi
|
|
|
1664
|
|
|
1665 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
|
1666 fi
|
|
|
1667
|
|
|
1668 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
217
|
1669 echo "configure:1670: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
149
|
1670
|
|
|
1671 ac_ext=c
|
|
151
|
1672 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
|
1673 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
|
173
|
1674 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
|
149
|
1675 ac_cpp='$CPP '"$xe_cppflags"
|
|
151
|
1676 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
|
1677 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
149
|
1678 cross_compiling=no
|
|
|
1679
|
|
|
1680 cat > conftest.$ac_ext <<EOF
|
|
217
|
1681 #line 1682 "configure"
|
|
149
|
1682 #include "confdefs.h"
|
|
|
1683 main(){return(0);}
|
|
|
1684 EOF
|
|
217
|
1685 if { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
1686 ac_cv_prog_cc_works=yes
|
|
|
1687 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
1688 if (./conftest; exit) 2>/dev/null; then
|
|
|
1689 ac_cv_prog_cc_cross=no
|
|
|
1690 else
|
|
|
1691 ac_cv_prog_cc_cross=yes
|
|
|
1692 fi
|
|
|
1693 else
|
|
|
1694 echo "configure: failed program was:" >&5
|
|
|
1695 cat conftest.$ac_ext >&5
|
|
|
1696 ac_cv_prog_cc_works=no
|
|
|
1697 fi
|
|
|
1698 rm -fr conftest*
|
|
|
1699
|
|
|
1700 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
|
1701 if test $ac_cv_prog_cc_works = no; then
|
|
|
1702 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
|
1703 fi
|
|
|
1704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
217
|
1705 echo "configure:1706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
149
|
1706 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
1707 cross_compiling=$ac_cv_prog_cc_cross
|
|
|
1708
|
|
|
1709 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|
217
|
1710 echo "configure:1711: checking whether we are using GNU C" >&5
|
|
149
|
1711
|
|
|
1712 cat > conftest.c <<EOF
|
|
|
1713 #ifdef __GNUC__
|
|
|
1714 yes;
|
|
|
1715 #endif
|
|
|
1716 EOF
|
|
217
|
1717 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
149
|
1718 ac_cv_prog_gcc=yes
|
|
|
1719 else
|
|
|
1720 ac_cv_prog_gcc=no
|
|
|
1721 fi
|
|
|
1722
|
|
|
1723 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
1724
|
|
|
1725 if test $ac_cv_prog_gcc = yes; then
|
|
|
1726 GCC=yes
|
|
|
1727 ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
1728 ac_save_CFLAGS="$CFLAGS"
|
|
|
1729 CFLAGS=
|
|
|
1730 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
217
|
1731 echo "configure:1732: checking whether ${CC-cc} accepts -g" >&5
|
|
149
|
1732
|
|
|
1733 echo 'void f(){}' > conftest.c
|
|
|
1734 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
|
1735 ac_cv_prog_cc_g=yes
|
|
|
1736 else
|
|
|
1737 ac_cv_prog_cc_g=no
|
|
|
1738 fi
|
|
|
1739 rm -f conftest*
|
|
|
1740
|
|
|
1741
|
|
|
1742 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
|
1743 if test "$ac_test_CFLAGS" = set; then
|
|
|
1744 CFLAGS="$ac_save_CFLAGS"
|
|
|
1745 elif test $ac_cv_prog_cc_g = yes; then
|
|
|
1746 CFLAGS="-g -O2"
|
|
|
1747 else
|
|
|
1748 CFLAGS="-O2"
|
|
|
1749 fi
|
|
|
1750 else
|
|
|
1751 GCC=
|
|
|
1752 test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|
|
1753 fi
|
|
|
1754
|
|
157
|
1755 fi
|
|
|
1756 CFLAGS="$xe_save_CFLAGS"
|
|
149
|
1757
|
|
171
|
1758
|
|
|
1759 test -n "$CPP" -a -d "$CPP" && CPP=
|
|
|
1760
|
|
169
|
1761 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
|
|
149
|
1762
|
|
|
1763 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|
217
|
1764 echo "configure:1765: checking how to run the C preprocessor" >&5
|
|
149
|
1765 # On Suns, sometimes $CPP names a directory.
|
|
|
1766 if test -n "$CPP" && test -d "$CPP"; then
|
|
|
1767 CPP=
|
|
|
1768 fi
|
|
0
|
1769 if test -z "$CPP"; then
|
|
149
|
1770
|
|
0
|
1771 # This must be in double quotes, not single quotes, because CPP may get
|
|
149
|
1772 # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|
0
|
1773 CPP="${CC-cc} -E"
|
|
149
|
1774 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
1775 # not just through cpp.
|
|
|
1776 cat > conftest.$ac_ext <<EOF
|
|
217
|
1777 #line 1778 "configure"
|
|
149
|
1778 #include "confdefs.h"
|
|
|
1779 #include <assert.h>
|
|
0
|
1780 Syntax Error
|
|
|
1781 EOF
|
|
149
|
1782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
217
|
1783 { (eval echo configure:1784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
1784 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
1785 if test -z "$ac_err"; then
|
|
|
1786 :
|
|
|
1787 else
|
|
|
1788 echo "$ac_err" >&5
|
|
|
1789 echo "configure: failed program was:" >&5
|
|
|
1790 cat conftest.$ac_ext >&5
|
|
|
1791 rm -rf conftest*
|
|
|
1792 CPP="${CC-cc} -E -traditional-cpp"
|
|
|
1793 cat > conftest.$ac_ext <<EOF
|
|
217
|
1794 #line 1795 "configure"
|
|
149
|
1795 #include "confdefs.h"
|
|
|
1796 #include <assert.h>
|
|
|
1797 Syntax Error
|
|
|
1798 EOF
|
|
|
1799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
217
|
1800 { (eval echo configure:1801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
1801 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
1802 if test -z "$ac_err"; then
|
|
|
1803 :
|
|
|
1804 else
|
|
149
|
1805 echo "$ac_err" >&5
|
|
|
1806 echo "configure: failed program was:" >&5
|
|
|
1807 cat conftest.$ac_ext >&5
|
|
0
|
1808 rm -rf conftest*
|
|
|
1809 CPP=/lib/cpp
|
|
|
1810 fi
|
|
|
1811 rm -f conftest*
|
|
|
1812 fi
|
|
|
1813 rm -f conftest*
|
|
149
|
1814 ac_cv_prog_CPP="$CPP"
|
|
|
1815 CPP="$ac_cv_prog_CPP"
|
|
|
1816 else
|
|
|
1817 ac_cv_prog_CPP="$CPP"
|
|
|
1818 fi
|
|
|
1819 echo "$ac_t""$CPP" 1>&6
|
|
|
1820
|
|
|
1821
|
|
157
|
1822 echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
|
217
|
1823 echo "configure:1824: checking for AIX" >&5
|
|
|
1824 cat > conftest.$ac_ext <<EOF
|
|
|
1825 #line 1826 "configure"
|
|
157
|
1826 #include "confdefs.h"
|
|
|
1827 #ifdef _AIX
|
|
|
1828 yes
|
|
|
1829 #endif
|
|
|
1830
|
|
|
1831 EOF
|
|
|
1832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
1833 egrep "yes" >/dev/null 2>&1; then
|
|
|
1834 rm -rf conftest*
|
|
|
1835 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
1836 Defining _ALL_SOURCE
|
|
|
1837 EOF
|
|
|
1838 cat >> confdefs.h <<\EOF
|
|
|
1839 #define _ALL_SOURCE 1
|
|
|
1840 EOF
|
|
|
1841 }
|
|
|
1842
|
|
|
1843 else
|
|
|
1844 rm -rf conftest*
|
|
|
1845 echo "$ac_t""no" 1>&6
|
|
|
1846 fi
|
|
|
1847 rm -f conftest*
|
|
|
1848
|
|
|
1849
|
|
|
1850
|
|
|
1851 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
|
|
217
|
1852 echo "configure:1853: checking whether we are using SunPro C" >&5
|
|
|
1853 cat > conftest.$ac_ext <<EOF
|
|
|
1854 #line 1855 "configure"
|
|
157
|
1855 #include "confdefs.h"
|
|
|
1856
|
|
|
1857 int main() {
|
|
|
1858 #ifndef __SUNPRO_C
|
|
|
1859 #error Not a SunPro compiler :-(
|
|
167
|
1860 ******* ======= ******** &&&&&&&&
|
|
157
|
1861 #endif
|
|
|
1862
|
|
|
1863 ; return 0; }
|
|
|
1864 EOF
|
|
217
|
1865 if { (eval echo configure:1866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
157
|
1866 rm -rf conftest*
|
|
|
1867 __sunpro_c=yes
|
|
|
1868 else
|
|
|
1869 echo "configure: failed program was:" >&5
|
|
|
1870 cat conftest.$ac_ext >&5
|
|
|
1871 rm -rf conftest*
|
|
|
1872 __sunpro_c=no
|
|
|
1873 fi
|
|
|
1874 rm -f conftest*
|
|
|
1875 echo "$ac_t""$__sunpro_c" 1>&6
|
|
|
1876
|
|
0
|
1877
|
|
149
|
1878
|
|
|
1879 echo "Extracting information from the machine- and system-dependent headers..."
|
|
|
1880
|
|
|
1881 tempcname="conftest.c"
|
|
|
1882
|
|
|
1883
|
|
|
1884
|
|
|
1885
|
|
|
1886
|
|
|
1887
|
|
|
1888 echo '
|
|
|
1889 #define NOT_C_CODE
|
|
|
1890 #define C_SWITCH_SITE
|
|
|
1891 #define C_SWITCH_X_SITE
|
|
|
1892 #define LD_SWITCH_SITE
|
|
|
1893 #define LD_SWITCH_X_SITE
|
|
|
1894 #define LD_SWITCH_X_SITE_AUX
|
|
163
|
1895 #define OS_RELEASE '$os_release'
|
|
149
|
1896 #include "'$srcdir'/src/'$opsysfile'"
|
|
|
1897 #include "'$srcdir'/src/'$machfile'"
|
|
|
1898
|
|
|
1899 #ifndef LIBS_MACHINE
|
|
151
|
1900 #define LIBS_MACHINE
|
|
149
|
1901 #endif
|
|
|
1902 configure___ libs_machine=LIBS_MACHINE
|
|
|
1903
|
|
|
1904 #ifndef LIBS_SYSTEM
|
|
151
|
1905 #define LIBS_SYSTEM
|
|
149
|
1906 #endif
|
|
|
1907 configure___ libs_system=LIBS_SYSTEM
|
|
|
1908
|
|
|
1909 #ifndef LIBS_TERMCAP
|
|
151
|
1910 #define LIBS_TERMCAP
|
|
149
|
1911 #endif
|
|
|
1912 configure___ libs_termcap=LIBS_TERMCAP
|
|
|
1913
|
|
|
1914 #ifndef LIB_STANDARD
|
|
151
|
1915 #define LIB_STANDARD
|
|
149
|
1916 #endif
|
|
|
1917 configure___ libs_standard=LIB_STANDARD
|
|
|
1918
|
|
|
1919
|
|
163
|
1920 #ifndef OBJECTS_MACHINE
|
|
|
1921 #define OBJECTS_MACHINE
|
|
|
1922 #endif
|
|
|
1923 configure___ objects_machine=OBJECTS_MACHINE
|
|
|
1924
|
|
|
1925 #ifndef OBJECTS_SYSTEM
|
|
|
1926 #define OBJECTS_SYSTEM
|
|
|
1927 #endif
|
|
|
1928 configure___ objects_system=OBJECTS_SYSTEM
|
|
|
1929
|
|
|
1930
|
|
149
|
1931 #ifndef C_SWITCH_MACHINE
|
|
151
|
1932 #define C_SWITCH_MACHINE
|
|
149
|
1933 #endif
|
|
|
1934 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
|
1935
|
|
157
|
1936 #ifndef C_SWITCH_SYSTEM
|
|
|
1937 #define C_SWITCH_SYSTEM
|
|
|
1938 #endif
|
|
|
1939 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
|
1940
|
|
|
1941
|
|
|
1942 #ifndef LD_SWITCH_MACHINE
|
|
|
1943 #define LD_SWITCH_MACHINE
|
|
|
1944 #endif
|
|
|
1945 configure___ ld_switch_machine=LD_SWITCH_MACHINE
|
|
|
1946
|
|
|
1947 #ifndef LD_SWITCH_SYSTEM
|
|
|
1948 #define LD_SWITCH_SYSTEM
|
|
|
1949 #endif
|
|
|
1950 configure___ ld_switch_system=LD_SWITCH_SYSTEM
|
|
|
1951
|
|
149
|
1952
|
|
|
1953 #ifndef UNEXEC
|
|
157
|
1954 #define UNEXEC "unexec.o"
|
|
149
|
1955 #endif
|
|
|
1956 configure___ unexec=UNEXEC
|
|
|
1957
|
|
|
1958
|
|
163
|
1959 #ifndef LD_SWITCH_SHARED
|
|
|
1960 #define LD_SWITCH_SHARED "-c"
|
|
|
1961 #endif
|
|
|
1962 configure___ ld_switch_shared=LD_SWITCH_SHARED
|
|
|
1963
|
|
|
1964
|
|
|
1965 #ifdef ORDINARY_LINK
|
|
|
1966 #define LD "$(CC) $(CFLAGS)"
|
|
|
1967 #else /* no ORDINARY LINK */
|
|
|
1968 #ifdef COFF_ENCAPSULATE
|
|
|
1969 #define LD "$(CC) -nostdlib"
|
|
|
1970 #else /* not COFF_ENCAPSULATE */
|
|
|
1971 #ifdef LINKER
|
|
|
1972 #define LD LINKER
|
|
|
1973 #else /* ! defined (LINKER) */
|
|
|
1974 #define LD "ld"
|
|
|
1975 #endif /* ! defined (LINKER) */
|
|
|
1976 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
|
1977 #endif /* not ORDINARY_LINK */
|
|
|
1978 configure___ ld=LD
|
|
|
1979
|
|
|
1980 #ifndef LIB_GCC
|
|
|
1981 #define LIB_GCC
|
|
|
1982 #endif
|
|
|
1983 configure___ lib_gcc=LIB_GCC
|
|
|
1984
|
|
|
1985 #ifndef LD_TEXT_START_ADDR
|
|
|
1986 #define LD_TEXT_START_ADDR
|
|
|
1987 #endif
|
|
|
1988 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
|
|
|
1989
|
|
|
1990
|
|
|
1991 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
|
|
|
1992 #ifdef NO_REMAP
|
|
|
1993 #ifdef COFF_ENCAPSULATE
|
|
|
1994 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
|
|
|
1995 #else /* ! defined (COFF_ENCAPSULATE) */
|
|
|
1996 #define START_FILES "pre-crt0.o /lib/crt0.o"
|
|
|
1997 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
|
1998 #else /* ! defined (NO_REMAP) */
|
|
|
1999 #define START_FILES "ecrt0.o"
|
|
|
2000 #endif /* ! defined (NO_REMAP) */
|
|
|
2001 #endif /* no ORDINARY_LINK */
|
|
|
2002 #ifndef START_FILES
|
|
|
2003 #define START_FILES
|
|
|
2004 #endif
|
|
|
2005 configure___ start_files=START_FILES
|
|
|
2006
|
|
153
|
2007 #ifdef ORDINARY_LINK
|
|
|
2008 configure___ ordinary_link=yes
|
|
|
2009 #else
|
|
|
2010 configure___ ordinary_link=no
|
|
|
2011 #endif
|
|
|
2012
|
|
149
|
2013 #ifdef SYSTEM_MALLOC
|
|
|
2014 configure___ system_malloc=yes
|
|
|
2015 #else
|
|
|
2016 configure___ system_malloc=no
|
|
|
2017 #endif
|
|
|
2018
|
|
|
2019 #ifdef TERMINFO
|
|
|
2020 configure___ have_terminfo=yes
|
|
|
2021 #else
|
|
|
2022 configure___ have_terminfo=no
|
|
|
2023 #endif
|
|
|
2024
|
|
|
2025 #ifdef MAIL_USE_FLOCK
|
|
|
2026 configure___ mail_use_flock=yes
|
|
|
2027 #else
|
|
|
2028 configure___ mail_use_flock=no
|
|
|
2029 #endif
|
|
|
2030
|
|
|
2031 #ifdef MAIL_USE_LOCKF
|
|
|
2032 configure___ mail_use_lockf=yes
|
|
|
2033 #else
|
|
|
2034 configure___ mail_use_lockf=no
|
|
|
2035 #endif
|
|
|
2036
|
|
|
2037
|
|
157
|
2038 #if 0
|
|
149
|
2039 #ifdef THIS_IS_CONFIGURE
|
|
|
2040
|
|
|
2041 /* Get the CFLAGS for tests in configure. */
|
|
157
|
2042 #ifndef C_DEBUG_SWITCH
|
|
|
2043 #define C_DEBUG_SWITCH "-g"
|
|
|
2044 #endif
|
|
|
2045 configure___ c_debug_switch=C_DEBUG_SWITCH
|
|
|
2046
|
|
|
2047 #ifndef C_OPTIMIZE_SWITCH
|
|
|
2048 #define C_OPTIMIZE_SWITCH "-O"
|
|
|
2049 #endif
|
|
|
2050 configure___ c_optimize_switch=C_OPTIMIZE_SWITCH
|
|
|
2051
|
|
149
|
2052 #ifdef __GNUC__
|
|
|
2053 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS'
|
|
|
2054 #else
|
|
|
2055 configure___ CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS'
|
|
|
2056 #endif
|
|
|
2057
|
|
|
2058 #else /* not THIS_IS_CONFIGURE */
|
|
|
2059
|
|
|
2060 /* Get the CFLAGS for real compilation. */
|
|
|
2061 #ifdef __GNUC__
|
|
|
2062 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS'
|
|
|
2063 #else
|
|
|
2064 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS'
|
|
|
2065 #endif
|
|
|
2066
|
|
|
2067 #endif /* not THIS_IS_CONFIGURE */
|
|
157
|
2068 #endif /* 0 */
|
|
149
|
2069 ' > $tempcname
|
|
|
2070 CPP=`eval "echo $CPP"`
|
|
|
2071 eval `$CPP -Isrc $tempcname \
|
|
165
|
2072 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
|
|
153
|
2073
|
|
149
|
2074 rm $tempcname
|
|
|
2075
|
|
163
|
2076 test "$extra_verbose" = "yes" && \
|
|
201
|
2077 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
|
|
163
|
2078
|
|
153
|
2079 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
|
|
|
2080
|
|
157
|
2081 if test -z "$CFLAGS"; then
|
|
|
2082 if test "$GCC" = "yes"; then
|
|
175
|
2083 CFLAGS="-g -O2 -Wall -Wno-switch"
|
|
203
|
2084 test "$opsys $machine" = "linux intel386" && \
|
|
157
|
2085 CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
|
|
2086 elif test "$__sunpro_c" = "yes"; then
|
|
|
2087 case "$opsys" in
|
|
163
|
2088 sol2 ) CFLAGS="-v -xO4" ;;
|
|
|
2089 sunos4* ) CFLAGS="-xO2";;
|
|
157
|
2090 esac
|
|
207
|
2091 elif test "$CC" = "xlc"; then
|
|
|
2092 CFLAGS="-O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
|
|
157
|
2093 else
|
|
207
|
2094 CFLAGS="-O" ; fi
|
|
157
|
2095 fi
|
|
151
|
2096
|
|
163
|
2097 if test "$GCC" = "yes"; then
|
|
|
2098 ld_switch_system_tmp="$ld_switch_system"; ld_switch_system=""
|
|
|
2099 for arg in $ld_switch_system_tmp; do
|
|
|
2100 case "$arg" in
|
|
209
|
2101 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_switch_system="$ld_switch_system $arg" ;;
|
|
163
|
2102 -Xlinker* ) ;;
|
|
|
2103 * ) ld_switch_system="$ld_switch_system -Xlinker $arg" ;;
|
|
|
2104 esac
|
|
|
2105 done
|
|
|
2106 ld_switch_machine_tmp="$ld_switch_machine"; ld_switch_machine=""
|
|
|
2107 for arg in $ld_switch_machine_tmp; do
|
|
|
2108 case "$arg" in
|
|
209
|
2109 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_switch_machine="$ld_switch_machine $arg" ;;
|
|
163
|
2110 -Xlinker* ) ;;
|
|
|
2111 * ) ld_switch_machine="$ld_switch_machine -Xlinker $arg" ;;
|
|
|
2112 esac
|
|
|
2113 done
|
|
|
2114 LDFLAGS_tmp="$LDFLAGS"; LDFLAGS=""
|
|
|
2115 for arg in $LDFLAGS_tmp; do
|
|
|
2116 case "$arg" in
|
|
209
|
2117 -L* | -l* | -R* | -u* | -Wl* | -f*) LDFLAGS="$LDFLAGS $arg" ;;
|
|
163
|
2118 -Xlinker* ) ;;
|
|
|
2119 * ) LDFLAGS="$LDFLAGS -Xlinker $arg" ;;
|
|
|
2120 esac
|
|
|
2121 done
|
|
173
|
2122 ld_call_shared_tmp="$ld_call_shared"; ld_call_shared=""
|
|
|
2123 for arg in $ld_call_shared_tmp; do
|
|
|
2124 case "$arg" in
|
|
209
|
2125 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_call_shared="$ld_call_shared $arg" ;;
|
|
173
|
2126 -Xlinker* ) ;;
|
|
|
2127 * ) ld_call_shared="$ld_call_shared -Xlinker $arg" ;;
|
|
|
2128 esac
|
|
|
2129 done
|
|
163
|
2130 fi
|
|
|
2131
|
|
|
2132 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
|
|
|
2133 echo " xemacs will be linked with \"$objects_machine\""
|
|
|
2134 fi
|
|
|
2135 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
|
|
|
2136 echo " xemacs will be linked with \"$objects_system\""
|
|
|
2137 fi
|
|
|
2138 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
|
|
151
|
2139 echo " xemacs will be linked with \"$unexec\""
|
|
|
2140 fi
|
|
|
2141
|
|
163
|
2142 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
|
|
217
|
2143 echo "configure:2144: checking for dynodump" >&5
|
|
163
|
2144 if test "$unexec" != "unexsol2.o"; then
|
|
|
2145 echo "$ac_t""no" 1>&6
|
|
|
2146 else
|
|
|
2147 echo "$ac_t""yes" 1>&6
|
|
|
2148 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2149 Defining DYNODUMP
|
|
|
2150 EOF
|
|
|
2151 cat >> confdefs.h <<\EOF
|
|
|
2152 #define DYNODUMP 1
|
|
|
2153 EOF
|
|
|
2154 }
|
|
|
2155
|
|
|
2156 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
|
|
175
|
2157 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
|
|
163
|
2158 case "$machine" in
|
|
|
2159 sparc ) dynodump_arch=sparc ;;
|
|
|
2160 *86* ) dynodump_arch=i386 ;;
|
|
|
2161 powerpc ) dynodump_arch=ppc ;;
|
|
|
2162 esac
|
|
|
2163 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi
|
|
|
2164 fi
|
|
|
2165
|
|
|
2166
|
|
207
|
2167 if test "$unexec" = "unexaix.o"; then
|
|
219
|
2168 if test "$dynamic" = "no"; then
|
|
207
|
2169 start_flags="-Wl,-bnso,-bnodelcsect"
|
|
209
|
2170 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
|
|
207
|
2171 for f in "/lib/syscalls.exp" "$srcdir/src/m/ibmrs6000.inp"; do
|
|
|
2172 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
|
|
|
2173 done
|
|
|
2174 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
|
|
|
2175 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
|
|
|
2176 done
|
|
219
|
2177 fi
|
|
207
|
2178 elif test -n "$ld_text_start_addr"; then
|
|
|
2179 start_flags="-T $ld_text_start_addr -e __start"
|
|
|
2180 fi
|
|
|
2181
|
|
|
2182
|
|
|
2183
|
|
163
|
2184
|
|
|
2185 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
|
|
|
2186 test -z "$linker" && linker='$(CC) -nostdlib'
|
|
175
|
2187 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
|
|
163
|
2188 fi
|
|
|
2189 test "$GCC" != "yes" && lib_gcc=
|
|
|
2190
|
|
|
2191
|
|
|
2192
|
|
151
|
2193
|
|
209
|
2194
|
|
|
2195 if test -n "$site_prefixes"; then
|
|
|
2196 for arg in $site_prefixes; do
|
|
|
2197 case "$arg" in
|
|
|
2198 -* ) ;;
|
|
|
2199 * ) argi="-I${arg}/include" ; argl="-L${arg}/lib" ;;
|
|
|
2200 esac
|
|
|
2201 c_switch_site="$c_switch_site $argi" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argi\" to \$c_switch_site"; fi
|
|
|
2202 ld_switch_site="$ld_switch_site $argl" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argl\" to \$ld_switch_site"; fi
|
|
|
2203 done
|
|
|
2204 fi
|
|
|
2205
|
|
151
|
2206 if test -n "$site_libraries"; then
|
|
|
2207 for arg in $site_libraries; do
|
|
|
2208 case "$arg" in -* ) ;; * ) arg="-L${arg}" ;; esac
|
|
|
2209 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
|
|
|
2210 done
|
|
|
2211 fi
|
|
|
2212
|
|
|
2213 if test -n "$site_includes" ; then
|
|
|
2214 for arg in $site_includes; do
|
|
|
2215 case "$arg" in -* ) ;; * ) arg="-I${arg}" ;; esac
|
|
|
2216 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
|
|
|
2217 done
|
|
|
2218 fi
|
|
|
2219
|
|
157
|
2220
|
|
151
|
2221 for dir in "/usr/ccs/lib"; do
|
|
|
2222 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi
|
|
|
2223 done
|
|
|
2224
|
|
|
2225 if test -n "$site_runtime_libraries" ; then
|
|
165
|
2226 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
|
|
151
|
2227 export LD_RUN_PATH
|
|
|
2228 fi
|
|
|
2229
|
|
|
2230
|
|
|
2231 if test "$dynamic" = "no"; then add_runtime_path=no
|
|
|
2232 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
|
|
163
|
2233 else case "$opsys" in
|
|
|
2234 sol2 | irix* | *bsd* ) add_runtime_path=yes ;;
|
|
151
|
2235 * ) add_runtime_path=no ;;
|
|
|
2236 esac
|
|
|
2237 fi
|
|
|
2238
|
|
|
2239 if test "$add_runtime_path" = "yes"; then
|
|
|
2240 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
|
|
219
|
2241 echo "configure:2242: checking "for runtime libraries flag"" >&5
|
|
151
|
2242 dash_r=""
|
|
|
2243 for try_dash_r in "-R" "-R " "-rpath "; do
|
|
|
2244 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
|
|
|
2245 cat > conftest.$ac_ext <<EOF
|
|
219
|
2246 #line 2247 "configure"
|
|
|
2247 #include "confdefs.h"
|
|
|
2248
|
|
|
2249 int main() {
|
|
|
2250
|
|
|
2251 ; return 0; }
|
|
|
2252 EOF
|
|
|
2253 if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
2254 rm -rf conftest*
|
|
|
2255 dash_r="$try_dash_r"
|
|
|
2256 else
|
|
|
2257 echo "configure: failed program was:" >&5
|
|
|
2258 cat conftest.$ac_ext >&5
|
|
|
2259 fi
|
|
|
2260 rm -f conftest*
|
|
|
2261 xe_check_libs=""
|
|
|
2262 test -n "$dash_r" && break
|
|
|
2263 done
|
|
|
2264 if test -n "$dash_r";
|
|
|
2265 then echo "$ac_t"""\"${dash_r}\""" 1>&6
|
|
|
2266 else echo "$ac_t""NONE" 1>&6
|
|
|
2267 fi
|
|
|
2268 fi
|
|
|
2269
|
|
163
|
2270 xe_add_unique_runpath_dir='
|
|
|
2271 xe_add_p=yes
|
|
|
2272 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
|
|
|
2273 done
|
|
|
2274 if test "$xe_add_p" = "yes"; then
|
|
|
2275 test -n "$runpath" && runpath="${runpath}:"
|
|
|
2276 runpath="${runpath}${xe_runpath_dir}"
|
|
|
2277 runpath_dirs="$runpath_dirs $xe_runpath_dir"
|
|
|
2278 fi'
|
|
|
2279
|
|
|
2280
|
|
151
|
2281
|
|
155
|
2282
|
|
151
|
2283 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
|
165
|
2284 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
|
2285 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
151
|
2286
|
|
163
|
2287 runpath="" runpath_dirs=""
|
|
155
|
2288 if test -n "$LD_RUN_PATH"; then
|
|
151
|
2289 runpath="$LD_RUN_PATH"
|
|
155
|
2290 elif test "$GCC" = "yes"; then
|
|
163
|
2291 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
|
2292 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
|
155
|
2293 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
|
2294 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
|
2295 case "$arg" in P,* | -L* | -R* )
|
|
159
|
2296 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
|
163
|
2297 {
|
|
155
|
2298 xe_runpath_dir="$dir"
|
|
163
|
2299 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
2300 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
2301 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
2302 eval "$xe_add_unique_runpath_dir"
|
|
|
2303 }
|
|
155
|
2304 done ;;
|
|
|
2305 esac
|
|
|
2306 done
|
|
163
|
2307 ld_switch_run="$ld_switch_run_save"
|
|
155
|
2308 rm -f conftest*
|
|
151
|
2309 else
|
|
155
|
2310 for arg in $ld_switch_site $ld_switch_x_site; do
|
|
163
|
2311 case "$arg" in -L*) {
|
|
159
|
2312 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
|
163
|
2313 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
2314 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
2315 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
2316 eval "$xe_add_unique_runpath_dir"
|
|
|
2317 };; esac
|
|
151
|
2318 done
|
|
163
|
2319 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
|
2320 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
|
2321 eval "$xe_add_unique_runpath_dir";
|
|
|
2322 fi
|
|
155
|
2323 fi
|
|
151
|
2324 if test -n "$runpath"; then
|
|
|
2325 ld_switch_run="${dash_r}${runpath}"
|
|
|
2326 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
|
2327 fi
|
|
|
2328 fi
|
|
|
2329
|
|
|
2330
|
|
149
|
2331
|
|
|
2332 GNU_MALLOC=yes
|
|
|
2333 if test "$system_malloc" = "yes" ; then
|
|
|
2334 GNU_MALLOC=no
|
|
|
2335 GNU_MALLOC_reason="
|
|
177
|
2336 (The GNU allocators don't work with this system configuration)."
|
|
181
|
2337 elif test "$with_system_malloc" = "yes" ; then
|
|
149
|
2338 GNU_MALLOC=no
|
|
|
2339 GNU_MALLOC_reason="
|
|
177
|
2340 (User chose not to use GNU allocators)."
|
|
181
|
2341 elif test "$with_debug_malloc" = "yes" ; then
|
|
177
|
2342 GNU_MALLOC=no
|
|
|
2343 GNU_MALLOC_reason="
|
|
|
2344 (User chose to use Debugging Malloc)."
|
|
149
|
2345 fi
|
|
|
2346
|
|
|
2347
|
|
|
2348 # Extract the first word of "ranlib", so it can be a program name with args.
|
|
|
2349 set dummy ranlib; ac_word=$2
|
|
|
2350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
219
|
2351 echo "configure:2352: checking for $ac_word" >&5
|
|
149
|
2352
|
|
|
2353 if test -n "$RANLIB"; then
|
|
|
2354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
|
2355 else
|
|
0
|
2356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
2357 for ac_dir in $PATH; do
|
|
|
2358 test -z "$ac_dir" && ac_dir=.
|
|
|
2359 if test -f $ac_dir/$ac_word; then
|
|
149
|
2360 ac_cv_prog_RANLIB="ranlib"
|
|
0
|
2361 break
|
|
|
2362 fi
|
|
|
2363 done
|
|
|
2364 IFS="$ac_save_ifs"
|
|
149
|
2365 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
|
2366 fi
|
|
|
2367 RANLIB="$ac_cv_prog_RANLIB"
|
|
|
2368 if test -n "$RANLIB"; then
|
|
|
2369 echo "$ac_t""$RANLIB" 1>&6
|
|
|
2370 else
|
|
|
2371 echo "$ac_t""no" 1>&6
|
|
|
2372 fi
|
|
|
2373
|
|
|
2374 ac_aux_dir=
|
|
|
2375 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|
|
2376 if test -f $ac_dir/install-sh; then
|
|
|
2377 ac_aux_dir=$ac_dir
|
|
|
2378 ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
|
2379 break
|
|
|
2380 elif test -f $ac_dir/install.sh; then
|
|
|
2381 ac_aux_dir=$ac_dir
|
|
|
2382 ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
|
2383 break
|
|
|
2384 fi
|
|
|
2385 done
|
|
|
2386 if test -z "$ac_aux_dir"; then
|
|
|
2387 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|
|
2388 fi
|
|
|
2389 ac_config_guess=$ac_aux_dir/config.guess
|
|
|
2390 ac_config_sub=$ac_aux_dir/config.sub
|
|
|
2391 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|
|
2392
|
|
|
2393 # Find a good install program. We prefer a C program (faster),
|
|
|
2394 # so one script is as good as another. But avoid the broken or
|
|
|
2395 # incompatible versions:
|
|
|
2396 # SysV /etc/install, /usr/sbin/install
|
|
|
2397 # SunOS /usr/etc/install
|
|
|
2398 # IRIX /sbin/install
|
|
|
2399 # AIX /bin/install
|
|
|
2400 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
|
2401 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
|
2402 # ./install, which can be erroneously created by make from ./install.sh.
|
|
|
2403 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|
219
|
2404 echo "configure:2405: checking for a BSD compatible install" >&5
|
|
149
|
2405 if test -z "$INSTALL"; then
|
|
|
2406
|
|
|
2407 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
|
|
0
|
2408 for ac_dir in $PATH; do
|
|
149
|
2409 # Account for people who put trailing slashes in PATH elements.
|
|
|
2410 case "$ac_dir/" in
|
|
|
2411 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|
0
|
2412 *)
|
|
|
2413 # OSF1 and SCO ODT 3.0 have their own names for install.
|
|
149
|
2414 for ac_prog in ginstall installbsd scoinst install; do
|
|
0
|
2415 if test -f $ac_dir/$ac_prog; then
|
|
|
2416 if test $ac_prog = install &&
|
|
|
2417 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
|
2418 # AIX install. It has an incompatible calling convention.
|
|
|
2419 # OSF/1 installbsd also uses dspmsg, but is usable.
|
|
|
2420 :
|
|
|
2421 else
|
|
149
|
2422 ac_cv_path_install="$ac_dir/$ac_prog -c"
|
|
0
|
2423 break 2
|
|
|
2424 fi
|
|
|
2425 fi
|
|
|
2426 done
|
|
|
2427 ;;
|
|
|
2428 esac
|
|
|
2429 done
|
|
149
|
2430 IFS="$ac_save_IFS"
|
|
|
2431
|
|
|
2432 if test "${ac_cv_path_install+set}" = set; then
|
|
|
2433 INSTALL="$ac_cv_path_install"
|
|
|
2434 else
|
|
|
2435 # As a last resort, use the slow shell script. We don't cache a
|
|
|
2436 # path for INSTALL within a source directory, because that will
|
|
|
2437 # break other packages using the cache if that directory is
|
|
|
2438 # removed, or if the path is relative.
|
|
|
2439 INSTALL="$ac_install_sh"
|
|
|
2440 fi
|
|
|
2441 fi
|
|
|
2442 echo "$ac_t""$INSTALL" 1>&6
|
|
|
2443
|
|
|
2444 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|
0
|
2445 # It thinks the first close brace ends the variable substitution.
|
|
|
2446 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
|
2447
|
|
|
2448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
|
2449
|
|
|
2450 for ac_prog in 'bison -y' byacc
|
|
|
2451 do
|
|
149
|
2452 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
2453 set dummy $ac_prog; ac_word=$2
|
|
|
2454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
219
|
2455 echo "configure:2456: checking for $ac_word" >&5
|
|
149
|
2456
|
|
|
2457 if test -n "$YACC"; then
|
|
|
2458 ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
|
|
2459 else
|
|
0
|
2460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
2461 for ac_dir in $PATH; do
|
|
|
2462 test -z "$ac_dir" && ac_dir=.
|
|
|
2463 if test -f $ac_dir/$ac_word; then
|
|
149
|
2464 ac_cv_prog_YACC="$ac_prog"
|
|
0
|
2465 break
|
|
|
2466 fi
|
|
|
2467 done
|
|
|
2468 IFS="$ac_save_ifs"
|
|
|
2469 fi
|
|
149
|
2470 YACC="$ac_cv_prog_YACC"
|
|
|
2471 if test -n "$YACC"; then
|
|
|
2472 echo "$ac_t""$YACC" 1>&6
|
|
|
2473 else
|
|
|
2474 echo "$ac_t""no" 1>&6
|
|
|
2475 fi
|
|
0
|
2476
|
|
|
2477 test -n "$YACC" && break
|
|
|
2478 done
|
|
|
2479 test -n "$YACC" || YACC="yacc"
|
|
|
2480
|
|
|
2481
|
|
120
|
2482 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
|
|
|
2483 do
|
|
149
|
2484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
2485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
219
|
2486 echo "configure:2487: checking for $ac_hdr" >&5
|
|
|
2487
|
|
|
2488 cat > conftest.$ac_ext <<EOF
|
|
|
2489 #line 2490 "configure"
|
|
149
|
2490 #include "confdefs.h"
|
|
|
2491 #include <$ac_hdr>
|
|
|
2492 EOF
|
|
|
2493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
2494 { (eval echo configure:2495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
2495 ac_err=`grep -v '^ *+' conftest.out`
|
|
120
|
2496 if test -z "$ac_err"; then
|
|
|
2497 rm -rf conftest*
|
|
149
|
2498 eval "ac_cv_header_$ac_safe=yes"
|
|
|
2499 else
|
|
|
2500 echo "$ac_err" >&5
|
|
|
2501 echo "configure: failed program was:" >&5
|
|
|
2502 cat conftest.$ac_ext >&5
|
|
|
2503 rm -rf conftest*
|
|
|
2504 eval "ac_cv_header_$ac_safe=no"
|
|
|
2505 fi
|
|
|
2506 rm -f conftest*
|
|
|
2507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
2508 echo "$ac_t""yes" 1>&6
|
|
|
2509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
2510 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
2511 Defining $ac_tr_hdr
|
|
|
2512 EOF
|
|
|
2513 cat >> confdefs.h <<EOF
|
|
|
2514 #define $ac_tr_hdr 1
|
|
|
2515 EOF
|
|
|
2516 }
|
|
|
2517
|
|
|
2518 else
|
|
|
2519 echo "$ac_t""no" 1>&6
|
|
|
2520 fi
|
|
120
|
2521 done
|
|
|
2522
|
|
169
|
2523 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
|
|
120
|
2524 do
|
|
149
|
2525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
2526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
219
|
2527 echo "configure:2528: checking for $ac_hdr" >&5
|
|
|
2528
|
|
|
2529 cat > conftest.$ac_ext <<EOF
|
|
|
2530 #line 2531 "configure"
|
|
149
|
2531 #include "confdefs.h"
|
|
|
2532 #include <$ac_hdr>
|
|
|
2533 EOF
|
|
|
2534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
2535 { (eval echo configure:2536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
2536 ac_err=`grep -v '^ *+' conftest.out`
|
|
120
|
2537 if test -z "$ac_err"; then
|
|
|
2538 rm -rf conftest*
|
|
149
|
2539 eval "ac_cv_header_$ac_safe=yes"
|
|
|
2540 else
|
|
|
2541 echo "$ac_err" >&5
|
|
|
2542 echo "configure: failed program was:" >&5
|
|
|
2543 cat conftest.$ac_ext >&5
|
|
|
2544 rm -rf conftest*
|
|
|
2545 eval "ac_cv_header_$ac_safe=no"
|
|
|
2546 fi
|
|
|
2547 rm -f conftest*
|
|
|
2548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
2549 echo "$ac_t""yes" 1>&6
|
|
|
2550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
2551 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
2552 Defining $ac_tr_hdr
|
|
|
2553 EOF
|
|
|
2554 cat >> confdefs.h <<EOF
|
|
|
2555 #define $ac_tr_hdr 1
|
|
|
2556 EOF
|
|
|
2557 }
|
|
|
2558
|
|
|
2559 else
|
|
|
2560 echo "$ac_t""no" 1>&6
|
|
|
2561 fi
|
|
120
|
2562 done
|
|
|
2563
|
|
157
|
2564 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h
|
|
0
|
2565 do
|
|
149
|
2566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
2567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
219
|
2568 echo "configure:2569: checking for $ac_hdr" >&5
|
|
|
2569
|
|
|
2570 cat > conftest.$ac_ext <<EOF
|
|
|
2571 #line 2572 "configure"
|
|
149
|
2572 #include "confdefs.h"
|
|
|
2573 #include <$ac_hdr>
|
|
|
2574 EOF
|
|
|
2575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
2576 { (eval echo configure:2577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
2577 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
2578 if test -z "$ac_err"; then
|
|
|
2579 rm -rf conftest*
|
|
149
|
2580 eval "ac_cv_header_$ac_safe=yes"
|
|
|
2581 else
|
|
|
2582 echo "$ac_err" >&5
|
|
|
2583 echo "configure: failed program was:" >&5
|
|
|
2584 cat conftest.$ac_ext >&5
|
|
|
2585 rm -rf conftest*
|
|
|
2586 eval "ac_cv_header_$ac_safe=no"
|
|
|
2587 fi
|
|
|
2588 rm -f conftest*
|
|
|
2589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
2590 echo "$ac_t""yes" 1>&6
|
|
|
2591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
2592 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
2593 Defining $ac_tr_hdr
|
|
|
2594 EOF
|
|
|
2595 cat >> confdefs.h <<EOF
|
|
|
2596 #define $ac_tr_hdr 1
|
|
|
2597 EOF
|
|
|
2598 }
|
|
|
2599
|
|
|
2600 else
|
|
|
2601 echo "$ac_t""no" 1>&6
|
|
|
2602 fi
|
|
0
|
2603 done
|
|
|
2604
|
|
155
|
2605 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
|
219
|
2606 echo "configure:2607: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
|
2607
|
|
|
2608 cat > conftest.$ac_ext <<EOF
|
|
|
2609 #line 2610 "configure"
|
|
155
|
2610 #include "confdefs.h"
|
|
|
2611 #include <sys/types.h>
|
|
|
2612 #include <sys/wait.h>
|
|
|
2613 #ifndef WEXITSTATUS
|
|
|
2614 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|
|
2615 #endif
|
|
|
2616 #ifndef WIFEXITED
|
|
|
2617 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|
|
2618 #endif
|
|
|
2619 int main() {
|
|
|
2620 int s;
|
|
|
2621 wait (&s);
|
|
|
2622 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
|
2623 ; return 0; }
|
|
|
2624 EOF
|
|
219
|
2625 if { (eval echo configure:2626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
155
|
2626 rm -rf conftest*
|
|
|
2627 ac_cv_header_sys_wait_h=yes
|
|
|
2628 else
|
|
|
2629 echo "configure: failed program was:" >&5
|
|
|
2630 cat conftest.$ac_ext >&5
|
|
|
2631 rm -rf conftest*
|
|
|
2632 ac_cv_header_sys_wait_h=no
|
|
|
2633 fi
|
|
|
2634 rm -f conftest*
|
|
|
2635
|
|
|
2636 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
|
2637 if test $ac_cv_header_sys_wait_h = yes; then
|
|
|
2638 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2639 Defining HAVE_SYS_WAIT_H
|
|
|
2640 EOF
|
|
|
2641 cat >> confdefs.h <<\EOF
|
|
|
2642 #define HAVE_SYS_WAIT_H 1
|
|
|
2643 EOF
|
|
|
2644 }
|
|
|
2645
|
|
|
2646 fi
|
|
|
2647
|
|
149
|
2648 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|
219
|
2649 echo "configure:2650: checking for ANSI C header files" >&5
|
|
|
2650
|
|
|
2651 cat > conftest.$ac_ext <<EOF
|
|
|
2652 #line 2653 "configure"
|
|
0
|
2653 #include "confdefs.h"
|
|
|
2654 #include <stdlib.h>
|
|
|
2655 #include <stdarg.h>
|
|
|
2656 #include <string.h>
|
|
|
2657 #include <float.h>
|
|
|
2658 EOF
|
|
149
|
2659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
2660 { (eval echo configure:2661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
2661 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
2662 if test -z "$ac_err"; then
|
|
|
2663 rm -rf conftest*
|
|
149
|
2664 ac_cv_header_stdc=yes
|
|
|
2665 else
|
|
|
2666 echo "$ac_err" >&5
|
|
|
2667 echo "configure: failed program was:" >&5
|
|
|
2668 cat conftest.$ac_ext >&5
|
|
|
2669 rm -rf conftest*
|
|
|
2670 ac_cv_header_stdc=no
|
|
|
2671 fi
|
|
|
2672 rm -f conftest*
|
|
|
2673
|
|
|
2674 if test $ac_cv_header_stdc = yes; then
|
|
0
|
2675 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
149
|
2676 cat > conftest.$ac_ext <<EOF
|
|
219
|
2677 #line 2678 "configure"
|
|
149
|
2678 #include "confdefs.h"
|
|
|
2679 #include <string.h>
|
|
|
2680 EOF
|
|
|
2681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
2682 egrep "memchr" >/dev/null 2>&1; then
|
|
|
2683 :
|
|
|
2684 else
|
|
|
2685 rm -rf conftest*
|
|
|
2686 ac_cv_header_stdc=no
|
|
|
2687 fi
|
|
|
2688 rm -f conftest*
|
|
|
2689
|
|
|
2690 fi
|
|
|
2691
|
|
|
2692 if test $ac_cv_header_stdc = yes; then
|
|
|
2693 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
|
2694 cat > conftest.$ac_ext <<EOF
|
|
219
|
2695 #line 2696 "configure"
|
|
149
|
2696 #include "confdefs.h"
|
|
|
2697 #include <stdlib.h>
|
|
|
2698 EOF
|
|
|
2699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
2700 egrep "free" >/dev/null 2>&1; then
|
|
|
2701 :
|
|
|
2702 else
|
|
|
2703 rm -rf conftest*
|
|
|
2704 ac_cv_header_stdc=no
|
|
|
2705 fi
|
|
|
2706 rm -f conftest*
|
|
|
2707
|
|
|
2708 fi
|
|
|
2709
|
|
|
2710 if test $ac_cv_header_stdc = yes; then
|
|
|
2711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
|
2712 cat > conftest.$ac_ext <<EOF
|
|
219
|
2713 #line 2714 "configure"
|
|
0
|
2714 #include "confdefs.h"
|
|
|
2715 #include <ctype.h>
|
|
|
2716 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
|
2717 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
149
|
2718 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
0
|
2719 int main () { int i; for (i = 0; i < 256; i++)
|
|
|
2720 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
|
2721 exit (0); }
|
|
|
2722
|
|
|
2723 EOF
|
|
219
|
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
2725 then
|
|
|
2726 :
|
|
|
2727 else
|
|
|
2728 echo "configure: failed program was:" >&5
|
|
|
2729 cat conftest.$ac_ext >&5
|
|
|
2730 rm -fr conftest*
|
|
|
2731 ac_cv_header_stdc=no
|
|
0
|
2732 fi
|
|
|
2733 rm -fr conftest*
|
|
149
|
2734 fi
|
|
|
2735
|
|
|
2736 echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
|
2737 if test $ac_cv_header_stdc = yes; then
|
|
|
2738 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2739 Defining STDC_HEADERS
|
|
|
2740 EOF
|
|
|
2741 cat >> confdefs.h <<\EOF
|
|
|
2742 #define STDC_HEADERS 1
|
|
|
2743 EOF
|
|
|
2744 }
|
|
|
2745
|
|
|
2746 fi
|
|
|
2747
|
|
|
2748 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
|
219
|
2749 echo "configure:2750: checking whether time.h and sys/time.h may both be included" >&5
|
|
|
2750
|
|
|
2751 cat > conftest.$ac_ext <<EOF
|
|
|
2752 #line 2753 "configure"
|
|
0
|
2753 #include "confdefs.h"
|
|
|
2754 #include <sys/types.h>
|
|
|
2755 #include <sys/time.h>
|
|
|
2756 #include <time.h>
|
|
149
|
2757 int main() {
|
|
|
2758 struct tm *tp;
|
|
|
2759 ; return 0; }
|
|
|
2760 EOF
|
|
219
|
2761 if { (eval echo configure:2762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
2762 rm -rf conftest*
|
|
|
2763 ac_cv_header_time=yes
|
|
|
2764 else
|
|
|
2765 echo "configure: failed program was:" >&5
|
|
|
2766 cat conftest.$ac_ext >&5
|
|
|
2767 rm -rf conftest*
|
|
|
2768 ac_cv_header_time=no
|
|
|
2769 fi
|
|
|
2770 rm -f conftest*
|
|
|
2771
|
|
|
2772 echo "$ac_t""$ac_cv_header_time" 1>&6
|
|
|
2773 if test $ac_cv_header_time = yes; then
|
|
|
2774 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2775 Defining TIME_WITH_SYS_TIME
|
|
|
2776 EOF
|
|
|
2777 cat >> confdefs.h <<\EOF
|
|
|
2778 #define TIME_WITH_SYS_TIME 1
|
|
|
2779 EOF
|
|
|
2780 }
|
|
|
2781
|
|
|
2782 fi
|
|
|
2783
|
|
|
2784 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
|
|
219
|
2785 echo "configure:2786: checking for sys_siglist declaration in signal.h or unistd.h" >&5
|
|
|
2786
|
|
|
2787 cat > conftest.$ac_ext <<EOF
|
|
|
2788 #line 2789 "configure"
|
|
149
|
2789 #include "confdefs.h"
|
|
|
2790 #include <sys/types.h>
|
|
0
|
2791 #include <signal.h>
|
|
149
|
2792 /* NetBSD declares sys_siglist in unistd.h. */
|
|
0
|
2793 #ifdef HAVE_UNISTD_H
|
|
|
2794 #include <unistd.h>
|
|
|
2795 #endif
|
|
149
|
2796 int main() {
|
|
|
2797 char *msg = *(sys_siglist + 1);
|
|
|
2798 ; return 0; }
|
|
|
2799 EOF
|
|
219
|
2800 if { (eval echo configure:2801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
2801 rm -rf conftest*
|
|
|
2802 ac_cv_decl_sys_siglist=yes
|
|
|
2803 else
|
|
|
2804 echo "configure: failed program was:" >&5
|
|
|
2805 cat conftest.$ac_ext >&5
|
|
|
2806 rm -rf conftest*
|
|
|
2807 ac_cv_decl_sys_siglist=no
|
|
|
2808 fi
|
|
|
2809 rm -f conftest*
|
|
|
2810
|
|
|
2811 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
|
|
|
2812 if test $ac_cv_decl_sys_siglist = yes; then
|
|
|
2813 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2814 Defining SYS_SIGLIST_DECLARED
|
|
|
2815 EOF
|
|
|
2816 cat >> confdefs.h <<\EOF
|
|
|
2817 #define SYS_SIGLIST_DECLARED 1
|
|
|
2818 EOF
|
|
|
2819 }
|
|
|
2820
|
|
|
2821 fi
|
|
|
2822
|
|
|
2823
|
|
|
2824 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
|
|
219
|
2825 echo "configure:2826: checking for struct utimbuf" >&5
|
|
|
2826 cat > conftest.$ac_ext <<EOF
|
|
|
2827 #line 2828 "configure"
|
|
0
|
2828 #include "confdefs.h"
|
|
|
2829 #ifdef TIME_WITH_SYS_TIME
|
|
|
2830 #include <sys/time.h>
|
|
|
2831 #include <time.h>
|
|
|
2832 #else
|
|
|
2833 #ifdef HAVE_SYS_TIME_H
|
|
|
2834 #include <sys/time.h>
|
|
|
2835 #else
|
|
|
2836 #include <time.h>
|
|
|
2837 #endif
|
|
|
2838 #endif
|
|
|
2839 #ifdef HAVE_UTIME_H
|
|
|
2840 #include <utime.h>
|
|
|
2841 #endif
|
|
149
|
2842 int main() {
|
|
|
2843 static struct utimbuf x; x.actime = x.modtime;
|
|
|
2844 ; return 0; }
|
|
|
2845 EOF
|
|
219
|
2846 if { (eval echo configure:2847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
2847 rm -rf conftest*
|
|
|
2848 echo "$ac_t""yes" 1>&6
|
|
|
2849 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2850 Defining HAVE_STRUCT_UTIMBUF
|
|
|
2851 EOF
|
|
|
2852 cat >> confdefs.h <<\EOF
|
|
|
2853 #define HAVE_STRUCT_UTIMBUF 1
|
|
|
2854 EOF
|
|
|
2855 }
|
|
|
2856
|
|
|
2857 else
|
|
|
2858 echo "configure: failed program was:" >&5
|
|
|
2859 cat conftest.$ac_ext >&5
|
|
|
2860 rm -rf conftest*
|
|
|
2861 echo "$ac_t""no" 1>&6
|
|
|
2862 fi
|
|
|
2863 rm -f conftest*
|
|
|
2864
|
|
|
2865 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
|
219
|
2866 echo "configure:2867: checking return type of signal handlers" >&5
|
|
|
2867
|
|
|
2868 cat > conftest.$ac_ext <<EOF
|
|
|
2869 #line 2870 "configure"
|
|
0
|
2870 #include "confdefs.h"
|
|
|
2871 #include <sys/types.h>
|
|
|
2872 #include <signal.h>
|
|
|
2873 #ifdef signal
|
|
|
2874 #undef signal
|
|
|
2875 #endif
|
|
149
|
2876 #ifdef __cplusplus
|
|
|
2877 extern "C" void (*signal (int, void (*)(int)))(int);
|
|
|
2878 #else
|
|
|
2879 void (*signal ()) ();
|
|
|
2880 #endif
|
|
|
2881
|
|
|
2882 int main() {
|
|
|
2883 int i;
|
|
|
2884 ; return 0; }
|
|
|
2885 EOF
|
|
219
|
2886 if { (eval echo configure:2887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
2887 rm -rf conftest*
|
|
|
2888 ac_cv_type_signal=void
|
|
|
2889 else
|
|
|
2890 echo "configure: failed program was:" >&5
|
|
|
2891 cat conftest.$ac_ext >&5
|
|
|
2892 rm -rf conftest*
|
|
|
2893 ac_cv_type_signal=int
|
|
|
2894 fi
|
|
|
2895 rm -f conftest*
|
|
|
2896
|
|
|
2897 echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
|
2898 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
2899 Defining RETSIGTYPE = $ac_cv_type_signal
|
|
|
2900 EOF
|
|
|
2901 cat >> confdefs.h <<EOF
|
|
|
2902 #define RETSIGTYPE $ac_cv_type_signal
|
|
|
2903 EOF
|
|
|
2904 }
|
|
|
2905
|
|
|
2906
|
|
163
|
2907 echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|
219
|
2908 echo "configure:2909: checking for size_t" >&5
|
|
|
2909
|
|
|
2910 cat > conftest.$ac_ext <<EOF
|
|
|
2911 #line 2912 "configure"
|
|
163
|
2912 #include "confdefs.h"
|
|
|
2913 #include <sys/types.h>
|
|
|
2914 #if STDC_HEADERS
|
|
|
2915 #include <stdlib.h>
|
|
|
2916 #include <stddef.h>
|
|
|
2917 #endif
|
|
|
2918 EOF
|
|
|
2919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
2920 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
2921 rm -rf conftest*
|
|
|
2922 ac_cv_type_size_t=yes
|
|
|
2923 else
|
|
|
2924 rm -rf conftest*
|
|
|
2925 ac_cv_type_size_t=no
|
|
|
2926 fi
|
|
|
2927 rm -f conftest*
|
|
|
2928
|
|
|
2929 echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
|
2930 if test $ac_cv_type_size_t = no; then
|
|
|
2931 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2932 Defining size_t = unsigned
|
|
|
2933 EOF
|
|
|
2934 cat >> confdefs.h <<\EOF
|
|
|
2935 #define size_t unsigned
|
|
|
2936 EOF
|
|
|
2937 }
|
|
|
2938
|
|
|
2939 fi
|
|
|
2940
|
|
|
2941 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
|
219
|
2942 echo "configure:2943: checking for pid_t" >&5
|
|
|
2943
|
|
|
2944 cat > conftest.$ac_ext <<EOF
|
|
|
2945 #line 2946 "configure"
|
|
163
|
2946 #include "confdefs.h"
|
|
|
2947 #include <sys/types.h>
|
|
|
2948 #if STDC_HEADERS
|
|
|
2949 #include <stdlib.h>
|
|
|
2950 #include <stddef.h>
|
|
|
2951 #endif
|
|
|
2952 EOF
|
|
|
2953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
2954 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
2955 rm -rf conftest*
|
|
|
2956 ac_cv_type_pid_t=yes
|
|
|
2957 else
|
|
|
2958 rm -rf conftest*
|
|
|
2959 ac_cv_type_pid_t=no
|
|
|
2960 fi
|
|
|
2961 rm -f conftest*
|
|
|
2962
|
|
|
2963 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|
|
2964 if test $ac_cv_type_pid_t = no; then
|
|
|
2965 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2966 Defining pid_t = int
|
|
|
2967 EOF
|
|
|
2968 cat >> confdefs.h <<\EOF
|
|
|
2969 #define pid_t int
|
|
|
2970 EOF
|
|
|
2971 }
|
|
|
2972
|
|
|
2973 fi
|
|
|
2974
|
|
|
2975 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
|
|
219
|
2976 echo "configure:2977: checking for uid_t in sys/types.h" >&5
|
|
|
2977
|
|
|
2978 cat > conftest.$ac_ext <<EOF
|
|
|
2979 #line 2980 "configure"
|
|
163
|
2980 #include "confdefs.h"
|
|
|
2981 #include <sys/types.h>
|
|
|
2982 EOF
|
|
|
2983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
2984 egrep "uid_t" >/dev/null 2>&1; then
|
|
|
2985 rm -rf conftest*
|
|
|
2986 ac_cv_type_uid_t=yes
|
|
|
2987 else
|
|
|
2988 rm -rf conftest*
|
|
|
2989 ac_cv_type_uid_t=no
|
|
|
2990 fi
|
|
|
2991 rm -f conftest*
|
|
|
2992
|
|
|
2993
|
|
|
2994 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
|
|
|
2995 if test $ac_cv_type_uid_t = no; then
|
|
|
2996 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2997 Defining uid_t = int
|
|
|
2998 EOF
|
|
|
2999 cat >> confdefs.h <<\EOF
|
|
|
3000 #define uid_t int
|
|
|
3001 EOF
|
|
|
3002 }
|
|
|
3003
|
|
|
3004 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3005 Defining gid_t = int
|
|
|
3006 EOF
|
|
|
3007 cat >> confdefs.h <<\EOF
|
|
|
3008 #define gid_t int
|
|
|
3009 EOF
|
|
|
3010 }
|
|
|
3011
|
|
|
3012 fi
|
|
|
3013
|
|
|
3014 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
|
219
|
3015 echo "configure:3016: checking for mode_t" >&5
|
|
|
3016
|
|
|
3017 cat > conftest.$ac_ext <<EOF
|
|
|
3018 #line 3019 "configure"
|
|
163
|
3019 #include "confdefs.h"
|
|
|
3020 #include <sys/types.h>
|
|
|
3021 #if STDC_HEADERS
|
|
|
3022 #include <stdlib.h>
|
|
|
3023 #include <stddef.h>
|
|
|
3024 #endif
|
|
|
3025 EOF
|
|
|
3026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3027 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
3028 rm -rf conftest*
|
|
|
3029 ac_cv_type_mode_t=yes
|
|
|
3030 else
|
|
|
3031 rm -rf conftest*
|
|
|
3032 ac_cv_type_mode_t=no
|
|
|
3033 fi
|
|
|
3034 rm -f conftest*
|
|
|
3035
|
|
|
3036 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
|
|
3037 if test $ac_cv_type_mode_t = no; then
|
|
|
3038 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3039 Defining mode_t = int
|
|
|
3040 EOF
|
|
|
3041 cat >> confdefs.h <<\EOF
|
|
|
3042 #define mode_t int
|
|
|
3043 EOF
|
|
|
3044 }
|
|
|
3045
|
|
|
3046 fi
|
|
|
3047
|
|
|
3048 echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
|
219
|
3049 echo "configure:3050: checking for off_t" >&5
|
|
|
3050
|
|
|
3051 cat > conftest.$ac_ext <<EOF
|
|
|
3052 #line 3053 "configure"
|
|
163
|
3053 #include "confdefs.h"
|
|
|
3054 #include <sys/types.h>
|
|
|
3055 #if STDC_HEADERS
|
|
|
3056 #include <stdlib.h>
|
|
|
3057 #include <stddef.h>
|
|
|
3058 #endif
|
|
|
3059 EOF
|
|
|
3060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3061 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
3062 rm -rf conftest*
|
|
|
3063 ac_cv_type_off_t=yes
|
|
|
3064 else
|
|
|
3065 rm -rf conftest*
|
|
|
3066 ac_cv_type_off_t=no
|
|
|
3067 fi
|
|
|
3068 rm -f conftest*
|
|
|
3069
|
|
|
3070 echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|
|
3071 if test $ac_cv_type_off_t = no; then
|
|
|
3072 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3073 Defining off_t = long
|
|
|
3074 EOF
|
|
|
3075 cat >> confdefs.h <<\EOF
|
|
|
3076 #define off_t long
|
|
|
3077 EOF
|
|
|
3078 }
|
|
|
3079
|
|
|
3080 fi
|
|
|
3081
|
|
149
|
3082
|
|
|
3083 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
|
|
219
|
3084 echo "configure:3085: checking for struct timeval" >&5
|
|
|
3085 cat > conftest.$ac_ext <<EOF
|
|
|
3086 #line 3087 "configure"
|
|
0
|
3087 #include "confdefs.h"
|
|
|
3088 #ifdef TIME_WITH_SYS_TIME
|
|
|
3089 #include <sys/time.h>
|
|
|
3090 #include <time.h>
|
|
|
3091 #else
|
|
|
3092 #ifdef HAVE_SYS_TIME_H
|
|
|
3093 #include <sys/time.h>
|
|
|
3094 #else
|
|
|
3095 #include <time.h>
|
|
|
3096 #endif
|
|
|
3097 #endif
|
|
149
|
3098 int main() {
|
|
|
3099 static struct timeval x; x.tv_sec = x.tv_usec;
|
|
|
3100 ; return 0; }
|
|
|
3101 EOF
|
|
219
|
3102 if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3103 rm -rf conftest*
|
|
|
3104 echo "$ac_t""yes" 1>&6
|
|
0
|
3105 HAVE_TIMEVAL=yes
|
|
149
|
3106 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3107 Defining HAVE_TIMEVAL
|
|
|
3108 EOF
|
|
|
3109 cat >> confdefs.h <<\EOF
|
|
|
3110 #define HAVE_TIMEVAL 1
|
|
|
3111 EOF
|
|
|
3112 }
|
|
|
3113
|
|
|
3114 else
|
|
|
3115 echo "configure: failed program was:" >&5
|
|
|
3116 cat conftest.$ac_ext >&5
|
|
|
3117 rm -rf conftest*
|
|
|
3118 echo "$ac_t""no" 1>&6
|
|
|
3119 HAVE_TIMEVAL=no
|
|
|
3120 fi
|
|
|
3121 rm -f conftest*
|
|
|
3122
|
|
|
3123 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
|
219
|
3124 echo "configure:3125: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
|
3125
|
|
|
3126 cat > conftest.$ac_ext <<EOF
|
|
|
3127 #line 3128 "configure"
|
|
0
|
3128 #include "confdefs.h"
|
|
|
3129 #include <sys/types.h>
|
|
|
3130 #include <time.h>
|
|
149
|
3131 int main() {
|
|
|
3132 struct tm *tp; tp->tm_sec;
|
|
|
3133 ; return 0; }
|
|
|
3134 EOF
|
|
219
|
3135 if { (eval echo configure:3136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3136 rm -rf conftest*
|
|
|
3137 ac_cv_struct_tm=time.h
|
|
|
3138 else
|
|
|
3139 echo "configure: failed program was:" >&5
|
|
|
3140 cat conftest.$ac_ext >&5
|
|
|
3141 rm -rf conftest*
|
|
|
3142 ac_cv_struct_tm=sys/time.h
|
|
|
3143 fi
|
|
|
3144 rm -f conftest*
|
|
|
3145
|
|
|
3146 echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|
|
3147 if test $ac_cv_struct_tm = sys/time.h; then
|
|
|
3148 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3149 Defining TM_IN_SYS_TIME
|
|
|
3150 EOF
|
|
|
3151 cat >> confdefs.h <<\EOF
|
|
|
3152 #define TM_IN_SYS_TIME 1
|
|
|
3153 EOF
|
|
|
3154 }
|
|
|
3155
|
|
|
3156 fi
|
|
|
3157
|
|
|
3158 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
|
219
|
3159 echo "configure:3160: checking for tm_zone in struct tm" >&5
|
|
|
3160
|
|
|
3161 cat > conftest.$ac_ext <<EOF
|
|
|
3162 #line 3163 "configure"
|
|
149
|
3163 #include "confdefs.h"
|
|
|
3164 #include <sys/types.h>
|
|
|
3165 #include <$ac_cv_struct_tm>
|
|
|
3166 int main() {
|
|
|
3167 struct tm tm; tm.tm_zone;
|
|
|
3168 ; return 0; }
|
|
|
3169 EOF
|
|
219
|
3170 if { (eval echo configure:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3171 rm -rf conftest*
|
|
|
3172 ac_cv_struct_tm_zone=yes
|
|
|
3173 else
|
|
|
3174 echo "configure: failed program was:" >&5
|
|
|
3175 cat conftest.$ac_ext >&5
|
|
|
3176 rm -rf conftest*
|
|
|
3177 ac_cv_struct_tm_zone=no
|
|
|
3178 fi
|
|
|
3179 rm -f conftest*
|
|
|
3180
|
|
|
3181 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
|
|
|
3182 if test "$ac_cv_struct_tm_zone" = yes; then
|
|
|
3183 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3184 Defining HAVE_TM_ZONE
|
|
|
3185 EOF
|
|
|
3186 cat >> confdefs.h <<\EOF
|
|
|
3187 #define HAVE_TM_ZONE 1
|
|
|
3188 EOF
|
|
|
3189 }
|
|
|
3190
|
|
|
3191 else
|
|
|
3192 echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
|
219
|
3193 echo "configure:3194: checking for tzname" >&5
|
|
|
3194
|
|
|
3195 cat > conftest.$ac_ext <<EOF
|
|
|
3196 #line 3197 "configure"
|
|
0
|
3197 #include "confdefs.h"
|
|
|
3198 #include <time.h>
|
|
|
3199 #ifndef tzname /* For SGI. */
|
|
149
|
3200 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
|
0
|
3201 #endif
|
|
149
|
3202 int main() {
|
|
|
3203 atoi(*tzname);
|
|
|
3204 ; return 0; }
|
|
|
3205 EOF
|
|
219
|
3206 if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
3207 rm -rf conftest*
|
|
|
3208 ac_cv_var_tzname=yes
|
|
|
3209 else
|
|
|
3210 echo "configure: failed program was:" >&5
|
|
|
3211 cat conftest.$ac_ext >&5
|
|
|
3212 rm -rf conftest*
|
|
|
3213 ac_cv_var_tzname=no
|
|
|
3214 fi
|
|
|
3215 rm -f conftest*
|
|
|
3216
|
|
|
3217 echo "$ac_t""$ac_cv_var_tzname" 1>&6
|
|
|
3218 if test $ac_cv_var_tzname = yes; then
|
|
|
3219 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3220 Defining HAVE_TZNAME
|
|
|
3221 EOF
|
|
|
3222 cat >> confdefs.h <<\EOF
|
|
|
3223 #define HAVE_TZNAME 1
|
|
|
3224 EOF
|
|
|
3225 }
|
|
|
3226
|
|
|
3227 fi
|
|
|
3228 fi
|
|
|
3229
|
|
|
3230
|
|
|
3231 echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|
219
|
3232 echo "configure:3233: checking for working const" >&5
|
|
|
3233
|
|
|
3234 cat > conftest.$ac_ext <<EOF
|
|
|
3235 #line 3236 "configure"
|
|
149
|
3236 #include "confdefs.h"
|
|
|
3237
|
|
|
3238 int main() {
|
|
|
3239
|
|
|
3240 /* Ultrix mips cc rejects this. */
|
|
0
|
3241 typedef int charset[2]; const charset x;
|
|
|
3242 /* SunOS 4.1.1 cc rejects this. */
|
|
|
3243 char const *const *ccp;
|
|
|
3244 char **p;
|
|
149
|
3245 /* NEC SVR4.0.2 mips cc rejects this. */
|
|
|
3246 struct point {int x, y;};
|
|
|
3247 static struct point const zero = {0,0};
|
|
0
|
3248 /* AIX XL C 1.02.0.0 rejects this.
|
|
|
3249 It does not let you subtract one const X* pointer from another in an arm
|
|
|
3250 of an if-expression whose if-part is not a constant expression */
|
|
|
3251 const char *g = "string";
|
|
|
3252 ccp = &g + (g ? g-g : 0);
|
|
|
3253 /* HPUX 7.0 cc rejects these. */
|
|
|
3254 ++ccp;
|
|
|
3255 p = (char**) ccp;
|
|
|
3256 ccp = (char const *const *) p;
|
|
|
3257 { /* SCO 3.2v4 cc rejects this. */
|
|
|
3258 char *t;
|
|
|
3259 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
|
3260
|
|
|
3261 *t++ = 0;
|
|
|
3262 }
|
|
|
3263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
149
|
3264 int x[] = {25, 17};
|
|
0
|
3265 const int *foo = &x[0];
|
|
|
3266 ++foo;
|
|
|
3267 }
|
|
|
3268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
|
3269 typedef const int *iptr;
|
|
|
3270 iptr p = 0;
|
|
|
3271 ++p;
|
|
|
3272 }
|
|
|
3273 { /* AIX XL C 1.02.0.0 rejects this saying
|
|
|
3274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
|
3275 struct s { int j; const int *ap[3]; };
|
|
|
3276 struct s *b; b->j = 5;
|
|
|
3277 }
|
|
|
3278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
|
3279 const int foo = 10;
|
|
149
|
3280 }
|
|
|
3281
|
|
|
3282 ; return 0; }
|
|
|
3283 EOF
|
|
219
|
3284 if { (eval echo configure:3285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3285 rm -rf conftest*
|
|
|
3286 ac_cv_c_const=yes
|
|
|
3287 else
|
|
|
3288 echo "configure: failed program was:" >&5
|
|
|
3289 cat conftest.$ac_ext >&5
|
|
|
3290 rm -rf conftest*
|
|
|
3291 ac_cv_c_const=no
|
|
|
3292 fi
|
|
|
3293 rm -f conftest*
|
|
|
3294
|
|
|
3295 echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
|
3296 if test $ac_cv_c_const = no; then
|
|
|
3297 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3298 Defining const =
|
|
|
3299 EOF
|
|
|
3300 cat >> confdefs.h <<\EOF
|
|
|
3301 #define const
|
|
|
3302 EOF
|
|
|
3303 }
|
|
|
3304
|
|
|
3305 fi
|
|
|
3306
|
|
|
3307
|
|
|
3308 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|
219
|
3309 echo "configure:3310: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|
149
|
3310 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
|
3311
|
|
|
3312 cat > conftestmake <<\EOF
|
|
0
|
3313 all:
|
|
|
3314 @echo 'ac_maketemp="${MAKE}"'
|
|
|
3315 EOF
|
|
|
3316 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
|
3317 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|
149
|
3318 if test -n "$ac_maketemp"; then
|
|
|
3319 eval ac_cv_prog_make_${ac_make}_set=yes
|
|
|
3320 else
|
|
|
3321 eval ac_cv_prog_make_${ac_make}_set=no
|
|
|
3322 fi
|
|
0
|
3323 rm -f conftestmake
|
|
149
|
3324 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
|
3325 echo "$ac_t""yes" 1>&6
|
|
|
3326 SET_MAKE=
|
|
|
3327 else
|
|
|
3328 echo "$ac_t""no" 1>&6
|
|
|
3329 SET_MAKE="MAKE=${MAKE-make}"
|
|
|
3330 fi
|
|
|
3331
|
|
|
3332
|
|
|
3333 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
|
219
|
3334 echo "configure:3335: checking whether byte ordering is bigendian" >&5
|
|
149
|
3335
|
|
|
3336 ac_cv_c_bigendian=unknown
|
|
|
3337 # See if sys/param.h defines the BYTE_ORDER macro.
|
|
|
3338 cat > conftest.$ac_ext <<EOF
|
|
219
|
3339 #line 3340 "configure"
|
|
149
|
3340 #include "confdefs.h"
|
|
|
3341 #include <sys/types.h>
|
|
|
3342 #include <sys/param.h>
|
|
|
3343 int main() {
|
|
|
3344
|
|
|
3345 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|
|
3346 bogus endian macros
|
|
|
3347 #endif
|
|
|
3348 ; return 0; }
|
|
|
3349 EOF
|
|
219
|
3350 if { (eval echo configure:3351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3351 rm -rf conftest*
|
|
|
3352 # It does; now see whether it defined to BIG_ENDIAN or not.
|
|
|
3353 cat > conftest.$ac_ext <<EOF
|
|
219
|
3354 #line 3355 "configure"
|
|
149
|
3355 #include "confdefs.h"
|
|
|
3356 #include <sys/types.h>
|
|
|
3357 #include <sys/param.h>
|
|
|
3358 int main() {
|
|
|
3359
|
|
|
3360 #if BYTE_ORDER != BIG_ENDIAN
|
|
|
3361 not big endian
|
|
|
3362 #endif
|
|
|
3363 ; return 0; }
|
|
|
3364 EOF
|
|
219
|
3365 if { (eval echo configure:3366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3366 rm -rf conftest*
|
|
|
3367 ac_cv_c_bigendian=yes
|
|
|
3368 else
|
|
|
3369 echo "configure: failed program was:" >&5
|
|
|
3370 cat conftest.$ac_ext >&5
|
|
|
3371 rm -rf conftest*
|
|
|
3372 ac_cv_c_bigendian=no
|
|
|
3373 fi
|
|
|
3374 rm -f conftest*
|
|
|
3375 else
|
|
|
3376 echo "configure: failed program was:" >&5
|
|
|
3377 cat conftest.$ac_ext >&5
|
|
|
3378 fi
|
|
|
3379 rm -f conftest*
|
|
|
3380 if test $ac_cv_c_bigendian = unknown; then
|
|
|
3381 cat > conftest.$ac_ext <<EOF
|
|
219
|
3382 #line 3383 "configure"
|
|
0
|
3383 #include "confdefs.h"
|
|
|
3384 main () {
|
|
|
3385 /* Are we little or big endian? From Harbison&Steele. */
|
|
|
3386 union
|
|
|
3387 {
|
|
|
3388 long l;
|
|
|
3389 char c[sizeof (long)];
|
|
|
3390 } u;
|
|
|
3391 u.l = 1;
|
|
|
3392 exit (u.c[sizeof (long) - 1] == 1);
|
|
|
3393 }
|
|
|
3394 EOF
|
|
219
|
3395 if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
3396 then
|
|
|
3397 ac_cv_c_bigendian=no
|
|
|
3398 else
|
|
|
3399 echo "configure: failed program was:" >&5
|
|
|
3400 cat conftest.$ac_ext >&5
|
|
|
3401 rm -fr conftest*
|
|
|
3402 ac_cv_c_bigendian=yes
|
|
0
|
3403 fi
|
|
|
3404 rm -fr conftest*
|
|
149
|
3405 fi
|
|
|
3406
|
|
|
3407 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|
|
3408 if test $ac_cv_c_bigendian = yes; then
|
|
|
3409 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3410 Defining WORDS_BIGENDIAN
|
|
|
3411 EOF
|
|
|
3412 cat >> confdefs.h <<\EOF
|
|
|
3413 #define WORDS_BIGENDIAN 1
|
|
|
3414 EOF
|
|
|
3415 }
|
|
|
3416
|
|
|
3417 fi
|
|
|
3418
|
|
|
3419
|
|
151
|
3420 echo $ac_n "checking size of short""... $ac_c" 1>&6
|
|
219
|
3421 echo "configure:3422: checking size of short" >&5
|
|
|
3422
|
|
|
3423 cat > conftest.$ac_ext <<EOF
|
|
|
3424 #line 3425 "configure"
|
|
151
|
3425 #include "confdefs.h"
|
|
|
3426 #include <stdio.h>
|
|
|
3427 main()
|
|
|
3428 {
|
|
|
3429 FILE *f=fopen("conftestval", "w");
|
|
|
3430 if (!f) exit(1);
|
|
|
3431 fprintf(f, "%d\n", sizeof(short));
|
|
|
3432 exit(0);
|
|
|
3433 }
|
|
|
3434 EOF
|
|
219
|
3435 if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
151
|
3436 then
|
|
|
3437 ac_cv_sizeof_short=`cat conftestval`
|
|
|
3438 else
|
|
|
3439 echo "configure: failed program was:" >&5
|
|
|
3440 cat conftest.$ac_ext >&5
|
|
|
3441 rm -fr conftest*
|
|
|
3442 ac_cv_sizeof_short=0
|
|
|
3443 fi
|
|
|
3444 rm -fr conftest*
|
|
|
3445 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|
|
3446 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3447 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
|
|
|
3448 EOF
|
|
|
3449 cat >> confdefs.h <<EOF
|
|
|
3450 #define SIZEOF_SHORT $ac_cv_sizeof_short
|
|
|
3451 EOF
|
|
|
3452 }
|
|
|
3453
|
|
|
3454
|
|
163
|
3455 if test "$ac_cv_sizeof_short" = 0; then
|
|
|
3456 echo ""
|
|
|
3457 echo "*** PANIC *** Configure tests are not working - compiler is broken."
|
|
|
3458 echo "*** PANIC *** Please examine config.log for compilation errors."
|
|
|
3459 exit 1
|
|
|
3460 fi
|
|
151
|
3461 echo $ac_n "checking size of int""... $ac_c" 1>&6
|
|
219
|
3462 echo "configure:3463: checking size of int" >&5
|
|
|
3463
|
|
|
3464 cat > conftest.$ac_ext <<EOF
|
|
|
3465 #line 3466 "configure"
|
|
151
|
3466 #include "confdefs.h"
|
|
|
3467 #include <stdio.h>
|
|
|
3468 main()
|
|
|
3469 {
|
|
|
3470 FILE *f=fopen("conftestval", "w");
|
|
|
3471 if (!f) exit(1);
|
|
|
3472 fprintf(f, "%d\n", sizeof(int));
|
|
|
3473 exit(0);
|
|
|
3474 }
|
|
|
3475 EOF
|
|
219
|
3476 if { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
151
|
3477 then
|
|
|
3478 ac_cv_sizeof_int=`cat conftestval`
|
|
|
3479 else
|
|
|
3480 echo "configure: failed program was:" >&5
|
|
|
3481 cat conftest.$ac_ext >&5
|
|
|
3482 rm -fr conftest*
|
|
|
3483 ac_cv_sizeof_int=0
|
|
|
3484 fi
|
|
|
3485 rm -fr conftest*
|
|
|
3486 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
|
3487 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3488 Defining SIZEOF_INT = $ac_cv_sizeof_int
|
|
|
3489 EOF
|
|
|
3490 cat >> confdefs.h <<EOF
|
|
|
3491 #define SIZEOF_INT $ac_cv_sizeof_int
|
|
|
3492 EOF
|
|
|
3493 }
|
|
|
3494
|
|
|
3495
|
|
|
3496 echo $ac_n "checking size of long""... $ac_c" 1>&6
|
|
219
|
3497 echo "configure:3498: checking size of long" >&5
|
|
|
3498
|
|
|
3499 cat > conftest.$ac_ext <<EOF
|
|
|
3500 #line 3501 "configure"
|
|
151
|
3501 #include "confdefs.h"
|
|
|
3502 #include <stdio.h>
|
|
|
3503 main()
|
|
|
3504 {
|
|
|
3505 FILE *f=fopen("conftestval", "w");
|
|
|
3506 if (!f) exit(1);
|
|
|
3507 fprintf(f, "%d\n", sizeof(long));
|
|
|
3508 exit(0);
|
|
|
3509 }
|
|
|
3510 EOF
|
|
219
|
3511 if { (eval echo configure:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
151
|
3512 then
|
|
|
3513 ac_cv_sizeof_long=`cat conftestval`
|
|
|
3514 else
|
|
|
3515 echo "configure: failed program was:" >&5
|
|
|
3516 cat conftest.$ac_ext >&5
|
|
|
3517 rm -fr conftest*
|
|
|
3518 ac_cv_sizeof_long=0
|
|
|
3519 fi
|
|
|
3520 rm -fr conftest*
|
|
|
3521 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|
|
3522 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3523 Defining SIZEOF_LONG = $ac_cv_sizeof_long
|
|
|
3524 EOF
|
|
|
3525 cat >> confdefs.h <<EOF
|
|
|
3526 #define SIZEOF_LONG $ac_cv_sizeof_long
|
|
|
3527 EOF
|
|
|
3528 }
|
|
|
3529
|
|
|
3530
|
|
163
|
3531 echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
|
219
|
3532 echo "configure:3533: checking size of long long" >&5
|
|
|
3533
|
|
|
3534 cat > conftest.$ac_ext <<EOF
|
|
|
3535 #line 3536 "configure"
|
|
163
|
3536 #include "confdefs.h"
|
|
|
3537 #include <stdio.h>
|
|
|
3538 main()
|
|
|
3539 {
|
|
|
3540 FILE *f=fopen("conftestval", "w");
|
|
|
3541 if (!f) exit(1);
|
|
|
3542 fprintf(f, "%d\n", sizeof(long long));
|
|
|
3543 exit(0);
|
|
|
3544 }
|
|
|
3545 EOF
|
|
219
|
3546 if { (eval echo configure:3547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
163
|
3547 then
|
|
|
3548 ac_cv_sizeof_long_long=`cat conftestval`
|
|
|
3549 else
|
|
|
3550 echo "configure: failed program was:" >&5
|
|
|
3551 cat conftest.$ac_ext >&5
|
|
|
3552 rm -fr conftest*
|
|
|
3553 ac_cv_sizeof_long_long=0
|
|
|
3554 fi
|
|
|
3555 rm -fr conftest*
|
|
|
3556 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
|
|
3557 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3558 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
|
|
|
3559 EOF
|
|
|
3560 cat >> confdefs.h <<EOF
|
|
|
3561 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|
|
3562 EOF
|
|
|
3563 }
|
|
|
3564
|
|
|
3565
|
|
|
3566 echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
|
219
|
3567 echo "configure:3568: checking size of void *" >&5
|
|
|
3568
|
|
|
3569 cat > conftest.$ac_ext <<EOF
|
|
|
3570 #line 3571 "configure"
|
|
163
|
3571 #include "confdefs.h"
|
|
|
3572 #include <stdio.h>
|
|
|
3573 main()
|
|
|
3574 {
|
|
|
3575 FILE *f=fopen("conftestval", "w");
|
|
|
3576 if (!f) exit(1);
|
|
|
3577 fprintf(f, "%d\n", sizeof(void *));
|
|
|
3578 exit(0);
|
|
|
3579 }
|
|
|
3580 EOF
|
|
219
|
3581 if { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
163
|
3582 then
|
|
|
3583 ac_cv_sizeof_void_p=`cat conftestval`
|
|
|
3584 else
|
|
|
3585 echo "configure: failed program was:" >&5
|
|
|
3586 cat conftest.$ac_ext >&5
|
|
|
3587 rm -fr conftest*
|
|
|
3588 ac_cv_sizeof_void_p=0
|
|
|
3589 fi
|
|
|
3590 rm -fr conftest*
|
|
|
3591 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
|
|
3592 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3593 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
|
|
|
3594 EOF
|
|
|
3595 cat >> confdefs.h <<EOF
|
|
|
3596 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
|
3597 EOF
|
|
|
3598 }
|
|
|
3599
|
|
|
3600
|
|
151
|
3601
|
|
149
|
3602 echo $ac_n "checking for long file names""... $ac_c" 1>&6
|
|
219
|
3603 echo "configure:3604: checking for long file names" >&5
|
|
149
|
3604
|
|
|
3605 ac_cv_sys_long_file_names=yes
|
|
0
|
3606 # Test for long file names in all the places we know might matter:
|
|
|
3607 # . the current directory, where building will happen
|
|
149
|
3608 # $prefix/lib where we will be installing things
|
|
|
3609 # $exec_prefix/lib likewise
|
|
|
3610 # eval it to expand exec_prefix.
|
|
|
3611 # $TMPDIR if set, where it might want to write temporary files
|
|
|
3612 # if $TMPDIR is not set:
|
|
0
|
3613 # /tmp where it might want to write temporary files
|
|
|
3614 # /var/tmp likewise
|
|
|
3615 # /usr/tmp likewise
|
|
149
|
3616 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
|
|
|
3617 ac_tmpdirs="$TMPDIR"
|
|
|
3618 else
|
|
|
3619 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
|
|
|
3620 fi
|
|
|
3621 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
|
|
0
|
3622 test -d $ac_dir || continue
|
|
149
|
3623 test -w $ac_dir || continue # It is less confusing to not echo anything here.
|
|
0
|
3624 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
|
|
|
3625 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
|
|
|
3626 val=`cat $ac_dir/conftest9012345 2>/dev/null`
|
|
149
|
3627 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
|
|
|
3628 ac_cv_sys_long_file_names=no
|
|
|
3629 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
|
3630 break
|
|
0
|
3631 fi
|
|
149
|
3632 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
|
3633 done
|
|
|
3634
|
|
|
3635 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
|
|
|
3636 if test $ac_cv_sys_long_file_names = yes; then
|
|
|
3637 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3638 Defining HAVE_LONG_FILE_NAMES
|
|
|
3639 EOF
|
|
|
3640 cat >> confdefs.h <<\EOF
|
|
|
3641 #define HAVE_LONG_FILE_NAMES 1
|
|
|
3642 EOF
|
|
|
3643 }
|
|
|
3644
|
|
|
3645 fi
|
|
|
3646
|
|
|
3647
|
|
|
3648
|
|
207
|
3649 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
|
219
|
3650 echo "configure:3651: checking for sin in -lm" >&5
|
|
207
|
3651 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
|
149
|
3652
|
|
|
3653 xe_check_libs=" -lm "
|
|
|
3654 cat > conftest.$ac_ext <<EOF
|
|
219
|
3655 #line 3656 "configure"
|
|
149
|
3656 #include "confdefs.h"
|
|
|
3657 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
3658 /* We use char because int might match the return type of a gcc2
|
|
|
3659 builtin and then its argument prototype would still apply. */
|
|
207
|
3660 char sin();
|
|
149
|
3661
|
|
|
3662 int main() {
|
|
207
|
3663 sin()
|
|
149
|
3664 ; return 0; }
|
|
|
3665 EOF
|
|
219
|
3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
3667 rm -rf conftest*
|
|
|
3668 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
3669 else
|
|
|
3670 echo "configure: failed program was:" >&5
|
|
|
3671 cat conftest.$ac_ext >&5
|
|
|
3672 rm -rf conftest*
|
|
|
3673 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
3674 fi
|
|
|
3675 rm -f conftest*
|
|
|
3676 xe_check_libs=""
|
|
|
3677
|
|
151
|
3678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
3679 echo "$ac_t""yes" 1>&6
|
|
|
3680 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
3681 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
3682 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3683 Defining $ac_tr_lib
|
|
|
3684 EOF
|
|
|
3685 cat >> confdefs.h <<EOF
|
|
|
3686 #define $ac_tr_lib 1
|
|
|
3687 EOF
|
|
|
3688 }
|
|
|
3689
|
|
151
|
3690 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
|
|
|
3691
|
|
|
3692 else
|
|
|
3693 echo "$ac_t""no" 1>&6
|
|
|
3694 fi
|
|
|
3695
|
|
|
3696
|
|
|
3697
|
|
|
3698 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3699 Defining LISP_FLOAT_TYPE
|
|
|
3700 EOF
|
|
|
3701 cat >> confdefs.h <<\EOF
|
|
|
3702 #define LISP_FLOAT_TYPE 1
|
|
|
3703 EOF
|
|
|
3704 }
|
|
149
|
3705
|
|
|
3706
|
|
|
3707 echo "checking type of mail spool file locking" 1>&6
|
|
219
|
3708 echo "configure:3709: checking type of mail spool file locking" >&5
|
|
149
|
3709 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
|
|
|
3710 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
|
|
|
3711 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3712 Defining REAL_MAIL_USE_LOCKF
|
|
|
3713 EOF
|
|
|
3714 cat >> confdefs.h <<\EOF
|
|
|
3715 #define REAL_MAIL_USE_LOCKF 1
|
|
|
3716 EOF
|
|
|
3717 }
|
|
|
3718
|
|
|
3719 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3720 Defining REAL_MAIL_USE_FLOCK
|
|
|
3721 EOF
|
|
|
3722 cat >> confdefs.h <<\EOF
|
|
|
3723 #define REAL_MAIL_USE_FLOCK 1
|
|
|
3724 EOF
|
|
|
3725 }
|
|
|
3726
|
|
157
|
3727 else mail_locking="dot-locking"
|
|
149
|
3728 fi
|
|
|
3729
|
|
151
|
3730
|
|
|
3731 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
|
|
219
|
3732 echo "configure:3733: checking for kstat_open in -lkstat" >&5
|
|
151
|
3733 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
|
|
|
3734
|
|
|
3735 xe_check_libs=" -lkstat "
|
|
|
3736 cat > conftest.$ac_ext <<EOF
|
|
219
|
3737 #line 3738 "configure"
|
|
151
|
3738 #include "confdefs.h"
|
|
|
3739 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
3740 /* We use char because int might match the return type of a gcc2
|
|
|
3741 builtin and then its argument prototype would still apply. */
|
|
|
3742 char kstat_open();
|
|
|
3743
|
|
|
3744 int main() {
|
|
|
3745 kstat_open()
|
|
|
3746 ; return 0; }
|
|
|
3747 EOF
|
|
219
|
3748 if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
3749 rm -rf conftest*
|
|
|
3750 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
3751 else
|
|
|
3752 echo "configure: failed program was:" >&5
|
|
|
3753 cat conftest.$ac_ext >&5
|
|
|
3754 rm -rf conftest*
|
|
|
3755 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
3756 fi
|
|
|
3757 rm -f conftest*
|
|
|
3758 xe_check_libs=""
|
|
|
3759
|
|
|
3760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
3761 echo "$ac_t""yes" 1>&6
|
|
|
3762 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
3763 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
3764 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3765 Defining $ac_tr_lib
|
|
|
3766 EOF
|
|
|
3767 cat >> confdefs.h <<EOF
|
|
|
3768 #define $ac_tr_lib 1
|
|
|
3769 EOF
|
|
|
3770 }
|
|
|
3771
|
|
|
3772 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
|
|
|
3773
|
|
|
3774 else
|
|
|
3775 echo "$ac_t""no" 1>&6
|
|
|
3776 fi
|
|
|
3777
|
|
|
3778
|
|
|
3779
|
|
|
3780
|
|
|
3781 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
|
|
219
|
3782 echo "configure:3783: checking for kvm_read in -lkvm" >&5
|
|
151
|
3783 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
|
|
|
3784
|
|
|
3785 xe_check_libs=" -lkvm "
|
|
|
3786 cat > conftest.$ac_ext <<EOF
|
|
219
|
3787 #line 3788 "configure"
|
|
151
|
3788 #include "confdefs.h"
|
|
|
3789 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
3790 /* We use char because int might match the return type of a gcc2
|
|
|
3791 builtin and then its argument prototype would still apply. */
|
|
|
3792 char kvm_read();
|
|
|
3793
|
|
|
3794 int main() {
|
|
|
3795 kvm_read()
|
|
|
3796 ; return 0; }
|
|
|
3797 EOF
|
|
219
|
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
3799 rm -rf conftest*
|
|
|
3800 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
3801 else
|
|
|
3802 echo "configure: failed program was:" >&5
|
|
|
3803 cat conftest.$ac_ext >&5
|
|
|
3804 rm -rf conftest*
|
|
|
3805 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
3806 fi
|
|
|
3807 rm -f conftest*
|
|
|
3808 xe_check_libs=""
|
|
|
3809
|
|
|
3810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
3811 echo "$ac_t""yes" 1>&6
|
|
|
3812 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
3813 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
3814 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3815 Defining $ac_tr_lib
|
|
|
3816 EOF
|
|
|
3817 cat >> confdefs.h <<EOF
|
|
|
3818 #define $ac_tr_lib 1
|
|
|
3819 EOF
|
|
|
3820 }
|
|
|
3821
|
|
|
3822 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
|
|
|
3823
|
|
|
3824 else
|
|
|
3825 echo "$ac_t""no" 1>&6
|
|
|
3826 fi
|
|
|
3827
|
|
|
3828
|
|
|
3829
|
|
|
3830
|
|
|
3831 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
|
|
219
|
3832 echo "configure:3833: checking for cma_open in -lpthreads" >&5
|
|
151
|
3833 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
|
|
|
3834
|
|
|
3835 xe_check_libs=" -lpthreads "
|
|
|
3836 cat > conftest.$ac_ext <<EOF
|
|
219
|
3837 #line 3838 "configure"
|
|
151
|
3838 #include "confdefs.h"
|
|
|
3839 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
3840 /* We use char because int might match the return type of a gcc2
|
|
|
3841 builtin and then its argument prototype would still apply. */
|
|
|
3842 char cma_open();
|
|
|
3843
|
|
|
3844 int main() {
|
|
|
3845 cma_open()
|
|
|
3846 ; return 0; }
|
|
|
3847 EOF
|
|
219
|
3848 if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
3849 rm -rf conftest*
|
|
|
3850 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
3851 else
|
|
|
3852 echo "configure: failed program was:" >&5
|
|
|
3853 cat conftest.$ac_ext >&5
|
|
|
3854 rm -rf conftest*
|
|
|
3855 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
3856 fi
|
|
|
3857 rm -f conftest*
|
|
|
3858 xe_check_libs=""
|
|
|
3859
|
|
|
3860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
3861 echo "$ac_t""yes" 1>&6
|
|
|
3862 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
3863 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
3864 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3865 Defining $ac_tr_lib
|
|
|
3866 EOF
|
|
|
3867 cat >> confdefs.h <<EOF
|
|
|
3868 #define $ac_tr_lib 1
|
|
|
3869 EOF
|
|
|
3870 }
|
|
|
3871
|
|
|
3872 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
|
|
|
3873
|
|
|
3874 else
|
|
|
3875 echo "$ac_t""no" 1>&6
|
|
|
3876 fi
|
|
|
3877
|
|
|
3878
|
|
|
3879 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
|
|
|
3880 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
|
|
|
3881 fi
|
|
|
3882
|
|
|
3883 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
|
|
219
|
3884 echo "configure:3885: checking whether the -xildoff compiler flag is required" >&5
|
|
151
|
3885 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
|
3886 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
|
|
|
3887 then echo "$ac_t""no" 1>&6;
|
|
|
3888 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
|
|
|
3889 fi
|
|
|
3890 else echo "$ac_t""no" 1>&6
|
|
|
3891 fi
|
|
|
3892
|
|
165
|
3893 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
|
|
155
|
3894 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
|
|
219
|
3895 echo "configure:3896: checking for \"-z ignore\" linker flag" >&5
|
|
155
|
3896 case "`ld -h 2>&1`" in
|
|
|
3897 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
|
|
|
3898 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
|
|
|
3899 *) echo "$ac_t""no" 1>&6 ;;
|
|
163
|
3900 esac
|
|
|
3901 fi
|
|
155
|
3902
|
|
149
|
3903
|
|
|
3904 echo "checking "for specified window system"" 1>&6
|
|
219
|
3905 echo "configure:3906: checking "for specified window system"" >&5
|
|
149
|
3906
|
|
187
|
3907 if test "$with_x11" != "no"; then
|
|
|
3908 test "$x_includes $x_libraries" != "NONE NONE" && \
|
|
|
3909 window_system=x11 with_x11=yes
|
|
|
3910
|
|
|
3911 if test "$x_includes $x_libraries" = "NONE NONE"; then
|
|
|
3912 if test -n "$OPENWINHOME" \
|
|
|
3913 -a "$OPENWINHOME" != "/usr/openwin" \
|
|
|
3914 -a -d "$OPENWINHOME"; then
|
|
|
3915 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
|
|
|
3916 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
|
|
|
3917 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
|
|
|
3918 else
|
|
|
3919 for dir in "/usr/X11R6/include" "/usr/include/X11R6"; do
|
|
|
3920 if test -d "$dir/X11"; then x_includes="$dir"; break; fi
|
|
|
3921 done
|
|
|
3922 if test "$x_includes" != "NONE"; then
|
|
|
3923 for dir in "/usr/X11R6/lib" "/usr/lib/X11R6"; do
|
|
|
3924 if test -d "$dir"; then x_libraries="$dir"; break; fi
|
|
|
3925 done
|
|
|
3926 fi
|
|
|
3927 fi
|
|
149
|
3928 fi
|
|
187
|
3929
|
|
149
|
3930 # If we find X, set shell vars x_includes and x_libraries to the
|
|
|
3931 # paths, otherwise set no_x=yes.
|
|
|
3932 # Uses ac_ vars as temps to allow command line to override cache and checks.
|
|
|
3933 # --without-x overrides everything else, but does not touch the cache.
|
|
|
3934 echo $ac_n "checking for X""... $ac_c" 1>&6
|
|
219
|
3935 echo "configure:3936: checking for X" >&5
|
|
149
|
3936
|
|
|
3937 # Check whether --with-x or --without-x was given.
|
|
|
3938 if test "${with_x+set}" = set; then
|
|
|
3939 withval="$with_x"
|
|
|
3940 :
|
|
|
3941 fi
|
|
|
3942
|
|
|
3943 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|
|
3944 if test "x$with_x" = xno; then
|
|
|
3945 # The user explicitly disabled X.
|
|
|
3946 have_x=disabled
|
|
|
3947 else
|
|
|
3948 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
|
|
3949 # Both variables are already set.
|
|
|
3950 have_x=yes
|
|
|
3951 else
|
|
|
3952
|
|
|
3953 # One or both of the vars are not set, and there is no cached value.
|
|
|
3954 ac_x_includes=NO ac_x_libraries=NO
|
|
0
|
3955 rm -fr conftestdir
|
|
|
3956 if mkdir conftestdir; then
|
|
|
3957 cd conftestdir
|
|
|
3958 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
|
3959 cat > Imakefile <<'EOF'
|
|
|
3960 acfindx:
|
|
|
3961 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
|
3962 EOF
|
|
|
3963 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
|
3964 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
149
|
3965 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
|
0
|
3966 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
|
149
|
3967 for ac_extension in a so sl; do
|
|
|
3968 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
|
|
3969 test -f $ac_im_libdir/libX11.$ac_extension; then
|
|
|
3970 ac_im_usrlibdir=$ac_im_libdir; break
|
|
|
3971 fi
|
|
|
3972 done
|
|
|
3973 # Screen out bogus values from the imake configuration. They are
|
|
|
3974 # bogus both because they are the default anyway, and because
|
|
|
3975 # using them would break gcc on systems where it needs fixed includes.
|
|
0
|
3976 case "$ac_im_incroot" in
|
|
|
3977 /usr/include) ;;
|
|
149
|
3978 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
|
0
|
3979 esac
|
|
|
3980 case "$ac_im_usrlibdir" in
|
|
|
3981 /usr/lib | /lib) ;;
|
|
149
|
3982 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
|
0
|
3983 esac
|
|
|
3984 fi
|
|
|
3985 cd ..
|
|
|
3986 rm -fr conftestdir
|
|
|
3987 fi
|
|
|
3988
|
|
149
|
3989 if test "$ac_x_includes" = NO; then
|
|
|
3990 # Guess where to find include files, by looking for this one X11 .h file.
|
|
|
3991 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
|
|
3992
|
|
|
3993 # First, try using that file with no special directory specified.
|
|
|
3994 cat > conftest.$ac_ext <<EOF
|
|
219
|
3995 #line 3996 "configure"
|
|
0
|
3996 #include "confdefs.h"
|
|
|
3997 #include <$x_direct_test_include>
|
|
|
3998 EOF
|
|
149
|
3999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
4000 { (eval echo configure:4001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
4001 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
4002 if test -z "$ac_err"; then
|
|
|
4003 rm -rf conftest*
|
|
149
|
4004 # We can compile using X headers with no special include directory.
|
|
|
4005 ac_x_includes=
|
|
|
4006 else
|
|
|
4007 echo "$ac_err" >&5
|
|
|
4008 echo "configure: failed program was:" >&5
|
|
|
4009 cat conftest.$ac_ext >&5
|
|
|
4010 rm -rf conftest*
|
|
|
4011 # Look for the header file in a standard set of common directories.
|
|
|
4012 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
0
|
4013 for ac_dir in \
|
|
149
|
4014 /usr/X11/include \
|
|
0
|
4015 /usr/X11R6/include \
|
|
|
4016 /usr/X11R5/include \
|
|
|
4017 /usr/X11R4/include \
|
|
|
4018 \
|
|
149
|
4019 /usr/include/X11 \
|
|
0
|
4020 /usr/include/X11R6 \
|
|
|
4021 /usr/include/X11R5 \
|
|
|
4022 /usr/include/X11R4 \
|
|
|
4023 \
|
|
149
|
4024 /usr/local/X11/include \
|
|
0
|
4025 /usr/local/X11R6/include \
|
|
|
4026 /usr/local/X11R5/include \
|
|
|
4027 /usr/local/X11R4/include \
|
|
|
4028 \
|
|
149
|
4029 /usr/local/include/X11 \
|
|
0
|
4030 /usr/local/include/X11R6 \
|
|
|
4031 /usr/local/include/X11R5 \
|
|
|
4032 /usr/local/include/X11R4 \
|
|
|
4033 \
|
|
|
4034 /usr/X386/include \
|
|
|
4035 /usr/x386/include \
|
|
|
4036 /usr/XFree86/include/X11 \
|
|
|
4037 \
|
|
|
4038 /usr/include \
|
|
|
4039 /usr/local/include \
|
|
|
4040 /usr/unsupported/include \
|
|
|
4041 /usr/athena/include \
|
|
|
4042 /usr/local/x11r5/include \
|
|
|
4043 /usr/lpp/Xamples/include \
|
|
|
4044 \
|
|
|
4045 /usr/openwin/include \
|
|
|
4046 /usr/openwin/share/include \
|
|
|
4047 ; \
|
|
|
4048 do
|
|
|
4049 if test -r "$ac_dir/$x_direct_test_include"; then
|
|
149
|
4050 ac_x_includes=$ac_dir
|
|
0
|
4051 break
|
|
|
4052 fi
|
|
|
4053 done
|
|
|
4054 fi
|
|
|
4055 rm -f conftest*
|
|
149
|
4056 fi # $ac_x_includes = NO
|
|
|
4057
|
|
|
4058 if test "$ac_x_libraries" = NO; then
|
|
|
4059 # Check for the libraries.
|
|
|
4060
|
|
|
4061 test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
|
|
4062 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
|
|
4063
|
|
|
4064 # See if we find them without any special options.
|
|
|
4065 # Don't add to $LIBS permanently.
|
|
|
4066 ac_save_LIBS="$LIBS"
|
|
|
4067 LIBS="-l$x_direct_test_library $LIBS"
|
|
|
4068 cat > conftest.$ac_ext <<EOF
|
|
219
|
4069 #line 4070 "configure"
|
|
149
|
4070 #include "confdefs.h"
|
|
|
4071
|
|
|
4072 int main() {
|
|
|
4073 ${x_direct_test_function}()
|
|
|
4074 ; return 0; }
|
|
|
4075 EOF
|
|
219
|
4076 if { (eval echo configure:4077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4077 rm -rf conftest*
|
|
|
4078 LIBS="$ac_save_LIBS"
|
|
|
4079 # We can link X programs with no special library path.
|
|
|
4080 ac_x_libraries=
|
|
|
4081 else
|
|
|
4082 echo "configure: failed program was:" >&5
|
|
|
4083 cat conftest.$ac_ext >&5
|
|
|
4084 rm -rf conftest*
|
|
|
4085 LIBS="$ac_save_LIBS"
|
|
|
4086 # First see if replacing the include by lib works.
|
|
|
4087 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
|
4088 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
|
|
4089 /usr/X11/lib \
|
|
0
|
4090 /usr/X11R6/lib \
|
|
|
4091 /usr/X11R5/lib \
|
|
|
4092 /usr/X11R4/lib \
|
|
|
4093 \
|
|
149
|
4094 /usr/lib/X11 \
|
|
0
|
4095 /usr/lib/X11R6 \
|
|
|
4096 /usr/lib/X11R5 \
|
|
|
4097 /usr/lib/X11R4 \
|
|
|
4098 \
|
|
149
|
4099 /usr/local/X11/lib \
|
|
0
|
4100 /usr/local/X11R6/lib \
|
|
|
4101 /usr/local/X11R5/lib \
|
|
|
4102 /usr/local/X11R4/lib \
|
|
|
4103 \
|
|
149
|
4104 /usr/local/lib/X11 \
|
|
0
|
4105 /usr/local/lib/X11R6 \
|
|
|
4106 /usr/local/lib/X11R5 \
|
|
|
4107 /usr/local/lib/X11R4 \
|
|
|
4108 \
|
|
|
4109 /usr/X386/lib \
|
|
|
4110 /usr/x386/lib \
|
|
|
4111 /usr/XFree86/lib/X11 \
|
|
|
4112 \
|
|
|
4113 /usr/lib \
|
|
|
4114 /usr/local/lib \
|
|
|
4115 /usr/unsupported/lib \
|
|
|
4116 /usr/athena/lib \
|
|
|
4117 /usr/local/x11r5/lib \
|
|
|
4118 /usr/lpp/Xamples/lib \
|
|
149
|
4119 /lib/usr/lib/X11 \
|
|
0
|
4120 \
|
|
|
4121 /usr/openwin/lib \
|
|
|
4122 /usr/openwin/share/lib \
|
|
|
4123 ; \
|
|
|
4124 do
|
|
|
4125 for ac_extension in a so sl; do
|
|
|
4126 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
|
149
|
4127 ac_x_libraries=$ac_dir
|
|
0
|
4128 break 2
|
|
|
4129 fi
|
|
|
4130 done
|
|
|
4131 done
|
|
|
4132 fi
|
|
149
|
4133 rm -f conftest*
|
|
|
4134 fi # $ac_x_libraries = NO
|
|
|
4135
|
|
|
4136 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
|
|
4137 # Didn't find X anywhere. Cache the known absence of X.
|
|
|
4138 ac_cv_have_x="have_x=no"
|
|
|
4139 else
|
|
|
4140 # Record where we found X for the cache.
|
|
|
4141 ac_cv_have_x="have_x=yes \
|
|
|
4142 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
|
|
4143 fi
|
|
|
4144 fi
|
|
|
4145 eval "$ac_cv_have_x"
|
|
|
4146 fi # $with_x != no
|
|
|
4147
|
|
|
4148 if test "$have_x" != yes; then
|
|
|
4149 echo "$ac_t""$have_x" 1>&6
|
|
|
4150 no_x=yes
|
|
|
4151 else
|
|
|
4152 # If each of the values was on the command line, it overrides each guess.
|
|
|
4153 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
|
|
4154 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
|
|
4155 # Update the cache value to reflect the command line values.
|
|
|
4156 ac_cv_have_x="have_x=yes \
|
|
|
4157 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
|
|
4158 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
|
|
4159 fi
|
|
|
4160
|
|
|
4161 if test "$no_x" = yes; then
|
|
|
4162 # Not all programs may use this symbol, but it does not hurt to define it.
|
|
|
4163 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
4164 Defining X_DISPLAY_MISSING
|
|
|
4165 EOF
|
|
|
4166 cat >> confdefs.h <<\EOF
|
|
|
4167 #define X_DISPLAY_MISSING 1
|
|
|
4168 EOF
|
|
|
4169 }
|
|
|
4170
|
|
|
4171 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
|
|
4172 else
|
|
|
4173 if test -n "$x_includes"; then
|
|
|
4174 X_CFLAGS="$X_CFLAGS -I$x_includes"
|
|
|
4175 fi
|
|
|
4176
|
|
|
4177 # It would also be nice to do this for all -L options, not just this one.
|
|
|
4178 if test -n "$x_libraries"; then
|
|
|
4179 X_LIBS="$X_LIBS -L$x_libraries"
|
|
|
4180 # For Solaris; some versions of Sun CC require a space after -R and
|
|
|
4181 # others require no space. Words are not sufficient . . . .
|
|
|
4182 case "`(uname -sr) 2>/dev/null`" in
|
|
|
4183 "SunOS 5"*)
|
|
|
4184 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
|
219
|
4185 echo "configure:4186: checking whether -R must be followed by a space" >&5
|
|
149
|
4186 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
|
|
4187 cat > conftest.$ac_ext <<EOF
|
|
219
|
4188 #line 4189 "configure"
|
|
|
4189 #include "confdefs.h"
|
|
|
4190
|
|
|
4191 int main() {
|
|
|
4192
|
|
|
4193 ; return 0; }
|
|
|
4194 EOF
|
|
|
4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4196 rm -rf conftest*
|
|
|
4197 ac_R_nospace=yes
|
|
|
4198 else
|
|
|
4199 echo "configure: failed program was:" >&5
|
|
|
4200 cat conftest.$ac_ext >&5
|
|
|
4201 rm -rf conftest*
|
|
|
4202 ac_R_nospace=no
|
|
|
4203 fi
|
|
|
4204 rm -f conftest*
|
|
|
4205 if test $ac_R_nospace = yes; then
|
|
|
4206 echo "$ac_t""no" 1>&6
|
|
|
4207 X_LIBS="$X_LIBS -R$x_libraries"
|
|
|
4208 else
|
|
|
4209 LIBS="$ac_xsave_LIBS -R $x_libraries"
|
|
|
4210 cat > conftest.$ac_ext <<EOF
|
|
219
|
4211 #line 4212 "configure"
|
|
|
4212 #include "confdefs.h"
|
|
|
4213
|
|
|
4214 int main() {
|
|
|
4215
|
|
|
4216 ; return 0; }
|
|
|
4217 EOF
|
|
|
4218 if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4219 rm -rf conftest*
|
|
|
4220 ac_R_space=yes
|
|
|
4221 else
|
|
|
4222 echo "configure: failed program was:" >&5
|
|
|
4223 cat conftest.$ac_ext >&5
|
|
|
4224 rm -rf conftest*
|
|
|
4225 ac_R_space=no
|
|
|
4226 fi
|
|
|
4227 rm -f conftest*
|
|
|
4228 if test $ac_R_space = yes; then
|
|
|
4229 echo "$ac_t""yes" 1>&6
|
|
|
4230 X_LIBS="$X_LIBS -R $x_libraries"
|
|
|
4231 else
|
|
|
4232 echo "$ac_t""neither works" 1>&6
|
|
|
4233 fi
|
|
|
4234 fi
|
|
|
4235 LIBS="$ac_xsave_LIBS"
|
|
|
4236 esac
|
|
|
4237 fi
|
|
|
4238
|
|
|
4239 # Check for system-dependent libraries X programs must link with.
|
|
|
4240 # Do this before checking for the system-independent R6 libraries
|
|
|
4241 # (-lICE), since we may need -lsocket or whatever for X linking.
|
|
|
4242
|
|
|
4243 if test "$ISC" = yes; then
|
|
|
4244 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
|
|
4245 else
|
|
|
4246 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
|
|
4247 # libraries were built with DECnet support. And karl@cs.umb.edu says
|
|
|
4248 # the Alpha needs dnet_stub (dnet does not exist).
|
|
151
|
4249 if test "$with_dnet" = "no" ; then
|
|
149
|
4250 ac_cv_lib_dnet_dnet_ntoa=no
|
|
|
4251 else
|
|
|
4252
|
|
|
4253 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
|
219
|
4254 echo "configure:4255: checking for dnet_ntoa in -ldnet" >&5
|
|
149
|
4255 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
|
4256
|
|
|
4257 xe_check_libs=" -ldnet "
|
|
|
4258 cat > conftest.$ac_ext <<EOF
|
|
219
|
4259 #line 4260 "configure"
|
|
149
|
4260 #include "confdefs.h"
|
|
|
4261 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4262 /* We use char because int might match the return type of a gcc2
|
|
|
4263 builtin and then its argument prototype would still apply. */
|
|
|
4264 char dnet_ntoa();
|
|
|
4265
|
|
|
4266 int main() {
|
|
|
4267 dnet_ntoa()
|
|
|
4268 ; return 0; }
|
|
|
4269 EOF
|
|
219
|
4270 if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4271 rm -rf conftest*
|
|
|
4272 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4273 else
|
|
|
4274 echo "configure: failed program was:" >&5
|
|
|
4275 cat conftest.$ac_ext >&5
|
|
|
4276 rm -rf conftest*
|
|
|
4277 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4278 fi
|
|
|
4279 rm -f conftest*
|
|
|
4280 xe_check_libs=""
|
|
|
4281
|
|
151
|
4282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4283 echo "$ac_t""yes" 1>&6
|
|
|
4284 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
|
|
4285 else
|
|
|
4286 echo "$ac_t""no" 1>&6
|
|
|
4287 fi
|
|
|
4288
|
|
|
4289 fi
|
|
|
4290
|
|
|
4291 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
|
|
4292
|
|
|
4293 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
|
219
|
4294 echo "configure:4295: checking for dnet_ntoa in -ldnet_stub" >&5
|
|
149
|
4295 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
|
4296
|
|
|
4297 xe_check_libs=" -ldnet_stub "
|
|
|
4298 cat > conftest.$ac_ext <<EOF
|
|
219
|
4299 #line 4300 "configure"
|
|
149
|
4300 #include "confdefs.h"
|
|
|
4301 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4302 /* We use char because int might match the return type of a gcc2
|
|
|
4303 builtin and then its argument prototype would still apply. */
|
|
|
4304 char dnet_ntoa();
|
|
|
4305
|
|
|
4306 int main() {
|
|
|
4307 dnet_ntoa()
|
|
|
4308 ; return 0; }
|
|
|
4309 EOF
|
|
219
|
4310 if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4311 rm -rf conftest*
|
|
|
4312 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4313 else
|
|
|
4314 echo "configure: failed program was:" >&5
|
|
|
4315 cat conftest.$ac_ext >&5
|
|
|
4316 rm -rf conftest*
|
|
|
4317 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4318 fi
|
|
|
4319 rm -f conftest*
|
|
|
4320 xe_check_libs=""
|
|
|
4321
|
|
151
|
4322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4323 echo "$ac_t""yes" 1>&6
|
|
|
4324 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
|
|
4325 else
|
|
|
4326 echo "$ac_t""no" 1>&6
|
|
|
4327 fi
|
|
|
4328
|
|
|
4329
|
|
|
4330 fi
|
|
|
4331
|
|
|
4332 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
|
|
4333 # to get the SysV transport functions.
|
|
|
4334 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
|
|
4335 # needs -lnsl.
|
|
|
4336 # The nsl library prevents programs from opening the X display
|
|
|
4337 # on Irix 5.2, according to dickey@clark.net.
|
|
|
4338 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
|
219
|
4339 echo "configure:4340: checking for gethostbyname" >&5
|
|
|
4340
|
|
|
4341 cat > conftest.$ac_ext <<EOF
|
|
|
4342 #line 4343 "configure"
|
|
149
|
4343 #include "confdefs.h"
|
|
|
4344 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
4345 which can conflict with char gethostbyname(); below. */
|
|
|
4346 #include <assert.h>
|
|
|
4347 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4348 /* We use char because int might match the return type of a gcc2
|
|
|
4349 builtin and then its argument prototype would still apply. */
|
|
|
4350 char gethostbyname();
|
|
|
4351
|
|
|
4352 int main() {
|
|
|
4353
|
|
|
4354 /* The GNU C library defines this for functions which it implements
|
|
|
4355 to always fail with ENOSYS. Some functions are actually named
|
|
|
4356 something starting with __ and the normal name is an alias. */
|
|
|
4357 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
|
|
4358 choke me
|
|
|
4359 #else
|
|
|
4360 gethostbyname();
|
|
|
4361 #endif
|
|
|
4362
|
|
|
4363 ; return 0; }
|
|
|
4364 EOF
|
|
219
|
4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4366 rm -rf conftest*
|
|
|
4367 eval "ac_cv_func_gethostbyname=yes"
|
|
|
4368 else
|
|
|
4369 echo "configure: failed program was:" >&5
|
|
|
4370 cat conftest.$ac_ext >&5
|
|
|
4371 rm -rf conftest*
|
|
|
4372 eval "ac_cv_func_gethostbyname=no"
|
|
|
4373 fi
|
|
|
4374 rm -f conftest*
|
|
|
4375
|
|
|
4376 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
|
|
4377 echo "$ac_t""yes" 1>&6
|
|
|
4378 :
|
|
|
4379 else
|
|
|
4380 echo "$ac_t""no" 1>&6
|
|
|
4381 fi
|
|
|
4382
|
|
|
4383 if test $ac_cv_func_gethostbyname = no; then
|
|
|
4384
|
|
|
4385 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
|
219
|
4386 echo "configure:4387: checking for gethostbyname in -lnsl" >&5
|
|
149
|
4387 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|
|
4388
|
|
|
4389 xe_check_libs=" -lnsl "
|
|
|
4390 cat > conftest.$ac_ext <<EOF
|
|
219
|
4391 #line 4392 "configure"
|
|
149
|
4392 #include "confdefs.h"
|
|
|
4393 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4394 /* We use char because int might match the return type of a gcc2
|
|
|
4395 builtin and then its argument prototype would still apply. */
|
|
|
4396 char gethostbyname();
|
|
|
4397
|
|
|
4398 int main() {
|
|
|
4399 gethostbyname()
|
|
|
4400 ; return 0; }
|
|
|
4401 EOF
|
|
219
|
4402 if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4403 rm -rf conftest*
|
|
|
4404 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4405 else
|
|
|
4406 echo "configure: failed program was:" >&5
|
|
|
4407 cat conftest.$ac_ext >&5
|
|
|
4408 rm -rf conftest*
|
|
|
4409 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4410 fi
|
|
|
4411 rm -f conftest*
|
|
|
4412 xe_check_libs=""
|
|
|
4413
|
|
151
|
4414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4415 echo "$ac_t""yes" 1>&6
|
|
|
4416 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
|
|
4417 else
|
|
|
4418 echo "$ac_t""no" 1>&6
|
|
|
4419 fi
|
|
|
4420
|
|
|
4421
|
|
|
4422 fi
|
|
|
4423
|
|
|
4424 # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
|
|
4425 # socket/setsockopt and other routines are undefined under SCO ODT
|
|
|
4426 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
|
|
4427 # on later versions), says simon@lia.di.epfl.ch: it contains
|
|
|
4428 # gethostby* variants that don't use the nameserver (or something).
|
|
|
4429 # -lsocket must be given before -lnsl if both are needed.
|
|
|
4430 # We assume that if connect needs -lnsl, so does gethostbyname.
|
|
|
4431 echo $ac_n "checking for connect""... $ac_c" 1>&6
|
|
219
|
4432 echo "configure:4433: checking for connect" >&5
|
|
|
4433
|
|
|
4434 cat > conftest.$ac_ext <<EOF
|
|
|
4435 #line 4436 "configure"
|
|
149
|
4436 #include "confdefs.h"
|
|
|
4437 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
4438 which can conflict with char connect(); below. */
|
|
|
4439 #include <assert.h>
|
|
|
4440 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4441 /* We use char because int might match the return type of a gcc2
|
|
|
4442 builtin and then its argument prototype would still apply. */
|
|
|
4443 char connect();
|
|
|
4444
|
|
|
4445 int main() {
|
|
|
4446
|
|
|
4447 /* The GNU C library defines this for functions which it implements
|
|
|
4448 to always fail with ENOSYS. Some functions are actually named
|
|
|
4449 something starting with __ and the normal name is an alias. */
|
|
|
4450 #if defined (__stub_connect) || defined (__stub___connect)
|
|
|
4451 choke me
|
|
|
4452 #else
|
|
|
4453 connect();
|
|
|
4454 #endif
|
|
|
4455
|
|
|
4456 ; return 0; }
|
|
|
4457 EOF
|
|
219
|
4458 if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4459 rm -rf conftest*
|
|
|
4460 eval "ac_cv_func_connect=yes"
|
|
|
4461 else
|
|
|
4462 echo "configure: failed program was:" >&5
|
|
|
4463 cat conftest.$ac_ext >&5
|
|
|
4464 rm -rf conftest*
|
|
|
4465 eval "ac_cv_func_connect=no"
|
|
|
4466 fi
|
|
|
4467 rm -f conftest*
|
|
|
4468
|
|
|
4469 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
|
|
4470 echo "$ac_t""yes" 1>&6
|
|
|
4471 :
|
|
|
4472 else
|
|
|
4473 echo "$ac_t""no" 1>&6
|
|
|
4474 fi
|
|
|
4475
|
|
|
4476 if test $ac_cv_func_connect = no; then
|
|
|
4477
|
|
|
4478 xe_msg_checking="for connect in -lsocket"
|
|
|
4479 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
|
4480 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
219
|
4481 echo "configure:4482: checking "$xe_msg_checking"" >&5
|
|
149
|
4482 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
|
|
4483
|
|
|
4484 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
|
|
|
4485 cat > conftest.$ac_ext <<EOF
|
|
219
|
4486 #line 4487 "configure"
|
|
149
|
4487 #include "confdefs.h"
|
|
|
4488 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4489 /* We use char because int might match the return type of a gcc2
|
|
|
4490 builtin and then its argument prototype would still apply. */
|
|
|
4491 char connect();
|
|
|
4492
|
|
|
4493 int main() {
|
|
|
4494 connect()
|
|
|
4495 ; return 0; }
|
|
|
4496 EOF
|
|
219
|
4497 if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4498 rm -rf conftest*
|
|
|
4499 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4500 else
|
|
|
4501 echo "configure: failed program was:" >&5
|
|
|
4502 cat conftest.$ac_ext >&5
|
|
|
4503 rm -rf conftest*
|
|
|
4504 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4505 fi
|
|
|
4506 rm -f conftest*
|
|
|
4507 xe_check_libs=""
|
|
|
4508
|
|
151
|
4509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4510 echo "$ac_t""yes" 1>&6
|
|
|
4511 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
|
|
4512 else
|
|
|
4513 echo "$ac_t""no" 1>&6
|
|
|
4514 fi
|
|
|
4515
|
|
|
4516
|
|
|
4517 fi
|
|
|
4518
|
|
|
4519 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
|
|
4520 echo $ac_n "checking for remove""... $ac_c" 1>&6
|
|
219
|
4521 echo "configure:4522: checking for remove" >&5
|
|
|
4522
|
|
|
4523 cat > conftest.$ac_ext <<EOF
|
|
|
4524 #line 4525 "configure"
|
|
149
|
4525 #include "confdefs.h"
|
|
|
4526 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
4527 which can conflict with char remove(); below. */
|
|
|
4528 #include <assert.h>
|
|
|
4529 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4530 /* We use char because int might match the return type of a gcc2
|
|
|
4531 builtin and then its argument prototype would still apply. */
|
|
|
4532 char remove();
|
|
|
4533
|
|
|
4534 int main() {
|
|
|
4535
|
|
|
4536 /* The GNU C library defines this for functions which it implements
|
|
|
4537 to always fail with ENOSYS. Some functions are actually named
|
|
|
4538 something starting with __ and the normal name is an alias. */
|
|
|
4539 #if defined (__stub_remove) || defined (__stub___remove)
|
|
|
4540 choke me
|
|
|
4541 #else
|
|
|
4542 remove();
|
|
|
4543 #endif
|
|
|
4544
|
|
|
4545 ; return 0; }
|
|
|
4546 EOF
|
|
219
|
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4548 rm -rf conftest*
|
|
|
4549 eval "ac_cv_func_remove=yes"
|
|
|
4550 else
|
|
|
4551 echo "configure: failed program was:" >&5
|
|
|
4552 cat conftest.$ac_ext >&5
|
|
|
4553 rm -rf conftest*
|
|
|
4554 eval "ac_cv_func_remove=no"
|
|
|
4555 fi
|
|
|
4556 rm -f conftest*
|
|
|
4557
|
|
|
4558 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
|
|
4559 echo "$ac_t""yes" 1>&6
|
|
|
4560 :
|
|
|
4561 else
|
|
|
4562 echo "$ac_t""no" 1>&6
|
|
|
4563 fi
|
|
|
4564
|
|
|
4565 if test $ac_cv_func_remove = no; then
|
|
|
4566
|
|
|
4567 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
|
219
|
4568 echo "configure:4569: checking for remove in -lposix" >&5
|
|
149
|
4569 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
|
|
4570
|
|
|
4571 xe_check_libs=" -lposix "
|
|
|
4572 cat > conftest.$ac_ext <<EOF
|
|
219
|
4573 #line 4574 "configure"
|
|
149
|
4574 #include "confdefs.h"
|
|
|
4575 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4576 /* We use char because int might match the return type of a gcc2
|
|
|
4577 builtin and then its argument prototype would still apply. */
|
|
|
4578 char remove();
|
|
|
4579
|
|
|
4580 int main() {
|
|
|
4581 remove()
|
|
|
4582 ; return 0; }
|
|
|
4583 EOF
|
|
219
|
4584 if { (eval echo configure:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4585 rm -rf conftest*
|
|
|
4586 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4587 else
|
|
|
4588 echo "configure: failed program was:" >&5
|
|
|
4589 cat conftest.$ac_ext >&5
|
|
|
4590 rm -rf conftest*
|
|
|
4591 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4592 fi
|
|
|
4593 rm -f conftest*
|
|
|
4594 xe_check_libs=""
|
|
|
4595
|
|
151
|
4596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4597 echo "$ac_t""yes" 1>&6
|
|
|
4598 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
|
|
4599 else
|
|
|
4600 echo "$ac_t""no" 1>&6
|
|
|
4601 fi
|
|
|
4602
|
|
|
4603
|
|
|
4604 fi
|
|
|
4605
|
|
|
4606 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
|
|
4607 echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
|
219
|
4608 echo "configure:4609: checking for shmat" >&5
|
|
|
4609
|
|
|
4610 cat > conftest.$ac_ext <<EOF
|
|
|
4611 #line 4612 "configure"
|
|
149
|
4612 #include "confdefs.h"
|
|
|
4613 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
4614 which can conflict with char shmat(); below. */
|
|
|
4615 #include <assert.h>
|
|
|
4616 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4617 /* We use char because int might match the return type of a gcc2
|
|
|
4618 builtin and then its argument prototype would still apply. */
|
|
|
4619 char shmat();
|
|
|
4620
|
|
|
4621 int main() {
|
|
|
4622
|
|
|
4623 /* The GNU C library defines this for functions which it implements
|
|
|
4624 to always fail with ENOSYS. Some functions are actually named
|
|
|
4625 something starting with __ and the normal name is an alias. */
|
|
|
4626 #if defined (__stub_shmat) || defined (__stub___shmat)
|
|
|
4627 choke me
|
|
|
4628 #else
|
|
|
4629 shmat();
|
|
|
4630 #endif
|
|
|
4631
|
|
|
4632 ; return 0; }
|
|
|
4633 EOF
|
|
219
|
4634 if { (eval echo configure:4635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4635 rm -rf conftest*
|
|
|
4636 eval "ac_cv_func_shmat=yes"
|
|
|
4637 else
|
|
|
4638 echo "configure: failed program was:" >&5
|
|
|
4639 cat conftest.$ac_ext >&5
|
|
|
4640 rm -rf conftest*
|
|
|
4641 eval "ac_cv_func_shmat=no"
|
|
|
4642 fi
|
|
|
4643 rm -f conftest*
|
|
|
4644
|
|
|
4645 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
|
|
4646 echo "$ac_t""yes" 1>&6
|
|
|
4647 :
|
|
|
4648 else
|
|
|
4649 echo "$ac_t""no" 1>&6
|
|
|
4650 fi
|
|
|
4651
|
|
|
4652 if test $ac_cv_func_shmat = no; then
|
|
|
4653
|
|
|
4654 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
|
219
|
4655 echo "configure:4656: checking for shmat in -lipc" >&5
|
|
149
|
4656 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
|
|
4657
|
|
|
4658 xe_check_libs=" -lipc "
|
|
|
4659 cat > conftest.$ac_ext <<EOF
|
|
219
|
4660 #line 4661 "configure"
|
|
149
|
4661 #include "confdefs.h"
|
|
|
4662 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4663 /* We use char because int might match the return type of a gcc2
|
|
|
4664 builtin and then its argument prototype would still apply. */
|
|
|
4665 char shmat();
|
|
|
4666
|
|
|
4667 int main() {
|
|
|
4668 shmat()
|
|
|
4669 ; return 0; }
|
|
|
4670 EOF
|
|
219
|
4671 if { (eval echo configure:4672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4672 rm -rf conftest*
|
|
|
4673 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4674 else
|
|
|
4675 echo "configure: failed program was:" >&5
|
|
|
4676 cat conftest.$ac_ext >&5
|
|
|
4677 rm -rf conftest*
|
|
|
4678 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4679 fi
|
|
|
4680 rm -f conftest*
|
|
|
4681 xe_check_libs=""
|
|
|
4682
|
|
151
|
4683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4684 echo "$ac_t""yes" 1>&6
|
|
|
4685 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
|
|
4686 else
|
|
|
4687 echo "$ac_t""no" 1>&6
|
|
|
4688 fi
|
|
|
4689
|
|
0
|
4690
|
|
|
4691 fi
|
|
149
|
4692 fi
|
|
|
4693
|
|
|
4694 # Check for libraries that X11R6 Xt/Xaw programs need.
|
|
|
4695 ac_save_LDFLAGS="$LDFLAGS"
|
|
|
4696 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
|
|
4697 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
|
|
4698 # check for ICE first), but we must link in the order -lSM -lICE or
|
|
|
4699 # we get undefined symbols. So assume we have SM if we have ICE.
|
|
|
4700 # These have to be linked with before -lX11, unlike the other
|
|
|
4701 # libraries we check for below, so use a different variable.
|
|
|
4702 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
|
|
4703
|
|
|
4704 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
|
|
219
|
4705 echo "configure:4706: checking for IceConnectionNumber in -lICE" >&5
|
|
149
|
4706 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
|
|
4707
|
|
|
4708 xe_check_libs=" -lICE "
|
|
|
4709 cat > conftest.$ac_ext <<EOF
|
|
219
|
4710 #line 4711 "configure"
|
|
149
|
4711 #include "confdefs.h"
|
|
|
4712 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4713 /* We use char because int might match the return type of a gcc2
|
|
|
4714 builtin and then its argument prototype would still apply. */
|
|
|
4715 char IceConnectionNumber();
|
|
|
4716
|
|
|
4717 int main() {
|
|
|
4718 IceConnectionNumber()
|
|
|
4719 ; return 0; }
|
|
|
4720 EOF
|
|
219
|
4721 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4722 rm -rf conftest*
|
|
|
4723 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4724 else
|
|
|
4725 echo "configure: failed program was:" >&5
|
|
|
4726 cat conftest.$ac_ext >&5
|
|
|
4727 rm -rf conftest*
|
|
|
4728 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4729 fi
|
|
|
4730 rm -f conftest*
|
|
|
4731 xe_check_libs=""
|
|
|
4732
|
|
151
|
4733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4734 echo "$ac_t""yes" 1>&6
|
|
|
4735 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
|
|
4736 else
|
|
|
4737 echo "$ac_t""no" 1>&6
|
|
|
4738 fi
|
|
|
4739
|
|
|
4740
|
|
|
4741 LDFLAGS="$ac_save_LDFLAGS"
|
|
|
4742
|
|
|
4743 fi
|
|
|
4744 # Autoconf claims to find X library and include dirs for us.
|
|
|
4745 if test "$no_x" = "yes"
|
|
|
4746 then with_x11=no window_system=none HAVE_X_WINDOWS=no
|
|
|
4747 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
|
|
|
4748 fi
|
|
|
4749 fi
|
|
|
4750
|
|
|
4751 case "$with_x11" in
|
|
|
4752 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
|
|
|
4753 no ) window_system=none HAVE_X_WINDOWS=no ;;
|
|
0
|
4754 esac
|
|
|
4755
|
|
149
|
4756 if test "$with_x11" = "yes"; then
|
|
|
4757 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
4758 Defining HAVE_X_WINDOWS
|
|
|
4759 EOF
|
|
|
4760 cat >> confdefs.h <<\EOF
|
|
|
4761 #define HAVE_X_WINDOWS 1
|
|
|
4762 EOF
|
|
|
4763 }
|
|
|
4764
|
|
151
|
4765 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
|
|
175
|
4766 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
|
|
149
|
4767
|
|
|
4768 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
|
|
159
|
4769 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
|
|
149
|
4770 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
|
151
|
4771 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
|
4772 x_libraries="$lib_dir $x_libraries"
|
|
|
4773 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
|
|
149
|
4774 esac
|
|
151
|
4775 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
|
4776 x_includes="$inc_dir $x_includes"
|
|
|
4777 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
|
|
149
|
4778 esac
|
|
|
4779 break; fi
|
|
|
4780 done
|
|
|
4781
|
|
|
4782 for rel in "X11R6" "X11R5" "X11R4"; do
|
|
|
4783 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
|
|
|
4784 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
|
151
|
4785 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
|
4786 x_libraries="$x_libraries $lib_dir"
|
|
|
4787 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
|
|
149
|
4788 esac
|
|
151
|
4789 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
|
4790 x_includes="$x_includes $inc_dir"
|
|
|
4791 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
|
|
149
|
4792 esac
|
|
|
4793 break; fi
|
|
|
4794 done
|
|
|
4795
|
|
|
4796 ld_switch_x_site="$X_LIBS"
|
|
|
4797
|
|
151
|
4798
|
|
|
4799 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
|
165
|
4800 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
|
4801 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
151
|
4802
|
|
163
|
4803 runpath="" runpath_dirs=""
|
|
155
|
4804 if test -n "$LD_RUN_PATH"; then
|
|
151
|
4805 runpath="$LD_RUN_PATH"
|
|
155
|
4806 elif test "$GCC" = "yes"; then
|
|
163
|
4807 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
|
4808 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
|
155
|
4809 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
|
4810 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
|
4811 case "$arg" in P,* | -L* | -R* )
|
|
159
|
4812 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
|
163
|
4813 {
|
|
155
|
4814 xe_runpath_dir="$dir"
|
|
163
|
4815 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
4816 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
4817 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
4818 eval "$xe_add_unique_runpath_dir"
|
|
|
4819 }
|
|
155
|
4820 done ;;
|
|
|
4821 esac
|
|
|
4822 done
|
|
163
|
4823 ld_switch_run="$ld_switch_run_save"
|
|
155
|
4824 rm -f conftest*
|
|
151
|
4825 else
|
|
155
|
4826 for arg in $ld_switch_site $ld_switch_x_site; do
|
|
163
|
4827 case "$arg" in -L*) {
|
|
159
|
4828 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
|
163
|
4829 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
4830 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
4831 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
4832 eval "$xe_add_unique_runpath_dir"
|
|
|
4833 };; esac
|
|
151
|
4834 done
|
|
163
|
4835 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
|
4836 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
|
4837 eval "$xe_add_unique_runpath_dir";
|
|
|
4838 fi
|
|
155
|
4839 fi
|
|
151
|
4840 if test -n "$runpath"; then
|
|
|
4841 ld_switch_run="${dash_r}${runpath}"
|
|
|
4842 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
|
4843 fi
|
|
|
4844 fi
|
|
|
4845
|
|
|
4846
|
|
149
|
4847 if test "$extra_verbose" = "yes"; then
|
|
|
4848 echo; echo "X11 compilation variables:"
|
|
163
|
4849 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
|
|
149
|
4850 echo
|
|
|
4851 fi
|
|
|
4852
|
|
163
|
4853 echo "checking for X defines extracted by xmkmf" 1>&6
|
|
219
|
4854 echo "configure:4855: checking for X defines extracted by xmkmf" >&5
|
|
163
|
4855 rm -fr conftestdir
|
|
|
4856 if mkdir conftestdir; then
|
|
|
4857 cd conftestdir
|
|
|
4858 cat > Imakefile <<'EOF'
|
|
|
4859 xetest:
|
|
|
4860 @echo ${PROTO_DEFINES} ${STD_DEFINES}
|
|
|
4861 EOF
|
|
|
4862 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
|
4863 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
|
4864 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
|
|
|
4865 fi
|
|
|
4866 cd ..
|
|
|
4867 rm -fr conftestdir
|
|
|
4868 for word in $xmkmf_defines; do
|
|
|
4869 case "$word" in
|
|
|
4870 -D*=* ) ;;
|
|
|
4871 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
|
|
|
4872 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
4873 Defining $word
|
|
|
4874 EOF
|
|
|
4875 cat >> confdefs.h <<EOF
|
|
|
4876 #define $word 1
|
|
|
4877 EOF
|
|
|
4878 }
|
|
|
4879 ;;
|
|
|
4880 esac
|
|
|
4881 done
|
|
|
4882 fi
|
|
|
4883
|
|
149
|
4884 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
|
|
|
4885 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
|
|
219
|
4886 echo "configure:4887: checking for X11/Intrinsic.h" >&5
|
|
|
4887
|
|
|
4888 cat > conftest.$ac_ext <<EOF
|
|
|
4889 #line 4890 "configure"
|
|
149
|
4890 #include "confdefs.h"
|
|
|
4891 #include <X11/Intrinsic.h>
|
|
|
4892 EOF
|
|
|
4893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
4894 { (eval echo configure:4895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
4895 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
4896 if test -z "$ac_err"; then
|
|
|
4897 rm -rf conftest*
|
|
|
4898 eval "ac_cv_header_$ac_safe=yes"
|
|
|
4899 else
|
|
|
4900 echo "$ac_err" >&5
|
|
|
4901 echo "configure: failed program was:" >&5
|
|
|
4902 cat conftest.$ac_ext >&5
|
|
|
4903 rm -rf conftest*
|
|
|
4904 eval "ac_cv_header_$ac_safe=no"
|
|
|
4905 fi
|
|
|
4906 rm -f conftest*
|
|
|
4907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
4908 echo "$ac_t""yes" 1>&6
|
|
|
4909 :
|
|
|
4910 else
|
|
|
4911 echo "$ac_t""no" 1>&6
|
|
|
4912 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
|
|
|
4913 fi
|
|
|
4914
|
|
|
4915
|
|
|
4916
|
|
|
4917 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
|
|
219
|
4918 echo "configure:4919: checking for XOpenDisplay in -lX11" >&5
|
|
149
|
4919 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
|
|
|
4920
|
|
|
4921 xe_check_libs=" -lX11 "
|
|
|
4922 cat > conftest.$ac_ext <<EOF
|
|
219
|
4923 #line 4924 "configure"
|
|
149
|
4924 #include "confdefs.h"
|
|
|
4925 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4926 /* We use char because int might match the return type of a gcc2
|
|
|
4927 builtin and then its argument prototype would still apply. */
|
|
|
4928 char XOpenDisplay();
|
|
|
4929
|
|
|
4930 int main() {
|
|
|
4931 XOpenDisplay()
|
|
|
4932 ; return 0; }
|
|
|
4933 EOF
|
|
219
|
4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4935 rm -rf conftest*
|
|
|
4936 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4937 else
|
|
|
4938 echo "configure: failed program was:" >&5
|
|
|
4939 cat conftest.$ac_ext >&5
|
|
|
4940 rm -rf conftest*
|
|
|
4941 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4942 fi
|
|
|
4943 rm -f conftest*
|
|
|
4944 xe_check_libs=""
|
|
|
4945
|
|
151
|
4946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4947 echo "$ac_t""yes" 1>&6
|
|
|
4948 have_lib_x11=yes
|
|
|
4949 else
|
|
|
4950 echo "$ac_t""no" 1>&6
|
|
|
4951 fi
|
|
|
4952
|
|
|
4953
|
|
|
4954 if test "$have_lib_x11" != "yes"; then
|
|
|
4955
|
|
|
4956 xe_msg_checking="for XGetFontProperty in -lX11"
|
|
|
4957 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
|
|
|
4958 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
219
|
4959 echo "configure:4960: checking "$xe_msg_checking"" >&5
|
|
149
|
4960 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
|
|
|
4961
|
|
|
4962 xe_check_libs=" -lX11 -b i486-linuxaout"
|
|
|
4963 cat > conftest.$ac_ext <<EOF
|
|
219
|
4964 #line 4965 "configure"
|
|
149
|
4965 #include "confdefs.h"
|
|
|
4966 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4967 /* We use char because int might match the return type of a gcc2
|
|
|
4968 builtin and then its argument prototype would still apply. */
|
|
|
4969 char XGetFontProperty();
|
|
|
4970
|
|
|
4971 int main() {
|
|
|
4972 XGetFontProperty()
|
|
|
4973 ; return 0; }
|
|
|
4974 EOF
|
|
219
|
4975 if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4976 rm -rf conftest*
|
|
|
4977 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4978 else
|
|
|
4979 echo "configure: failed program was:" >&5
|
|
|
4980 cat conftest.$ac_ext >&5
|
|
|
4981 rm -rf conftest*
|
|
|
4982 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4983 fi
|
|
|
4984 rm -f conftest*
|
|
|
4985 xe_check_libs=""
|
|
|
4986
|
|
151
|
4987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4988 echo "$ac_t""yes" 1>&6
|
|
|
4989 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
|
|
|
4990 else
|
|
|
4991 echo "$ac_t""no" 1>&6
|
|
|
4992 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
|
|
|
4993 fi
|
|
|
4994
|
|
|
4995
|
|
0
|
4996 fi
|
|
149
|
4997 libs_x="-lX11"
|
|
151
|
4998 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
|
|
149
|
4999
|
|
153
|
5000
|
|
|
5001 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
|
|
219
|
5002 echo "configure:5003: checking for XShapeSelectInput in -lXext" >&5
|
|
153
|
5003 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
|
|
|
5004
|
|
|
5005 xe_check_libs=" -lXext "
|
|
|
5006 cat > conftest.$ac_ext <<EOF
|
|
219
|
5007 #line 5008 "configure"
|
|
153
|
5008 #include "confdefs.h"
|
|
|
5009 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5010 /* We use char because int might match the return type of a gcc2
|
|
|
5011 builtin and then its argument prototype would still apply. */
|
|
|
5012 char XShapeSelectInput();
|
|
|
5013
|
|
|
5014 int main() {
|
|
|
5015 XShapeSelectInput()
|
|
|
5016 ; return 0; }
|
|
|
5017 EOF
|
|
219
|
5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
153
|
5019 rm -rf conftest*
|
|
|
5020 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5021 else
|
|
|
5022 echo "configure: failed program was:" >&5
|
|
|
5023 cat conftest.$ac_ext >&5
|
|
|
5024 rm -rf conftest*
|
|
|
5025 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5026 fi
|
|
|
5027 rm -f conftest*
|
|
|
5028 xe_check_libs=""
|
|
|
5029
|
|
|
5030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5031 echo "$ac_t""yes" 1>&6
|
|
|
5032 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
|
|
|
5033 else
|
|
|
5034 echo "$ac_t""no" 1>&6
|
|
|
5035 fi
|
|
|
5036
|
|
|
5037
|
|
|
5038
|
|
169
|
5039
|
|
149
|
5040 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
|
|
219
|
5041 echo "configure:5042: checking for XtOpenDisplay in -lXt" >&5
|
|
149
|
5042 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
|
|
|
5043
|
|
|
5044 xe_check_libs=" -lXt "
|
|
|
5045 cat > conftest.$ac_ext <<EOF
|
|
219
|
5046 #line 5047 "configure"
|
|
149
|
5047 #include "confdefs.h"
|
|
|
5048 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5049 /* We use char because int might match the return type of a gcc2
|
|
|
5050 builtin and then its argument prototype would still apply. */
|
|
|
5051 char XtOpenDisplay();
|
|
|
5052
|
|
|
5053 int main() {
|
|
|
5054 XtOpenDisplay()
|
|
|
5055 ; return 0; }
|
|
|
5056 EOF
|
|
219
|
5057 if { (eval echo configure:5058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5058 rm -rf conftest*
|
|
|
5059 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5060 else
|
|
|
5061 echo "configure: failed program was:" >&5
|
|
|
5062 cat conftest.$ac_ext >&5
|
|
|
5063 rm -rf conftest*
|
|
|
5064 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5065 fi
|
|
|
5066 rm -f conftest*
|
|
|
5067 xe_check_libs=""
|
|
|
5068
|
|
151
|
5069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5070 echo "$ac_t""yes" 1>&6
|
|
|
5071 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
|
|
149
|
5072 else
|
|
|
5073 echo "$ac_t""no" 1>&6
|
|
|
5074 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
|
|
|
5075 fi
|
|
|
5076
|
|
169
|
5077
|
|
149
|
5078
|
|
|
5079 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
|
|
219
|
5080 echo "configure:5081: checking the version of X11 being used" >&5
|
|
149
|
5081 cat > conftest.$ac_ext <<EOF
|
|
219
|
5082 #line 5083 "configure"
|
|
149
|
5083 #include "confdefs.h"
|
|
|
5084 #include <X11/Intrinsic.h>
|
|
|
5085 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
|
|
|
5086 EOF
|
|
219
|
5087 if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
5088 then
|
|
151
|
5089 ./conftest foobar; x11_release=$?
|
|
149
|
5090 else
|
|
|
5091 echo "configure: failed program was:" >&5
|
|
|
5092 cat conftest.$ac_ext >&5
|
|
|
5093 rm -fr conftest*
|
|
151
|
5094 x11_release=4
|
|
149
|
5095 fi
|
|
|
5096 rm -fr conftest*
|
|
151
|
5097 echo "$ac_t""R${x11_release}" 1>&6
|
|
149
|
5098 { test "$extra_verbose" = "yes" && cat << EOF
|
|
151
|
5099 Defining THIS_IS_X11R${x11_release}
|
|
149
|
5100 EOF
|
|
|
5101 cat >> confdefs.h <<EOF
|
|
151
|
5102 #define THIS_IS_X11R${x11_release} 1
|
|
149
|
5103 EOF
|
|
|
5104 }
|
|
|
5105
|
|
|
5106
|
|
|
5107 for ac_hdr in X11/Xlocale.h
|
|
|
5108 do
|
|
|
5109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
5110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
219
|
5111 echo "configure:5112: checking for $ac_hdr" >&5
|
|
|
5112
|
|
|
5113 cat > conftest.$ac_ext <<EOF
|
|
|
5114 #line 5115 "configure"
|
|
149
|
5115 #include "confdefs.h"
|
|
|
5116 #include <$ac_hdr>
|
|
|
5117 EOF
|
|
|
5118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
5119 { (eval echo configure:5120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5120 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
5121 if test -z "$ac_err"; then
|
|
|
5122 rm -rf conftest*
|
|
|
5123 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5124 else
|
|
|
5125 echo "$ac_err" >&5
|
|
|
5126 echo "configure: failed program was:" >&5
|
|
|
5127 cat conftest.$ac_ext >&5
|
|
|
5128 rm -rf conftest*
|
|
|
5129 eval "ac_cv_header_$ac_safe=no"
|
|
|
5130 fi
|
|
|
5131 rm -f conftest*
|
|
|
5132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5133 echo "$ac_t""yes" 1>&6
|
|
|
5134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
5135 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
5136 Defining $ac_tr_hdr
|
|
|
5137 EOF
|
|
|
5138 cat >> confdefs.h <<EOF
|
|
|
5139 #define $ac_tr_hdr 1
|
|
|
5140 EOF
|
|
|
5141 }
|
|
|
5142
|
|
|
5143 else
|
|
|
5144 echo "$ac_t""no" 1>&6
|
|
|
5145 fi
|
|
|
5146 done
|
|
|
5147
|
|
|
5148
|
|
|
5149 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
|
|
219
|
5150 echo "configure:5151: checking for XFree86" >&5
|
|
149
|
5151 if test -d "/usr/X386/include" -o \
|
|
169
|
5152 -f "/etc/XF86Config" -o \
|
|
149
|
5153 -f "/etc/X11/XF86Config" -o \
|
|
|
5154 -f "/usr/X11R6/lib/X11/XF86Config"; then
|
|
|
5155 echo "$ac_t""yes" 1>&6
|
|
|
5156 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5157 Defining HAVE_XFREE386
|
|
|
5158 EOF
|
|
|
5159 cat >> confdefs.h <<\EOF
|
|
|
5160 #define HAVE_XFREE386 1
|
|
|
5161 EOF
|
|
|
5162 }
|
|
|
5163
|
|
|
5164 else
|
|
|
5165 echo "$ac_t""no" 1>&6
|
|
|
5166 fi
|
|
|
5167
|
|
169
|
5168 test -z "$with_xmu" && {
|
|
|
5169 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
|
|
219
|
5170 echo "configure:5171: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
|
|
169
|
5171 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
|
|
149
|
5172
|
|
|
5173 xe_check_libs=" -lXmu "
|
|
|
5174 cat > conftest.$ac_ext <<EOF
|
|
219
|
5175 #line 5176 "configure"
|
|
149
|
5176 #include "confdefs.h"
|
|
|
5177 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5178 /* We use char because int might match the return type of a gcc2
|
|
|
5179 builtin and then its argument prototype would still apply. */
|
|
169
|
5180 char XmuReadBitmapDataFromFile();
|
|
149
|
5181
|
|
|
5182 int main() {
|
|
169
|
5183 XmuReadBitmapDataFromFile()
|
|
149
|
5184 ; return 0; }
|
|
|
5185 EOF
|
|
219
|
5186 if { (eval echo configure:5187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5187 rm -rf conftest*
|
|
|
5188 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5189 else
|
|
|
5190 echo "configure: failed program was:" >&5
|
|
|
5191 cat conftest.$ac_ext >&5
|
|
|
5192 rm -rf conftest*
|
|
|
5193 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5194 fi
|
|
|
5195 rm -f conftest*
|
|
|
5196 xe_check_libs=""
|
|
|
5197
|
|
151
|
5198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5199 echo "$ac_t""yes" 1>&6
|
|
|
5200 with_xmu=yes
|
|
|
5201 else
|
|
|
5202 echo "$ac_t""no" 1>&6
|
|
|
5203 with_xmu=no
|
|
|
5204 fi
|
|
|
5205
|
|
169
|
5206 }
|
|
185
|
5207 if test "$with_xmu" = "no"; then
|
|
|
5208 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
|
|
151
|
5209 echo " xemacs will be linked with \"xmu.o\""
|
|
|
5210 fi
|
|
187
|
5211 else
|
|
185
|
5212 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
|
|
|
5213 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5214 Defining HAVE_XMU
|
|
|
5215 EOF
|
|
|
5216 cat >> confdefs.h <<\EOF
|
|
|
5217 #define HAVE_XMU 1
|
|
|
5218 EOF
|
|
|
5219 }
|
|
|
5220
|
|
169
|
5221 fi
|
|
151
|
5222
|
|
|
5223
|
|
|
5224 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
|
|
219
|
5225 echo "configure:5226: checking for main in -lXbsd" >&5
|
|
151
|
5226 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
|
|
|
5227
|
|
|
5228 xe_check_libs=" -lXbsd "
|
|
|
5229 cat > conftest.$ac_ext <<EOF
|
|
219
|
5230 #line 5231 "configure"
|
|
151
|
5231 #include "confdefs.h"
|
|
149
|
5232
|
|
|
5233 int main() {
|
|
151
|
5234 main()
|
|
149
|
5235 ; return 0; }
|
|
|
5236 EOF
|
|
219
|
5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5238 rm -rf conftest*
|
|
|
5239 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5240 else
|
|
|
5241 echo "configure: failed program was:" >&5
|
|
|
5242 cat conftest.$ac_ext >&5
|
|
|
5243 rm -rf conftest*
|
|
|
5244 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5245 fi
|
|
|
5246 rm -f conftest*
|
|
|
5247 xe_check_libs=""
|
|
|
5248
|
|
151
|
5249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5250 echo "$ac_t""yes" 1>&6
|
|
|
5251 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
|
|
|
5252 else
|
|
|
5253 echo "$ac_t""no" 1>&6
|
|
|
5254 fi
|
|
|
5255
|
|
149
|
5256
|
|
|
5257
|
|
|
5258 fi
|
|
|
5259 test -z "$window_system" && window_system="none"
|
|
|
5260
|
|
|
5261 if test "$window_system" = "none" ; then
|
|
|
5262 if test "$with_tty" = "no" ; then
|
|
|
5263 { echo "configure: error: No window system support and no TTY support - Unable to proceed." 1>&2; exit 1; }
|
|
|
5264 fi
|
|
179
|
5265 for feature in tooltalk cde offix session \
|
|
149
|
5266 menubars scrollbars toolbars dialogs xim xmu \
|
|
207
|
5267 imagick xface xpm
|
|
70
|
5268 do
|
|
149
|
5269 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
|
5270 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
|
|
70
|
5271 fi
|
|
149
|
5272 eval "with_${feature}=no"
|
|
70
|
5273 done
|
|
149
|
5274 else
|
|
|
5275 test -z "$with_toolbars" && with_toolbars=yes
|
|
|
5276 fi
|
|
|
5277
|
|
0
|
5278 bitmapdir=
|
|
|
5279
|
|
149
|
5280 case "$window_system" in
|
|
70
|
5281 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
|
|
5282 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
|
0
|
5283 esac
|
|
|
5284
|
|
149
|
5285 case "$x_libraries" in *X11R4* )
|
|
|
5286 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
|
|
|
5287 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
|
|
|
5288 esac
|
|
|
5289
|
|
179
|
5290 echo "checking for session-management option" 1>&6
|
|
219
|
5291 echo "configure:5292: checking for session-management option" >&5;
|
|
215
|
5292 if test "$with_session" = "yes"; then
|
|
177
|
5293 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
179
|
5294 Defining HAVE_SESSION
|
|
|
5295 EOF
|
|
|
5296 cat >> confdefs.h <<\EOF
|
|
|
5297 #define HAVE_SESSION 1
|
|
177
|
5298 EOF
|
|
|
5299 }
|
|
|
5300
|
|
|
5301 fi
|
|
|
5302
|
|
149
|
5303 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
|
|
|
5304 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
|
|
|
5305 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
|
|
219
|
5306 echo "configure:5307: checking for X11/Xauth.h" >&5
|
|
|
5307
|
|
|
5308 cat > conftest.$ac_ext <<EOF
|
|
|
5309 #line 5310 "configure"
|
|
149
|
5310 #include "confdefs.h"
|
|
|
5311 #include <X11/Xauth.h>
|
|
|
5312 EOF
|
|
|
5313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
5314 { (eval echo configure:5315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5315 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
5316 if test -z "$ac_err"; then
|
|
|
5317 rm -rf conftest*
|
|
|
5318 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5319 else
|
|
|
5320 echo "$ac_err" >&5
|
|
|
5321 echo "configure: failed program was:" >&5
|
|
|
5322 cat conftest.$ac_ext >&5
|
|
|
5323 rm -rf conftest*
|
|
|
5324 eval "ac_cv_header_$ac_safe=no"
|
|
|
5325 fi
|
|
|
5326 rm -f conftest*
|
|
|
5327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5328 echo "$ac_t""yes" 1>&6
|
|
|
5329 :
|
|
|
5330 else
|
|
|
5331 echo "$ac_t""no" 1>&6
|
|
|
5332 with_xauth=no
|
|
|
5333 fi
|
|
|
5334 }
|
|
|
5335 test -z "$with_xauth" && {
|
|
|
5336 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
|
|
219
|
5337 echo "configure:5338: checking for XauGetAuthByAddr in -lXau" >&5
|
|
149
|
5338 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
|
|
|
5339
|
|
|
5340 xe_check_libs=" -lXau "
|
|
|
5341 cat > conftest.$ac_ext <<EOF
|
|
219
|
5342 #line 5343 "configure"
|
|
149
|
5343 #include "confdefs.h"
|
|
|
5344 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5345 /* We use char because int might match the return type of a gcc2
|
|
|
5346 builtin and then its argument prototype would still apply. */
|
|
|
5347 char XauGetAuthByAddr();
|
|
|
5348
|
|
|
5349 int main() {
|
|
|
5350 XauGetAuthByAddr()
|
|
|
5351 ; return 0; }
|
|
|
5352 EOF
|
|
219
|
5353 if { (eval echo configure:5354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5354 rm -rf conftest*
|
|
|
5355 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5356 else
|
|
|
5357 echo "configure: failed program was:" >&5
|
|
|
5358 cat conftest.$ac_ext >&5
|
|
|
5359 rm -rf conftest*
|
|
|
5360 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5361 fi
|
|
|
5362 rm -f conftest*
|
|
|
5363 xe_check_libs=""
|
|
|
5364
|
|
151
|
5365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5366 echo "$ac_t""yes" 1>&6
|
|
|
5367 :
|
|
|
5368 else
|
|
|
5369 echo "$ac_t""no" 1>&6
|
|
|
5370 with_xauth=no
|
|
|
5371 fi
|
|
|
5372
|
|
|
5373 }
|
|
|
5374 test -z "$with_xauth" && with_xauth=yes
|
|
|
5375 if test "$with_xauth" = "yes"; then
|
|
|
5376 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5377 Defining HAVE_XAUTH
|
|
|
5378 EOF
|
|
|
5379 cat >> confdefs.h <<\EOF
|
|
|
5380 #define HAVE_XAUTH 1
|
|
|
5381 EOF
|
|
|
5382 }
|
|
|
5383
|
|
159
|
5384
|
|
|
5385 T=""
|
|
|
5386 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
5387 libs_xauth="$T"
|
|
|
5388
|
|
|
5389 fi
|
|
|
5390
|
|
149
|
5391
|
|
197
|
5392 OFFIX_O=""
|
|
207
|
5393 test "$window_system" != "x11" && with_offix=no
|
|
149
|
5394 test -z "$with_offix" && with_offix=yes
|
|
|
5395 if test "$with_offix" = "yes"; then
|
|
|
5396 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5397 Defining HAVE_OFFIX_DND
|
|
|
5398 EOF
|
|
|
5399 cat >> confdefs.h <<\EOF
|
|
|
5400 #define HAVE_OFFIX_DND 1
|
|
|
5401 EOF
|
|
|
5402 }
|
|
|
5403
|
|
197
|
5404 OFFIX_O="offix.o"
|
|
|
5405 fi
|
|
|
5406
|
|
149
|
5407
|
|
|
5408 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
|
|
|
5409 if test "$with_tooltalk" != "no" ; then
|
|
|
5410 for dir in "" "Tt/" "desktop/" ; do
|
|
|
5411 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
|
|
|
5412 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
|
|
219
|
5413 echo "configure:5414: checking for ${dir}tt_c.h" >&5
|
|
|
5414
|
|
|
5415 cat > conftest.$ac_ext <<EOF
|
|
|
5416 #line 5417 "configure"
|
|
149
|
5417 #include "confdefs.h"
|
|
|
5418 #include <${dir}tt_c.h>
|
|
|
5419 EOF
|
|
|
5420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
5421 { (eval echo configure:5422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5422 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
5423 if test -z "$ac_err"; then
|
|
|
5424 rm -rf conftest*
|
|
|
5425 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5426 else
|
|
|
5427 echo "$ac_err" >&5
|
|
|
5428 echo "configure: failed program was:" >&5
|
|
|
5429 cat conftest.$ac_ext >&5
|
|
|
5430 rm -rf conftest*
|
|
|
5431 eval "ac_cv_header_$ac_safe=no"
|
|
|
5432 fi
|
|
|
5433 rm -f conftest*
|
|
|
5434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5435 echo "$ac_t""yes" 1>&6
|
|
|
5436 tt_c_h_path="${dir}tt_c.h" && break
|
|
|
5437 else
|
|
|
5438 echo "$ac_t""no" 1>&6
|
|
|
5439 fi
|
|
|
5440
|
|
|
5441 done
|
|
|
5442 test -z "$tt_c_h_path" && with_tooltalk=no
|
|
|
5443 fi
|
|
|
5444 if test "$with_tooltalk" != "no" ; then
|
|
|
5445 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
|
|
|
5446
|
|
|
5447 xe_msg_checking="for tt_message_create in -ltt"
|
|
|
5448 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
|
|
|
5449 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
219
|
5450 echo "configure:5451: checking "$xe_msg_checking"" >&5
|
|
149
|
5451 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
|
|
|
5452
|
|
|
5453 xe_check_libs=" -ltt $extra_libs"
|
|
|
5454 cat > conftest.$ac_ext <<EOF
|
|
219
|
5455 #line 5456 "configure"
|
|
149
|
5456 #include "confdefs.h"
|
|
|
5457 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5458 /* We use char because int might match the return type of a gcc2
|
|
|
5459 builtin and then its argument prototype would still apply. */
|
|
|
5460 char tt_message_create();
|
|
|
5461
|
|
|
5462 int main() {
|
|
|
5463 tt_message_create()
|
|
|
5464 ; return 0; }
|
|
|
5465 EOF
|
|
219
|
5466 if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5467 rm -rf conftest*
|
|
|
5468 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5469 else
|
|
|
5470 echo "configure: failed program was:" >&5
|
|
|
5471 cat conftest.$ac_ext >&5
|
|
|
5472 rm -rf conftest*
|
|
|
5473 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5474 fi
|
|
|
5475 rm -f conftest*
|
|
|
5476 xe_check_libs=""
|
|
|
5477
|
|
151
|
5478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5479 echo "$ac_t""yes" 1>&6
|
|
|
5480 with_tooltalk=yes tt_libs="-ltt $extra_libs"; break
|
|
|
5481 else
|
|
|
5482 echo "$ac_t""no" 1>&6
|
|
|
5483 :
|
|
|
5484 fi
|
|
|
5485
|
|
|
5486
|
|
|
5487 done
|
|
|
5488 fi
|
|
|
5489 test -z "$with_tooltalk" && with_tooltalk=no
|
|
|
5490 if test "$with_tooltalk" = "yes"; then
|
|
|
5491 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5492 Defining TOOLTALK
|
|
|
5493 EOF
|
|
|
5494 cat >> confdefs.h <<\EOF
|
|
|
5495 #define TOOLTALK 1
|
|
|
5496 EOF
|
|
|
5497 }
|
|
|
5498
|
|
|
5499 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
5500 Defining TT_C_H_PATH = "$tt_c_h_path"
|
|
|
5501 EOF
|
|
|
5502 cat >> confdefs.h <<EOF
|
|
|
5503 #define TT_C_H_PATH "$tt_c_h_path"
|
|
|
5504 EOF
|
|
|
5505 }
|
|
|
5506
|
|
151
|
5507 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
|
|
|
5508 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
|
|
|
5509 echo " xemacs will be linked with \"tooltalk.o\""
|
|
|
5510 fi
|
|
149
|
5511 fi
|
|
|
5512
|
|
|
5513 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
|
|
|
5514 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
|
|
219
|
5515 echo "configure:5516: checking for Dt/Dt.h" >&5
|
|
|
5516
|
|
|
5517 cat > conftest.$ac_ext <<EOF
|
|
|
5518 #line 5519 "configure"
|
|
149
|
5519 #include "confdefs.h"
|
|
|
5520 #include <Dt/Dt.h>
|
|
|
5521 EOF
|
|
|
5522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
5523 { (eval echo configure:5524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5524 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
5525 if test -z "$ac_err"; then
|
|
|
5526 rm -rf conftest*
|
|
|
5527 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5528 else
|
|
|
5529 echo "$ac_err" >&5
|
|
|
5530 echo "configure: failed program was:" >&5
|
|
|
5531 cat conftest.$ac_ext >&5
|
|
|
5532 rm -rf conftest*
|
|
|
5533 eval "ac_cv_header_$ac_safe=no"
|
|
|
5534 fi
|
|
|
5535 rm -f conftest*
|
|
|
5536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5537 echo "$ac_t""yes" 1>&6
|
|
|
5538 :
|
|
|
5539 else
|
|
|
5540 echo "$ac_t""no" 1>&6
|
|
|
5541 with_cde=no
|
|
136
|
5542 fi
|
|
|
5543 }
|
|
149
|
5544 test -z "$with_cde" && {
|
|
|
5545 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
|
|
219
|
5546 echo "configure:5547: checking for DtDndDragStart in -lDtSvc" >&5
|
|
149
|
5547 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
|
|
|
5548
|
|
|
5549 xe_check_libs=" -lDtSvc "
|
|
|
5550 cat > conftest.$ac_ext <<EOF
|
|
219
|
5551 #line 5552 "configure"
|
|
149
|
5552 #include "confdefs.h"
|
|
|
5553 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5554 /* We use char because int might match the return type of a gcc2
|
|
|
5555 builtin and then its argument prototype would still apply. */
|
|
|
5556 char DtDndDragStart();
|
|
|
5557
|
|
|
5558 int main() {
|
|
|
5559 DtDndDragStart()
|
|
|
5560 ; return 0; }
|
|
|
5561 EOF
|
|
219
|
5562 if { (eval echo configure:5563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5563 rm -rf conftest*
|
|
|
5564 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5565 else
|
|
|
5566 echo "configure: failed program was:" >&5
|
|
|
5567 cat conftest.$ac_ext >&5
|
|
|
5568 rm -rf conftest*
|
|
|
5569 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5570 fi
|
|
|
5571 rm -f conftest*
|
|
|
5572 xe_check_libs=""
|
|
|
5573
|
|
151
|
5574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5575 echo "$ac_t""yes" 1>&6
|
|
|
5576 :
|
|
|
5577 else
|
|
|
5578 echo "$ac_t""no" 1>&6
|
|
|
5579 with_cde=no
|
|
|
5580 fi
|
|
|
5581
|
|
|
5582 }
|
|
|
5583 test -z "$with_cde" && with_cde=yes
|
|
|
5584 if test "$with_cde" = "yes" ; then
|
|
|
5585 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5586 Defining HAVE_CDE
|
|
|
5587 EOF
|
|
|
5588 cat >> confdefs.h <<\EOF
|
|
|
5589 #define HAVE_CDE 1
|
|
|
5590 EOF
|
|
|
5591 }
|
|
|
5592
|
|
151
|
5593 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
|
|
149
|
5594 with_tooltalk=yes # CDE requires Tooltalk
|
|
167
|
5595 need_motif=yes # CDE requires Motif
|
|
149
|
5596 fi
|
|
|
5597
|
|
|
5598
|
|
193
|
5599 if test "$with_x11" = "yes"; then
|
|
|
5600
|
|
|
5601 echo "checking for X11 graphics libraries" 1>&6
|
|
219
|
5602 echo "configure:5603: checking for X11 graphics libraries" >&5
|
|
193
|
5603 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
|
|
219
|
5604 echo "configure:5605: checking for Xpm - no older than 3.4f" >&5
|
|
193
|
5605 xe_check_libs=-lXpm
|
|
|
5606 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
|
|
219
|
5607 #line 5608 "configure"
|
|
149
|
5608 #include "confdefs.h"
|
|
|
5609 #include <X11/xpm.h>
|
|
193
|
5610 int main(int c, char **v) {
|
|
|
5611 return c == 1 ? 0 :
|
|
|
5612 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
|
|
|
5613 XpmIncludeVersion < 30406 ? 2 :
|
|
|
5614 0 ;
|
|
|
5615 }
|
|
|
5616 EOF
|
|
219
|
5617 if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
159
|
5618 then
|
|
163
|
5619 ./conftest foobar; xpm_status=$?;
|
|
193
|
5620 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
|
|
159
|
5621 else
|
|
|
5622 echo "configure: failed program was:" >&5
|
|
|
5623 cat conftest.$ac_ext >&5
|
|
|
5624 rm -fr conftest*
|
|
|
5625 with_xpm=no
|
|
|
5626 fi
|
|
|
5627 rm -fr conftest*
|
|
193
|
5628 }
|
|
|
5629 xe_check_libs=
|
|
|
5630 echo "$ac_t""$with_xpm" 1>&6
|
|
|
5631 if test "$xpm_status" = "1" -o "$xpm_status" = "2"; then
|
|
|
5632 test "$xpm_status" = "1" && problem="Xpm library version and header file version don't match!"
|
|
|
5633 test "$xpm_status" = "2" && problem="Xpm library version is too old!"
|
|
|
5634 echo "
|
|
|
5635 *** WARNING *** $problem
|
|
|
5636 I'm not touching that with a 10-foot pole!
|
|
|
5637 If you really want to use the installed version of Xpm, rerun
|
|
|
5638 configure --with-xpm=yes, but don't blame me if XEmacs crashes!
|
|
|
5639 "
|
|
|
5640 fi
|
|
|
5641 if test "$with_xpm" = "yes"; then
|
|
|
5642 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
5643 Defining HAVE_XPM
|
|
|
5644 EOF
|
|
|
5645 cat >> confdefs.h <<\EOF
|
|
|
5646 #define HAVE_XPM 1
|
|
|
5647 EOF
|
|
|
5648 }
|
|
|
5649
|
|
193
|
5650 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
|
|
|
5651 fi
|
|
|
5652
|
|
|
5653 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
149
|
5654 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
|
219
|
5655 echo "configure:5656: checking for compface.h" >&5
|
|
|
5656
|
|
|
5657 cat > conftest.$ac_ext <<EOF
|
|
|
5658 #line 5659 "configure"
|
|
0
|
5659 #include "confdefs.h"
|
|
|
5660 #include <compface.h>
|
|
|
5661 EOF
|
|
149
|
5662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
5663 { (eval echo configure:5664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5664 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
5665 if test -z "$ac_err"; then
|
|
|
5666 rm -rf conftest*
|
|
149
|
5667 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5668 else
|
|
|
5669 echo "$ac_err" >&5
|
|
|
5670 echo "configure: failed program was:" >&5
|
|
|
5671 cat conftest.$ac_ext >&5
|
|
|
5672 rm -rf conftest*
|
|
|
5673 eval "ac_cv_header_$ac_safe=no"
|
|
|
5674 fi
|
|
|
5675 rm -f conftest*
|
|
|
5676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5677 echo "$ac_t""yes" 1>&6
|
|
|
5678 :
|
|
|
5679 else
|
|
|
5680 echo "$ac_t""no" 1>&6
|
|
|
5681 with_xface=no
|
|
|
5682 fi
|
|
|
5683 }
|
|
193
|
5684 test -z "$with_xface" && {
|
|
149
|
5685 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
|
219
|
5686 echo "configure:5687: checking for UnGenFace in -lcompface" >&5
|
|
149
|
5687 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
|
5688
|
|
|
5689 xe_check_libs=" -lcompface "
|
|
|
5690 cat > conftest.$ac_ext <<EOF
|
|
219
|
5691 #line 5692 "configure"
|
|
149
|
5692 #include "confdefs.h"
|
|
|
5693 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5694 /* We use char because int might match the return type of a gcc2
|
|
|
5695 builtin and then its argument prototype would still apply. */
|
|
|
5696 char UnGenFace();
|
|
|
5697
|
|
|
5698 int main() {
|
|
|
5699 UnGenFace()
|
|
|
5700 ; return 0; }
|
|
|
5701 EOF
|
|
219
|
5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5703 rm -rf conftest*
|
|
|
5704 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5705 else
|
|
|
5706 echo "configure: failed program was:" >&5
|
|
|
5707 cat conftest.$ac_ext >&5
|
|
|
5708 rm -rf conftest*
|
|
|
5709 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5710 fi
|
|
|
5711 rm -f conftest*
|
|
|
5712 xe_check_libs=""
|
|
|
5713
|
|
151
|
5714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5715 echo "$ac_t""yes" 1>&6
|
|
|
5716 :
|
|
|
5717 else
|
|
|
5718 echo "$ac_t""no" 1>&6
|
|
|
5719 with_xface=no
|
|
|
5720 fi
|
|
|
5721
|
|
|
5722 }
|
|
193
|
5723 test -z "$with_xface" && with_xface=yes
|
|
|
5724 if test "$with_xface" = "yes"; then
|
|
|
5725 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
5726 Defining HAVE_XFACE
|
|
|
5727 EOF
|
|
|
5728 cat >> confdefs.h <<\EOF
|
|
|
5729 #define HAVE_XFACE 1
|
|
|
5730 EOF
|
|
|
5731 }
|
|
|
5732
|
|
193
|
5733 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
|
|
|
5734 fi
|
|
|
5735
|
|
209
|
5736 test -z "$with_imagick" && { ac_safe=`echo "magick/magick.h" | sed 'y%./+-%__p_%'`
|
|
|
5737 echo $ac_n "checking for magick/magick.h""... $ac_c" 1>&6
|
|
219
|
5738 echo "configure:5739: checking for magick/magick.h" >&5
|
|
|
5739
|
|
|
5740 cat > conftest.$ac_ext <<EOF
|
|
|
5741 #line 5742 "configure"
|
|
209
|
5742 #include "confdefs.h"
|
|
|
5743 #include <magick/magick.h>
|
|
0
|
5744 EOF
|
|
149
|
5745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
5746 { (eval echo configure:5747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5747 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
5748 if test -z "$ac_err"; then
|
|
149
|
5749 rm -rf conftest*
|
|
|
5750 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5751 else
|
|
|
5752 echo "$ac_err" >&5
|
|
|
5753 echo "configure: failed program was:" >&5
|
|
|
5754 cat conftest.$ac_ext >&5
|
|
|
5755 rm -rf conftest*
|
|
|
5756 eval "ac_cv_header_$ac_safe=no"
|
|
|
5757 fi
|
|
|
5758 rm -f conftest*
|
|
|
5759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5760 echo "$ac_t""yes" 1>&6
|
|
0
|
5761 :
|
|
|
5762 else
|
|
149
|
5763 echo "$ac_t""no" 1>&6
|
|
207
|
5764 with_imagick=no
|
|
149
|
5765 fi
|
|
70
|
5766 }
|
|
217
|
5767 test -z "$with_imagick" && {
|
|
|
5768 imagick_libs=""
|
|
|
5769
|
|
|
5770 echo $ac_n "checking for XDPSPixelsPerPoint in -ldps""... $ac_c" 1>&6
|
|
219
|
5771 echo "configure:5772: checking for XDPSPixelsPerPoint in -ldps" >&5
|
|
217
|
5772 ac_lib_var=`echo dps'_'XDPSPixelsPerPoint | sed 'y%./+-%__p_%'`
|
|
|
5773
|
|
|
5774 xe_check_libs="-ldpstk -ldps "
|
|
|
5775 cat > conftest.$ac_ext <<EOF
|
|
219
|
5776 #line 5777 "configure"
|
|
217
|
5777 #include "confdefs.h"
|
|
|
5778 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5779 /* We use char because int might match the return type of a gcc2
|
|
|
5780 builtin and then its argument prototype would still apply. */
|
|
|
5781 char XDPSPixelsPerPoint();
|
|
|
5782
|
|
|
5783 int main() {
|
|
|
5784 XDPSPixelsPerPoint()
|
|
|
5785 ; return 0; }
|
|
|
5786 EOF
|
|
219
|
5787 if { (eval echo configure:5788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
5788 rm -rf conftest*
|
|
|
5789 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5790 else
|
|
|
5791 echo "configure: failed program was:" >&5
|
|
|
5792 cat conftest.$ac_ext >&5
|
|
|
5793 rm -rf conftest*
|
|
|
5794 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5795 fi
|
|
|
5796 rm -f conftest*
|
|
|
5797 xe_check_libs=""
|
|
|
5798
|
|
|
5799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5800 echo "$ac_t""yes" 1>&6
|
|
|
5801 imagick_libs="$imagick_libs -ldpstk -ldps" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ldpstk -ldps\" to \$imagick_libs"; fi
|
|
|
5802 else
|
|
|
5803 echo "$ac_t""no" 1>&6
|
|
|
5804 fi
|
|
|
5805
|
|
|
5806
|
|
|
5807
|
|
|
5808 echo $ac_n "checking for FPX_SetToolkitMemoryLimit in -lfpx""... $ac_c" 1>&6
|
|
219
|
5809 echo "configure:5810: checking for FPX_SetToolkitMemoryLimit in -lfpx" >&5
|
|
217
|
5810 ac_lib_var=`echo fpx'_'FPX_SetToolkitMemoryLimit | sed 'y%./+-%__p_%'`
|
|
|
5811
|
|
|
5812 xe_check_libs=" -lfpx "
|
|
|
5813 cat > conftest.$ac_ext <<EOF
|
|
219
|
5814 #line 5815 "configure"
|
|
217
|
5815 #include "confdefs.h"
|
|
|
5816 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5817 /* We use char because int might match the return type of a gcc2
|
|
|
5818 builtin and then its argument prototype would still apply. */
|
|
|
5819 char FPX_SetToolkitMemoryLimit();
|
|
|
5820
|
|
|
5821 int main() {
|
|
|
5822 FPX_SetToolkitMemoryLimit()
|
|
|
5823 ; return 0; }
|
|
|
5824 EOF
|
|
219
|
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
5826 rm -rf conftest*
|
|
|
5827 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5828 else
|
|
|
5829 echo "configure: failed program was:" >&5
|
|
|
5830 cat conftest.$ac_ext >&5
|
|
|
5831 rm -rf conftest*
|
|
|
5832 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5833 fi
|
|
|
5834 rm -f conftest*
|
|
|
5835 xe_check_libs=""
|
|
|
5836
|
|
|
5837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5838 echo "$ac_t""yes" 1>&6
|
|
|
5839 imagick_libs="$imagick_libs -lfpx" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lfpx\" to \$imagick_libs"; fi
|
|
|
5840 else
|
|
|
5841 echo "$ac_t""no" 1>&6
|
|
|
5842 fi
|
|
|
5843
|
|
|
5844
|
|
|
5845
|
|
|
5846 echo $ac_n "checking for DF24getdims in -ldf""... $ac_c" 1>&6
|
|
219
|
5847 echo "configure:5848: checking for DF24getdims in -ldf" >&5
|
|
217
|
5848 ac_lib_var=`echo df'_'DF24getdims | sed 'y%./+-%__p_%'`
|
|
|
5849
|
|
|
5850 xe_check_libs=" -ldf "
|
|
|
5851 cat > conftest.$ac_ext <<EOF
|
|
219
|
5852 #line 5853 "configure"
|
|
217
|
5853 #include "confdefs.h"
|
|
|
5854 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5855 /* We use char because int might match the return type of a gcc2
|
|
|
5856 builtin and then its argument prototype would still apply. */
|
|
|
5857 char DF24getdims();
|
|
|
5858
|
|
|
5859 int main() {
|
|
|
5860 DF24getdims()
|
|
|
5861 ; return 0; }
|
|
|
5862 EOF
|
|
219
|
5863 if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
5864 rm -rf conftest*
|
|
|
5865 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5866 else
|
|
|
5867 echo "configure: failed program was:" >&5
|
|
|
5868 cat conftest.$ac_ext >&5
|
|
|
5869 rm -rf conftest*
|
|
|
5870 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5871 fi
|
|
|
5872 rm -f conftest*
|
|
|
5873 xe_check_libs=""
|
|
|
5874
|
|
|
5875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5876 echo "$ac_t""yes" 1>&6
|
|
|
5877 imagick_libs="$imagick_libs -ldf" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ldf\" to \$imagick_libs"; fi
|
|
|
5878 else
|
|
|
5879 echo "$ac_t""no" 1>&6
|
|
|
5880 fi
|
|
|
5881
|
|
|
5882
|
|
|
5883
|
|
|
5884 echo $ac_n "checking for jbg_dec_init in -ljbig""... $ac_c" 1>&6
|
|
219
|
5885 echo "configure:5886: checking for jbg_dec_init in -ljbig" >&5
|
|
217
|
5886 ac_lib_var=`echo jbig'_'jbg_dec_init | sed 'y%./+-%__p_%'`
|
|
|
5887
|
|
|
5888 xe_check_libs=" -ljbig "
|
|
|
5889 cat > conftest.$ac_ext <<EOF
|
|
219
|
5890 #line 5891 "configure"
|
|
217
|
5891 #include "confdefs.h"
|
|
|
5892 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5893 /* We use char because int might match the return type of a gcc2
|
|
|
5894 builtin and then its argument prototype would still apply. */
|
|
|
5895 char jbg_dec_init();
|
|
|
5896
|
|
|
5897 int main() {
|
|
|
5898 jbg_dec_init()
|
|
|
5899 ; return 0; }
|
|
|
5900 EOF
|
|
219
|
5901 if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
5902 rm -rf conftest*
|
|
|
5903 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5904 else
|
|
|
5905 echo "configure: failed program was:" >&5
|
|
|
5906 cat conftest.$ac_ext >&5
|
|
|
5907 rm -rf conftest*
|
|
|
5908 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5909 fi
|
|
|
5910 rm -f conftest*
|
|
|
5911 xe_check_libs=""
|
|
|
5912
|
|
|
5913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5914 echo "$ac_t""yes" 1>&6
|
|
|
5915 imagick_libs="$imagick_libs -ljbig" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ljbig\" to \$imagick_libs"; fi
|
|
|
5916 else
|
|
|
5917 echo "$ac_t""no" 1>&6
|
|
|
5918 fi
|
|
|
5919
|
|
|
5920
|
|
|
5921
|
|
|
5922 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
|
|
219
|
5923 echo "configure:5924: checking for jpeg_read_header in -ljpeg" >&5
|
|
217
|
5924 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
|
|
|
5925
|
|
|
5926 xe_check_libs=" -ljpeg "
|
|
|
5927 cat > conftest.$ac_ext <<EOF
|
|
219
|
5928 #line 5929 "configure"
|
|
217
|
5929 #include "confdefs.h"
|
|
|
5930 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5931 /* We use char because int might match the return type of a gcc2
|
|
|
5932 builtin and then its argument prototype would still apply. */
|
|
|
5933 char jpeg_read_header();
|
|
|
5934
|
|
|
5935 int main() {
|
|
|
5936 jpeg_read_header()
|
|
|
5937 ; return 0; }
|
|
|
5938 EOF
|
|
219
|
5939 if { (eval echo configure:5940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
5940 rm -rf conftest*
|
|
|
5941 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5942 else
|
|
|
5943 echo "configure: failed program was:" >&5
|
|
|
5944 cat conftest.$ac_ext >&5
|
|
|
5945 rm -rf conftest*
|
|
|
5946 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5947 fi
|
|
|
5948 rm -f conftest*
|
|
|
5949 xe_check_libs=""
|
|
|
5950
|
|
|
5951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5952 echo "$ac_t""yes" 1>&6
|
|
|
5953 imagick_libs="$imagick_libs -ljpeg" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ljpeg\" to \$imagick_libs"; fi
|
|
|
5954 else
|
|
|
5955 echo "$ac_t""no" 1>&6
|
|
|
5956 fi
|
|
|
5957
|
|
|
5958
|
|
|
5959
|
|
|
5960 echo $ac_n "checking for OpenMPEG in -lmpeg""... $ac_c" 1>&6
|
|
219
|
5961 echo "configure:5962: checking for OpenMPEG in -lmpeg" >&5
|
|
217
|
5962 ac_lib_var=`echo mpeg'_'OpenMPEG | sed 'y%./+-%__p_%'`
|
|
|
5963
|
|
|
5964 xe_check_libs=" -lmpeg "
|
|
|
5965 cat > conftest.$ac_ext <<EOF
|
|
219
|
5966 #line 5967 "configure"
|
|
217
|
5967 #include "confdefs.h"
|
|
|
5968 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5969 /* We use char because int might match the return type of a gcc2
|
|
|
5970 builtin and then its argument prototype would still apply. */
|
|
|
5971 char OpenMPEG();
|
|
|
5972
|
|
|
5973 int main() {
|
|
|
5974 OpenMPEG()
|
|
|
5975 ; return 0; }
|
|
|
5976 EOF
|
|
219
|
5977 if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
5978 rm -rf conftest*
|
|
|
5979 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5980 else
|
|
|
5981 echo "configure: failed program was:" >&5
|
|
|
5982 cat conftest.$ac_ext >&5
|
|
|
5983 rm -rf conftest*
|
|
|
5984 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5985 fi
|
|
|
5986 rm -f conftest*
|
|
|
5987 xe_check_libs=""
|
|
|
5988
|
|
|
5989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5990 echo "$ac_t""yes" 1>&6
|
|
|
5991 imagick_libs="$imagick_libs -lmpeg" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmpeg\" to \$imagick_libs"; fi
|
|
|
5992 else
|
|
|
5993 echo "$ac_t""no" 1>&6
|
|
|
5994 fi
|
|
|
5995
|
|
|
5996
|
|
|
5997
|
|
|
5998 echo $ac_n "checking for png_create_read_struct in -lpng""... $ac_c" 1>&6
|
|
219
|
5999 echo "configure:6000: checking for png_create_read_struct in -lpng" >&5
|
|
217
|
6000 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
|
|
|
6001
|
|
|
6002 xe_check_libs=" -lpng "
|
|
|
6003 cat > conftest.$ac_ext <<EOF
|
|
219
|
6004 #line 6005 "configure"
|
|
217
|
6005 #include "confdefs.h"
|
|
|
6006 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6007 /* We use char because int might match the return type of a gcc2
|
|
|
6008 builtin and then its argument prototype would still apply. */
|
|
|
6009 char png_create_read_struct();
|
|
|
6010
|
|
|
6011 int main() {
|
|
|
6012 png_create_read_struct()
|
|
|
6013 ; return 0; }
|
|
|
6014 EOF
|
|
219
|
6015 if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
6016 rm -rf conftest*
|
|
|
6017 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6018 else
|
|
|
6019 echo "configure: failed program was:" >&5
|
|
|
6020 cat conftest.$ac_ext >&5
|
|
|
6021 rm -rf conftest*
|
|
|
6022 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6023 fi
|
|
|
6024 rm -f conftest*
|
|
|
6025 xe_check_libs=""
|
|
|
6026
|
|
|
6027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6028 echo "$ac_t""yes" 1>&6
|
|
|
6029 imagick_libs="$imagick_libs -lpng" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lpng\" to \$imagick_libs"; fi
|
|
|
6030 else
|
|
|
6031 echo "$ac_t""no" 1>&6
|
|
|
6032 xe_msg_checking="for png_create_read_struct in -lpng"
|
|
|
6033 test -n "-lz" && xe_msg_checking="$xe_msg_checking using extra libs -lz"
|
|
|
6034 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
219
|
6035 echo "configure:6036: checking "$xe_msg_checking"" >&5
|
|
217
|
6036 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
|
|
|
6037
|
|
|
6038 xe_check_libs=" -lpng -lz"
|
|
|
6039 cat > conftest.$ac_ext <<EOF
|
|
219
|
6040 #line 6041 "configure"
|
|
217
|
6041 #include "confdefs.h"
|
|
|
6042 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6043 /* We use char because int might match the return type of a gcc2
|
|
|
6044 builtin and then its argument prototype would still apply. */
|
|
|
6045 char png_create_read_struct();
|
|
|
6046
|
|
|
6047 int main() {
|
|
|
6048 png_create_read_struct()
|
|
|
6049 ; return 0; }
|
|
|
6050 EOF
|
|
219
|
6051 if { (eval echo configure:6052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
6052 rm -rf conftest*
|
|
|
6053 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6054 else
|
|
|
6055 echo "configure: failed program was:" >&5
|
|
|
6056 cat conftest.$ac_ext >&5
|
|
|
6057 rm -rf conftest*
|
|
|
6058 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6059 fi
|
|
|
6060 rm -f conftest*
|
|
|
6061 xe_check_libs=""
|
|
|
6062
|
|
|
6063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6064 echo "$ac_t""yes" 1>&6
|
|
|
6065 imagick_libs="$imagick_libs -lpng -lz" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lpng -lz\" to \$imagick_libs"; fi
|
|
|
6066 else
|
|
|
6067 echo "$ac_t""no" 1>&6
|
|
|
6068 fi
|
|
|
6069
|
|
|
6070
|
|
|
6071 fi
|
|
|
6072
|
|
|
6073
|
|
|
6074
|
|
|
6075 echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
|
|
219
|
6076 echo "configure:6077: checking for TIFFOpen in -ltiff" >&5
|
|
217
|
6077 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
|
|
|
6078
|
|
|
6079 xe_check_libs=" -ltiff "
|
|
|
6080 cat > conftest.$ac_ext <<EOF
|
|
219
|
6081 #line 6082 "configure"
|
|
217
|
6082 #include "confdefs.h"
|
|
|
6083 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6084 /* We use char because int might match the return type of a gcc2
|
|
|
6085 builtin and then its argument prototype would still apply. */
|
|
|
6086 char TIFFOpen();
|
|
|
6087
|
|
|
6088 int main() {
|
|
|
6089 TIFFOpen()
|
|
|
6090 ; return 0; }
|
|
|
6091 EOF
|
|
219
|
6092 if { (eval echo configure:6093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
6093 rm -rf conftest*
|
|
|
6094 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6095 else
|
|
|
6096 echo "configure: failed program was:" >&5
|
|
|
6097 cat conftest.$ac_ext >&5
|
|
|
6098 rm -rf conftest*
|
|
|
6099 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6100 fi
|
|
|
6101 rm -f conftest*
|
|
|
6102 xe_check_libs=""
|
|
|
6103
|
|
|
6104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6105 echo "$ac_t""yes" 1>&6
|
|
|
6106 imagick_libs="$imagick_libs -ltiff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ltiff\" to \$imagick_libs"; fi
|
|
|
6107 else
|
|
|
6108 echo "$ac_t""no" 1>&6
|
|
|
6109 xe_msg_checking="for TIFFOpen in -ltiff"
|
|
|
6110 test -n "-ljpeg -lz" && xe_msg_checking="$xe_msg_checking using extra libs -ljpeg -lz"
|
|
|
6111 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
219
|
6112 echo "configure:6113: checking "$xe_msg_checking"" >&5
|
|
217
|
6113 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
|
|
|
6114
|
|
|
6115 xe_check_libs=" -ltiff -ljpeg -lz"
|
|
|
6116 cat > conftest.$ac_ext <<EOF
|
|
219
|
6117 #line 6118 "configure"
|
|
217
|
6118 #include "confdefs.h"
|
|
|
6119 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6120 /* We use char because int might match the return type of a gcc2
|
|
|
6121 builtin and then its argument prototype would still apply. */
|
|
|
6122 char TIFFOpen();
|
|
|
6123
|
|
|
6124 int main() {
|
|
|
6125 TIFFOpen()
|
|
|
6126 ; return 0; }
|
|
|
6127 EOF
|
|
219
|
6128 if { (eval echo configure:6129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
6129 rm -rf conftest*
|
|
|
6130 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6131 else
|
|
|
6132 echo "configure: failed program was:" >&5
|
|
|
6133 cat conftest.$ac_ext >&5
|
|
|
6134 rm -rf conftest*
|
|
|
6135 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6136 fi
|
|
|
6137 rm -f conftest*
|
|
|
6138 xe_check_libs=""
|
|
|
6139
|
|
|
6140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6141 echo "$ac_t""yes" 1>&6
|
|
|
6142 imagick_libs="$imagick_libs -ltiff -ljpeg -lz" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ltiff -ljpeg -lz\" to \$imagick_libs"; fi
|
|
|
6143 else
|
|
|
6144 echo "$ac_t""no" 1>&6
|
|
|
6145 fi
|
|
|
6146
|
|
|
6147
|
|
|
6148 fi
|
|
|
6149
|
|
|
6150
|
|
|
6151 libs_x="$libs_x $imagick_libs" && if test "$extra_verbose" = "yes"; then echo " Appending \"$imagick_libs\" to \$libs_x"; fi
|
|
|
6152 }
|
|
207
|
6153 test -z "$with_imagick" && {
|
|
|
6154 echo $ac_n "checking for MogrifyImage in -lMagick""... $ac_c" 1>&6
|
|
219
|
6155 echo "configure:6156: checking for MogrifyImage in -lMagick" >&5
|
|
207
|
6156 ac_lib_var=`echo Magick'_'MogrifyImage | sed 'y%./+-%__p_%'`
|
|
|
6157
|
|
|
6158 xe_check_libs=" -lMagick "
|
|
|
6159 cat > conftest.$ac_ext <<EOF
|
|
219
|
6160 #line 6161 "configure"
|
|
149
|
6161 #include "confdefs.h"
|
|
|
6162 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6163 /* We use char because int might match the return type of a gcc2
|
|
|
6164 builtin and then its argument prototype would still apply. */
|
|
207
|
6165 char MogrifyImage();
|
|
149
|
6166
|
|
|
6167 int main() {
|
|
207
|
6168 MogrifyImage()
|
|
149
|
6169 ; return 0; }
|
|
|
6170 EOF
|
|
219
|
6171 if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
6172 rm -rf conftest*
|
|
|
6173 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6174 else
|
|
|
6175 echo "configure: failed program was:" >&5
|
|
|
6176 cat conftest.$ac_ext >&5
|
|
|
6177 rm -rf conftest*
|
|
|
6178 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6179 fi
|
|
|
6180 rm -f conftest*
|
|
|
6181 xe_check_libs=""
|
|
|
6182
|
|
151
|
6183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
6184 echo "$ac_t""yes" 1>&6
|
|
207
|
6185 :
|
|
|
6186 else
|
|
|
6187 echo "$ac_t""no" 1>&6
|
|
|
6188 with_imagick=no
|
|
|
6189 fi
|
|
|
6190
|
|
|
6191 }
|
|
|
6192 test -z "$with_imagick" && with_imagick=yes
|
|
|
6193 if test "$with_imagick" = "yes"; then
|
|
193
|
6194 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
207
|
6195 Defining HAVE_IMAGEMAGICK
|
|
|
6196 EOF
|
|
|
6197 cat >> confdefs.h <<\EOF
|
|
|
6198 #define HAVE_IMAGEMAGICK 1
|
|
|
6199 EOF
|
|
|
6200 }
|
|
|
6201
|
|
|
6202 libs_x="-lMagick $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lMagick\" to \$libs_x"; fi
|
|
193
|
6203 fi
|
|
|
6204
|
|
|
6205
|
|
|
6206 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
|
|
219
|
6207 echo "configure:6208: checking for XawScrollbarSetThumb in -lXaw" >&5
|
|
193
|
6208 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
|
|
|
6209
|
|
|
6210 xe_check_libs=" -lXaw "
|
|
|
6211 cat > conftest.$ac_ext <<EOF
|
|
219
|
6212 #line 6213 "configure"
|
|
193
|
6213 #include "confdefs.h"
|
|
|
6214 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6215 /* We use char because int might match the return type of a gcc2
|
|
|
6216 builtin and then its argument prototype would still apply. */
|
|
|
6217 char XawScrollbarSetThumb();
|
|
|
6218
|
|
|
6219 int main() {
|
|
|
6220 XawScrollbarSetThumb()
|
|
|
6221 ; return 0; }
|
|
|
6222 EOF
|
|
219
|
6223 if { (eval echo configure:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
193
|
6224 rm -rf conftest*
|
|
|
6225 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6226 else
|
|
|
6227 echo "configure: failed program was:" >&5
|
|
|
6228 cat conftest.$ac_ext >&5
|
|
|
6229 rm -rf conftest*
|
|
|
6230 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6231 fi
|
|
|
6232 rm -f conftest*
|
|
|
6233 xe_check_libs=""
|
|
|
6234
|
|
|
6235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6236 echo "$ac_t""yes" 1>&6
|
|
|
6237 have_xaw=yes
|
|
|
6238 else
|
|
|
6239 echo "$ac_t""no" 1>&6
|
|
|
6240 have_xaw=no
|
|
|
6241 fi
|
|
|
6242
|
|
|
6243
|
|
219
|
6244
|
|
193
|
6245 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
|
|
151
|
6246 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
|
|
219
|
6247 echo "configure:6248: checking for Xm/Xm.h" >&5
|
|
|
6248
|
|
|
6249 cat > conftest.$ac_ext <<EOF
|
|
|
6250 #line 6251 "configure"
|
|
151
|
6251 #include "confdefs.h"
|
|
|
6252 #include <Xm/Xm.h>
|
|
|
6253 EOF
|
|
|
6254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
6255 { (eval echo configure:6256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
151
|
6256 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
6257 if test -z "$ac_err"; then
|
|
|
6258 rm -rf conftest*
|
|
|
6259 eval "ac_cv_header_$ac_safe=yes"
|
|
|
6260 else
|
|
|
6261 echo "$ac_err" >&5
|
|
|
6262 echo "configure: failed program was:" >&5
|
|
|
6263 cat conftest.$ac_ext >&5
|
|
|
6264 rm -rf conftest*
|
|
|
6265 eval "ac_cv_header_$ac_safe=no"
|
|
|
6266 fi
|
|
|
6267 rm -f conftest*
|
|
|
6268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
6269 echo "$ac_t""yes" 1>&6
|
|
|
6270
|
|
|
6271 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
|
|
219
|
6272 echo "configure:6273: checking for XmStringFree in -lXm" >&5
|
|
151
|
6273 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
|
|
|
6274
|
|
|
6275 xe_check_libs=" -lXm "
|
|
|
6276 cat > conftest.$ac_ext <<EOF
|
|
219
|
6277 #line 6278 "configure"
|
|
151
|
6278 #include "confdefs.h"
|
|
|
6279 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6280 /* We use char because int might match the return type of a gcc2
|
|
|
6281 builtin and then its argument prototype would still apply. */
|
|
|
6282 char XmStringFree();
|
|
|
6283
|
|
|
6284 int main() {
|
|
|
6285 XmStringFree()
|
|
|
6286 ; return 0; }
|
|
|
6287 EOF
|
|
219
|
6288 if { (eval echo configure:6289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
6289 rm -rf conftest*
|
|
|
6290 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6291 else
|
|
|
6292 echo "configure: failed program was:" >&5
|
|
|
6293 cat conftest.$ac_ext >&5
|
|
|
6294 rm -rf conftest*
|
|
|
6295 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6296 fi
|
|
|
6297 rm -f conftest*
|
|
|
6298 xe_check_libs=""
|
|
|
6299
|
|
|
6300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6301 echo "$ac_t""yes" 1>&6
|
|
|
6302 have_motif=yes
|
|
|
6303 else
|
|
|
6304 echo "$ac_t""no" 1>&6
|
|
|
6305 have_motif=no
|
|
|
6306 fi
|
|
|
6307
|
|
|
6308
|
|
|
6309 else
|
|
|
6310 echo "$ac_t""no" 1>&6
|
|
|
6311 have_motif=no
|
|
|
6312 fi
|
|
|
6313
|
|
149
|
6314
|
|
193
|
6315 fi
|
|
149
|
6316
|
|
|
6317 case "$with_menubars" in "" | "yes" | "athena" )
|
|
|
6318 with_menubars="lucid" ;;
|
|
|
6319 esac
|
|
|
6320 case "$with_dialogs" in "" | "yes" | "lucid" )
|
|
|
6321 if test "$have_motif" = "yes"; then with_dialogs="motif"
|
|
|
6322 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
|
|
|
6323 else with_dialogs=no
|
|
|
6324 fi ;;
|
|
|
6325 esac
|
|
|
6326 case "$with_scrollbars" in "" | "yes" )
|
|
|
6327 with_scrollbars="lucid" ;;
|
|
|
6328 esac
|
|
|
6329
|
|
|
6330 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
|
|
|
6331
|
|
|
6332 case "$all_widgets" in *athena* )
|
|
|
6333 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6334 Defining LWLIB_USES_ATHENA
|
|
|
6335 EOF
|
|
|
6336 cat >> confdefs.h <<\EOF
|
|
|
6337 #define LWLIB_USES_ATHENA 1
|
|
|
6338 EOF
|
|
|
6339 }
|
|
|
6340
|
|
157
|
6341 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6342 Defining NEED_ATHENA
|
|
|
6343 EOF
|
|
|
6344 cat >> confdefs.h <<\EOF
|
|
|
6345 #define NEED_ATHENA 1
|
|
|
6346 EOF
|
|
|
6347 }
|
|
|
6348
|
|
|
6349 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
|
|
151
|
6350 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
|
|
149
|
6351 esac
|
|
|
6352
|
|
|
6353 case "$all_widgets" in *motif* )
|
|
|
6354 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6355 Defining LWLIB_USES_MOTIF
|
|
|
6356 EOF
|
|
|
6357 cat >> confdefs.h <<\EOF
|
|
|
6358 #define LWLIB_USES_MOTIF 1
|
|
|
6359 EOF
|
|
|
6360 }
|
|
|
6361
|
|
157
|
6362 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6363 Defining NEED_MOTIF
|
|
|
6364 EOF
|
|
|
6365 cat >> confdefs.h <<\EOF
|
|
|
6366 #define NEED_MOTIF 1
|
|
|
6367 EOF
|
|
|
6368 }
|
|
|
6369
|
|
|
6370 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
|
|
149
|
6371 need_motif=yes ;;
|
|
70
|
6372 esac
|
|
|
6373
|
|
157
|
6374 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
|
|
219
|
6375 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
|
|
157
|
6376 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
|
|
|
6377 case "$all_widgets" in *lucid* )
|
|
|
6378 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6379 Defining NEED_LUCID
|
|
|
6380 EOF
|
|
|
6381 cat >> confdefs.h <<\EOF
|
|
|
6382 #define NEED_LUCID 1
|
|
|
6383 EOF
|
|
|
6384 }
|
|
|
6385
|
|
|
6386 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
|
|
|
6387 esac
|
|
|
6388
|
|
|
6389
|
|
|
6390
|
|
149
|
6391 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6392 Defining LWLIB_SCROLLBARS_ATHENA
|
|
|
6393 EOF
|
|
|
6394 cat >> confdefs.h <<\EOF
|
|
|
6395 #define LWLIB_SCROLLBARS_ATHENA 1
|
|
|
6396 EOF
|
|
|
6397 }
|
|
|
6398 ;; esac
|
|
|
6399 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6400 Defining LWLIB_DIALOGS_ATHENA
|
|
|
6401 EOF
|
|
|
6402 cat >> confdefs.h <<\EOF
|
|
|
6403 #define LWLIB_DIALOGS_ATHENA 1
|
|
|
6404 EOF
|
|
|
6405 }
|
|
|
6406 ;; esac
|
|
|
6407 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6408 Defining LWLIB_SCROLLBARS_ATHENA3D
|
|
|
6409 EOF
|
|
|
6410 cat >> confdefs.h <<\EOF
|
|
|
6411 #define LWLIB_SCROLLBARS_ATHENA3D 1
|
|
|
6412 EOF
|
|
|
6413 }
|
|
|
6414
|
|
|
6415 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6416 Defining LWLIB_DIALOGS_ATHENA3D
|
|
|
6417 EOF
|
|
|
6418 cat >> confdefs.h <<\EOF
|
|
|
6419 #define LWLIB_DIALOGS_ATHENA3D 1
|
|
|
6420 EOF
|
|
|
6421 }
|
|
|
6422
|
|
|
6423
|
|
|
6424 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6425 Defining HAVE_MENUBARS
|
|
|
6426 EOF
|
|
|
6427 cat >> confdefs.h <<\EOF
|
|
|
6428 #define HAVE_MENUBARS 1
|
|
|
6429 EOF
|
|
|
6430 }
|
|
|
6431
|
|
|
6432 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6433 Defining HAVE_SCROLLBARS
|
|
|
6434 EOF
|
|
|
6435 cat >> confdefs.h <<\EOF
|
|
|
6436 #define HAVE_SCROLLBARS 1
|
|
|
6437 EOF
|
|
|
6438 }
|
|
|
6439
|
|
|
6440 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6441 Defining HAVE_DIALOGS
|
|
|
6442 EOF
|
|
|
6443 cat >> confdefs.h <<\EOF
|
|
|
6444 #define HAVE_DIALOGS 1
|
|
|
6445 EOF
|
|
|
6446 }
|
|
|
6447
|
|
|
6448 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6449 Defining HAVE_TOOLBARS
|
|
|
6450 EOF
|
|
|
6451 cat >> confdefs.h <<\EOF
|
|
|
6452 #define HAVE_TOOLBARS 1
|
|
|
6453 EOF
|
|
|
6454 }
|
|
|
6455
|
|
|
6456
|
|
|
6457 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6458 Defining LWLIB_MENUBARS_LUCID
|
|
|
6459 EOF
|
|
|
6460 cat >> confdefs.h <<\EOF
|
|
|
6461 #define LWLIB_MENUBARS_LUCID 1
|
|
|
6462 EOF
|
|
|
6463 }
|
|
|
6464
|
|
|
6465 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6466 Defining LWLIB_SCROLLBARS_LUCID
|
|
|
6467 EOF
|
|
|
6468 cat >> confdefs.h <<\EOF
|
|
|
6469 #define LWLIB_SCROLLBARS_LUCID 1
|
|
|
6470 EOF
|
|
|
6471 }
|
|
|
6472
|
|
|
6473
|
|
|
6474 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6475 Defining LWLIB_MENUBARS_MOTIF
|
|
|
6476 EOF
|
|
|
6477 cat >> confdefs.h <<\EOF
|
|
|
6478 #define LWLIB_MENUBARS_MOTIF 1
|
|
|
6479 EOF
|
|
|
6480 }
|
|
|
6481
|
|
|
6482 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6483 Defining LWLIB_SCROLLBARS_MOTIF
|
|
|
6484 EOF
|
|
|
6485 cat >> confdefs.h <<\EOF
|
|
|
6486 #define LWLIB_SCROLLBARS_MOTIF 1
|
|
|
6487 EOF
|
|
|
6488 }
|
|
|
6489
|
|
|
6490 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6491 Defining LWLIB_DIALOGS_MOTIF
|
|
|
6492 EOF
|
|
|
6493 cat >> confdefs.h <<\EOF
|
|
|
6494 #define LWLIB_DIALOGS_MOTIF 1
|
|
|
6495 EOF
|
|
|
6496 }
|
|
|
6497
|
|
|
6498
|
|
151
|
6499 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6500 echo " xemacs will be linked with \"menubar.o\""
|
|
|
6501 fi
|
|
|
6502 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6503 echo " xemacs will be linked with \"scrollbar.o\""
|
|
|
6504 fi
|
|
|
6505 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6506 echo " xemacs will be linked with \"dialog.o\""
|
|
|
6507 fi
|
|
|
6508 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6509 echo " xemacs will be linked with \"toolbar.o\""
|
|
|
6510 fi
|
|
|
6511 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6512 echo " xemacs will be linked with \"gui.o\""
|
|
|
6513 fi
|
|
149
|
6514
|
|
|
6515 if test "$with_x11" = "yes"; then
|
|
151
|
6516 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6517 echo " xemacs will be linked with \"menubar-x.o\""
|
|
|
6518 fi
|
|
|
6519 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6520 echo " xemacs will be linked with \"scrollbar-x.o\""
|
|
|
6521 fi
|
|
|
6522 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6523 echo " xemacs will be linked with \"dialog-x.o\""
|
|
|
6524 fi
|
|
|
6525 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6526 echo " xemacs will be linked with \"toolbar-x.o\""
|
|
|
6527 fi
|
|
|
6528 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6529 echo " xemacs will be linked with \"gui-x.o\""
|
|
|
6530 fi
|
|
211
|
6531 else
|
|
|
6532 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
|
|
|
6533 echo "Attempt to Build NAS sound without X"
|
|
|
6534 echo "Please remove NAS configuration or build with X"
|
|
|
6535 exit 1
|
|
|
6536 fi
|
|
149
|
6537 fi
|
|
|
6538
|
|
|
6539
|
|
|
6540 test -z "$with_mule" && with_mule=no
|
|
|
6541
|
|
207
|
6542 if test "$with_mule" = "yes" && test ! -d "$srcdir/lisp/mule"; then
|
|
|
6543 echo "Attempt to Build with Mule without Mule/Lisp"
|
|
|
6544 echo "Please install the XEmacs/Mule tarball or"
|
|
|
6545 echo "rerun configure with --with-mule=no"
|
|
|
6546 exit 1
|
|
|
6547 fi
|
|
|
6548
|
|
149
|
6549 if test "$with_mule" = "yes" ; then
|
|
151
|
6550 echo "checking for Mule-related features" 1>&6
|
|
219
|
6551 echo "configure:6552: checking for Mule-related features" >&5
|
|
149
|
6552 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6553 Defining MULE
|
|
|
6554 EOF
|
|
|
6555 cat >> confdefs.h <<\EOF
|
|
|
6556 #define MULE 1
|
|
|
6557 EOF
|
|
|
6558 }
|
|
|
6559
|
|
151
|
6560 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o mule-coding.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6561 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o mule-coding.o\""
|
|
|
6562 fi
|
|
149
|
6563
|
|
155
|
6564 for ac_hdr in libintl.h
|
|
|
6565 do
|
|
|
6566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
6567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
219
|
6568 echo "configure:6569: checking for $ac_hdr" >&5
|
|
|
6569
|
|
|
6570 cat > conftest.$ac_ext <<EOF
|
|
|
6571 #line 6572 "configure"
|
|
155
|
6572 #include "confdefs.h"
|
|
|
6573 #include <$ac_hdr>
|
|
|
6574 EOF
|
|
|
6575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
6576 { (eval echo configure:6577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
155
|
6577 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
6578 if test -z "$ac_err"; then
|
|
|
6579 rm -rf conftest*
|
|
|
6580 eval "ac_cv_header_$ac_safe=yes"
|
|
|
6581 else
|
|
|
6582 echo "$ac_err" >&5
|
|
|
6583 echo "configure: failed program was:" >&5
|
|
|
6584 cat conftest.$ac_ext >&5
|
|
|
6585 rm -rf conftest*
|
|
|
6586 eval "ac_cv_header_$ac_safe=no"
|
|
|
6587 fi
|
|
|
6588 rm -f conftest*
|
|
|
6589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
6590 echo "$ac_t""yes" 1>&6
|
|
|
6591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
6592 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
6593 Defining $ac_tr_hdr
|
|
|
6594 EOF
|
|
|
6595 cat >> confdefs.h <<EOF
|
|
|
6596 #define $ac_tr_hdr 1
|
|
|
6597 EOF
|
|
|
6598 }
|
|
|
6599
|
|
|
6600 else
|
|
|
6601 echo "$ac_t""no" 1>&6
|
|
|
6602 fi
|
|
|
6603 done
|
|
|
6604
|
|
|
6605
|
|
149
|
6606 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
|
|
219
|
6607 echo "configure:6608: checking for strerror in -lintl" >&5
|
|
149
|
6608 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
|
|
|
6609
|
|
|
6610 xe_check_libs=" -lintl "
|
|
|
6611 cat > conftest.$ac_ext <<EOF
|
|
219
|
6612 #line 6613 "configure"
|
|
149
|
6613 #include "confdefs.h"
|
|
|
6614 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6615 /* We use char because int might match the return type of a gcc2
|
|
|
6616 builtin and then its argument prototype would still apply. */
|
|
|
6617 char strerror();
|
|
|
6618
|
|
|
6619 int main() {
|
|
|
6620 strerror()
|
|
|
6621 ; return 0; }
|
|
|
6622 EOF
|
|
219
|
6623 if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
6624 rm -rf conftest*
|
|
|
6625 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6626 else
|
|
|
6627 echo "configure: failed program was:" >&5
|
|
|
6628 cat conftest.$ac_ext >&5
|
|
|
6629 rm -rf conftest*
|
|
|
6630 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6631 fi
|
|
|
6632 rm -f conftest*
|
|
|
6633 xe_check_libs=""
|
|
|
6634
|
|
151
|
6635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
6636 echo "$ac_t""yes" 1>&6
|
|
|
6637 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
6638 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
6639 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
6640 Defining $ac_tr_lib
|
|
|
6641 EOF
|
|
|
6642 cat >> confdefs.h <<EOF
|
|
|
6643 #define $ac_tr_lib 1
|
|
|
6644 EOF
|
|
|
6645 }
|
|
|
6646
|
|
151
|
6647 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
|
|
149
|
6648
|
|
|
6649 else
|
|
|
6650 echo "$ac_t""no" 1>&6
|
|
|
6651 fi
|
|
|
6652
|
|
|
6653
|
|
|
6654
|
|
|
6655 echo "checking for Mule input methods" 1>&6
|
|
219
|
6656 echo "configure:6657: checking for Mule input methods" >&5
|
|
163
|
6657 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
|
|
151
|
6658 case "$with_xim" in "" | "yes" )
|
|
149
|
6659 echo "checking for XIM" 1>&6
|
|
219
|
6660 echo "configure:6661: checking for XIM" >&5
|
|
149
|
6661
|
|
|
6662 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
|
|
219
|
6663 echo "configure:6664: checking for XmImMbLookupString in -lXm" >&5
|
|
149
|
6664 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
|
|
|
6665
|
|
|
6666 xe_check_libs=" -lXm "
|
|
|
6667 cat > conftest.$ac_ext <<EOF
|
|
219
|
6668 #line 6669 "configure"
|
|
149
|
6669 #include "confdefs.h"
|
|
|
6670 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6671 /* We use char because int might match the return type of a gcc2
|
|
|
6672 builtin and then its argument prototype would still apply. */
|
|
|
6673 char XmImMbLookupString();
|
|
|
6674
|
|
|
6675 int main() {
|
|
|
6676 XmImMbLookupString()
|
|
|
6677 ; return 0; }
|
|
|
6678 EOF
|
|
219
|
6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
6680 rm -rf conftest*
|
|
|
6681 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6682 else
|
|
|
6683 echo "configure: failed program was:" >&5
|
|
|
6684 cat conftest.$ac_ext >&5
|
|
|
6685 rm -rf conftest*
|
|
|
6686 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6687 fi
|
|
|
6688 rm -f conftest*
|
|
|
6689 xe_check_libs=""
|
|
|
6690
|
|
151
|
6691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
6692 echo "$ac_t""yes" 1>&6
|
|
|
6693 with_xim=motif
|
|
|
6694 else
|
|
|
6695 echo "$ac_t""no" 1>&6
|
|
|
6696 with_xim=xlib
|
|
|
6697 fi
|
|
|
6698
|
|
|
6699
|
|
|
6700 esac
|
|
|
6701 if test "$with_xim" != "no" ; then
|
|
|
6702 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6703 Defining HAVE_XIM
|
|
|
6704 EOF
|
|
|
6705 cat >> confdefs.h <<\EOF
|
|
|
6706 #define HAVE_XIM 1
|
|
|
6707 EOF
|
|
|
6708 }
|
|
|
6709
|
|
|
6710 if test "$with_xim" = "xlib"; then
|
|
|
6711 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6712 Defining XIM_XLIB
|
|
|
6713 EOF
|
|
|
6714 cat >> confdefs.h <<\EOF
|
|
|
6715 #define XIM_XLIB 1
|
|
|
6716 EOF
|
|
|
6717 }
|
|
|
6718
|
|
151
|
6719 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6720 echo " xemacs will be linked with \"input-method-xlib.o\""
|
|
|
6721 fi
|
|
|
6722 fi
|
|
149
|
6723 if test "$with_xim" = "motif"; then
|
|
|
6724 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6725 Defining XIM_MOTIF
|
|
|
6726 EOF
|
|
|
6727 cat >> confdefs.h <<\EOF
|
|
|
6728 #define XIM_MOTIF 1
|
|
|
6729 EOF
|
|
|
6730 }
|
|
|
6731
|
|
|
6732 need_motif=yes
|
|
151
|
6733 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6734 echo " xemacs will be linked with \"input-method-motif.o\""
|
|
|
6735 fi
|
|
149
|
6736 fi
|
|
215
|
6737 if test "$with_xim" = "motif"; then
|
|
177
|
6738 with_xfs=no
|
|
|
6739 fi
|
|
215
|
6740 fi
|
|
|
6741
|
|
|
6742 if test "$with_xfs" = "yes" ; then
|
|
|
6743 echo "checking for XFontSet" 1>&6
|
|
219
|
6744 echo "configure:6745: checking for XFontSet" >&5
|
|
215
|
6745
|
|
177
|
6746 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
|
|
219
|
6747 echo "configure:6748: checking for XmbDrawString in -lX11" >&5
|
|
177
|
6748 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
|
|
|
6749
|
|
|
6750 xe_check_libs=" -lX11 "
|
|
|
6751 cat > conftest.$ac_ext <<EOF
|
|
219
|
6752 #line 6753 "configure"
|
|
177
|
6753 #include "confdefs.h"
|
|
|
6754 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6755 /* We use char because int might match the return type of a gcc2
|
|
|
6756 builtin and then its argument prototype would still apply. */
|
|
|
6757 char XmbDrawString();
|
|
|
6758
|
|
|
6759 int main() {
|
|
|
6760 XmbDrawString()
|
|
|
6761 ; return 0; }
|
|
|
6762 EOF
|
|
219
|
6763 if { (eval echo configure:6764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
177
|
6764 rm -rf conftest*
|
|
|
6765 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6766 else
|
|
|
6767 echo "configure: failed program was:" >&5
|
|
|
6768 cat conftest.$ac_ext >&5
|
|
|
6769 rm -rf conftest*
|
|
|
6770 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6771 fi
|
|
|
6772 rm -f conftest*
|
|
|
6773 xe_check_libs=""
|
|
|
6774
|
|
|
6775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6776 echo "$ac_t""yes" 1>&6
|
|
|
6777 :
|
|
|
6778 else
|
|
|
6779 echo "$ac_t""no" 1>&6
|
|
|
6780 with_xfs=no
|
|
|
6781 fi
|
|
|
6782
|
|
|
6783
|
|
|
6784 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
|
|
|
6785 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6786 Defining USE_XFONTSET
|
|
|
6787 EOF
|
|
|
6788 cat >> confdefs.h <<\EOF
|
|
|
6789 #define USE_XFONTSET 1
|
|
|
6790 EOF
|
|
|
6791 }
|
|
|
6792
|
|
215
|
6793 if test "$with_xim" = "no" ; then
|
|
|
6794 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
|
|
177
|
6795 echo " xemacs will be linked with \"input-method-xfs.o\""
|
|
|
6796 fi
|
|
215
|
6797 fi
|
|
177
|
6798 fi
|
|
151
|
6799 fi
|
|
149
|
6800 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
|
|
151
|
6801 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
|
|
|
6802 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
|
|
219
|
6803 echo "configure:6804: checking for wnn/jllib.h" >&5
|
|
|
6804
|
|
|
6805 cat > conftest.$ac_ext <<EOF
|
|
|
6806 #line 6807 "configure"
|
|
151
|
6807 #include "confdefs.h"
|
|
|
6808 #include <wnn/jllib.h>
|
|
149
|
6809 EOF
|
|
|
6810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
6811 { (eval echo configure:6812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
6812 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
6813 if test -z "$ac_err"; then
|
|
|
6814 rm -rf conftest*
|
|
|
6815 eval "ac_cv_header_$ac_safe=yes"
|
|
|
6816 else
|
|
|
6817 echo "$ac_err" >&5
|
|
|
6818 echo "configure: failed program was:" >&5
|
|
|
6819 cat conftest.$ac_ext >&5
|
|
|
6820 rm -rf conftest*
|
|
|
6821 eval "ac_cv_header_$ac_safe=no"
|
|
|
6822 fi
|
|
|
6823 rm -f conftest*
|
|
|
6824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
6825 echo "$ac_t""yes" 1>&6
|
|
|
6826 :
|
|
|
6827 else
|
|
|
6828 echo "$ac_t""no" 1>&6
|
|
|
6829 with_wnn=no
|
|
|
6830 fi
|
|
|
6831 }
|
|
167
|
6832 if test "$with_wnn" != "no"; then
|
|
|
6833 for ac_func in crypt
|
|
|
6834 do
|
|
|
6835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
219
|
6836 echo "configure:6837: checking for $ac_func" >&5
|
|
|
6837
|
|
|
6838 cat > conftest.$ac_ext <<EOF
|
|
|
6839 #line 6840 "configure"
|
|
167
|
6840 #include "confdefs.h"
|
|
|
6841 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
6842 which can conflict with char $ac_func(); below. */
|
|
|
6843 #include <assert.h>
|
|
|
6844 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6845 /* We use char because int might match the return type of a gcc2
|
|
|
6846 builtin and then its argument prototype would still apply. */
|
|
|
6847 char $ac_func();
|
|
|
6848
|
|
|
6849 int main() {
|
|
|
6850
|
|
|
6851 /* The GNU C library defines this for functions which it implements
|
|
|
6852 to always fail with ENOSYS. Some functions are actually named
|
|
|
6853 something starting with __ and the normal name is an alias. */
|
|
|
6854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
6855 choke me
|
|
|
6856 #else
|
|
|
6857 $ac_func();
|
|
|
6858 #endif
|
|
|
6859
|
|
|
6860 ; return 0; }
|
|
|
6861 EOF
|
|
219
|
6862 if { (eval echo configure:6863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
167
|
6863 rm -rf conftest*
|
|
|
6864 eval "ac_cv_func_$ac_func=yes"
|
|
|
6865 else
|
|
|
6866 echo "configure: failed program was:" >&5
|
|
|
6867 cat conftest.$ac_ext >&5
|
|
|
6868 rm -rf conftest*
|
|
|
6869 eval "ac_cv_func_$ac_func=no"
|
|
|
6870 fi
|
|
|
6871 rm -f conftest*
|
|
|
6872
|
|
|
6873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
6874 echo "$ac_t""yes" 1>&6
|
|
|
6875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
6876 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
6877 Defining $ac_tr_func
|
|
|
6878 EOF
|
|
|
6879 cat >> confdefs.h <<EOF
|
|
|
6880 #define $ac_tr_func 1
|
|
|
6881 EOF
|
|
|
6882 }
|
|
|
6883
|
|
|
6884 else
|
|
|
6885 echo "$ac_t""no" 1>&6
|
|
|
6886 fi
|
|
|
6887 done
|
|
|
6888
|
|
|
6889 test "$ac_cv_func_crypt" != "yes" && {
|
|
|
6890 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
|
219
|
6891 echo "configure:6892: checking for crypt in -lcrypt" >&5
|
|
167
|
6892 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
|
|
|
6893
|
|
|
6894 xe_check_libs=" -lcrypt "
|
|
|
6895 cat > conftest.$ac_ext <<EOF
|
|
219
|
6896 #line 6897 "configure"
|
|
167
|
6897 #include "confdefs.h"
|
|
|
6898 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6899 /* We use char because int might match the return type of a gcc2
|
|
|
6900 builtin and then its argument prototype would still apply. */
|
|
|
6901 char crypt();
|
|
|
6902
|
|
|
6903 int main() {
|
|
|
6904 crypt()
|
|
|
6905 ; return 0; }
|
|
|
6906 EOF
|
|
219
|
6907 if { (eval echo configure:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
167
|
6908 rm -rf conftest*
|
|
|
6909 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6910 else
|
|
|
6911 echo "configure: failed program was:" >&5
|
|
|
6912 cat conftest.$ac_ext >&5
|
|
|
6913 rm -rf conftest*
|
|
|
6914 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6915 fi
|
|
|
6916 rm -f conftest*
|
|
|
6917 xe_check_libs=""
|
|
|
6918
|
|
|
6919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6920 echo "$ac_t""yes" 1>&6
|
|
|
6921 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
6922 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
6923 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
6924 Defining $ac_tr_lib
|
|
|
6925 EOF
|
|
|
6926 cat >> confdefs.h <<EOF
|
|
|
6927 #define $ac_tr_lib 1
|
|
|
6928 EOF
|
|
|
6929 }
|
|
|
6930
|
|
|
6931 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
|
|
|
6932
|
|
|
6933 else
|
|
|
6934 echo "$ac_t""no" 1>&6
|
|
|
6935 fi
|
|
|
6936
|
|
|
6937 }
|
|
|
6938 fi
|
|
|
6939 test -z "$with_wnn" && {
|
|
159
|
6940 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
|
|
219
|
6941 echo "configure:6942: checking for jl_dic_list_e in -lwnn" >&5
|
|
155
|
6942 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
149
|
6943
|
|
159
|
6944 xe_check_libs=" -lwnn "
|
|
|
6945 cat > conftest.$ac_ext <<EOF
|
|
219
|
6946 #line 6947 "configure"
|
|
149
|
6947 #include "confdefs.h"
|
|
|
6948 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6949 /* We use char because int might match the return type of a gcc2
|
|
|
6950 builtin and then its argument prototype would still apply. */
|
|
155
|
6951 char jl_dic_list_e();
|
|
149
|
6952
|
|
|
6953 int main() {
|
|
155
|
6954 jl_dic_list_e()
|
|
149
|
6955 ; return 0; }
|
|
|
6956 EOF
|
|
219
|
6957 if { (eval echo configure:6958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
6958 rm -rf conftest*
|
|
|
6959 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6960 else
|
|
|
6961 echo "configure: failed program was:" >&5
|
|
|
6962 cat conftest.$ac_ext >&5
|
|
|
6963 rm -rf conftest*
|
|
|
6964 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6965 fi
|
|
|
6966 rm -f conftest*
|
|
|
6967 xe_check_libs=""
|
|
|
6968
|
|
151
|
6969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
6970 echo "$ac_t""yes" 1>&6
|
|
159
|
6971 :
|
|
|
6972 else
|
|
|
6973 echo "$ac_t""no" 1>&6
|
|
|
6974 with_wnn=no
|
|
149
|
6975 fi
|
|
|
6976
|
|
|
6977 }
|
|
|
6978 test -z "$with_wnn" && with_wnn=yes
|
|
|
6979 if test "$with_wnn" = "yes"; then
|
|
|
6980 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6981 Defining HAVE_WNN
|
|
|
6982 EOF
|
|
|
6983 cat >> confdefs.h <<\EOF
|
|
|
6984 #define HAVE_WNN 1
|
|
|
6985 EOF
|
|
|
6986 }
|
|
|
6987
|
|
151
|
6988 libs_x="-lwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lwnn\" to \$libs_x"; fi
|
|
|
6989 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6990 echo " xemacs will be linked with \"mule-wnnfns.o\""
|
|
|
6991 fi
|
|
149
|
6992
|
|
|
6993 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
|
|
219
|
6994 echo "configure:6995: checking for jl_fi_dic_list in -lwnn" >&5
|
|
149
|
6995 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
|
|
|
6996
|
|
|
6997 xe_check_libs=" -lwnn "
|
|
|
6998 cat > conftest.$ac_ext <<EOF
|
|
219
|
6999 #line 7000 "configure"
|
|
149
|
7000 #include "confdefs.h"
|
|
|
7001 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7002 /* We use char because int might match the return type of a gcc2
|
|
|
7003 builtin and then its argument prototype would still apply. */
|
|
|
7004 char jl_fi_dic_list();
|
|
|
7005
|
|
|
7006 int main() {
|
|
|
7007 jl_fi_dic_list()
|
|
|
7008 ; return 0; }
|
|
|
7009 EOF
|
|
219
|
7010 if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7011 rm -rf conftest*
|
|
|
7012 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7013 else
|
|
|
7014 echo "configure: failed program was:" >&5
|
|
|
7015 cat conftest.$ac_ext >&5
|
|
|
7016 rm -rf conftest*
|
|
|
7017 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7018 fi
|
|
|
7019 rm -f conftest*
|
|
|
7020 xe_check_libs=""
|
|
|
7021
|
|
151
|
7022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
7023 echo "$ac_t""yes" 1>&6
|
|
|
7024 with_wnn6=yes
|
|
|
7025 else
|
|
|
7026 echo "$ac_t""no" 1>&6
|
|
|
7027 fi
|
|
|
7028
|
|
|
7029
|
|
|
7030 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
151
|
7031 Defining WNN6
|
|
|
7032 EOF
|
|
|
7033 cat >> confdefs.h <<\EOF
|
|
|
7034 #define WNN6 1
|
|
|
7035 EOF
|
|
|
7036 }
|
|
|
7037
|
|
|
7038 fi
|
|
149
|
7039
|
|
|
7040 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
|
|
|
7041 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
|
|
219
|
7042 echo "configure:7043: checking for canna/RK.h" >&5
|
|
|
7043
|
|
|
7044 cat > conftest.$ac_ext <<EOF
|
|
|
7045 #line 7046 "configure"
|
|
149
|
7046 #include "confdefs.h"
|
|
|
7047 #include <canna/RK.h>
|
|
|
7048 EOF
|
|
|
7049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
7050 { (eval echo configure:7051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
7051 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
7052 if test -z "$ac_err"; then
|
|
|
7053 rm -rf conftest*
|
|
|
7054 eval "ac_cv_header_$ac_safe=yes"
|
|
|
7055 else
|
|
|
7056 echo "$ac_err" >&5
|
|
|
7057 echo "configure: failed program was:" >&5
|
|
|
7058 cat conftest.$ac_ext >&5
|
|
|
7059 rm -rf conftest*
|
|
|
7060 eval "ac_cv_header_$ac_safe=no"
|
|
|
7061 fi
|
|
|
7062 rm -f conftest*
|
|
|
7063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
7064 echo "$ac_t""yes" 1>&6
|
|
|
7065 :
|
|
|
7066 else
|
|
|
7067 echo "$ac_t""no" 1>&6
|
|
|
7068 with_canna=no
|
|
|
7069 fi
|
|
|
7070 }
|
|
|
7071 test -z "$with_canna" && {
|
|
|
7072 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
|
|
219
|
7073 echo "configure:7074: checking for RkBgnBun in -lRKC" >&5
|
|
149
|
7074 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
|
|
|
7075
|
|
|
7076 xe_check_libs=" -lRKC "
|
|
|
7077 cat > conftest.$ac_ext <<EOF
|
|
219
|
7078 #line 7079 "configure"
|
|
149
|
7079 #include "confdefs.h"
|
|
|
7080 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7081 /* We use char because int might match the return type of a gcc2
|
|
|
7082 builtin and then its argument prototype would still apply. */
|
|
|
7083 char RkBgnBun();
|
|
|
7084
|
|
|
7085 int main() {
|
|
|
7086 RkBgnBun()
|
|
|
7087 ; return 0; }
|
|
|
7088 EOF
|
|
219
|
7089 if { (eval echo configure:7090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7090 rm -rf conftest*
|
|
|
7091 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7092 else
|
|
|
7093 echo "configure: failed program was:" >&5
|
|
|
7094 cat conftest.$ac_ext >&5
|
|
|
7095 rm -rf conftest*
|
|
|
7096 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7097 fi
|
|
|
7098 rm -f conftest*
|
|
|
7099 xe_check_libs=""
|
|
|
7100
|
|
151
|
7101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
7102 echo "$ac_t""yes" 1>&6
|
|
|
7103 :
|
|
|
7104 else
|
|
|
7105 echo "$ac_t""no" 1>&6
|
|
|
7106 with_canna=no
|
|
|
7107 fi
|
|
|
7108
|
|
|
7109 }
|
|
|
7110 test -z "$with_canna" && {
|
|
|
7111 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
|
|
219
|
7112 echo "configure:7113: checking for jrKanjiControl in -lcanna" >&5
|
|
149
|
7113 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
|
|
|
7114
|
|
|
7115 xe_check_libs=" -lcanna "
|
|
|
7116 cat > conftest.$ac_ext <<EOF
|
|
219
|
7117 #line 7118 "configure"
|
|
149
|
7118 #include "confdefs.h"
|
|
|
7119 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7120 /* We use char because int might match the return type of a gcc2
|
|
|
7121 builtin and then its argument prototype would still apply. */
|
|
|
7122 char jrKanjiControl();
|
|
|
7123
|
|
|
7124 int main() {
|
|
|
7125 jrKanjiControl()
|
|
|
7126 ; return 0; }
|
|
|
7127 EOF
|
|
219
|
7128 if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7129 rm -rf conftest*
|
|
|
7130 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7131 else
|
|
|
7132 echo "configure: failed program was:" >&5
|
|
|
7133 cat conftest.$ac_ext >&5
|
|
|
7134 rm -rf conftest*
|
|
|
7135 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7136 fi
|
|
|
7137 rm -f conftest*
|
|
|
7138 xe_check_libs=""
|
|
|
7139
|
|
151
|
7140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
7141 echo "$ac_t""yes" 1>&6
|
|
|
7142 :
|
|
|
7143 else
|
|
|
7144 echo "$ac_t""no" 1>&6
|
|
|
7145 with_canna=no
|
|
|
7146 fi
|
|
|
7147
|
|
|
7148 }
|
|
|
7149 test -z "$with_canna" && with_canna=yes
|
|
|
7150 if test "$with_canna" = "yes"; then
|
|
|
7151 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7152 Defining HAVE_CANNA
|
|
|
7153 EOF
|
|
|
7154 cat >> confdefs.h <<\EOF
|
|
|
7155 #define HAVE_CANNA 1
|
|
|
7156 EOF
|
|
|
7157 }
|
|
|
7158
|
|
151
|
7159 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
|
|
|
7160 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7161 echo " xemacs will be linked with \"mule-canna.o\""
|
|
|
7162 fi
|
|
|
7163 fi
|
|
155
|
7164
|
|
151
|
7165 else for feature in xim canna wnn; do
|
|
149
|
7166 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
|
7167 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
|
|
|
7168 fi
|
|
|
7169 eval "with_${feature}=no"
|
|
|
7170 done
|
|
151
|
7171 fi
|
|
|
7172
|
|
|
7173 if test "$need_motif" = "yes" ; then
|
|
|
7174 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
|
|
207
|
7175
|
|
|
7176 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
|
|
219
|
7177 echo "configure:7178: checking for layout_object_getvalue in -li18n" >&5
|
|
207
|
7178 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
|
|
|
7179
|
|
|
7180 xe_check_libs=" -li18n "
|
|
|
7181 cat > conftest.$ac_ext <<EOF
|
|
219
|
7182 #line 7183 "configure"
|
|
207
|
7183 #include "confdefs.h"
|
|
|
7184 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7185 /* We use char because int might match the return type of a gcc2
|
|
|
7186 builtin and then its argument prototype would still apply. */
|
|
|
7187 char layout_object_getvalue();
|
|
|
7188
|
|
|
7189 int main() {
|
|
|
7190 layout_object_getvalue()
|
|
|
7191 ; return 0; }
|
|
|
7192 EOF
|
|
219
|
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
207
|
7194 rm -rf conftest*
|
|
|
7195 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7196 else
|
|
|
7197 echo "configure: failed program was:" >&5
|
|
|
7198 cat conftest.$ac_ext >&5
|
|
|
7199 rm -rf conftest*
|
|
|
7200 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7201 fi
|
|
|
7202 rm -f conftest*
|
|
|
7203 xe_check_libs=""
|
|
|
7204
|
|
|
7205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
7206 echo "$ac_t""yes" 1>&6
|
|
|
7207 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
|
|
|
7208 else
|
|
|
7209 echo "$ac_t""no" 1>&6
|
|
|
7210 fi
|
|
|
7211
|
|
|
7212
|
|
151
|
7213
|
|
|
7214 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
|
165
|
7215 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
|
7216 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
151
|
7217
|
|
163
|
7218 runpath="" runpath_dirs=""
|
|
155
|
7219 if test -n "$LD_RUN_PATH"; then
|
|
151
|
7220 runpath="$LD_RUN_PATH"
|
|
155
|
7221 elif test "$GCC" = "yes"; then
|
|
163
|
7222 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
|
7223 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
|
155
|
7224 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
|
7225 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
|
7226 case "$arg" in P,* | -L* | -R* )
|
|
159
|
7227 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
|
163
|
7228 {
|
|
155
|
7229 xe_runpath_dir="$dir"
|
|
163
|
7230 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
7231 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
7232 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
7233 eval "$xe_add_unique_runpath_dir"
|
|
|
7234 }
|
|
155
|
7235 done ;;
|
|
|
7236 esac
|
|
|
7237 done
|
|
163
|
7238 ld_switch_run="$ld_switch_run_save"
|
|
155
|
7239 rm -f conftest*
|
|
151
|
7240 else
|
|
155
|
7241 for arg in $ld_switch_site $ld_switch_x_site; do
|
|
163
|
7242 case "$arg" in -L*) {
|
|
159
|
7243 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
|
163
|
7244 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
7245 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
7246 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
7247 eval "$xe_add_unique_runpath_dir"
|
|
|
7248 };; esac
|
|
151
|
7249 done
|
|
163
|
7250 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
|
7251 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
|
7252 eval "$xe_add_unique_runpath_dir";
|
|
|
7253 fi
|
|
155
|
7254 fi
|
|
151
|
7255 if test -n "$runpath"; then
|
|
|
7256 ld_switch_run="${dash_r}${runpath}"
|
|
|
7257 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
|
7258 fi
|
|
|
7259 fi
|
|
|
7260
|
|
|
7261 fi
|
|
|
7262
|
|
169
|
7263 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 rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset ulimit usleep utimes waitpid
|
|
149
|
7264 do
|
|
|
7265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
219
|
7266 echo "configure:7267: checking for $ac_func" >&5
|
|
|
7267
|
|
|
7268 cat > conftest.$ac_ext <<EOF
|
|
|
7269 #line 7270 "configure"
|
|
149
|
7270 #include "confdefs.h"
|
|
|
7271 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
7272 which can conflict with char $ac_func(); below. */
|
|
|
7273 #include <assert.h>
|
|
|
7274 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7275 /* We use char because int might match the return type of a gcc2
|
|
|
7276 builtin and then its argument prototype would still apply. */
|
|
|
7277 char $ac_func();
|
|
|
7278
|
|
|
7279 int main() {
|
|
|
7280
|
|
70
|
7281 /* The GNU C library defines this for functions which it implements
|
|
|
7282 to always fail with ENOSYS. Some functions are actually named
|
|
|
7283 something starting with __ and the normal name is an alias. */
|
|
149
|
7284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
70
|
7285 choke me
|
|
|
7286 #else
|
|
149
|
7287 $ac_func();
|
|
70
|
7288 #endif
|
|
149
|
7289
|
|
70
|
7290 ; return 0; }
|
|
|
7291 EOF
|
|
219
|
7292 if { (eval echo configure:7293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7293 rm -rf conftest*
|
|
|
7294 eval "ac_cv_func_$ac_func=yes"
|
|
|
7295 else
|
|
|
7296 echo "configure: failed program was:" >&5
|
|
|
7297 cat conftest.$ac_ext >&5
|
|
|
7298 rm -rf conftest*
|
|
|
7299 eval "ac_cv_func_$ac_func=no"
|
|
|
7300 fi
|
|
|
7301 rm -f conftest*
|
|
|
7302
|
|
|
7303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
7304 echo "$ac_t""yes" 1>&6
|
|
|
7305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
7306 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7307 Defining $ac_tr_func
|
|
|
7308 EOF
|
|
|
7309 cat >> confdefs.h <<EOF
|
|
|
7310 #define $ac_tr_func 1
|
|
|
7311 EOF
|
|
|
7312 }
|
|
|
7313
|
|
|
7314 else
|
|
|
7315 echo "$ac_t""no" 1>&6
|
|
|
7316 fi
|
|
|
7317 done
|
|
|
7318
|
|
|
7319
|
|
151
|
7320
|
|
|
7321 case "$opsys" in
|
|
209
|
7322 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
|
|
151
|
7323 echo " xemacs will be linked with \"realpath.o\""
|
|
|
7324 fi ;;
|
|
|
7325 * )
|
|
|
7326 for ac_func in realpath
|
|
|
7327 do
|
|
|
7328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
219
|
7329 echo "configure:7330: checking for $ac_func" >&5
|
|
|
7330
|
|
|
7331 cat > conftest.$ac_ext <<EOF
|
|
|
7332 #line 7333 "configure"
|
|
151
|
7333 #include "confdefs.h"
|
|
|
7334 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
7335 which can conflict with char $ac_func(); below. */
|
|
|
7336 #include <assert.h>
|
|
|
7337 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7338 /* We use char because int might match the return type of a gcc2
|
|
|
7339 builtin and then its argument prototype would still apply. */
|
|
|
7340 char $ac_func();
|
|
|
7341
|
|
|
7342 int main() {
|
|
|
7343
|
|
|
7344 /* The GNU C library defines this for functions which it implements
|
|
|
7345 to always fail with ENOSYS. Some functions are actually named
|
|
|
7346 something starting with __ and the normal name is an alias. */
|
|
|
7347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
7348 choke me
|
|
|
7349 #else
|
|
|
7350 $ac_func();
|
|
|
7351 #endif
|
|
|
7352
|
|
|
7353 ; return 0; }
|
|
|
7354 EOF
|
|
219
|
7355 if { (eval echo configure:7356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
7356 rm -rf conftest*
|
|
|
7357 eval "ac_cv_func_$ac_func=yes"
|
|
|
7358 else
|
|
|
7359 echo "configure: failed program was:" >&5
|
|
|
7360 cat conftest.$ac_ext >&5
|
|
|
7361 rm -rf conftest*
|
|
|
7362 eval "ac_cv_func_$ac_func=no"
|
|
|
7363 fi
|
|
|
7364 rm -f conftest*
|
|
|
7365
|
|
|
7366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
7367 echo "$ac_t""yes" 1>&6
|
|
|
7368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
7369 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7370 Defining $ac_tr_func
|
|
|
7371 EOF
|
|
|
7372 cat >> confdefs.h <<EOF
|
|
|
7373 #define $ac_tr_func 1
|
|
|
7374 EOF
|
|
|
7375 }
|
|
|
7376
|
|
|
7377 else
|
|
|
7378 echo "$ac_t""no" 1>&6
|
|
|
7379 fi
|
|
|
7380 done
|
|
|
7381
|
|
|
7382 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7383 echo " xemacs will be linked with \"realpath.o\""
|
|
|
7384 fi ;;
|
|
|
7385 esac
|
|
|
7386
|
|
149
|
7387 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
|
|
219
|
7388 echo "configure:7389: checking whether netdb declares h_errno" >&5
|
|
|
7389 cat > conftest.$ac_ext <<EOF
|
|
|
7390 #line 7391 "configure"
|
|
0
|
7391 #include "confdefs.h"
|
|
|
7392 #include <netdb.h>
|
|
149
|
7393 int main() {
|
|
|
7394 return h_errno;
|
|
|
7395 ; return 0; }
|
|
|
7396 EOF
|
|
219
|
7397 if { (eval echo configure:7398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7398 rm -rf conftest*
|
|
|
7399 echo "$ac_t""yes" 1>&6
|
|
|
7400 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7401 Defining HAVE_H_ERRNO
|
|
|
7402 EOF
|
|
|
7403 cat >> confdefs.h <<\EOF
|
|
|
7404 #define HAVE_H_ERRNO 1
|
|
|
7405 EOF
|
|
|
7406 }
|
|
|
7407
|
|
|
7408 else
|
|
|
7409 echo "configure: failed program was:" >&5
|
|
|
7410 cat conftest.$ac_ext >&5
|
|
|
7411 rm -rf conftest*
|
|
|
7412 echo "$ac_t""no" 1>&6
|
|
|
7413 fi
|
|
|
7414 rm -f conftest*
|
|
|
7415
|
|
|
7416 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
|
|
219
|
7417 echo "configure:7418: checking for sigsetjmp" >&5
|
|
|
7418 cat > conftest.$ac_ext <<EOF
|
|
|
7419 #line 7420 "configure"
|
|
0
|
7420 #include "confdefs.h"
|
|
|
7421 #include <setjmp.h>
|
|
149
|
7422 int main() {
|
|
|
7423 sigjmp_buf bar; sigsetjmp (bar, 0);
|
|
|
7424 ; return 0; }
|
|
|
7425 EOF
|
|
219
|
7426 if { (eval echo configure:7427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
7427 rm -rf conftest*
|
|
|
7428 echo "$ac_t""yes" 1>&6
|
|
|
7429 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7430 Defining HAVE_SIGSETJMP
|
|
|
7431 EOF
|
|
|
7432 cat >> confdefs.h <<\EOF
|
|
|
7433 #define HAVE_SIGSETJMP 1
|
|
|
7434 EOF
|
|
|
7435 }
|
|
|
7436
|
|
|
7437 else
|
|
|
7438 echo "configure: failed program was:" >&5
|
|
|
7439 cat conftest.$ac_ext >&5
|
|
|
7440 rm -rf conftest*
|
|
|
7441 echo "$ac_t""no" 1>&6
|
|
|
7442 fi
|
|
|
7443 rm -f conftest*
|
|
|
7444
|
|
|
7445 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
|
|
219
|
7446 echo "configure:7447: checking whether localtime caches TZ" >&5
|
|
149
|
7447
|
|
|
7448 if test "$ac_cv_func_tzset" = "yes"; then
|
|
|
7449 cat > conftest.$ac_ext <<EOF
|
|
219
|
7450 #line 7451 "configure"
|
|
0
|
7451 #include "confdefs.h"
|
|
|
7452 #include <time.h>
|
|
149
|
7453 #if STDC_HEADERS
|
|
0
|
7454 # include <stdlib.h>
|
|
|
7455 #endif
|
|
|
7456 extern char **environ;
|
|
|
7457 unset_TZ ()
|
|
|
7458 {
|
|
|
7459 char **from, **to;
|
|
|
7460 for (to = from = environ; (*to = *from); from++)
|
|
|
7461 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
|
7462 to++;
|
|
|
7463 }
|
|
149
|
7464 char TZ_GMT0[] = "TZ=GMT0";
|
|
|
7465 char TZ_PST8[] = "TZ=PST8";
|
|
0
|
7466 main()
|
|
|
7467 {
|
|
|
7468 time_t now = time ((time_t *) 0);
|
|
|
7469 int hour_GMT0, hour_unset;
|
|
149
|
7470 if (putenv (TZ_GMT0) != 0)
|
|
0
|
7471 exit (1);
|
|
|
7472 hour_GMT0 = localtime (&now)->tm_hour;
|
|
|
7473 unset_TZ ();
|
|
|
7474 hour_unset = localtime (&now)->tm_hour;
|
|
149
|
7475 if (putenv (TZ_PST8) != 0)
|
|
0
|
7476 exit (1);
|
|
|
7477 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
|
7478 exit (1);
|
|
|
7479 unset_TZ ();
|
|
|
7480 if (localtime (&now)->tm_hour != hour_unset)
|
|
|
7481 exit (1);
|
|
|
7482 exit (0);
|
|
|
7483 }
|
|
|
7484 EOF
|
|
219
|
7485 if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
7486 then
|
|
0
|
7487 emacs_cv_localtime_cache=no
|
|
149
|
7488 else
|
|
|
7489 echo "configure: failed program was:" >&5
|
|
|
7490 cat conftest.$ac_ext >&5
|
|
|
7491 rm -fr conftest*
|
|
0
|
7492 emacs_cv_localtime_cache=yes
|
|
|
7493 fi
|
|
|
7494 rm -fr conftest*
|
|
149
|
7495 else
|
|
|
7496 # If we lack tzset, report that localtime does not cache TZ,
|
|
|
7497 # since we can't invalidate the cache if we don't have tzset.
|
|
|
7498 emacs_cv_localtime_cache=no
|
|
|
7499 fi
|
|
|
7500 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
|
|
|
7501 if test $emacs_cv_localtime_cache = yes; then
|
|
|
7502 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7503 Defining LOCALTIME_CACHE
|
|
|
7504 EOF
|
|
|
7505 cat >> confdefs.h <<\EOF
|
|
|
7506 #define LOCALTIME_CACHE 1
|
|
|
7507 EOF
|
|
|
7508 }
|
|
|
7509
|
|
|
7510 fi
|
|
|
7511
|
|
|
7512 if test "$HAVE_TIMEVAL" = "yes"; then
|
|
|
7513 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
|
|
219
|
7514 echo "configure:7515: checking whether gettimeofday cannot accept two arguments" >&5
|
|
|
7515 cat > conftest.$ac_ext <<EOF
|
|
|
7516 #line 7517 "configure"
|
|
0
|
7517 #include "confdefs.h"
|
|
|
7518
|
|
|
7519 #ifdef TIME_WITH_SYS_TIME
|
|
|
7520 #include <sys/time.h>
|
|
|
7521 #include <time.h>
|
|
|
7522 #else
|
|
|
7523 #ifdef HAVE_SYS_TIME_H
|
|
|
7524 #include <sys/time.h>
|
|
|
7525 #else
|
|
|
7526 #include <time.h>
|
|
|
7527 #endif
|
|
|
7528 #endif
|
|
|
7529
|
|
149
|
7530 int main() {
|
|
|
7531
|
|
0
|
7532 struct timeval time;
|
|
|
7533 struct timezone dummy;
|
|
|
7534 gettimeofday (&time, &dummy);
|
|
149
|
7535
|
|
0
|
7536 ; return 0; }
|
|
|
7537 EOF
|
|
219
|
7538 if { (eval echo configure:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7539 rm -rf conftest*
|
|
|
7540 echo "$ac_t""no" 1>&6
|
|
|
7541 else
|
|
|
7542 echo "configure: failed program was:" >&5
|
|
|
7543 cat conftest.$ac_ext >&5
|
|
|
7544 rm -rf conftest*
|
|
|
7545 echo "$ac_t""yes" 1>&6
|
|
|
7546 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7547 Defining GETTIMEOFDAY_ONE_ARGUMENT
|
|
|
7548 EOF
|
|
|
7549 cat >> confdefs.h <<\EOF
|
|
|
7550 #define GETTIMEOFDAY_ONE_ARGUMENT 1
|
|
|
7551 EOF
|
|
|
7552 }
|
|
|
7553
|
|
|
7554 fi
|
|
|
7555 rm -f conftest*
|
|
|
7556 fi
|
|
|
7557
|
|
|
7558
|
|
|
7559 echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|
219
|
7560 echo "configure:7561: checking for inline" >&5
|
|
149
|
7561
|
|
|
7562 ac_cv_c_inline=no
|
|
|
7563 for ac_kw in inline __inline__ __inline; do
|
|
|
7564 cat > conftest.$ac_ext <<EOF
|
|
219
|
7565 #line 7566 "configure"
|
|
149
|
7566 #include "confdefs.h"
|
|
|
7567
|
|
|
7568 int main() {
|
|
|
7569 } $ac_kw foo() {
|
|
0
|
7570 ; return 0; }
|
|
|
7571 EOF
|
|
219
|
7572 if { (eval echo configure:7573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
7573 rm -rf conftest*
|
|
|
7574 ac_cv_c_inline=$ac_kw; break
|
|
|
7575 else
|
|
|
7576 echo "configure: failed program was:" >&5
|
|
|
7577 cat conftest.$ac_ext >&5
|
|
|
7578 fi
|
|
|
7579 rm -f conftest*
|
|
|
7580 done
|
|
|
7581
|
|
|
7582
|
|
|
7583 echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
|
7584 case "$ac_cv_c_inline" in
|
|
|
7585 inline | yes) ;;
|
|
|
7586 no) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7587 Defining inline =
|
|
|
7588 EOF
|
|
|
7589 cat >> confdefs.h <<\EOF
|
|
|
7590 #define inline
|
|
|
7591 EOF
|
|
|
7592 }
|
|
|
7593 ;;
|
|
|
7594 *) { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7595 Defining inline = $ac_cv_c_inline
|
|
|
7596 EOF
|
|
|
7597 cat >> confdefs.h <<EOF
|
|
|
7598 #define inline $ac_cv_c_inline
|
|
|
7599 EOF
|
|
|
7600 }
|
|
|
7601 ;;
|
|
|
7602 esac
|
|
|
7603
|
|
155
|
7604 if test "$ac_cv_c_inline" != "no"; then
|
|
|
7605 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
7606 Defining HAVE_INLINE
|
|
|
7607 EOF
|
|
|
7608 cat >> confdefs.h <<\EOF
|
|
|
7609 #define HAVE_INLINE 1
|
|
|
7610 EOF
|
|
|
7611 }
|
|
|
7612
|
|
155
|
7613 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7614 echo " xemacs will be linked with \"inline.o\""
|
|
|
7615 fi
|
|
|
7616 fi
|
|
149
|
7617
|
|
|
7618
|
|
0
|
7619 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|
|
7620 # for constant arguments. Useless!
|
|
149
|
7621 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|
219
|
7622 echo "configure:7623: checking for working alloca.h" >&5
|
|
|
7623
|
|
|
7624 cat > conftest.$ac_ext <<EOF
|
|
|
7625 #line 7626 "configure"
|
|
0
|
7626 #include "confdefs.h"
|
|
|
7627 #include <alloca.h>
|
|
149
|
7628 int main() {
|
|
|
7629 char *p = alloca(2 * sizeof(int));
|
|
0
|
7630 ; return 0; }
|
|
|
7631 EOF
|
|
219
|
7632 if { (eval echo configure:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7633 rm -rf conftest*
|
|
|
7634 ac_cv_header_alloca_h=yes
|
|
|
7635 else
|
|
|
7636 echo "configure: failed program was:" >&5
|
|
|
7637 cat conftest.$ac_ext >&5
|
|
|
7638 rm -rf conftest*
|
|
|
7639 ac_cv_header_alloca_h=no
|
|
|
7640 fi
|
|
|
7641 rm -f conftest*
|
|
|
7642
|
|
|
7643 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|
|
7644 if test $ac_cv_header_alloca_h = yes; then
|
|
|
7645 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7646 Defining HAVE_ALLOCA_H
|
|
|
7647 EOF
|
|
|
7648 cat >> confdefs.h <<\EOF
|
|
|
7649 #define HAVE_ALLOCA_H 1
|
|
|
7650 EOF
|
|
|
7651 }
|
|
|
7652
|
|
|
7653 fi
|
|
|
7654
|
|
|
7655 echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|
219
|
7656 echo "configure:7657: checking for alloca" >&5
|
|
|
7657
|
|
|
7658 cat > conftest.$ac_ext <<EOF
|
|
|
7659 #line 7660 "configure"
|
|
149
|
7660 #include "confdefs.h"
|
|
|
7661
|
|
|
7662 #ifdef __GNUC__
|
|
|
7663 # define alloca __builtin_alloca
|
|
0
|
7664 #else
|
|
149
|
7665 # if HAVE_ALLOCA_H
|
|
|
7666 # include <alloca.h>
|
|
|
7667 # else
|
|
|
7668 # ifdef _AIX
|
|
|
7669 #pragma alloca
|
|
|
7670 # else
|
|
|
7671 # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|
|
7672 char *alloca ();
|
|
|
7673 # endif
|
|
|
7674 # endif
|
|
|
7675 # endif
|
|
0
|
7676 #endif
|
|
149
|
7677
|
|
|
7678 int main() {
|
|
|
7679 char *p = (char *) alloca(1);
|
|
0
|
7680 ; return 0; }
|
|
|
7681 EOF
|
|
219
|
7682 if { (eval echo configure:7683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7683 rm -rf conftest*
|
|
|
7684 ac_cv_func_alloca_works=yes
|
|
|
7685 else
|
|
|
7686 echo "configure: failed program was:" >&5
|
|
|
7687 cat conftest.$ac_ext >&5
|
|
|
7688 rm -rf conftest*
|
|
|
7689 ac_cv_func_alloca_works=no
|
|
|
7690 fi
|
|
|
7691 rm -f conftest*
|
|
|
7692
|
|
|
7693 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|
|
7694 if test $ac_cv_func_alloca_works = yes; then
|
|
|
7695 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7696 Defining HAVE_ALLOCA
|
|
|
7697 EOF
|
|
|
7698 cat >> confdefs.h <<\EOF
|
|
|
7699 #define HAVE_ALLOCA 1
|
|
|
7700 EOF
|
|
|
7701 }
|
|
|
7702
|
|
|
7703 fi
|
|
|
7704
|
|
|
7705 if test $ac_cv_func_alloca_works = no; then
|
|
0
|
7706 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
|
7707 # that cause trouble. Some versions do not even contain alloca or
|
|
|
7708 # contain a buggy version. If you still want to use their alloca,
|
|
|
7709 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|
|
7710 ALLOCA=alloca.o
|
|
149
|
7711 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7712 Defining C_ALLOCA
|
|
|
7713 EOF
|
|
|
7714 cat >> confdefs.h <<\EOF
|
|
|
7715 #define C_ALLOCA 1
|
|
|
7716 EOF
|
|
|
7717 }
|
|
|
7718
|
|
|
7719
|
|
|
7720 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|
219
|
7721 echo "configure:7722: checking whether alloca needs Cray hooks" >&5
|
|
|
7722
|
|
|
7723 cat > conftest.$ac_ext <<EOF
|
|
|
7724 #line 7725 "configure"
|
|
149
|
7725 #include "confdefs.h"
|
|
|
7726 #if defined(CRAY) && ! defined(CRAY2)
|
|
|
7727 webecray
|
|
|
7728 #else
|
|
|
7729 wenotbecray
|
|
|
7730 #endif
|
|
|
7731
|
|
|
7732 EOF
|
|
|
7733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
7734 egrep "webecray" >/dev/null 2>&1; then
|
|
|
7735 rm -rf conftest*
|
|
|
7736 ac_cv_os_cray=yes
|
|
|
7737 else
|
|
|
7738 rm -rf conftest*
|
|
|
7739 ac_cv_os_cray=no
|
|
|
7740 fi
|
|
|
7741 rm -f conftest*
|
|
|
7742
|
|
|
7743
|
|
|
7744 echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|
|
7745 if test $ac_cv_os_cray = yes; then
|
|
|
7746 for ac_func in _getb67 GETB67 getb67; do
|
|
|
7747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
219
|
7748 echo "configure:7749: checking for $ac_func" >&5
|
|
|
7749
|
|
|
7750 cat > conftest.$ac_ext <<EOF
|
|
|
7751 #line 7752 "configure"
|
|
149
|
7752 #include "confdefs.h"
|
|
|
7753 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
7754 which can conflict with char $ac_func(); below. */
|
|
|
7755 #include <assert.h>
|
|
|
7756 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7757 /* We use char because int might match the return type of a gcc2
|
|
|
7758 builtin and then its argument prototype would still apply. */
|
|
|
7759 char $ac_func();
|
|
|
7760
|
|
|
7761 int main() {
|
|
|
7762
|
|
|
7763 /* The GNU C library defines this for functions which it implements
|
|
|
7764 to always fail with ENOSYS. Some functions are actually named
|
|
|
7765 something starting with __ and the normal name is an alias. */
|
|
|
7766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
7767 choke me
|
|
|
7768 #else
|
|
|
7769 $ac_func();
|
|
|
7770 #endif
|
|
|
7771
|
|
|
7772 ; return 0; }
|
|
|
7773 EOF
|
|
219
|
7774 if { (eval echo configure:7775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7775 rm -rf conftest*
|
|
|
7776 eval "ac_cv_func_$ac_func=yes"
|
|
|
7777 else
|
|
|
7778 echo "configure: failed program was:" >&5
|
|
|
7779 cat conftest.$ac_ext >&5
|
|
|
7780 rm -rf conftest*
|
|
|
7781 eval "ac_cv_func_$ac_func=no"
|
|
|
7782 fi
|
|
|
7783 rm -f conftest*
|
|
|
7784
|
|
|
7785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
7786 echo "$ac_t""yes" 1>&6
|
|
|
7787 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7788 Defining CRAY_STACKSEG_END = $ac_func
|
|
|
7789 EOF
|
|
|
7790 cat >> confdefs.h <<EOF
|
|
|
7791 #define CRAY_STACKSEG_END $ac_func
|
|
|
7792 EOF
|
|
|
7793 }
|
|
|
7794
|
|
|
7795 break
|
|
|
7796 else
|
|
|
7797 echo "$ac_t""no" 1>&6
|
|
|
7798 fi
|
|
|
7799
|
|
|
7800 done
|
|
|
7801 fi
|
|
|
7802
|
|
|
7803 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|
219
|
7804 echo "configure:7805: checking stack direction for C alloca" >&5
|
|
|
7805
|
|
|
7806 cat > conftest.$ac_ext <<EOF
|
|
|
7807 #line 7808 "configure"
|
|
0
|
7808 #include "confdefs.h"
|
|
|
7809 find_stack_direction ()
|
|
|
7810 {
|
|
|
7811 static char *addr = 0;
|
|
|
7812 auto char dummy;
|
|
|
7813 if (addr == 0)
|
|
|
7814 {
|
|
|
7815 addr = &dummy;
|
|
|
7816 return find_stack_direction ();
|
|
|
7817 }
|
|
|
7818 else
|
|
|
7819 return (&dummy > addr) ? 1 : -1;
|
|
|
7820 }
|
|
|
7821 main ()
|
|
|
7822 {
|
|
|
7823 exit (find_stack_direction() < 0);
|
|
|
7824 }
|
|
|
7825 EOF
|
|
219
|
7826 if { (eval echo configure:7827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
7827 then
|
|
|
7828 ac_cv_c_stack_direction=1
|
|
|
7829 else
|
|
|
7830 echo "configure: failed program was:" >&5
|
|
|
7831 cat conftest.$ac_ext >&5
|
|
|
7832 rm -fr conftest*
|
|
|
7833 ac_cv_c_stack_direction=-1
|
|
0
|
7834 fi
|
|
|
7835 rm -fr conftest*
|
|
149
|
7836
|
|
|
7837 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|
|
7838 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7839 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
|
|
|
7840 EOF
|
|
|
7841 cat >> confdefs.h <<EOF
|
|
|
7842 #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
|
7843 EOF
|
|
|
7844 }
|
|
|
7845
|
|
|
7846 fi
|
|
|
7847
|
|
151
|
7848 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
|
|
|
7849 echo " xemacs will be linked with \"$ALLOCA\""
|
|
|
7850 fi
|
|
149
|
7851
|
|
|
7852 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
|
|
|
7853 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
|
|
219
|
7854 echo "configure:7855: checking for vfork.h" >&5
|
|
|
7855
|
|
|
7856 cat > conftest.$ac_ext <<EOF
|
|
|
7857 #line 7858 "configure"
|
|
0
|
7858 #include "confdefs.h"
|
|
|
7859 #include <vfork.h>
|
|
|
7860 EOF
|
|
149
|
7861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
7862 { (eval echo configure:7863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
7863 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
7864 if test -z "$ac_err"; then
|
|
|
7865 rm -rf conftest*
|
|
149
|
7866 eval "ac_cv_header_$ac_safe=yes"
|
|
|
7867 else
|
|
|
7868 echo "$ac_err" >&5
|
|
|
7869 echo "configure: failed program was:" >&5
|
|
|
7870 cat conftest.$ac_ext >&5
|
|
|
7871 rm -rf conftest*
|
|
|
7872 eval "ac_cv_header_$ac_safe=no"
|
|
|
7873 fi
|
|
|
7874 rm -f conftest*
|
|
|
7875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
7876 echo "$ac_t""yes" 1>&6
|
|
|
7877 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7878 Defining HAVE_VFORK_H
|
|
|
7879 EOF
|
|
|
7880 cat >> confdefs.h <<\EOF
|
|
|
7881 #define HAVE_VFORK_H 1
|
|
|
7882 EOF
|
|
|
7883 }
|
|
|
7884
|
|
|
7885 else
|
|
|
7886 echo "$ac_t""no" 1>&6
|
|
|
7887 fi
|
|
|
7888
|
|
|
7889 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
|
|
219
|
7890 echo "configure:7891: checking for working vfork" >&5
|
|
|
7891
|
|
|
7892 cat > conftest.$ac_ext <<EOF
|
|
|
7893 #line 7894 "configure"
|
|
0
|
7894 #include "confdefs.h"
|
|
|
7895 /* Thanks to Paul Eggert for this test. */
|
|
|
7896 #include <stdio.h>
|
|
|
7897 #include <sys/types.h>
|
|
|
7898 #include <sys/stat.h>
|
|
|
7899 #ifdef HAVE_UNISTD_H
|
|
|
7900 #include <unistd.h>
|
|
|
7901 #endif
|
|
|
7902 #ifdef HAVE_VFORK_H
|
|
|
7903 #include <vfork.h>
|
|
|
7904 #endif
|
|
149
|
7905 /* On some sparc systems, changes by the child to local and incoming
|
|
|
7906 argument registers are propagated back to the parent.
|
|
|
7907 The compiler is told about this with #include <vfork.h>,
|
|
|
7908 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
|
|
|
7909 Test for this by using a static variable whose address
|
|
|
7910 is put into a register that is clobbered by the vfork. */
|
|
|
7911 static
|
|
|
7912 #ifdef __cplusplus
|
|
|
7913 sparc_address_test (int arg)
|
|
|
7914 #else
|
|
|
7915 sparc_address_test (arg) int arg;
|
|
|
7916 #endif
|
|
|
7917 {
|
|
|
7918 static pid_t child;
|
|
|
7919 if (!child) {
|
|
|
7920 child = vfork ();
|
|
|
7921 if (child < 0) {
|
|
|
7922 perror ("vfork");
|
|
|
7923 _exit(2);
|
|
|
7924 }
|
|
|
7925 if (!child) {
|
|
|
7926 arg = getpid();
|
|
|
7927 write(-1, "", 0);
|
|
|
7928 _exit (arg);
|
|
|
7929 }
|
|
|
7930 }
|
|
|
7931 }
|
|
0
|
7932 main() {
|
|
|
7933 pid_t parent = getpid ();
|
|
|
7934 pid_t child;
|
|
|
7935
|
|
149
|
7936 sparc_address_test ();
|
|
0
|
7937
|
|
|
7938 child = vfork ();
|
|
|
7939
|
|
|
7940 if (child == 0) {
|
|
149
|
7941 /* Here is another test for sparc vfork register problems.
|
|
|
7942 This test uses lots of local variables, at least
|
|
0
|
7943 as many local variables as main has allocated so far
|
|
|
7944 including compiler temporaries. 4 locals are enough for
|
|
149
|
7945 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
|
|
0
|
7946 A buggy compiler should reuse the register of parent
|
|
|
7947 for one of the local variables, since it will think that
|
|
|
7948 parent can't possibly be used any more in this routine.
|
|
|
7949 Assigning to the local variable will thus munge parent
|
|
|
7950 in the parent process. */
|
|
|
7951 pid_t
|
|
|
7952 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
|
|
7953 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
|
|
7954 /* Convince the compiler that p..p7 are live; otherwise, it might
|
|
|
7955 use the same hardware register for all 8 local variables. */
|
|
|
7956 if (p != p1 || p != p2 || p != p3 || p != p4
|
|
|
7957 || p != p5 || p != p6 || p != p7)
|
|
|
7958 _exit(1);
|
|
|
7959
|
|
|
7960 /* On some systems (e.g. IRIX 3.3),
|
|
|
7961 vfork doesn't separate parent from child file descriptors.
|
|
|
7962 If the child closes a descriptor before it execs or exits,
|
|
|
7963 this munges the parent's descriptor as well.
|
|
|
7964 Test for this by closing stdout in the child. */
|
|
|
7965 _exit(close(fileno(stdout)) != 0);
|
|
|
7966 } else {
|
|
|
7967 int status;
|
|
|
7968 struct stat st;
|
|
|
7969
|
|
|
7970 while (wait(&status) != child)
|
|
|
7971 ;
|
|
|
7972 exit(
|
|
|
7973 /* Was there some problem with vforking? */
|
|
|
7974 child < 0
|
|
|
7975
|
|
|
7976 /* Did the child fail? (This shouldn't happen.) */
|
|
|
7977 || status
|
|
|
7978
|
|
|
7979 /* Did the vfork/compiler bug occur? */
|
|
|
7980 || parent != getpid()
|
|
|
7981
|
|
|
7982 /* Did the file descriptor bug occur? */
|
|
|
7983 || fstat(fileno(stdout), &st) != 0
|
|
|
7984 );
|
|
|
7985 }
|
|
|
7986 }
|
|
|
7987 EOF
|
|
219
|
7988 if { (eval echo configure:7989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
7989 then
|
|
|
7990 ac_cv_func_vfork_works=yes
|
|
|
7991 else
|
|
|
7992 echo "configure: failed program was:" >&5
|
|
|
7993 cat conftest.$ac_ext >&5
|
|
|
7994 rm -fr conftest*
|
|
|
7995 ac_cv_func_vfork_works=no
|
|
0
|
7996 fi
|
|
|
7997 rm -fr conftest*
|
|
|
7998
|
|
149
|
7999 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
|
|
|
8000 if test $ac_cv_func_vfork_works = no; then
|
|
|
8001 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8002 Defining vfork = fork
|
|
|
8003 EOF
|
|
|
8004 cat >> confdefs.h <<\EOF
|
|
|
8005 #define vfork fork
|
|
|
8006 EOF
|
|
|
8007 }
|
|
|
8008
|
|
|
8009 fi
|
|
|
8010
|
|
|
8011
|
|
|
8012 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
|
|
219
|
8013 echo "configure:8014: checking for working strcoll" >&5
|
|
|
8014
|
|
|
8015 cat > conftest.$ac_ext <<EOF
|
|
|
8016 #line 8017 "configure"
|
|
0
|
8017 #include "confdefs.h"
|
|
|
8018 #include <string.h>
|
|
|
8019 main ()
|
|
|
8020 {
|
|
|
8021 exit (strcoll ("abc", "def") >= 0 ||
|
|
|
8022 strcoll ("ABC", "DEF") >= 0 ||
|
|
|
8023 strcoll ("123", "456") >= 0);
|
|
|
8024 }
|
|
|
8025 EOF
|
|
219
|
8026 if { (eval echo configure:8027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
8027 then
|
|
|
8028 ac_cv_func_strcoll_works=yes
|
|
|
8029 else
|
|
|
8030 echo "configure: failed program was:" >&5
|
|
|
8031 cat conftest.$ac_ext >&5
|
|
|
8032 rm -fr conftest*
|
|
|
8033 ac_cv_func_strcoll_works=no
|
|
0
|
8034 fi
|
|
|
8035 rm -fr conftest*
|
|
|
8036
|
|
149
|
8037 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
|
|
|
8038 if test $ac_cv_func_strcoll_works = yes; then
|
|
|
8039 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8040 Defining HAVE_STRCOLL
|
|
|
8041 EOF
|
|
|
8042 cat >> confdefs.h <<\EOF
|
|
|
8043 #define HAVE_STRCOLL 1
|
|
|
8044 EOF
|
|
|
8045 }
|
|
|
8046
|
|
|
8047 fi
|
|
|
8048
|
|
|
8049
|
|
163
|
8050 for ac_func in getpgrp
|
|
|
8051 do
|
|
|
8052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
219
|
8053 echo "configure:8054: checking for $ac_func" >&5
|
|
|
8054
|
|
|
8055 cat > conftest.$ac_ext <<EOF
|
|
|
8056 #line 8057 "configure"
|
|
163
|
8057 #include "confdefs.h"
|
|
|
8058 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
8059 which can conflict with char $ac_func(); below. */
|
|
|
8060 #include <assert.h>
|
|
|
8061 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8062 /* We use char because int might match the return type of a gcc2
|
|
|
8063 builtin and then its argument prototype would still apply. */
|
|
|
8064 char $ac_func();
|
|
|
8065
|
|
|
8066 int main() {
|
|
|
8067
|
|
|
8068 /* The GNU C library defines this for functions which it implements
|
|
|
8069 to always fail with ENOSYS. Some functions are actually named
|
|
|
8070 something starting with __ and the normal name is an alias. */
|
|
|
8071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
8072 choke me
|
|
|
8073 #else
|
|
|
8074 $ac_func();
|
|
|
8075 #endif
|
|
|
8076
|
|
|
8077 ; return 0; }
|
|
|
8078 EOF
|
|
219
|
8079 if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
163
|
8080 rm -rf conftest*
|
|
|
8081 eval "ac_cv_func_$ac_func=yes"
|
|
|
8082 else
|
|
|
8083 echo "configure: failed program was:" >&5
|
|
|
8084 cat conftest.$ac_ext >&5
|
|
|
8085 rm -rf conftest*
|
|
|
8086 eval "ac_cv_func_$ac_func=no"
|
|
|
8087 fi
|
|
|
8088 rm -f conftest*
|
|
|
8089
|
|
|
8090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
8091 echo "$ac_t""yes" 1>&6
|
|
|
8092 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
8093 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
8094 Defining $ac_tr_func
|
|
|
8095 EOF
|
|
|
8096 cat >> confdefs.h <<EOF
|
|
|
8097 #define $ac_tr_func 1
|
|
|
8098 EOF
|
|
|
8099 }
|
|
|
8100
|
|
|
8101 else
|
|
|
8102 echo "$ac_t""no" 1>&6
|
|
|
8103 fi
|
|
|
8104 done
|
|
|
8105
|
|
|
8106 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
|
|
219
|
8107 echo "configure:8108: checking whether getpgrp takes no argument" >&5
|
|
|
8108
|
|
|
8109 cat > conftest.$ac_ext <<EOF
|
|
|
8110 #line 8111 "configure"
|
|
163
|
8111 #include "confdefs.h"
|
|
|
8112
|
|
|
8113 /*
|
|
|
8114 * If this system has a BSD-style getpgrp(),
|
|
|
8115 * which takes a pid argument, exit unsuccessfully.
|
|
|
8116 *
|
|
|
8117 * Snarfed from Chet Ramey's bash pgrp.c test program
|
|
|
8118 */
|
|
|
8119 #include <stdio.h>
|
|
|
8120 #include <sys/types.h>
|
|
|
8121
|
|
|
8122 int pid;
|
|
|
8123 int pg1, pg2, pg3, pg4;
|
|
|
8124 int ng, np, s, child;
|
|
|
8125
|
|
|
8126 main()
|
|
|
8127 {
|
|
|
8128 pid = getpid();
|
|
|
8129 pg1 = getpgrp(0);
|
|
|
8130 pg2 = getpgrp();
|
|
|
8131 pg3 = getpgrp(pid);
|
|
|
8132 pg4 = getpgrp(1);
|
|
|
8133
|
|
|
8134 /*
|
|
|
8135 * If all of these values are the same, it's pretty sure that
|
|
|
8136 * we're on a system that ignores getpgrp's first argument.
|
|
|
8137 */
|
|
|
8138 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
|
|
|
8139 exit(0);
|
|
|
8140
|
|
|
8141 child = fork();
|
|
|
8142 if (child < 0)
|
|
|
8143 exit(1);
|
|
|
8144 else if (child == 0) {
|
|
|
8145 np = getpid();
|
|
|
8146 /*
|
|
|
8147 * If this is Sys V, this will not work; pgrp will be
|
|
|
8148 * set to np because setpgrp just changes a pgrp to be
|
|
|
8149 * the same as the pid.
|
|
|
8150 */
|
|
|
8151 setpgrp(np, pg1);
|
|
|
8152 ng = getpgrp(0); /* Same result for Sys V and BSD */
|
|
|
8153 if (ng == pg1) {
|
|
|
8154 exit(1);
|
|
|
8155 } else {
|
|
|
8156 exit(0);
|
|
|
8157 }
|
|
|
8158 } else {
|
|
|
8159 wait(&s);
|
|
|
8160 exit(s>>8);
|
|
|
8161 }
|
|
|
8162 }
|
|
|
8163
|
|
|
8164 EOF
|
|
219
|
8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
163
|
8166 then
|
|
|
8167 ac_cv_func_getpgrp_void=yes
|
|
|
8168 else
|
|
|
8169 echo "configure: failed program was:" >&5
|
|
|
8170 cat conftest.$ac_ext >&5
|
|
|
8171 rm -fr conftest*
|
|
|
8172 ac_cv_func_getpgrp_void=no
|
|
|
8173 fi
|
|
|
8174 rm -fr conftest*
|
|
|
8175
|
|
|
8176
|
|
|
8177 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
|
|
|
8178 if test $ac_cv_func_getpgrp_void = yes; then
|
|
|
8179 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8180 Defining GETPGRP_VOID
|
|
|
8181 EOF
|
|
|
8182 cat >> confdefs.h <<\EOF
|
|
|
8183 #define GETPGRP_VOID 1
|
|
|
8184 EOF
|
|
|
8185 }
|
|
|
8186
|
|
|
8187 fi
|
|
|
8188
|
|
|
8189
|
|
149
|
8190 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|
219
|
8191 echo "configure:8192: checking for working mmap" >&5
|
|
155
|
8192 case "$opsys" in ultrix* ) have_mmap=no ;; *)
|
|
|
8193 cat > conftest.$ac_ext <<EOF
|
|
219
|
8194 #line 8195 "configure"
|
|
153
|
8195 #include "confdefs.h"
|
|
|
8196 #include <stdio.h>
|
|
|
8197 #include <unistd.h>
|
|
149
|
8198 #include <fcntl.h>
|
|
|
8199 #include <sys/mman.h>
|
|
|
8200
|
|
153
|
8201 #ifndef MAP_VARIABLE
|
|
|
8202 #define MAP_VARIABLE 0
|
|
0
|
8203 #endif
|
|
149
|
8204
|
|
153
|
8205 #ifndef MAP_FAILED
|
|
|
8206 #define MAP_FAILED -1
|
|
|
8207 #endif
|
|
|
8208
|
|
|
8209 int main (int argc, char *argv[])
|
|
0
|
8210 {
|
|
153
|
8211 int fd = -1;
|
|
|
8212 caddr_t p;
|
|
|
8213 #ifndef MAP_ANONYMOUS
|
|
|
8214 fd = open ("/dev/zero", O_RDWR);
|
|
|
8215 if (fd < 0)
|
|
|
8216 return 1;
|
|
|
8217 #define MAP_ANONYMOUS 0
|
|
|
8218 #endif
|
|
|
8219 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
|
|
|
8220 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
|
|
|
8221 fd, 0) != (void *) MAP_FAILED)
|
|
|
8222 return 0;
|
|
|
8223 perror ("conftest: mmap failed");
|
|
|
8224 return 1;
|
|
|
8225 }
|
|
|
8226 EOF
|
|
219
|
8227 if { (eval echo configure:8228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
8228 then
|
|
153
|
8229 have_mmap=yes
|
|
149
|
8230 else
|
|
|
8231 echo "configure: failed program was:" >&5
|
|
|
8232 cat conftest.$ac_ext >&5
|
|
|
8233 rm -fr conftest*
|
|
153
|
8234 have_mmap=no
|
|
149
|
8235 fi
|
|
155
|
8236 rm -fr conftest* ;;
|
|
|
8237 esac
|
|
153
|
8238 echo "$ac_t""$have_mmap" 1>&6
|
|
|
8239 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
8240 Defining HAVE_MMAP
|
|
|
8241 EOF
|
|
|
8242 cat >> confdefs.h <<\EOF
|
|
|
8243 #define HAVE_MMAP 1
|
|
|
8244 EOF
|
|
|
8245 }
|
|
|
8246
|
|
153
|
8247
|
|
|
8248 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
|
|
|
8249 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
|
|
149
|
8250 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8251 Defining REL_ALLOC
|
|
|
8252 EOF
|
|
|
8253 cat >> confdefs.h <<\EOF
|
|
|
8254 #define REL_ALLOC 1
|
|
|
8255 EOF
|
|
|
8256 }
|
|
|
8257
|
|
|
8258
|
|
175
|
8259 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
|
|
|
8260 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
|
|
219
|
8261 echo "configure:8262: checking for termios.h" >&5
|
|
|
8262
|
|
|
8263 cat > conftest.$ac_ext <<EOF
|
|
|
8264 #line 8265 "configure"
|
|
175
|
8265 #include "confdefs.h"
|
|
|
8266 #include <termios.h>
|
|
|
8267 EOF
|
|
|
8268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
8269 { (eval echo configure:8270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
175
|
8270 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
8271 if test -z "$ac_err"; then
|
|
|
8272 rm -rf conftest*
|
|
|
8273 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8274 else
|
|
|
8275 echo "$ac_err" >&5
|
|
|
8276 echo "configure: failed program was:" >&5
|
|
|
8277 cat conftest.$ac_ext >&5
|
|
|
8278 rm -rf conftest*
|
|
|
8279 eval "ac_cv_header_$ac_safe=no"
|
|
|
8280 fi
|
|
|
8281 rm -f conftest*
|
|
|
8282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8283 echo "$ac_t""yes" 1>&6
|
|
|
8284 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8285 Defining HAVE_TERMIOS
|
|
|
8286 EOF
|
|
|
8287 cat >> confdefs.h <<\EOF
|
|
|
8288 #define HAVE_TERMIOS 1
|
|
|
8289 EOF
|
|
|
8290 }
|
|
|
8291
|
|
|
8292 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8293 Defining SIGNALS_VIA_CHARACTERS
|
|
|
8294 EOF
|
|
|
8295 cat >> confdefs.h <<\EOF
|
|
|
8296 #define SIGNALS_VIA_CHARACTERS 1
|
|
|
8297 EOF
|
|
|
8298 }
|
|
|
8299
|
|
|
8300 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8301 Defining NO_TERMIO
|
|
|
8302 EOF
|
|
|
8303 cat >> confdefs.h <<\EOF
|
|
|
8304 #define NO_TERMIO 1
|
|
|
8305 EOF
|
|
|
8306 }
|
|
|
8307
|
|
|
8308 else
|
|
|
8309 echo "$ac_t""no" 1>&6
|
|
|
8310 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
|
|
|
8311 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
|
|
219
|
8312 echo "configure:8313: checking for termio.h" >&5
|
|
|
8313
|
|
|
8314 cat > conftest.$ac_ext <<EOF
|
|
|
8315 #line 8316 "configure"
|
|
175
|
8316 #include "confdefs.h"
|
|
|
8317 #include <termio.h>
|
|
|
8318 EOF
|
|
|
8319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
8320 { (eval echo configure:8321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
175
|
8321 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
8322 if test -z "$ac_err"; then
|
|
|
8323 rm -rf conftest*
|
|
|
8324 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8325 else
|
|
|
8326 echo "$ac_err" >&5
|
|
|
8327 echo "configure: failed program was:" >&5
|
|
|
8328 cat conftest.$ac_ext >&5
|
|
|
8329 rm -rf conftest*
|
|
|
8330 eval "ac_cv_header_$ac_safe=no"
|
|
|
8331 fi
|
|
|
8332 rm -f conftest*
|
|
|
8333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8334 echo "$ac_t""yes" 1>&6
|
|
|
8335 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8336 Defining HAVE_TERMIO
|
|
|
8337 EOF
|
|
|
8338 cat >> confdefs.h <<\EOF
|
|
|
8339 #define HAVE_TERMIO 1
|
|
|
8340 EOF
|
|
|
8341 }
|
|
|
8342
|
|
|
8343 else
|
|
|
8344 echo "$ac_t""no" 1>&6
|
|
|
8345 fi
|
|
|
8346
|
|
|
8347 fi
|
|
|
8348
|
|
|
8349
|
|
|
8350
|
|
149
|
8351 echo $ac_n "checking for socket""... $ac_c" 1>&6
|
|
219
|
8352 echo "configure:8353: checking for socket" >&5
|
|
|
8353
|
|
|
8354 cat > conftest.$ac_ext <<EOF
|
|
|
8355 #line 8356 "configure"
|
|
149
|
8356 #include "confdefs.h"
|
|
|
8357 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
8358 which can conflict with char socket(); below. */
|
|
|
8359 #include <assert.h>
|
|
|
8360 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8361 /* We use char because int might match the return type of a gcc2
|
|
|
8362 builtin and then its argument prototype would still apply. */
|
|
|
8363 char socket();
|
|
|
8364
|
|
|
8365 int main() {
|
|
|
8366
|
|
0
|
8367 /* The GNU C library defines this for functions which it implements
|
|
|
8368 to always fail with ENOSYS. Some functions are actually named
|
|
|
8369 something starting with __ and the normal name is an alias. */
|
|
|
8370 #if defined (__stub_socket) || defined (__stub___socket)
|
|
|
8371 choke me
|
|
|
8372 #else
|
|
149
|
8373 socket();
|
|
0
|
8374 #endif
|
|
149
|
8375
|
|
0
|
8376 ; return 0; }
|
|
|
8377 EOF
|
|
219
|
8378 if { (eval echo configure:8379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8379 rm -rf conftest*
|
|
|
8380 eval "ac_cv_func_socket=yes"
|
|
|
8381 else
|
|
|
8382 echo "configure: failed program was:" >&5
|
|
|
8383 cat conftest.$ac_ext >&5
|
|
|
8384 rm -rf conftest*
|
|
|
8385 eval "ac_cv_func_socket=no"
|
|
|
8386 fi
|
|
|
8387 rm -f conftest*
|
|
|
8388
|
|
|
8389 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
|
|
|
8390 echo "$ac_t""yes" 1>&6
|
|
|
8391 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
|
|
|
8392 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
|
|
219
|
8393 echo "configure:8394: checking for netinet/in.h" >&5
|
|
|
8394
|
|
|
8395 cat > conftest.$ac_ext <<EOF
|
|
|
8396 #line 8397 "configure"
|
|
0
|
8397 #include "confdefs.h"
|
|
|
8398 #include <netinet/in.h>
|
|
|
8399 EOF
|
|
149
|
8400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
8401 { (eval echo configure:8402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8402 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8403 if test -z "$ac_err"; then
|
|
149
|
8404 rm -rf conftest*
|
|
|
8405 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8406 else
|
|
|
8407 echo "$ac_err" >&5
|
|
|
8408 echo "configure: failed program was:" >&5
|
|
|
8409 cat conftest.$ac_ext >&5
|
|
|
8410 rm -rf conftest*
|
|
|
8411 eval "ac_cv_header_$ac_safe=no"
|
|
|
8412 fi
|
|
|
8413 rm -f conftest*
|
|
|
8414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8415 echo "$ac_t""yes" 1>&6
|
|
|
8416 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
|
|
|
8417 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
|
|
219
|
8418 echo "configure:8419: checking for arpa/inet.h" >&5
|
|
|
8419
|
|
|
8420 cat > conftest.$ac_ext <<EOF
|
|
|
8421 #line 8422 "configure"
|
|
0
|
8422 #include "confdefs.h"
|
|
|
8423 #include <arpa/inet.h>
|
|
|
8424 EOF
|
|
149
|
8425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
8426 { (eval echo configure:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8427 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8428 if test -z "$ac_err"; then
|
|
149
|
8429 rm -rf conftest*
|
|
|
8430 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8431 else
|
|
|
8432 echo "$ac_err" >&5
|
|
|
8433 echo "configure: failed program was:" >&5
|
|
|
8434 cat conftest.$ac_ext >&5
|
|
|
8435 rm -rf conftest*
|
|
|
8436 eval "ac_cv_header_$ac_safe=no"
|
|
|
8437 fi
|
|
|
8438 rm -f conftest*
|
|
|
8439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8440 echo "$ac_t""yes" 1>&6
|
|
0
|
8441
|
|
149
|
8442 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8443 Defining HAVE_SOCKETS
|
|
|
8444 EOF
|
|
|
8445 cat >> confdefs.h <<\EOF
|
|
|
8446 #define HAVE_SOCKETS 1
|
|
|
8447 EOF
|
|
|
8448 }
|
|
|
8449
|
|
|
8450 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
|
|
219
|
8451 echo "configure:8452: checking "for sun_len member in struct sockaddr_un"" >&5
|
|
149
|
8452 cat > conftest.$ac_ext <<EOF
|
|
219
|
8453 #line 8454 "configure"
|
|
149
|
8454 #include "confdefs.h"
|
|
|
8455
|
|
0
|
8456 #include <sys/types.h>
|
|
149
|
8457 #include <sys/socket.h>
|
|
|
8458 #include <sys/un.h>
|
|
|
8459
|
|
|
8460 int main() {
|
|
|
8461 static struct sockaddr_un x; x.sun_len = 1;
|
|
|
8462 ; return 0; }
|
|
|
8463 EOF
|
|
219
|
8464 if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8465 rm -rf conftest*
|
|
|
8466 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8467 Defining HAVE_SOCKADDR_SUN_LEN
|
|
|
8468 EOF
|
|
|
8469 cat >> confdefs.h <<\EOF
|
|
|
8470 #define HAVE_SOCKADDR_SUN_LEN 1
|
|
|
8471 EOF
|
|
|
8472 }
|
|
|
8473
|
|
|
8474 else
|
|
|
8475 echo "configure: failed program was:" >&5
|
|
|
8476 cat conftest.$ac_ext >&5
|
|
|
8477 rm -rf conftest*
|
|
|
8478 echo "$ac_t""no" 1>&6
|
|
|
8479 fi
|
|
|
8480 rm -f conftest*
|
|
|
8481 else
|
|
|
8482 echo "$ac_t""no" 1>&6
|
|
|
8483 fi
|
|
|
8484
|
|
|
8485 else
|
|
|
8486 echo "$ac_t""no" 1>&6
|
|
|
8487 fi
|
|
|
8488
|
|
|
8489 else
|
|
|
8490 echo "$ac_t""no" 1>&6
|
|
|
8491 fi
|
|
|
8492
|
|
|
8493
|
|
|
8494 echo $ac_n "checking for msgget""... $ac_c" 1>&6
|
|
219
|
8495 echo "configure:8496: checking for msgget" >&5
|
|
|
8496
|
|
|
8497 cat > conftest.$ac_ext <<EOF
|
|
|
8498 #line 8499 "configure"
|
|
149
|
8499 #include "confdefs.h"
|
|
|
8500 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
8501 which can conflict with char msgget(); below. */
|
|
|
8502 #include <assert.h>
|
|
|
8503 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8504 /* We use char because int might match the return type of a gcc2
|
|
|
8505 builtin and then its argument prototype would still apply. */
|
|
|
8506 char msgget();
|
|
|
8507
|
|
|
8508 int main() {
|
|
|
8509
|
|
0
|
8510 /* The GNU C library defines this for functions which it implements
|
|
|
8511 to always fail with ENOSYS. Some functions are actually named
|
|
|
8512 something starting with __ and the normal name is an alias. */
|
|
|
8513 #if defined (__stub_msgget) || defined (__stub___msgget)
|
|
|
8514 choke me
|
|
|
8515 #else
|
|
149
|
8516 msgget();
|
|
0
|
8517 #endif
|
|
149
|
8518
|
|
0
|
8519 ; return 0; }
|
|
|
8520 EOF
|
|
219
|
8521 if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8522 rm -rf conftest*
|
|
|
8523 eval "ac_cv_func_msgget=yes"
|
|
|
8524 else
|
|
|
8525 echo "configure: failed program was:" >&5
|
|
|
8526 cat conftest.$ac_ext >&5
|
|
|
8527 rm -rf conftest*
|
|
|
8528 eval "ac_cv_func_msgget=no"
|
|
|
8529 fi
|
|
|
8530 rm -f conftest*
|
|
|
8531
|
|
|
8532 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
|
|
|
8533 echo "$ac_t""yes" 1>&6
|
|
|
8534 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
|
|
|
8535 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
|
|
219
|
8536 echo "configure:8537: checking for sys/ipc.h" >&5
|
|
|
8537
|
|
|
8538 cat > conftest.$ac_ext <<EOF
|
|
|
8539 #line 8540 "configure"
|
|
0
|
8540 #include "confdefs.h"
|
|
|
8541 #include <sys/ipc.h>
|
|
|
8542 EOF
|
|
149
|
8543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
8544 { (eval echo configure:8545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8545 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8546 if test -z "$ac_err"; then
|
|
149
|
8547 rm -rf conftest*
|
|
|
8548 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8549 else
|
|
|
8550 echo "$ac_err" >&5
|
|
|
8551 echo "configure: failed program was:" >&5
|
|
|
8552 cat conftest.$ac_ext >&5
|
|
|
8553 rm -rf conftest*
|
|
|
8554 eval "ac_cv_header_$ac_safe=no"
|
|
|
8555 fi
|
|
|
8556 rm -f conftest*
|
|
|
8557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8558 echo "$ac_t""yes" 1>&6
|
|
|
8559 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
|
|
|
8560 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
|
|
219
|
8561 echo "configure:8562: checking for sys/msg.h" >&5
|
|
|
8562
|
|
|
8563 cat > conftest.$ac_ext <<EOF
|
|
|
8564 #line 8565 "configure"
|
|
0
|
8565 #include "confdefs.h"
|
|
|
8566 #include <sys/msg.h>
|
|
|
8567 EOF
|
|
149
|
8568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
8569 { (eval echo configure:8570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8570 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8571 if test -z "$ac_err"; then
|
|
149
|
8572 rm -rf conftest*
|
|
|
8573 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8574 else
|
|
|
8575 echo "$ac_err" >&5
|
|
|
8576 echo "configure: failed program was:" >&5
|
|
|
8577 cat conftest.$ac_ext >&5
|
|
|
8578 rm -rf conftest*
|
|
|
8579 eval "ac_cv_header_$ac_safe=no"
|
|
|
8580 fi
|
|
|
8581 rm -f conftest*
|
|
|
8582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8583 echo "$ac_t""yes" 1>&6
|
|
|
8584 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8585 Defining HAVE_SYSVIPC
|
|
|
8586 EOF
|
|
|
8587 cat >> confdefs.h <<\EOF
|
|
|
8588 #define HAVE_SYSVIPC 1
|
|
|
8589 EOF
|
|
|
8590 }
|
|
|
8591
|
|
|
8592 else
|
|
|
8593 echo "$ac_t""no" 1>&6
|
|
|
8594 fi
|
|
|
8595
|
|
|
8596 else
|
|
|
8597 echo "$ac_t""no" 1>&6
|
|
|
8598 fi
|
|
|
8599
|
|
|
8600 else
|
|
|
8601 echo "$ac_t""no" 1>&6
|
|
|
8602 fi
|
|
|
8603
|
|
|
8604
|
|
|
8605 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
|
|
|
8606 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
|
|
219
|
8607 echo "configure:8608: checking for dirent.h" >&5
|
|
|
8608
|
|
|
8609 cat > conftest.$ac_ext <<EOF
|
|
|
8610 #line 8611 "configure"
|
|
0
|
8611 #include "confdefs.h"
|
|
|
8612 #include <dirent.h>
|
|
|
8613 EOF
|
|
149
|
8614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
8615 { (eval echo configure:8616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8616 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8617 if test -z "$ac_err"; then
|
|
|
8618 rm -rf conftest*
|
|
149
|
8619 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8620 else
|
|
|
8621 echo "$ac_err" >&5
|
|
|
8622 echo "configure: failed program was:" >&5
|
|
|
8623 cat conftest.$ac_ext >&5
|
|
|
8624 rm -rf conftest*
|
|
|
8625 eval "ac_cv_header_$ac_safe=no"
|
|
|
8626 fi
|
|
|
8627 rm -f conftest*
|
|
|
8628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8629 echo "$ac_t""yes" 1>&6
|
|
|
8630 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8631 Defining SYSV_SYSTEM_DIR
|
|
|
8632 EOF
|
|
|
8633 cat >> confdefs.h <<\EOF
|
|
|
8634 #define SYSV_SYSTEM_DIR 1
|
|
|
8635 EOF
|
|
|
8636 }
|
|
|
8637
|
|
|
8638 else
|
|
|
8639 echo "$ac_t""no" 1>&6
|
|
|
8640 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
|
|
|
8641 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
|
|
219
|
8642 echo "configure:8643: checking for sys/dir.h" >&5
|
|
|
8643
|
|
|
8644 cat > conftest.$ac_ext <<EOF
|
|
|
8645 #line 8646 "configure"
|
|
0
|
8646 #include "confdefs.h"
|
|
|
8647 #include <sys/dir.h>
|
|
|
8648 EOF
|
|
149
|
8649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
8650 { (eval echo configure:8651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8651 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8652 if test -z "$ac_err"; then
|
|
149
|
8653 rm -rf conftest*
|
|
|
8654 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8655 else
|
|
|
8656 echo "$ac_err" >&5
|
|
|
8657 echo "configure: failed program was:" >&5
|
|
|
8658 cat conftest.$ac_ext >&5
|
|
|
8659 rm -rf conftest*
|
|
|
8660 eval "ac_cv_header_$ac_safe=no"
|
|
|
8661 fi
|
|
|
8662 rm -f conftest*
|
|
|
8663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8664 echo "$ac_t""yes" 1>&6
|
|
0
|
8665 :
|
|
|
8666 else
|
|
149
|
8667 echo "$ac_t""no" 1>&6
|
|
|
8668 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8669 Defining NONSYSTEM_DIR_LIBRARY
|
|
|
8670 EOF
|
|
|
8671 cat >> confdefs.h <<\EOF
|
|
|
8672 #define NONSYSTEM_DIR_LIBRARY 1
|
|
|
8673 EOF
|
|
|
8674 }
|
|
|
8675
|
|
|
8676 fi
|
|
|
8677
|
|
|
8678 fi
|
|
|
8679
|
|
|
8680
|
|
|
8681 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
|
|
|
8682 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
|
|
219
|
8683 echo "configure:8684: checking for nlist.h" >&5
|
|
|
8684
|
|
|
8685 cat > conftest.$ac_ext <<EOF
|
|
|
8686 #line 8687 "configure"
|
|
0
|
8687 #include "confdefs.h"
|
|
|
8688 #include <nlist.h>
|
|
|
8689 EOF
|
|
149
|
8690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
8691 { (eval echo configure:8692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8692 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8693 if test -z "$ac_err"; then
|
|
|
8694 rm -rf conftest*
|
|
149
|
8695 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8696 else
|
|
|
8697 echo "$ac_err" >&5
|
|
|
8698 echo "configure: failed program was:" >&5
|
|
|
8699 cat conftest.$ac_ext >&5
|
|
|
8700 rm -rf conftest*
|
|
|
8701 eval "ac_cv_header_$ac_safe=no"
|
|
|
8702 fi
|
|
|
8703 rm -f conftest*
|
|
|
8704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8705 echo "$ac_t""yes" 1>&6
|
|
|
8706 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8707 Defining NLIST_STRUCT
|
|
|
8708 EOF
|
|
|
8709 cat >> confdefs.h <<\EOF
|
|
|
8710 #define NLIST_STRUCT 1
|
|
|
8711 EOF
|
|
|
8712 }
|
|
|
8713
|
|
|
8714 else
|
|
|
8715 echo "$ac_t""no" 1>&6
|
|
|
8716 fi
|
|
|
8717
|
|
|
8718
|
|
0
|
8719
|
|
149
|
8720 echo "checking "for sound support"" 1>&6
|
|
219
|
8721 echo "configure:8722: checking "for sound support"" >&5
|
|
149
|
8722 case "$with_sound" in
|
|
|
8723 native | both ) with_native_sound=yes;;
|
|
|
8724 nas | no ) with_native_sound=no;;
|
|
|
8725 esac
|
|
155
|
8726 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
|
|
|
8727
|
|
149
|
8728 if test "$with_native_sound" != "no"; then
|
|
155
|
8729 if test -n "$native_sound_lib"; then
|
|
|
8730 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
|
|
|
8731 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
|
|
219
|
8732 echo "configure:8733: checking for multimedia/audio_device.h" >&5
|
|
|
8733
|
|
|
8734 cat > conftest.$ac_ext <<EOF
|
|
|
8735 #line 8736 "configure"
|
|
155
|
8736 #include "confdefs.h"
|
|
|
8737 #include <multimedia/audio_device.h>
|
|
|
8738 EOF
|
|
|
8739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
8740 { (eval echo configure:8741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
155
|
8741 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
8742 if test -z "$ac_err"; then
|
|
|
8743 rm -rf conftest*
|
|
|
8744 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8745 else
|
|
|
8746 echo "$ac_err" >&5
|
|
|
8747 echo "configure: failed program was:" >&5
|
|
|
8748 cat conftest.$ac_ext >&5
|
|
|
8749 rm -rf conftest*
|
|
|
8750 eval "ac_cv_header_$ac_safe=no"
|
|
|
8751 fi
|
|
|
8752 rm -f conftest*
|
|
|
8753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8754 echo "$ac_t""yes" 1>&6
|
|
|
8755 sound_found=yes sound_cflags=""
|
|
|
8756 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
8757 echo " xemacs will be linked with \"sunplay.o\""
|
|
|
8758 fi
|
|
|
8759 else
|
|
|
8760 echo "$ac_t""no" 1>&6
|
|
|
8761 fi
|
|
|
8762
|
|
|
8763 fi
|
|
|
8764
|
|
|
8765 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
|
|
|
8766 sound_found=yes
|
|
151
|
8767 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
8768 echo " xemacs will be linked with \"sunplay.o\""
|
|
|
8769 fi
|
|
149
|
8770 if test -d "/usr/demo/SOUND/include"
|
|
|
8771 then sound_cflags="-I/usr/demo/SOUND/include"
|
|
|
8772 else sound_cflags="-I/usr/demo/SOUND"
|
|
|
8773 fi
|
|
|
8774 if test -z "$native_sound_lib" ; then
|
|
|
8775 if test -r "/usr/demo/SOUND/lib/libaudio.a"
|
|
|
8776 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
|
|
|
8777 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
|
|
|
8778 fi
|
|
|
8779 fi
|
|
155
|
8780 fi
|
|
|
8781
|
|
|
8782 if test -z "$sound_found"; then
|
|
|
8783 case "$canonical" in
|
|
149
|
8784 *-sgi-* )
|
|
155
|
8785 if test -z "$native_sound_lib"; then
|
|
|
8786
|
|
149
|
8787 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
|
|
219
|
8788 echo "configure:8789: checking for ALopenport in -laudio" >&5
|
|
149
|
8789 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
|
|
|
8790
|
|
|
8791 xe_check_libs=" -laudio "
|
|
|
8792 cat > conftest.$ac_ext <<EOF
|
|
219
|
8793 #line 8794 "configure"
|
|
149
|
8794 #include "confdefs.h"
|
|
|
8795 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8796 /* We use char because int might match the return type of a gcc2
|
|
|
8797 builtin and then its argument prototype would still apply. */
|
|
|
8798 char ALopenport();
|
|
|
8799
|
|
|
8800 int main() {
|
|
|
8801 ALopenport()
|
|
|
8802 ; return 0; }
|
|
|
8803 EOF
|
|
219
|
8804 if { (eval echo configure:8805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8805 rm -rf conftest*
|
|
|
8806 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
8807 else
|
|
|
8808 echo "configure: failed program was:" >&5
|
|
|
8809 cat conftest.$ac_ext >&5
|
|
|
8810 rm -rf conftest*
|
|
|
8811 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
8812 fi
|
|
|
8813 rm -f conftest*
|
|
|
8814 xe_check_libs=""
|
|
|
8815
|
|
151
|
8816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
8817 echo "$ac_t""yes" 1>&6
|
|
|
8818 native_sound_lib="-laudio"
|
|
|
8819 else
|
|
|
8820 echo "$ac_t""no" 1>&6
|
|
|
8821 fi
|
|
|
8822
|
|
|
8823
|
|
155
|
8824 fi
|
|
|
8825 if test -n "$native_sound_lib"; then
|
|
|
8826 sound_found=yes sound_cflags=""
|
|
151
|
8827 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
8828 echo " xemacs will be linked with \"sgiplay.o\""
|
|
|
8829 fi
|
|
149
|
8830 fi ;;
|
|
|
8831 hppa*-hp-hpux* )
|
|
155
|
8832 if test -z "$native_sound_lib"; then
|
|
|
8833
|
|
149
|
8834 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
|
|
219
|
8835 echo "configure:8836: checking for AOpenAudio in -lAlib" >&5
|
|
149
|
8836 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
|
|
|
8837
|
|
|
8838 xe_check_libs=" -lAlib "
|
|
|
8839 cat > conftest.$ac_ext <<EOF
|
|
219
|
8840 #line 8841 "configure"
|
|
149
|
8841 #include "confdefs.h"
|
|
|
8842 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8843 /* We use char because int might match the return type of a gcc2
|
|
|
8844 builtin and then its argument prototype would still apply. */
|
|
|
8845 char AOpenAudio();
|
|
|
8846
|
|
|
8847 int main() {
|
|
|
8848 AOpenAudio()
|
|
|
8849 ; return 0; }
|
|
|
8850 EOF
|
|
219
|
8851 if { (eval echo configure:8852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8852 rm -rf conftest*
|
|
|
8853 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
8854 else
|
|
|
8855 echo "configure: failed program was:" >&5
|
|
|
8856 cat conftest.$ac_ext >&5
|
|
|
8857 rm -rf conftest*
|
|
|
8858 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
8859 fi
|
|
|
8860 rm -f conftest*
|
|
|
8861 xe_check_libs=""
|
|
|
8862
|
|
151
|
8863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
8864 echo "$ac_t""yes" 1>&6
|
|
|
8865 native_sound_lib="-lAlib"
|
|
|
8866 else
|
|
|
8867 echo "$ac_t""no" 1>&6
|
|
|
8868 fi
|
|
|
8869
|
|
|
8870
|
|
155
|
8871 fi
|
|
|
8872 if test -n "$native_sound_lib"; then
|
|
|
8873 sound_found=yes
|
|
151
|
8874 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
8875 echo " xemacs will be linked with \"hpplay.o\""
|
|
|
8876 fi
|
|
169
|
8877 if test "$GCC" = "yes" # Kludge city
|
|
149
|
8878 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
|
|
|
8879 else sound_cflags="+e -I/usr/audio/examples"
|
|
|
8880 fi
|
|
|
8881 fi ;;
|
|
0
|
8882 esac
|
|
|
8883 fi
|
|
149
|
8884
|
|
155
|
8885 if test -z "$sound_found"; then
|
|
149
|
8886 for dir in "machine" "sys" "linux"; do
|
|
|
8887 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
|
|
|
8888 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
|
|
219
|
8889 echo "configure:8890: checking for ${dir}/soundcard.h" >&5
|
|
|
8890
|
|
|
8891 cat > conftest.$ac_ext <<EOF
|
|
|
8892 #line 8893 "configure"
|
|
149
|
8893 #include "confdefs.h"
|
|
|
8894 #include <${dir}/soundcard.h>
|
|
|
8895 EOF
|
|
|
8896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
8897 { (eval echo configure:8898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8898 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
8899 if test -z "$ac_err"; then
|
|
|
8900 rm -rf conftest*
|
|
|
8901 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8902 else
|
|
|
8903 echo "$ac_err" >&5
|
|
|
8904 echo "configure: failed program was:" >&5
|
|
|
8905 cat conftest.$ac_ext >&5
|
|
|
8906 rm -rf conftest*
|
|
|
8907 eval "ac_cv_header_$ac_safe=no"
|
|
|
8908 fi
|
|
|
8909 rm -f conftest*
|
|
|
8910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8911 echo "$ac_t""yes" 1>&6
|
|
|
8912 sound_found=yes
|
|
151
|
8913 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
8914 echo " xemacs will be linked with \"linuxplay.o\""
|
|
|
8915 fi
|
|
149
|
8916 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
8917 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
|
|
|
8918 EOF
|
|
|
8919 cat >> confdefs.h <<EOF
|
|
|
8920 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
|
|
|
8921 EOF
|
|
|
8922 }
|
|
|
8923
|
|
|
8924 break
|
|
|
8925 else
|
|
|
8926 echo "$ac_t""no" 1>&6
|
|
|
8927 fi
|
|
|
8928
|
|
|
8929 done
|
|
100
|
8930 fi
|
|
149
|
8931
|
|
|
8932 test "$sound_found" = "yes" && with_native_sound=yes
|
|
|
8933 fi
|
|
|
8934
|
|
|
8935 if test -z "$with_sound"; then
|
|
|
8936 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
|
|
|
8937 with_sound=native
|
|
100
|
8938 fi
|
|
|
8939 fi
|
|
|
8940
|
|
149
|
8941 if test "$with_native_sound" = "yes"; then
|
|
|
8942 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8943 Defining HAVE_NATIVE_SOUND
|
|
|
8944 EOF
|
|
|
8945 cat >> confdefs.h <<\EOF
|
|
|
8946 #define HAVE_NATIVE_SOUND 1
|
|
|
8947 EOF
|
|
|
8948 }
|
|
|
8949
|
|
151
|
8950 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
|
|
149
|
8951 fi
|
|
|
8952
|
|
|
8953 case "$with_sound" in both | nas )
|
|
|
8954 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8955 Defining HAVE_NAS_SOUND
|
|
|
8956 EOF
|
|
|
8957 cat >> confdefs.h <<\EOF
|
|
|
8958 #define HAVE_NAS_SOUND 1
|
|
|
8959 EOF
|
|
|
8960 }
|
|
|
8961
|
|
151
|
8962 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
|
|
|
8963 echo " xemacs will be linked with \"nas.o\""
|
|
|
8964 fi
|
|
201
|
8965 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
|
|
149
|
8966 cat > conftest.$ac_ext <<EOF
|
|
219
|
8967 #line 8968 "configure"
|
|
149
|
8968 #include "confdefs.h"
|
|
|
8969 #include <audio/Xtutil.h>
|
|
|
8970 EOF
|
|
|
8971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
8972 egrep "AuXtErrorJump" >/dev/null 2>&1; then
|
|
|
8973 :
|
|
|
8974 else
|
|
|
8975 rm -rf conftest*
|
|
|
8976 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8977 Defining NAS_NO_ERROR_JUMP
|
|
|
8978 EOF
|
|
|
8979 cat >> confdefs.h <<\EOF
|
|
|
8980 #define NAS_NO_ERROR_JUMP 1
|
|
|
8981 EOF
|
|
|
8982 }
|
|
|
8983
|
|
|
8984 fi
|
|
|
8985 rm -f conftest*
|
|
|
8986
|
|
|
8987 esac
|
|
|
8988
|
|
|
8989
|
|
|
8990 test -z "$with_tty" && with_tty=yes
|
|
|
8991
|
|
|
8992 if test "$with_tty" = "yes" ; then
|
|
151
|
8993 echo "checking for TTY-related features" 1>&6
|
|
219
|
8994 echo "configure:8995: checking for TTY-related features" >&5
|
|
149
|
8995 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8996 Defining HAVE_TTY
|
|
|
8997 EOF
|
|
|
8998 cat >> confdefs.h <<\EOF
|
|
|
8999 #define HAVE_TTY 1
|
|
|
9000 EOF
|
|
|
9001 }
|
|
|
9002
|
|
151
|
9003 extra_objs="$extra_objs console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9004 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\""
|
|
|
9005 fi
|
|
149
|
9006
|
|
|
9007 if test -z "$with_ncurses"; then
|
|
70
|
9008
|
|
151
|
9009 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
|
|
219
|
9010 echo "configure:9011: checking for tgetent in -lncurses" >&5
|
|
151
|
9011 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
|
|
149
|
9012
|
|
|
9013 xe_check_libs=" -lncurses "
|
|
|
9014 cat > conftest.$ac_ext <<EOF
|
|
219
|
9015 #line 9016 "configure"
|
|
149
|
9016 #include "confdefs.h"
|
|
|
9017 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9018 /* We use char because int might match the return type of a gcc2
|
|
|
9019 builtin and then its argument prototype would still apply. */
|
|
151
|
9020 char tgetent();
|
|
149
|
9021
|
|
|
9022 int main() {
|
|
151
|
9023 tgetent()
|
|
149
|
9024 ; return 0; }
|
|
|
9025 EOF
|
|
219
|
9026 if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9027 rm -rf conftest*
|
|
|
9028 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9029 else
|
|
|
9030 echo "configure: failed program was:" >&5
|
|
|
9031 cat conftest.$ac_ext >&5
|
|
|
9032 rm -rf conftest*
|
|
|
9033 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9034 fi
|
|
|
9035 rm -f conftest*
|
|
|
9036 xe_check_libs=""
|
|
|
9037
|
|
151
|
9038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
9039 echo "$ac_t""yes" 1>&6
|
|
|
9040 with_ncurses=yes
|
|
|
9041 else
|
|
|
9042 echo "$ac_t""no" 1>&6
|
|
|
9043 with_ncurses=no
|
|
|
9044 fi
|
|
|
9045
|
|
|
9046
|
|
|
9047 fi
|
|
|
9048 if test "$with_ncurses" = "yes"; then
|
|
|
9049 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9050 Defining HAVE_NCURSES
|
|
|
9051 EOF
|
|
|
9052 cat >> confdefs.h <<\EOF
|
|
|
9053 #define HAVE_NCURSES 1
|
|
|
9054 EOF
|
|
|
9055 }
|
|
|
9056
|
|
|
9057 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
|
9058 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
|
219
|
9059 echo "configure:9060: checking for ncurses/curses.h" >&5
|
|
|
9060
|
|
|
9061 cat > conftest.$ac_ext <<EOF
|
|
|
9062 #line 9063 "configure"
|
|
149
|
9063 #include "confdefs.h"
|
|
|
9064 #include <ncurses/curses.h>
|
|
|
9065 EOF
|
|
|
9066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
9067 { (eval echo configure:9068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
9068 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
9069 if test -z "$ac_err"; then
|
|
|
9070 rm -rf conftest*
|
|
|
9071 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9072 else
|
|
|
9073 echo "$ac_err" >&5
|
|
|
9074 echo "configure: failed program was:" >&5
|
|
|
9075 cat conftest.$ac_ext >&5
|
|
|
9076 rm -rf conftest*
|
|
|
9077 eval "ac_cv_header_$ac_safe=no"
|
|
|
9078 fi
|
|
|
9079 rm -f conftest*
|
|
|
9080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9081 echo "$ac_t""yes" 1>&6
|
|
|
9082 curses_h_path=ncurses/curses.h
|
|
|
9083 else
|
|
|
9084 echo "$ac_t""no" 1>&6
|
|
|
9085 fi
|
|
|
9086
|
|
|
9087 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
|
|
|
9088 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
|
|
219
|
9089 echo "configure:9090: checking for ncurses/term.h" >&5
|
|
|
9090
|
|
|
9091 cat > conftest.$ac_ext <<EOF
|
|
|
9092 #line 9093 "configure"
|
|
0
|
9093 #include "confdefs.h"
|
|
|
9094 #include <ncurses/term.h>
|
|
|
9095 EOF
|
|
149
|
9096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
9097 { (eval echo configure:9098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
9098 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
9099 if test -z "$ac_err"; then
|
|
|
9100 rm -rf conftest*
|
|
149
|
9101 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9102 else
|
|
|
9103 echo "$ac_err" >&5
|
|
|
9104 echo "configure: failed program was:" >&5
|
|
|
9105 cat conftest.$ac_ext >&5
|
|
|
9106 rm -rf conftest*
|
|
|
9107 eval "ac_cv_header_$ac_safe=no"
|
|
|
9108 fi
|
|
|
9109 rm -f conftest*
|
|
|
9110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9111 echo "$ac_t""yes" 1>&6
|
|
|
9112 term_h_path=ncurses/term.h
|
|
|
9113 else
|
|
|
9114 echo "$ac_t""no" 1>&6
|
|
|
9115 fi
|
|
|
9116
|
|
151
|
9117 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9118 echo " xemacs will be linked with \"terminfo.o\""
|
|
|
9119 fi
|
|
|
9120 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
|
|
149
|
9121
|
|
153
|
9122 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
|
|
149
|
9123 save_c_switch_site="$c_switch_site"
|
|
|
9124 c_switch_site="$c_switch_site -I/usr/include/ncurses"
|
|
|
9125 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
|
9126 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
|
219
|
9127 echo "configure:9128: checking for ncurses/curses.h" >&5
|
|
|
9128
|
|
|
9129 cat > conftest.$ac_ext <<EOF
|
|
|
9130 #line 9131 "configure"
|
|
0
|
9131 #include "confdefs.h"
|
|
|
9132 #include <ncurses/curses.h>
|
|
|
9133 EOF
|
|
149
|
9134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
9135 { (eval echo configure:9136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
9136 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
9137 if test -z "$ac_err"; then
|
|
|
9138 rm -rf conftest*
|
|
149
|
9139 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9140 else
|
|
|
9141 echo "$ac_err" >&5
|
|
|
9142 echo "configure: failed program was:" >&5
|
|
|
9143 cat conftest.$ac_ext >&5
|
|
|
9144 rm -rf conftest*
|
|
|
9145 eval "ac_cv_header_$ac_safe=no"
|
|
|
9146 fi
|
|
|
9147 rm -f conftest*
|
|
|
9148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9149 echo "$ac_t""yes" 1>&6
|
|
|
9150 curses_h_path=ncurses/curses.h
|
|
|
9151 else
|
|
|
9152 echo "$ac_t""no" 1>&6
|
|
|
9153 fi
|
|
|
9154
|
|
153
|
9155 if test "$ac_cv_header_ncurses_curses_h" = "yes"
|
|
149
|
9156 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
|
|
|
9157 else c_switch_site="$save_c_switch_site"
|
|
|
9158 fi
|
|
|
9159 fi
|
|
151
|
9160 else if test "$have_terminfo" = "yes"; then
|
|
|
9161 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9162 echo " xemacs will be linked with \"terminfo.o\""
|
|
|
9163 fi
|
|
|
9164 if test -n "$libs_termcap"; then
|
|
|
9165 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
|
9166 else
|
|
|
9167 for lib in curses termlib termcap; do
|
|
|
9168
|
|
|
9169 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
|
|
219
|
9170 echo "configure:9171: checking for tgetent in -l$lib" >&5
|
|
151
|
9171 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
|
|
|
9172
|
|
|
9173 xe_check_libs=" -l$lib "
|
|
|
9174 cat > conftest.$ac_ext <<EOF
|
|
219
|
9175 #line 9176 "configure"
|
|
149
|
9176 #include "confdefs.h"
|
|
|
9177 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9178 /* We use char because int might match the return type of a gcc2
|
|
|
9179 builtin and then its argument prototype would still apply. */
|
|
151
|
9180 char tgetent();
|
|
149
|
9181
|
|
|
9182 int main() {
|
|
151
|
9183 tgetent()
|
|
149
|
9184 ; return 0; }
|
|
|
9185 EOF
|
|
219
|
9186 if { (eval echo configure:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9187 rm -rf conftest*
|
|
|
9188 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9189 else
|
|
|
9190 echo "configure: failed program was:" >&5
|
|
|
9191 cat conftest.$ac_ext >&5
|
|
|
9192 rm -rf conftest*
|
|
|
9193 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9194 fi
|
|
|
9195 rm -f conftest*
|
|
|
9196 xe_check_libs=""
|
|
|
9197
|
|
151
|
9198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
9199 echo "$ac_t""yes" 1>&6
|
|
|
9200 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
|
|
|
9201 else
|
|
|
9202 echo "$ac_t""no" 1>&6
|
|
|
9203 fi
|
|
|
9204
|
|
|
9205
|
|
|
9206 done
|
|
|
9207 fi
|
|
|
9208 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9209 echo " xemacs will be linked with \"tparam.o\""
|
|
|
9210 fi
|
|
|
9211 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
|
|
|
9212 if test -n "$libs_termcap"; then
|
|
|
9213 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
|
9214 else
|
|
|
9215
|
|
|
9216 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
|
|
219
|
9217 echo "configure:9218: checking for tgetent in -lcurses" >&5
|
|
151
|
9218 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
|
|
|
9219
|
|
|
9220 xe_check_libs=" -lcurses "
|
|
|
9221 cat > conftest.$ac_ext <<EOF
|
|
219
|
9222 #line 9223 "configure"
|
|
149
|
9223 #include "confdefs.h"
|
|
|
9224 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9225 /* We use char because int might match the return type of a gcc2
|
|
|
9226 builtin and then its argument prototype would still apply. */
|
|
151
|
9227 char tgetent();
|
|
149
|
9228
|
|
|
9229 int main() {
|
|
151
|
9230 tgetent()
|
|
149
|
9231 ; return 0; }
|
|
|
9232 EOF
|
|
219
|
9233 if { (eval echo configure:9234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9234 rm -rf conftest*
|
|
|
9235 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9236 else
|
|
|
9237 echo "configure: failed program was:" >&5
|
|
|
9238 cat conftest.$ac_ext >&5
|
|
|
9239 rm -rf conftest*
|
|
|
9240 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9241 fi
|
|
|
9242 rm -f conftest*
|
|
|
9243 xe_check_libs=""
|
|
|
9244
|
|
151
|
9245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
9246 echo "$ac_t""yes" 1>&6
|
|
|
9247 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
|
|
|
9248 else
|
|
|
9249 echo "$ac_t""no" 1>&6
|
|
|
9250 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
|
|
219
|
9251 echo "configure:9252: checking for tgetent in -ltermcap" >&5
|
|
151
|
9252 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
|
|
|
9253
|
|
|
9254 xe_check_libs=" -ltermcap "
|
|
|
9255 cat > conftest.$ac_ext <<EOF
|
|
219
|
9256 #line 9257 "configure"
|
|
149
|
9257 #include "confdefs.h"
|
|
|
9258 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9259 /* We use char because int might match the return type of a gcc2
|
|
|
9260 builtin and then its argument prototype would still apply. */
|
|
151
|
9261 char tgetent();
|
|
149
|
9262
|
|
|
9263 int main() {
|
|
151
|
9264 tgetent()
|
|
149
|
9265 ; return 0; }
|
|
|
9266 EOF
|
|
219
|
9267 if { (eval echo configure:9268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9268 rm -rf conftest*
|
|
|
9269 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9270 else
|
|
|
9271 echo "configure: failed program was:" >&5
|
|
|
9272 cat conftest.$ac_ext >&5
|
|
|
9273 rm -rf conftest*
|
|
|
9274 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9275 fi
|
|
|
9276 rm -f conftest*
|
|
|
9277 xe_check_libs=""
|
|
|
9278
|
|
151
|
9279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
9280 echo "$ac_t""yes" 1>&6
|
|
|
9281 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
|
|
|
9282 else
|
|
|
9283 echo "$ac_t""no" 1>&6
|
|
|
9284 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9285 echo " xemacs will be linked with \"termcap.o\""
|
|
|
9286 fi
|
|
|
9287 fi
|
|
|
9288
|
|
|
9289
|
|
|
9290 fi
|
|
|
9291
|
|
|
9292
|
|
0
|
9293 fi
|
|
|
9294 fi
|
|
149
|
9295 fi
|
|
|
9296 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
9297 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
|
|
|
9298 EOF
|
|
|
9299 cat >> confdefs.h <<EOF
|
|
|
9300 #define CURSES_H_PATH "${curses_h_path-curses.h}"
|
|
|
9301 EOF
|
|
|
9302 }
|
|
|
9303
|
|
|
9304 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
9305 Defining TERM_H_PATH = "${term_h_path-term.h}"
|
|
|
9306 EOF
|
|
|
9307 cat >> confdefs.h <<EOF
|
|
|
9308 #define TERM_H_PATH "${term_h_path-term.h}"
|
|
|
9309 EOF
|
|
|
9310 }
|
|
|
9311
|
|
155
|
9312
|
|
|
9313 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
|
|
|
9314 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
|
|
219
|
9315 echo "configure:9316: checking for gpm.h" >&5
|
|
|
9316
|
|
|
9317 cat > conftest.$ac_ext <<EOF
|
|
|
9318 #line 9319 "configure"
|
|
155
|
9319 #include "confdefs.h"
|
|
|
9320 #include <gpm.h>
|
|
|
9321 EOF
|
|
|
9322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
219
|
9323 { (eval echo configure:9324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
155
|
9324 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
9325 if test -z "$ac_err"; then
|
|
|
9326 rm -rf conftest*
|
|
|
9327 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9328 else
|
|
|
9329 echo "$ac_err" >&5
|
|
|
9330 echo "configure: failed program was:" >&5
|
|
|
9331 cat conftest.$ac_ext >&5
|
|
|
9332 rm -rf conftest*
|
|
|
9333 eval "ac_cv_header_$ac_safe=no"
|
|
|
9334 fi
|
|
|
9335 rm -f conftest*
|
|
|
9336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9337 echo "$ac_t""yes" 1>&6
|
|
|
9338 :
|
|
|
9339 else
|
|
|
9340 echo "$ac_t""no" 1>&6
|
|
|
9341 with_gpm=no
|
|
|
9342 fi
|
|
|
9343 }
|
|
|
9344 test -z "$with_gpm" && {
|
|
|
9345 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
|
|
219
|
9346 echo "configure:9347: checking for Gpm_Open in -lgpm" >&5
|
|
155
|
9347 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
|
|
|
9348
|
|
|
9349 xe_check_libs=" -lgpm "
|
|
|
9350 cat > conftest.$ac_ext <<EOF
|
|
219
|
9351 #line 9352 "configure"
|
|
155
|
9352 #include "confdefs.h"
|
|
|
9353 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9354 /* We use char because int might match the return type of a gcc2
|
|
|
9355 builtin and then its argument prototype would still apply. */
|
|
|
9356 char Gpm_Open();
|
|
|
9357
|
|
|
9358 int main() {
|
|
|
9359 Gpm_Open()
|
|
|
9360 ; return 0; }
|
|
|
9361 EOF
|
|
219
|
9362 if { (eval echo configure:9363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
155
|
9363 rm -rf conftest*
|
|
|
9364 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9365 else
|
|
|
9366 echo "configure: failed program was:" >&5
|
|
|
9367 cat conftest.$ac_ext >&5
|
|
|
9368 rm -rf conftest*
|
|
|
9369 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9370 fi
|
|
|
9371 rm -f conftest*
|
|
|
9372 xe_check_libs=""
|
|
|
9373
|
|
|
9374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
9375 echo "$ac_t""yes" 1>&6
|
|
|
9376 with_gpm=yes
|
|
|
9377 else
|
|
|
9378 echo "$ac_t""no" 1>&6
|
|
|
9379 with_gpm=no
|
|
|
9380 fi
|
|
|
9381
|
|
|
9382 }
|
|
|
9383 if test "$with_gpm" = "yes"; then
|
|
|
9384 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9385 Defining HAVE_GPM
|
|
|
9386 EOF
|
|
|
9387 cat >> confdefs.h <<\EOF
|
|
|
9388 #define HAVE_GPM 1
|
|
|
9389 EOF
|
|
|
9390 }
|
|
|
9391
|
|
|
9392 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9393 echo " xemacs will be linked with \"gpmevent.o\""
|
|
|
9394 fi
|
|
|
9395 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
|
|
|
9396 fi
|
|
|
9397
|
|
151
|
9398 else for feature in ncurses gpm; do
|
|
149
|
9399 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
|
9400 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
|
|
|
9401 fi
|
|
|
9402 eval "with_${feature}=no"
|
|
|
9403 done
|
|
151
|
9404 fi
|
|
163
|
9405 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9406 echo " xemacs will be linked with \"event-unixoid.o\""
|
|
|
9407 fi
|
|
|
9408
|
|
149
|
9409
|
|
|
9410 echo "checking for database support" 1>&6
|
|
219
|
9411 echo "configure:9412: checking for database support" >&5
|
|
151
|
9412
|
|
|
9413 if test "$with_database_gnudbm" != "no"; then
|
|
149
|
9414
|
|
|
9415 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
|
|
219
|
9416 echo "configure:9417: checking for dbm_open in -lgdbm" >&5
|
|
149
|
9417 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
|
9418
|
|
|
9419 xe_check_libs=" -lgdbm "
|
|
|
9420 cat > conftest.$ac_ext <<EOF
|
|
219
|
9421 #line 9422 "configure"
|
|
149
|
9422 #include "confdefs.h"
|
|
|
9423 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9424 /* We use char because int might match the return type of a gcc2
|
|
|
9425 builtin and then its argument prototype would still apply. */
|
|
|
9426 char dbm_open();
|
|
|
9427
|
|
|
9428 int main() {
|
|
|
9429 dbm_open()
|
|
|
9430 ; return 0; }
|
|
|
9431 EOF
|
|
219
|
9432 if { (eval echo configure:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9433 rm -rf conftest*
|
|
|
9434 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9435 else
|
|
|
9436 echo "configure: failed program was:" >&5
|
|
|
9437 cat conftest.$ac_ext >&5
|
|
|
9438 rm -rf conftest*
|
|
|
9439 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9440 fi
|
|
|
9441 rm -f conftest*
|
|
|
9442 xe_check_libs=""
|
|
|
9443
|
|
151
|
9444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
9445 echo "$ac_t""yes" 1>&6
|
|
|
9446 with_database_gnudbm=yes have_libgdbm=yes
|
|
|
9447 else
|
|
|
9448 echo "$ac_t""no" 1>&6
|
|
|
9449 fi
|
|
|
9450
|
|
|
9451
|
|
|
9452 if test "$with_database_gnudbm" != "yes"; then
|
|
|
9453 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
|
219
|
9454 echo "configure:9455: checking for dbm_open" >&5
|
|
|
9455
|
|
|
9456 cat > conftest.$ac_ext <<EOF
|
|
|
9457 #line 9458 "configure"
|
|
149
|
9458 #include "confdefs.h"
|
|
|
9459 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
9460 which can conflict with char dbm_open(); below. */
|
|
|
9461 #include <assert.h>
|
|
|
9462 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9463 /* We use char because int might match the return type of a gcc2
|
|
|
9464 builtin and then its argument prototype would still apply. */
|
|
|
9465 char dbm_open();
|
|
|
9466
|
|
|
9467 int main() {
|
|
|
9468
|
|
|
9469 /* The GNU C library defines this for functions which it implements
|
|
|
9470 to always fail with ENOSYS. Some functions are actually named
|
|
|
9471 something starting with __ and the normal name is an alias. */
|
|
|
9472 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
|
9473 choke me
|
|
|
9474 #else
|
|
|
9475 dbm_open();
|
|
|
9476 #endif
|
|
|
9477
|
|
|
9478 ; return 0; }
|
|
|
9479 EOF
|
|
219
|
9480 if { (eval echo configure:9481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9481 rm -rf conftest*
|
|
|
9482 eval "ac_cv_func_dbm_open=yes"
|
|
|
9483 else
|
|
|
9484 echo "configure: failed program was:" >&5
|
|
|
9485 cat conftest.$ac_ext >&5
|
|
|
9486 rm -rf conftest*
|
|
|
9487 eval "ac_cv_func_dbm_open=no"
|
|
|
9488 fi
|
|
|
9489 rm -f conftest*
|
|
|
9490
|
|
|
9491 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
|
9492 echo "$ac_t""yes" 1>&6
|
|
|
9493 with_database_gnudbm=yes
|
|
|
9494 else
|
|
|
9495 echo "$ac_t""no" 1>&6
|
|
|
9496 fi
|
|
|
9497
|
|
|
9498 fi
|
|
151
|
9499 if test "$with_database_gnudbm" = "yes"; then
|
|
149
|
9500 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9501 Defining HAVE_DBM
|
|
|
9502 EOF
|
|
|
9503 cat >> confdefs.h <<\EOF
|
|
|
9504 #define HAVE_DBM 1
|
|
|
9505 EOF
|
|
|
9506 }
|
|
|
9507
|
|
151
|
9508 test "$have_libgdbm" = "yes" && LIBS="-lgdbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdbm\" to \$LIBS"; fi
|
|
149
|
9509 with_database_dbm=no
|
|
|
9510 else with_database_gnudbm=no
|
|
|
9511 fi
|
|
|
9512 fi
|
|
|
9513
|
|
151
|
9514 if test "$with_database_dbm" != "no"; then
|
|
149
|
9515 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
|
219
|
9516 echo "configure:9517: checking for dbm_open" >&5
|
|
|
9517
|
|
|
9518 cat > conftest.$ac_ext <<EOF
|
|
|
9519 #line 9520 "configure"
|
|
149
|
9520 #include "confdefs.h"
|
|
|
9521 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
9522 which can conflict with char dbm_open(); below. */
|
|
|
9523 #include <assert.h>
|
|
|
9524 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9525 /* We use char because int might match the return type of a gcc2
|
|
|
9526 builtin and then its argument prototype would still apply. */
|
|
|
9527 char dbm_open();
|
|
|
9528
|
|
|
9529 int main() {
|
|
|
9530
|
|
|
9531 /* The GNU C library defines this for functions which it implements
|
|
|
9532 to always fail with ENOSYS. Some functions are actually named
|
|
|
9533 something starting with __ and the normal name is an alias. */
|
|
|
9534 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
|
9535 choke me
|
|
|
9536 #else
|
|
|
9537 dbm_open();
|
|
|
9538 #endif
|
|
|
9539
|
|
|
9540 ; return 0; }
|
|
|
9541 EOF
|
|
219
|
9542 if { (eval echo configure:9543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9543 rm -rf conftest*
|
|
|
9544 eval "ac_cv_func_dbm_open=yes"
|
|
|
9545 else
|
|
|
9546 echo "configure: failed program was:" >&5
|
|
|
9547 cat conftest.$ac_ext >&5
|
|
|
9548 rm -rf conftest*
|
|
|
9549 eval "ac_cv_func_dbm_open=no"
|
|
|
9550 fi
|
|
|
9551 rm -f conftest*
|
|
|
9552
|
|
|
9553 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
|
9554 echo "$ac_t""yes" 1>&6
|
|
|
9555 with_database_dbm=yes need_libdbm=no
|
|
|
9556 else
|
|
|
9557 echo "$ac_t""no" 1>&6
|
|
|
9558 fi
|
|
|
9559
|
|
|
9560 if test "$need_libdbm" != "no"; then
|
|
|
9561
|
|
|
9562 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
|
|
219
|
9563 echo "configure:9564: checking for dbm_open in -ldbm" >&5
|
|
149
|
9564 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
|
9565
|
|
|
9566 xe_check_libs=" -ldbm "
|
|
|
9567 cat > conftest.$ac_ext <<EOF
|
|
219
|
9568 #line 9569 "configure"
|
|
149
|
9569 #include "confdefs.h"
|
|
|
9570 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9571 /* We use char because int might match the return type of a gcc2
|
|
|
9572 builtin and then its argument prototype would still apply. */
|
|
|
9573 char dbm_open();
|
|
|
9574
|
|
|
9575 int main() {
|
|
|
9576 dbm_open()
|
|
|
9577 ; return 0; }
|
|
|
9578 EOF
|
|
219
|
9579 if { (eval echo configure:9580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9580 rm -rf conftest*
|
|
|
9581 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9582 else
|
|
|
9583 echo "configure: failed program was:" >&5
|
|
|
9584 cat conftest.$ac_ext >&5
|
|
|
9585 rm -rf conftest*
|
|
|
9586 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9587 fi
|
|
|
9588 rm -f conftest*
|
|
|
9589 xe_check_libs=""
|
|
|
9590
|
|
151
|
9591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
9592 echo "$ac_t""yes" 1>&6
|
|
|
9593 with_database_dbm=yes need_libdbm=yes
|
|
|
9594 else
|
|
|
9595 echo "$ac_t""no" 1>&6
|
|
|
9596 fi
|
|
|
9597
|
|
70
|
9598
|
|
0
|
9599 fi
|
|
151
|
9600 if test "$with_database_dbm" = "yes"; then
|
|
149
|
9601 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9602 Defining HAVE_DBM
|
|
|
9603 EOF
|
|
|
9604 cat >> confdefs.h <<\EOF
|
|
|
9605 #define HAVE_DBM 1
|
|
|
9606 EOF
|
|
|
9607 }
|
|
|
9608
|
|
151
|
9609 test "$need_libdbm" = "yes" && LIBS="-ldbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldbm\" to \$LIBS"; fi
|
|
149
|
9610 else with_database_dbm=no
|
|
|
9611 fi
|
|
|
9612 fi
|
|
|
9613
|
|
|
9614 if test "$with_database_berkdb" != "no"; then
|
|
|
9615 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
|
|
219
|
9616 echo "configure:9617: checking for dbopen" >&5
|
|
|
9617
|
|
|
9618 cat > conftest.$ac_ext <<EOF
|
|
|
9619 #line 9620 "configure"
|
|
149
|
9620 #include "confdefs.h"
|
|
|
9621 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
9622 which can conflict with char dbopen(); below. */
|
|
|
9623 #include <assert.h>
|
|
|
9624 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9625 /* We use char because int might match the return type of a gcc2
|
|
|
9626 builtin and then its argument prototype would still apply. */
|
|
|
9627 char dbopen();
|
|
|
9628
|
|
|
9629 int main() {
|
|
|
9630
|
|
0
|
9631 /* The GNU C library defines this for functions which it implements
|
|
|
9632 to always fail with ENOSYS. Some functions are actually named
|
|
|
9633 something starting with __ and the normal name is an alias. */
|
|
|
9634 #if defined (__stub_dbopen) || defined (__stub___dbopen)
|
|
|
9635 choke me
|
|
|
9636 #else
|
|
149
|
9637 dbopen();
|
|
0
|
9638 #endif
|
|
149
|
9639
|
|
0
|
9640 ; return 0; }
|
|
|
9641 EOF
|
|
219
|
9642 if { (eval echo configure:9643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9643 rm -rf conftest*
|
|
|
9644 eval "ac_cv_func_dbopen=yes"
|
|
|
9645 else
|
|
|
9646 echo "configure: failed program was:" >&5
|
|
|
9647 cat conftest.$ac_ext >&5
|
|
|
9648 rm -rf conftest*
|
|
|
9649 eval "ac_cv_func_dbopen=no"
|
|
|
9650 fi
|
|
|
9651 rm -f conftest*
|
|
|
9652
|
|
|
9653 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
|
|
|
9654 echo "$ac_t""yes" 1>&6
|
|
|
9655 with_database_berkdb=yes need_libdb=no
|
|
|
9656 else
|
|
|
9657 echo "$ac_t""no" 1>&6
|
|
|
9658 fi
|
|
|
9659
|
|
|
9660 if test "$need_libdb" != "no"; then
|
|
|
9661
|
|
|
9662 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
|
|
219
|
9663 echo "configure:9664: checking for dbopen in -ldb" >&5
|
|
149
|
9664 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
|
|
|
9665
|
|
|
9666 xe_check_libs=" -ldb "
|
|
|
9667 cat > conftest.$ac_ext <<EOF
|
|
219
|
9668 #line 9669 "configure"
|
|
149
|
9669 #include "confdefs.h"
|
|
0
|
9670 /* Override any gcc2 internal prototype to avoid an error. */
|
|
149
|
9671 /* We use char because int might match the return type of a gcc2
|
|
|
9672 builtin and then its argument prototype would still apply. */
|
|
|
9673 char dbopen();
|
|
|
9674
|
|
|
9675 int main() {
|
|
|
9676 dbopen()
|
|
0
|
9677 ; return 0; }
|
|
|
9678 EOF
|
|
219
|
9679 if { (eval echo configure:9680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9680 rm -rf conftest*
|
|
|
9681 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9682 else
|
|
|
9683 echo "configure: failed program was:" >&5
|
|
|
9684 cat conftest.$ac_ext >&5
|
|
|
9685 rm -rf conftest*
|
|
|
9686 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9687 fi
|
|
|
9688 rm -f conftest*
|
|
|
9689 xe_check_libs=""
|
|
|
9690
|
|
151
|
9691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
9692 echo "$ac_t""yes" 1>&6
|
|
|
9693 with_database_berkdb=yes need_libdb=yes
|
|
|
9694 else
|
|
|
9695 echo "$ac_t""no" 1>&6
|
|
|
9696 fi
|
|
|
9697
|
|
70
|
9698
|
|
0
|
9699 fi
|
|
149
|
9700 if test "$with_database_berkdb" = "yes"; then
|
|
|
9701 for path in "db/db.h" "db.h"; do
|
|
|
9702 cat > conftest.$ac_ext <<EOF
|
|
219
|
9703 #line 9704 "configure"
|
|
149
|
9704 #include "confdefs.h"
|
|
|
9705 #ifdef HAVE_INTTYPES_H
|
|
|
9706 #define __BIT_TYPES_DEFINED__
|
|
|
9707 #include <inttypes.h>
|
|
|
9708 typedef uint8_t u_int8_t;
|
|
|
9709 typedef uint16_t u_int16_t;
|
|
|
9710 typedef uint32_t u_int32_t;
|
|
|
9711 #ifdef WE_DONT_NEED_QUADS
|
|
|
9712 typedef uint64_t u_int64_t;
|
|
|
9713 #endif
|
|
|
9714 #endif
|
|
|
9715 #include <$path>
|
|
|
9716
|
|
|
9717 int main() {
|
|
|
9718
|
|
|
9719 ; return 0; }
|
|
|
9720 EOF
|
|
219
|
9721 if { (eval echo configure:9722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
9722 rm -rf conftest*
|
|
|
9723 db_h_path="$path"; break
|
|
|
9724 else
|
|
|
9725 echo "configure: failed program was:" >&5
|
|
|
9726 cat conftest.$ac_ext >&5
|
|
|
9727 fi
|
|
|
9728 rm -f conftest*
|
|
|
9729 done
|
|
|
9730 test -z "$db_h_path" && with_database_berkdb=no
|
|
0
|
9731 fi
|
|
149
|
9732 if test "$with_database_berkdb" = "yes"; then
|
|
|
9733 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
9734 Defining DB_H_PATH = "$db_h_path"
|
|
|
9735 EOF
|
|
|
9736 cat >> confdefs.h <<EOF
|
|
|
9737 #define DB_H_PATH "$db_h_path"
|
|
|
9738 EOF
|
|
|
9739 }
|
|
|
9740
|
|
|
9741 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9742 Defining HAVE_BERKELEY_DB
|
|
|
9743 EOF
|
|
|
9744 cat >> confdefs.h <<\EOF
|
|
|
9745 #define HAVE_BERKELEY_DB 1
|
|
|
9746 EOF
|
|
|
9747 }
|
|
|
9748
|
|
151
|
9749 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
|
|
149
|
9750 else with_database_berkdb=no
|
|
|
9751 fi
|
|
|
9752 fi
|
|
|
9753
|
|
|
9754 if test "$with_database_gnudbm" = "yes" -o \
|
|
|
9755 "$with_database_dbm" = "yes" -o \
|
|
|
9756 "$with_database_berkdb" = "yes"; then
|
|
|
9757 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9758 Defining HAVE_DATABASE
|
|
|
9759 EOF
|
|
|
9760 cat >> confdefs.h <<\EOF
|
|
|
9761 #define HAVE_DATABASE 1
|
|
|
9762 EOF
|
|
|
9763 }
|
|
|
9764
|
|
151
|
9765 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9766 echo " xemacs will be linked with \"database.o\""
|
|
|
9767 fi
|
|
149
|
9768 fi
|
|
|
9769
|
|
|
9770 if test "$with_socks" = "yes"; then
|
|
|
9771
|
|
|
9772 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
|
|
219
|
9773 echo "configure:9774: checking for SOCKSinit in -lsocks" >&5
|
|
149
|
9774 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
|
|
|
9775
|
|
|
9776 xe_check_libs=" -lsocks "
|
|
|
9777 cat > conftest.$ac_ext <<EOF
|
|
219
|
9778 #line 9779 "configure"
|
|
149
|
9779 #include "confdefs.h"
|
|
|
9780 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9781 /* We use char because int might match the return type of a gcc2
|
|
|
9782 builtin and then its argument prototype would still apply. */
|
|
|
9783 char SOCKSinit();
|
|
|
9784
|
|
|
9785 int main() {
|
|
|
9786 SOCKSinit()
|
|
|
9787 ; return 0; }
|
|
|
9788 EOF
|
|
219
|
9789 if { (eval echo configure:9790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9790 rm -rf conftest*
|
|
|
9791 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9792 else
|
|
|
9793 echo "configure: failed program was:" >&5
|
|
|
9794 cat conftest.$ac_ext >&5
|
|
|
9795 rm -rf conftest*
|
|
|
9796 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9797 fi
|
|
|
9798 rm -f conftest*
|
|
|
9799 xe_check_libs=""
|
|
|
9800
|
|
151
|
9801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
9802 echo "$ac_t""yes" 1>&6
|
|
|
9803 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
9804 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
9805 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
9806 Defining $ac_tr_lib
|
|
|
9807 EOF
|
|
|
9808 cat >> confdefs.h <<EOF
|
|
|
9809 #define $ac_tr_lib 1
|
|
|
9810 EOF
|
|
|
9811 }
|
|
|
9812
|
|
151
|
9813 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
|
|
149
|
9814
|
|
|
9815 else
|
|
|
9816 echo "$ac_t""no" 1>&6
|
|
|
9817 fi
|
|
|
9818
|
|
|
9819
|
|
|
9820 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9821 Defining HAVE_SOCKS
|
|
|
9822 EOF
|
|
|
9823 cat >> confdefs.h <<\EOF
|
|
|
9824 #define HAVE_SOCKS 1
|
|
|
9825 EOF
|
|
|
9826 }
|
|
|
9827
|
|
|
9828 fi
|
|
|
9829
|
|
|
9830 if test "$usage_tracking" = "yes"; then
|
|
|
9831 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9832 Defining USAGE_TRACKING
|
|
|
9833 EOF
|
|
|
9834 cat >> confdefs.h <<\EOF
|
|
|
9835 #define USAGE_TRACKING 1
|
|
|
9836 EOF
|
|
|
9837 }
|
|
|
9838
|
|
151
|
9839 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
|
|
149
|
9840 fi
|
|
|
9841
|
|
155
|
9842
|
|
|
9843
|
|
|
9844 T=""
|
|
175
|
9845 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
9846 CFLAGS="$T"
|
|
|
9847
|
|
|
9848
|
|
|
9849 T=""
|
|
155
|
9850 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
9851 extra_objs="$T"
|
|
|
9852
|
|
|
9853
|
|
|
9854 T=""
|
|
|
9855 for W in -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
9856 c_switch_general="$T"
|
|
|
9857
|
|
|
9858
|
|
|
9859 T=""
|
|
|
9860 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
9861 c_switch_window_system="$T"
|
|
|
9862
|
|
|
9863
|
|
|
9864 T=""
|
|
|
9865 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
9866 c_switch_all="$T"
|
|
|
9867
|
|
|
9868
|
|
|
9869 T=""
|
|
|
9870 for W in $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
9871 ld_switch_general="$T"
|
|
|
9872
|
|
|
9873
|
|
|
9874 T=""
|
|
|
9875 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
9876 ld_switch_window_system="$T"
|
|
|
9877
|
|
|
9878
|
|
|
9879 T=""
|
|
|
9880 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
9881 ld_switch_all="$T"
|
|
|
9882
|
|
|
9883
|
|
|
9884 T=""
|
|
|
9885 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
9886 ld_libs_general="$T"
|
|
|
9887
|
|
|
9888
|
|
|
9889 T=""
|
|
|
9890 for W in $X_EXTRA_LIBS $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
9891 ld_libs_window_system="$T"
|
|
|
9892
|
|
|
9893
|
|
|
9894 T=""
|
|
|
9895 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
9896 ld_libs_all="$T"
|
|
|
9897
|
|
149
|
9898
|
|
151
|
9899
|
|
|
9900 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
|
|
149
|
9901 internal_makefile_list="Makefile"
|
|
|
9902 SUBDIR_MAKEFILES=''
|
|
151
|
9903 test -d lock || mkdir lock
|
|
149
|
9904 for dir in $MAKE_SUBDIR; do
|
|
167
|
9905 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
|
|
|
9906 test -d "$d" || mkdir "$d"; cd "$d"
|
|
|
9907 done ) ;;
|
|
|
9908 * ) test -d "$dir" || mkdir "$dir" ;;
|
|
|
9909 esac
|
|
155
|
9910
|
|
|
9911 T=""
|
|
|
9912 for W in $SUBDIR_MAKEFILES $dir/Makefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
9913 SUBDIR_MAKEFILES="$T"
|
|
|
9914
|
|
|
9915
|
|
|
9916 T=""
|
|
|
9917 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
9918 internal_makefile_list="$T"
|
|
|
9919
|
|
149
|
9920 done
|
|
|
9921
|
|
|
9922
|
|
|
9923
|
|
167
|
9924
|
|
157
|
9925 for dir in src/s src/m; do
|
|
|
9926 if test ! -d "$dir" ; then
|
|
|
9927 echo Making symbolic link to "$srcdir/$dir"
|
|
|
9928 ${LN_S} "$srcdir/$dir" "$dir"
|
|
|
9929 fi
|
|
|
9930 done
|
|
|
9931
|
|
149
|
9932 if test "$extra_verbose" = "yes"; then
|
|
151
|
9933 echo ""
|
|
163
|
9934 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done
|
|
149
|
9935 echo ""
|
|
|
9936 fi
|
|
|
9937
|
|
151
|
9938 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
|
|
153
|
9939 echo "creating src/gdbinit"; echo ""
|
|
151
|
9940 echo "source $srcdir/src/gdbinit" > src/gdbinit
|
|
|
9941 fi
|
|
|
9942
|
|
157
|
9943 if test "$__sunpro_c" = "yes"; then
|
|
153
|
9944 echo "creating .sbinit"; echo ""
|
|
157
|
9945 ( echo "# For use with Sun WorkShop's Source browser."
|
|
|
9946 echo "# See sbquery(1) and sbinit(4) for more information"
|
|
|
9947 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
|
|
|
9948 ) > .sbinit
|
|
|
9949 fi
|
|
151
|
9950
|
|
|
9951 rm -f core
|
|
|
9952
|
|
149
|
9953
|
|
|
9954
|
|
|
9955
|
|
|
9956
|
|
|
9957
|
|
|
9958
|
|
|
9959
|
|
|
9960
|
|
|
9961
|
|
|
9962
|
|
|
9963
|
|
|
9964
|
|
|
9965
|
|
|
9966
|
|
|
9967
|
|
|
9968
|
|
|
9969
|
|
|
9970
|
|
|
9971
|
|
|
9972
|
|
|
9973
|
|
|
9974
|
|
|
9975
|
|
|
9976
|
|
|
9977
|
|
|
9978
|
|
|
9979
|
|
|
9980
|
|
|
9981
|
|
|
9982
|
|
|
9983
|
|
|
9984
|
|
|
9985
|
|
|
9986
|
|
|
9987
|
|
|
9988
|
|
|
9989
|
|
|
9990
|
|
|
9991
|
|
|
9992
|
|
|
9993
|
|
|
9994
|
|
|
9995
|
|
203
|
9996
|
|
207
|
9997
|
|
173
|
9998 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
|
|
|
9999
|
|
|
10000
|
|
|
10001
|
|
|
10002
|
|
|
10003
|
|
|
10004
|
|
|
10005
|
|
|
10006
|
|
187
|
10007 if test "${package_path}" = "NONE" ; then
|
|
|
10008 package_path="~/.xemacs:${prefix}/lib/xemacs/packages"
|
|
185
|
10009 fi
|
|
|
10010 package_path=`echo $package_path | sed 'y/ /:/'`
|
|
|
10011 { test "$extra_verbose" = "yes" && cat << EOF
|
|
173
|
10012 Defining PACKAGE_PATH = "$package_path"
|
|
|
10013 EOF
|
|
|
10014 cat >> confdefs.h <<EOF
|
|
|
10015 #define PACKAGE_PATH "$package_path"
|
|
|
10016 EOF
|
|
|
10017 }
|
|
|
10018
|
|
155
|
10019
|
|
207
|
10020
|
|
|
10021 T=""
|
|
|
10022 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
10023 ac_configure_args="$T"
|
|
|
10024
|
|
149
|
10025 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10026 Defining EMACS_CONFIGURATION = "$canonical"
|
|
|
10027 EOF
|
|
|
10028 cat >> confdefs.h <<EOF
|
|
|
10029 #define EMACS_CONFIGURATION "$canonical"
|
|
|
10030 EOF
|
|
|
10031 }
|
|
|
10032
|
|
|
10033 { test "$extra_verbose" = "yes" && cat << EOF
|
|
207
|
10034 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
|
|
173
|
10035 EOF
|
|
|
10036 cat >> confdefs.h <<EOF
|
|
207
|
10037 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
|
|
173
|
10038 EOF
|
|
|
10039 }
|
|
|
10040
|
|
|
10041 { test "$extra_verbose" = "yes" && cat << EOF
|
|
149
|
10042 Defining config_machfile = "$machfile"
|
|
|
10043 EOF
|
|
|
10044 cat >> confdefs.h <<EOF
|
|
|
10045 #define config_machfile "$machfile"
|
|
|
10046 EOF
|
|
|
10047 }
|
|
|
10048
|
|
|
10049 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10050 Defining config_opsysfile = "$opsysfile"
|
|
|
10051 EOF
|
|
|
10052 cat >> confdefs.h <<EOF
|
|
|
10053 #define config_opsysfile "$opsysfile"
|
|
|
10054 EOF
|
|
|
10055 }
|
|
|
10056
|
|
|
10057
|
|
|
10058
|
|
|
10059 null_string=""
|
|
|
10060 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10061 Defining LD_SWITCH_X_SITE = $null_string
|
|
|
10062 EOF
|
|
|
10063 cat >> confdefs.h <<EOF
|
|
|
10064 #define LD_SWITCH_X_SITE $null_string
|
|
|
10065 EOF
|
|
|
10066 }
|
|
|
10067
|
|
|
10068 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10069 Defining LD_SWITCH_X_SITE_AUX = $null_string
|
|
|
10070 EOF
|
|
|
10071 cat >> confdefs.h <<EOF
|
|
|
10072 #define LD_SWITCH_X_SITE_AUX $null_string
|
|
|
10073 EOF
|
|
|
10074 }
|
|
|
10075
|
|
|
10076 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10077 Defining C_SWITCH_X_SITE = $null_string
|
|
|
10078 EOF
|
|
|
10079 cat >> confdefs.h <<EOF
|
|
|
10080 #define C_SWITCH_X_SITE $null_string
|
|
|
10081 EOF
|
|
|
10082 }
|
|
|
10083
|
|
|
10084 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10085 Defining LD_SWITCH_SITE = $null_string
|
|
|
10086 EOF
|
|
|
10087 cat >> confdefs.h <<EOF
|
|
|
10088 #define LD_SWITCH_SITE $null_string
|
|
|
10089 EOF
|
|
|
10090 }
|
|
|
10091
|
|
|
10092 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10093 Defining C_SWITCH_SITE = $null_string
|
|
|
10094 EOF
|
|
|
10095 cat >> confdefs.h <<EOF
|
|
|
10096 #define C_SWITCH_SITE $null_string
|
|
|
10097 EOF
|
|
|
10098 }
|
|
|
10099
|
|
|
10100
|
|
|
10101
|
|
|
10102 test -n "$puresize" && { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10103 Defining RAW_PURESIZE = $puresize
|
|
|
10104 EOF
|
|
|
10105 cat >> confdefs.h <<EOF
|
|
|
10106 #define RAW_PURESIZE $puresize
|
|
|
10107 EOF
|
|
|
10108 }
|
|
|
10109
|
|
|
10110
|
|
181
|
10111 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
10112 Defining GNU_MALLOC
|
|
|
10113 EOF
|
|
|
10114 cat >> confdefs.h <<\EOF
|
|
|
10115 #define GNU_MALLOC 1
|
|
|
10116 EOF
|
|
|
10117 }
|
|
|
10118
|
|
181
|
10119 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
10120 Defining USE_SYSTEM_MALLOC
|
|
|
10121 EOF
|
|
|
10122 cat >> confdefs.h <<\EOF
|
|
|
10123 #define USE_SYSTEM_MALLOC 1
|
|
|
10124 EOF
|
|
|
10125 }
|
|
|
10126
|
|
181
|
10127 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
177
|
10128 Defining USE_DEBUG_MALLOC
|
|
|
10129 EOF
|
|
|
10130 cat >> confdefs.h <<\EOF
|
|
|
10131 #define USE_DEBUG_MALLOC 1
|
|
|
10132 EOF
|
|
|
10133 }
|
|
|
10134
|
|
181
|
10135 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
177
|
10136 Defining USE_SYSTEM_MALLOC
|
|
|
10137 EOF
|
|
|
10138 cat >> confdefs.h <<\EOF
|
|
|
10139 #define USE_SYSTEM_MALLOC 1
|
|
|
10140 EOF
|
|
|
10141 }
|
|
|
10142
|
|
149
|
10143 fi
|
|
|
10144 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10145 Defining I18N3
|
|
|
10146 EOF
|
|
|
10147 cat >> confdefs.h <<\EOF
|
|
|
10148 #define I18N3 1
|
|
|
10149 EOF
|
|
|
10150 }
|
|
|
10151
|
|
169
|
10152 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
10153 Defining USE_GCC
|
|
|
10154 EOF
|
|
|
10155 cat >> confdefs.h <<\EOF
|
|
|
10156 #define USE_GCC 1
|
|
|
10157 EOF
|
|
|
10158 }
|
|
|
10159
|
|
|
10160 test "$with_term" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10161 Defining HAVE_TERM
|
|
|
10162 EOF
|
|
|
10163 cat >> confdefs.h <<\EOF
|
|
|
10164 #define HAVE_TERM 1
|
|
|
10165 EOF
|
|
|
10166 }
|
|
|
10167
|
|
|
10168 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10169 Defining EXTERNAL_WIDGET
|
|
|
10170 EOF
|
|
|
10171 cat >> confdefs.h <<\EOF
|
|
|
10172 #define EXTERNAL_WIDGET 1
|
|
|
10173 EOF
|
|
|
10174 }
|
|
|
10175
|
|
|
10176 test "$with_gnu_make" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10177 Defining USE_GNU_MAKE
|
|
|
10178 EOF
|
|
|
10179 cat >> confdefs.h <<\EOF
|
|
|
10180 #define USE_GNU_MAKE 1
|
|
|
10181 EOF
|
|
|
10182 }
|
|
|
10183
|
|
|
10184 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10185 Defining NO_DOC_FILE
|
|
|
10186 EOF
|
|
|
10187 cat >> confdefs.h <<\EOF
|
|
|
10188 #define NO_DOC_FILE 1
|
|
|
10189 EOF
|
|
|
10190 }
|
|
|
10191
|
|
|
10192 test "$const_is_losing" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10193 Defining CONST_IS_LOSING
|
|
|
10194 EOF
|
|
|
10195 cat >> confdefs.h <<\EOF
|
|
|
10196 #define CONST_IS_LOSING 1
|
|
|
10197 EOF
|
|
|
10198 }
|
|
|
10199
|
|
|
10200 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10201 Defining QUANTIFY
|
|
|
10202 EOF
|
|
|
10203 cat >> confdefs.h <<\EOF
|
|
|
10204 #define QUANTIFY 1
|
|
|
10205 EOF
|
|
|
10206 }
|
|
|
10207
|
|
|
10208 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10209 Defining MAIL_USE_POP
|
|
|
10210 EOF
|
|
|
10211 cat >> confdefs.h <<\EOF
|
|
|
10212 #define MAIL_USE_POP 1
|
|
|
10213 EOF
|
|
|
10214 }
|
|
|
10215
|
|
|
10216 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10217 Defining KERBEROS
|
|
|
10218 EOF
|
|
|
10219 cat >> confdefs.h <<\EOF
|
|
|
10220 #define KERBEROS 1
|
|
|
10221 EOF
|
|
|
10222 }
|
|
|
10223
|
|
|
10224 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10225 Defining HESIOD
|
|
|
10226 EOF
|
|
|
10227 cat >> confdefs.h <<\EOF
|
|
|
10228 #define HESIOD 1
|
|
|
10229 EOF
|
|
|
10230 }
|
|
|
10231
|
|
|
10232 test "$use_union_type" != yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10233 Defining NO_UNION_TYPE
|
|
|
10234 EOF
|
|
|
10235 cat >> confdefs.h <<\EOF
|
|
|
10236 #define NO_UNION_TYPE 1
|
|
|
10237 EOF
|
|
0
|
10238 }
|
|
70
|
10239
|
|
|
10240
|
|
0
|
10241
|
|
118
|
10242 (
|
|
149
|
10243 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
|
|
|
10244 else
|
|
|
10245 echo "uname -a: `uname -a`"
|
|
|
10246 fi
|
|
|
10247 echo ""
|
|
|
10248 echo "$0 $quoted_arguments"
|
|
118
|
10249 ) >> Installation
|
|
149
|
10250
|
|
116
|
10251 (
|
|
0
|
10252 echo "
|
|
|
10253
|
|
149
|
10254 Configured for \`$canonical'.
|
|
|
10255
|
|
|
10256 Where should the build process find the source code? $srcdir
|
|
|
10257 What installation prefix should install use? $prefix
|
|
183
|
10258 Where should XEmacs look for packages? $package_path
|
|
0
|
10259 What operating system and machine description files should XEmacs use?
|
|
149
|
10260 \`$opsysfile' and \`$machfile'
|
|
|
10261 What compiler should XEmacs be built with? $CC $CFLAGS
|
|
0
|
10262 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
|
|
149
|
10263 Should XEmacs use the relocating allocator for buffers? $rel_alloc
|
|
|
10264 What window system should XEmacs use? ${window_system}"
|
|
|
10265 if test "$with_x11" = "yes"; then
|
|
|
10266 echo " Where do we find X Windows header files? $x_includes"
|
|
|
10267 echo " Where do we find X Windows libraries? $x_libraries"
|
|
|
10268 fi
|
|
70
|
10269 if test -n "$site_includes"; then
|
|
149
|
10270 echo " Additional header files: $site_includes"
|
|
|
10271 fi
|
|
|
10272 if test -n "$site_libraries"; then
|
|
|
10273 echo " Additional libraries: $site_libraries"
|
|
|
10274 fi
|
|
209
|
10275 if test -n "$site_prefixes"; then
|
|
|
10276 echo " Additional prefixes: $site_prefixes"
|
|
|
10277 fi
|
|
149
|
10278 if test -n "$runpath"; then
|
|
|
10279 echo " Runtime library search path: $runpath"
|
|
0
|
10280 fi
|
|
136
|
10281 test "$with_dnet" = yes && echo " Compiling in support for DNET."
|
|
116
|
10282 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
|
10283 test "$with_term" = yes && echo " Compiling in support for TERM."
|
|
|
10284 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
|
|
149
|
10285 if test "$with_xmu" != yes -a "$with_x11" = yes; then
|
|
116
|
10286 echo " No Xmu; substituting equivalent routines."
|
|
|
10287 fi
|
|
149
|
10288
|
|
153
|
10289 if test "$with_xpm" = yes; then
|
|
151
|
10290 echo " Compiling in support for XPM images."
|
|
175
|
10291 elif test "$with_x11" = yes; then
|
|
151
|
10292 echo " --------------------------------------------------------------------"
|
|
|
10293 echo " WARNING: Compiling without XPM support."
|
|
|
10294 echo " WARNING: You should strongly considering installing XPM."
|
|
|
10295 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
|
|
|
10296 echo " --------------------------------------------------------------------"
|
|
|
10297 fi
|
|
149
|
10298 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
|
|
207
|
10299 test "$with_imagick" = yes && echo " Compiling in support for ImageMagick image conversion."
|
|
116
|
10300
|
|
149
|
10301 case "$with_sound" in
|
|
|
10302 nas ) echo " Compiling in network sound (NAS) support." ;;
|
|
|
10303 native ) echo " Compiling in native sound support." ;;
|
|
|
10304 both ) echo " Compiling in both network and native sound support." ;;
|
|
|
10305 esac
|
|
|
10306 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously"
|
|
116
|
10307
|
|
|
10308 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
|
|
|
10309 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
|
209
|
10310 test "$with_database_gnudbm" = yes && echo " Compiling in support for DBM."
|
|
116
|
10311
|
|
149
|
10312 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
|
10313 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
|
|
116
|
10314
|
|
|
10315 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
|
|
|
10316 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
|
|
|
10317 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
|
|
|
10318 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
|
|
177
|
10319 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
|
|
116
|
10320 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
|
120
|
10321 if test "$with_wnn" = yes; then
|
|
|
10322 echo " Compiling in support for the WNN input method on Mule."
|
|
151
|
10323 test "$with_wnn6" = yes && echo " Using WNN version 6."
|
|
120
|
10324 fi
|
|
116
|
10325 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
|
|
|
10326
|
|
|
10327 test "$with_cde" = yes && echo " Compiling in support for CDE."
|
|
|
10328 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
|
|
10329 test "$with_offix" = yes && echo " Compiling in support for OffiX."
|
|
149
|
10330 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
|
|
219
|
10331 test "$with_session" = yes && echo " Compiling in support for proper session-management."
|
|
203
|
10332 case "$with_menubars" in
|
|
157
|
10333 lucid ) echo " Using Lucid menubars." ;;
|
|
|
10334 motif ) echo " Using Motif menubars."
|
|
|
10335 echo " *WARNING* The Motif menubar implementation is currently buggy."
|
|
149
|
10336 echo " We recommend using the Lucid menubar instead."
|
|
|
10337 echo " Re-run configure with --with-menubars='lucid'." ;;
|
|
|
10338 esac
|
|
|
10339 case "$with_scrollbars" in
|
|
157
|
10340 lucid ) echo " Using Lucid scrollbars." ;;
|
|
|
10341 motif ) echo " Using Motif scrollbars." ;;
|
|
|
10342 athena ) echo " Using Athena scrollbars." ;;
|
|
|
10343 athena3d ) echo " Using Athena-3d scrollbars." ;;
|
|
149
|
10344 esac
|
|
|
10345 case "$with_dialogs" in
|
|
157
|
10346 motif ) echo " Using Motif dialog boxes." ;;
|
|
|
10347 athena ) echo " Using Athena dialog boxes." ;;
|
|
|
10348 athena3d ) echo " Using Athena-3d dialog boxes." ;;
|
|
149
|
10349 esac
|
|
203
|
10350 test "$with_clash_detection" = yes && \
|
|
|
10351 echo " Clash detection will use \"$lockdir\" for locking files."
|
|
157
|
10352 echo " movemail will use \"$mail_locking\" for locking mail spool files."
|
|
126
|
10353 test "$with_pop" = yes && echo " Using POP for mail access"
|
|
|
10354 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication"
|
|
|
10355 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host"
|
|
203
|
10356 echo " The \`Info-default-directory-list' will be initialized from:"
|
|
207
|
10357 echo " INFOPATH=\"$infopath\""
|
|
149
|
10358 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
|
|
|
10359 test "$debug" = yes && echo " Compiling in extra code for debugging."
|
|
|
10360 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage."
|
|
|
10361 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
|
|
151
|
10362 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
|
|
|
10363 != "no no no no no"; then
|
|
|
10364 echo " WARNING: ---------------------------------------------------------"
|
|
|
10365 echo " WARNING: Compiling in support for runtime error checking."
|
|
|
10366 echo " WARNING: XEmacs will run noticeably more slowly as a result."
|
|
|
10367 echo " WARNING: Error checking is on by default for XEmacs beta releases."
|
|
|
10368 echo " WARNING: ---------------------------------------------------------"
|
|
|
10369 fi
|
|
118
|
10370 echo ""
|
|
116
|
10371 ) | tee -a Installation
|
|
151
|
10372 echo "The above configure report is appended to \"Installation\" file."
|
|
118
|
10373 echo ""
|
|
|
10374
|
|
70
|
10375
|
|
120
|
10376
|
|
0
|
10377 # Remove any trailing slashes in these variables.
|
|
149
|
10378 test -n "$prefix" &&
|
|
159
|
10379 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
|
149
|
10380 test -n "$exec_prefix" &&
|
|
159
|
10381 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
|
149
|
10382
|
|
|
10383
|
|
|
10384 trap '' 1 2 15
|
|
|
10385
|
|
|
10386 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
10387
|
|
|
10388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
|
10389 # Let make expand exec_prefix.
|
|
|
10390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
0
|
10391
|
|
|
10392 # Any assignment to VPATH causes Sun make to only execute
|
|
|
10393 # the first set of double-colon rules, so remove it if not needed.
|
|
|
10394 # If there is a colon in the path, we need to keep it.
|
|
|
10395 if test "x$srcdir" = x.; then
|
|
|
10396 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
|
10397 fi
|
|
|
10398
|
|
149
|
10399 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
|
10400
|
|
|
10401 DEFS=-DHAVE_CONFIG_H
|
|
|
10402
|
|
|
10403 # Without the "./", some shells look in PATH for config.status.
|
|
|
10404 : ${CONFIG_STATUS=./config.status}
|
|
|
10405
|
|
|
10406 echo creating $CONFIG_STATUS
|
|
|
10407 rm -f $CONFIG_STATUS
|
|
|
10408 cat > $CONFIG_STATUS <<EOF
|
|
|
10409 #! /bin/sh
|
|
0
|
10410 # Generated automatically by configure.
|
|
|
10411 # Run this file to recreate the current configuration.
|
|
|
10412 # This directory was configured as follows,
|
|
|
10413 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
10414 #
|
|
149
|
10415 # $0 $ac_configure_args
|
|
|
10416 #
|
|
|
10417 # Compiler output produced by configure, useful for debugging
|
|
|
10418 # configure, is in ./config.log if it exists.
|
|
|
10419
|
|
|
10420 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|
0
|
10421 for ac_option
|
|
|
10422 do
|
|
|
10423 case "\$ac_option" in
|
|
|
10424 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
149
|
10425 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
|
10426 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|
0
|
10427 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|
149
|
10428 echo "$CONFIG_STATUS generated by autoconf version 2.12"
|
|
0
|
10429 exit 0 ;;
|
|
|
10430 -help | --help | --hel | --he | --h)
|
|
|
10431 echo "\$ac_cs_usage"; exit 0 ;;
|
|
|
10432 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
|
10433 esac
|
|
|
10434 done
|
|
|
10435
|
|
|
10436 ac_given_srcdir=$srcdir
|
|
149
|
10437 ac_given_INSTALL="$INSTALL"
|
|
|
10438
|
|
181
|
10439 trap 'rm -fr `echo "$internal_makefile_list lib-src/config.values src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|
149
|
10440 EOF
|
|
|
10441 cat >> $CONFIG_STATUS <<EOF
|
|
|
10442
|
|
|
10443 # Protect against being on the right side of a sed subst in config.status.
|
|
|
10444 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
|
10445 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|
0
|
10446 $ac_vpsub
|
|
|
10447 $extrasub
|
|
149
|
10448 s%@CFLAGS@%$CFLAGS%g
|
|
|
10449 s%@CPPFLAGS@%$CPPFLAGS%g
|
|
|
10450 s%@CXXFLAGS@%$CXXFLAGS%g
|
|
|
10451 s%@DEFS@%$DEFS%g
|
|
|
10452 s%@LDFLAGS@%$LDFLAGS%g
|
|
|
10453 s%@LIBS@%$LIBS%g
|
|
|
10454 s%@exec_prefix@%$exec_prefix%g
|
|
|
10455 s%@prefix@%$prefix%g
|
|
|
10456 s%@program_transform_name@%$program_transform_name%g
|
|
|
10457 s%@bindir@%$bindir%g
|
|
|
10458 s%@sbindir@%$sbindir%g
|
|
|
10459 s%@libexecdir@%$libexecdir%g
|
|
|
10460 s%@datadir@%$datadir%g
|
|
|
10461 s%@sysconfdir@%$sysconfdir%g
|
|
|
10462 s%@sharedstatedir@%$sharedstatedir%g
|
|
|
10463 s%@localstatedir@%$localstatedir%g
|
|
|
10464 s%@libdir@%$libdir%g
|
|
|
10465 s%@includedir@%$includedir%g
|
|
|
10466 s%@oldincludedir@%$oldincludedir%g
|
|
|
10467 s%@infodir@%$infodir%g
|
|
|
10468 s%@mandir@%$mandir%g
|
|
0
|
10469 s%@LN_S@%$LN_S%g
|
|
181
|
10470 s%@blddir@%$blddir%g
|
|
0
|
10471 s%@CC@%$CC%g
|
|
|
10472 s%@CPP@%$CPP%g
|
|
207
|
10473 s%@start_flags@%$start_flags%g
|
|
163
|
10474 s%@ld_switch_shared@%$ld_switch_shared%g
|
|
|
10475 s%@start_files@%$start_files%g
|
|
|
10476 s%@ld@%$ld%g
|
|
|
10477 s%@lib_gcc@%$lib_gcc%g
|
|
0
|
10478 s%@RANLIB@%$RANLIB%g
|
|
|
10479 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|
|
10480 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
|
10481 s%@YACC@%$YACC%g
|
|
|
10482 s%@SET_MAKE@%$SET_MAKE%g
|
|
149
|
10483 s%@X_CFLAGS@%$X_CFLAGS%g
|
|
|
10484 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
|
|
10485 s%@X_LIBS@%$X_LIBS%g
|
|
|
10486 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
|
159
|
10487 s%@libs_xauth@%$libs_xauth%g
|
|
197
|
10488 s%@OFFIX_O@%$OFFIX_O%g
|
|
157
|
10489 s%@lwlib_objs@%$lwlib_objs%g
|
|
0
|
10490 s%@ALLOCA@%$ALLOCA%g
|
|
151
|
10491 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
|
|
167
|
10492 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
|
|
149
|
10493 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
|
|
|
10494 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
|
|
0
|
10495 s%@version@%$version%g
|
|
|
10496 s%@configuration@%$configuration%g
|
|
|
10497 s%@canonical@%$canonical%g
|
|
|
10498 s%@srcdir@%$srcdir%g
|
|
155
|
10499 s%@pkgdir@%$pkgdir%g
|
|
0
|
10500 s%@statedir@%$statedir%g
|
|
|
10501 s%@infodir_user_defined@%$infodir_user_defined%g
|
|
203
|
10502 s%@infopath@%$infopath%g
|
|
207
|
10503 s%@infopath_user_defined@%$infopath_user_defined%g
|
|
0
|
10504 s%@lispdir@%$lispdir%g
|
|
|
10505 s%@lispdir_user_defined@%$lispdir_user_defined%g
|
|
|
10506 s%@sitelispdir@%$sitelispdir%g
|
|
|
10507 s%@etcdir@%$etcdir%g
|
|
|
10508 s%@etcdir_user_defined@%$etcdir_user_defined%g
|
|
|
10509 s%@lockdir@%$lockdir%g
|
|
|
10510 s%@lockdir_user_defined@%$lockdir_user_defined%g
|
|
|
10511 s%@archlibdir@%$archlibdir%g
|
|
|
10512 s%@archlibdir_user_defined@%$archlibdir_user_defined%g
|
|
|
10513 s%@docdir@%$docdir%g
|
|
|
10514 s%@bitmapdir@%$bitmapdir%g
|
|
149
|
10515 s%@extra_objs@%$extra_objs%g
|
|
0
|
10516 s%@machfile@%$machfile%g
|
|
|
10517 s%@opsysfile@%$opsysfile%g
|
|
149
|
10518 s%@c_switch_general@%$c_switch_general%g
|
|
|
10519 s%@c_switch_window_system@%$c_switch_window_system%g
|
|
|
10520 s%@c_switch_all@%$c_switch_all%g
|
|
|
10521 s%@ld_switch_general@%$ld_switch_general%g
|
|
|
10522 s%@ld_switch_window_system@%$ld_switch_window_system%g
|
|
|
10523 s%@ld_switch_all@%$ld_switch_all%g
|
|
|
10524 s%@ld_libs_general@%$ld_libs_general%g
|
|
|
10525 s%@ld_libs_window_system@%$ld_libs_window_system%g
|
|
|
10526 s%@ld_libs_all@%$ld_libs_all%g
|
|
173
|
10527 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
|
|
149
|
10528 s%@native_sound_lib@%$native_sound_lib%g
|
|
|
10529 s%@sound_cflags@%$sound_cflags%g
|
|
0
|
10530 s%@dynodump_arch@%$dynodump_arch%g
|
|
|
10531 s%@internal_makefile_list@%$internal_makefile_list%g
|
|
149
|
10532
|
|
|
10533 CEOF
|
|
|
10534 EOF
|
|
|
10535
|
|
|
10536 cat >> $CONFIG_STATUS <<\EOF
|
|
|
10537
|
|
|
10538 # Split the substitutions into bite-sized pieces for seds with
|
|
|
10539 # small command number limits, like on Digital OSF/1 and HP-UX.
|
|
|
10540 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
|
10541 ac_file=1 # Number of current file.
|
|
|
10542 ac_beg=1 # First line for current file.
|
|
|
10543 ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
|
10544 ac_more_lines=:
|
|
|
10545 ac_sed_cmds=""
|
|
|
10546 while $ac_more_lines; do
|
|
|
10547 if test $ac_beg -gt 1; then
|
|
|
10548 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
|
10549 else
|
|
|
10550 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
|
10551 fi
|
|
|
10552 if test ! -s conftest.s$ac_file; then
|
|
|
10553 ac_more_lines=false
|
|
|
10554 rm -f conftest.s$ac_file
|
|
|
10555 else
|
|
|
10556 if test -z "$ac_sed_cmds"; then
|
|
|
10557 ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
|
10558 else
|
|
|
10559 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
|
10560 fi
|
|
|
10561 ac_file=`expr $ac_file + 1`
|
|
|
10562 ac_beg=$ac_end
|
|
|
10563 ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
|
10564 fi
|
|
|
10565 done
|
|
|
10566 if test -z "$ac_sed_cmds"; then
|
|
|
10567 ac_sed_cmds=cat
|
|
|
10568 fi
|
|
|
10569 EOF
|
|
|
10570
|
|
|
10571 cat >> $CONFIG_STATUS <<EOF
|
|
|
10572
|
|
181
|
10573 CONFIG_FILES=\${CONFIG_FILES-"$internal_makefile_list lib-src/config.values"}
|
|
149
|
10574 EOF
|
|
|
10575 cat >> $CONFIG_STATUS <<\EOF
|
|
|
10576 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
|
10577 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
|
10578 case "$ac_file" in
|
|
|
10579 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
|
10580 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
|
10581 *) ac_file_in="${ac_file}.in" ;;
|
|
|
10582 esac
|
|
|
10583
|
|
|
10584 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
|
10585
|
|
|
10586 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
|
10587 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
|
10588 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
|
10589 # The file is in a subdirectory.
|
|
|
10590 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
|
10591 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
|
10592 # A "../" for each directory in $ac_dir_suffix.
|
|
|
10593 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
|
10594 else
|
|
|
10595 ac_dir_suffix= ac_dots=
|
|
|
10596 fi
|
|
|
10597
|
|
|
10598 case "$ac_given_srcdir" in
|
|
|
10599 .) srcdir=.
|
|
|
10600 if test -z "$ac_dots"; then top_srcdir=.
|
|
|
10601 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
|
10602 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
|
10603 *) # Relative path.
|
|
|
10604 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
|
10605 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
|
10606 esac
|
|
|
10607
|
|
|
10608 case "$ac_given_INSTALL" in
|
|
|
10609 [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
|
10610 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
|
10611 esac
|
|
|
10612
|
|
|
10613 echo creating "$ac_file"
|
|
|
10614 rm -f "$ac_file"
|
|
|
10615 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
|
10616 case "$ac_file" in
|
|
|
10617 *Makefile*) ac_comsub="1i\\
|
|
|
10618 # $configure_input" ;;
|
|
|
10619 *) ac_comsub= ;;
|
|
|
10620 esac
|
|
|
10621
|
|
|
10622 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
|
10623 sed -e "$ac_comsub
|
|
|
10624 s%@configure_input@%$configure_input%g
|
|
|
10625 s%@srcdir@%$srcdir%g
|
|
0
|
10626 s%@top_srcdir@%$top_srcdir%g
|
|
149
|
10627 s%@INSTALL@%$INSTALL%g
|
|
|
10628 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|
0
|
10629 fi; done
|
|
149
|
10630 rm -f conftest.s*
|
|
|
10631
|
|
|
10632 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
|
10633 # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|
0
|
10634 #
|
|
|
10635 # ac_d sets the value in "#define NAME VALUE" lines.
|
|
149
|
10636 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
|
10637 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|
0
|
10638 ac_dC='\3'
|
|
149
|
10639 ac_dD='%g'
|
|
0
|
10640 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|
149
|
10641 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
|
10642 ac_uB='\([ ]\)%\1#\2define\3'
|
|
0
|
10643 ac_uC=' '
|
|
149
|
10644 ac_uD='\4%g'
|
|
0
|
10645 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|
149
|
10646 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
|
10647 ac_eB='$%\1#\2define\3'
|
|
0
|
10648 ac_eC=' '
|
|
149
|
10649 ac_eD='%g'
|
|
|
10650
|
|
|
10651 if test "${CONFIG_HEADERS+set}" != set; then
|
|
|
10652 EOF
|
|
|
10653 cat >> $CONFIG_STATUS <<EOF
|
|
|
10654 CONFIG_HEADERS="src/config.h lwlib/config.h"
|
|
|
10655 EOF
|
|
|
10656 cat >> $CONFIG_STATUS <<\EOF
|
|
|
10657 fi
|
|
|
10658 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
|
10659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
|
10660 case "$ac_file" in
|
|
|
10661 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
|
10662 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
|
10663 *) ac_file_in="${ac_file}.in" ;;
|
|
|
10664 esac
|
|
|
10665
|
|
|
10666 echo creating $ac_file
|
|
|
10667
|
|
|
10668 rm -f conftest.frag conftest.in conftest.out
|
|
|
10669 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
|
10670 cat $ac_file_inputs > conftest.in
|
|
|
10671
|
|
|
10672 EOF
|
|
|
10673
|
|
|
10674 # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
|
10675 # the proper values into config.h.in to produce config.h. And first:
|
|
|
10676 # Protect against being on the right side of a sed subst in config.status.
|
|
|
10677 # Protect against being in an unquoted here document in config.status.
|
|
|
10678 rm -f conftest.vals
|
|
|
10679 cat > conftest.hdr <<\EOF
|
|
|
10680 s/[\\&%]/\\&/g
|
|
|
10681 s%[\\$`]%\\&%g
|
|
|
10682 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
|
10683 s%ac_d%ac_u%gp
|
|
|
10684 s%ac_u%ac_e%gp
|
|
|
10685 EOF
|
|
|
10686 sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
|
10687 rm -f conftest.hdr
|
|
|
10688
|
|
|
10689 # This sed command replaces #undef with comments. This is necessary, for
|
|
|
10690 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
|
10691 # on some systems where configure will not decide to define it.
|
|
|
10692 cat >> conftest.vals <<\EOF
|
|
|
10693 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
|
10694 EOF
|
|
|
10695
|
|
|
10696 # Break up conftest.vals because some shells have a limit on
|
|
|
10697 # the size of here documents, and old seds have small limits too.
|
|
|
10698
|
|
|
10699 rm -f conftest.tail
|
|
0
|
10700 while :
|
|
|
10701 do
|
|
149
|
10702 ac_lines=`grep -c . conftest.vals`
|
|
|
10703 # grep -c gives empty output for an empty file on some AIX systems.
|
|
0
|
10704 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
149
|
10705 # Write a limited-size here document to conftest.frag.
|
|
|
10706 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
|
10707 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
|
10708 echo 'CEOF
|
|
|
10709 sed -f conftest.frag conftest.in > conftest.out
|
|
|
10710 rm -f conftest.in
|
|
|
10711 mv conftest.out conftest.in
|
|
|
10712 ' >> $CONFIG_STATUS
|
|
|
10713 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
|
10714 rm -f conftest.vals
|
|
|
10715 mv conftest.tail conftest.vals
|
|
0
|
10716 done
|
|
149
|
10717 rm -f conftest.vals
|
|
|
10718
|
|
|
10719 cat >> $CONFIG_STATUS <<\EOF
|
|
|
10720 rm -f conftest.frag conftest.h
|
|
0
|
10721 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|
149
|
10722 cat conftest.in >> conftest.h
|
|
|
10723 rm -f conftest.in
|
|
0
|
10724 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
|
10725 echo "$ac_file is unchanged"
|
|
|
10726 rm -f conftest.h
|
|
|
10727 else
|
|
149
|
10728 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
|
10729 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
|
10730 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
|
10731 # The file is in a subdirectory.
|
|
|
10732 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
|
10733 fi
|
|
0
|
10734 rm -f $ac_file
|
|
|
10735 mv conftest.h $ac_file
|
|
|
10736 fi
|
|
|
10737 fi; done
|
|
149
|
10738
|
|
|
10739 EOF
|
|
|
10740 cat >> $CONFIG_STATUS <<EOF
|
|
|
10741 CPP="$CPP"
|
|
|
10742 CPPFLAGS="$CPPFLAGS"
|
|
|
10743 top_srcdir="$srcdir"
|
|
|
10744 MAKE_SUBDIR="$MAKE_SUBDIR"
|
|
|
10745
|
|
|
10746 EOF
|
|
|
10747 cat >> $CONFIG_STATUS <<\EOF
|
|
|
10748
|
|
|
10749 for dir in $MAKE_SUBDIR; do
|
|
|
10750 echo creating $dir/Makefile
|
|
151
|
10751 (
|
|
149
|
10752 cd $dir
|
|
|
10753 rm -f junk.c
|
|
163
|
10754 < Makefile.in \
|
|
165
|
10755 sed -e '/^# Generated/d' \
|
|
163
|
10756 -e 's%/\*\*/#.*%%' \
|
|
165
|
10757 -e 's/^ *# */#/' \
|
|
163
|
10758 -e '/^##/d' \
|
|
|
10759 -e '/^#/ {
|
|
|
10760 p
|
|
|
10761 d
|
|
|
10762 }' -e '/./ {
|
|
|
10763 s/\([\"]\)/\\\1/g
|
|
|
10764 s/^/"/
|
|
|
10765 s/$/"/
|
|
|
10766 }' > junk.c;
|
|
149
|
10767 $CPP -I. -I${top_srcdir}/src $CPPFLAGS junk.c > junk.cpp;
|
|
|
10768 < junk.cpp \
|
|
|
10769 sed -e 's/^#.*//' \
|
|
165
|
10770 -e 's/^[ ][ ]*$//' \
|
|
|
10771 -e 's/^ / /' \
|
|
149
|
10772 | sed -n -e '/^..*$/p' \
|
|
163
|
10773 | sed '/^"/ {
|
|
|
10774 s/\\\([\"]\)/\1/g
|
|
|
10775 s/^"//
|
|
|
10776 s/"$//
|
|
|
10777 }' > Makefile.new
|
|
149
|
10778 chmod 444 Makefile.new
|
|
|
10779 mv -f Makefile.new Makefile
|
|
|
10780 rm -f junk.c junk.cpp
|
|
165
|
10781 )
|
|
149
|
10782 done
|
|
0
|
10783
|
|
181
|
10784 sed < config.status >> lib-src/config.values \
|
|
|
10785 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
|
|
|
10786 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
|
|
|
10787 -e 's/^\([^ ]*\) $/\1 ""/' \
|
|
|
10788 -e 's/ 1$/ t/'
|
|
175
|
10789
|
|
|
10790
|
|
0
|
10791 exit 0
|
|
|
10792 EOF
|
|
149
|
10793 chmod +x $CONFIG_STATUS
|
|
|
10794 rm -fr confdefs* $ac_clean_files
|
|
|
10795 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|
|
10796
|