|
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'
|
|
239
|
223 infopath='/usr/local/lib/texmf/doc/info:/usr/local/lib/texmf/info:/usr/lib/texmf/doc/info:/usr/lib/texmf/info:/usr/local/info:/usr/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:'`
|
|
243
|
283 val="yes" valomitted=yes
|
|
0
|
284 ;;
|
|
|
285 esac
|
|
|
286
|
|
243
|
287 case "${valomitted}-${opt}" in yes-without_* )
|
|
|
288 opt=`echo $opt | sed 's/without/with/'`
|
|
|
289 valomitted="no" val="no" ;;
|
|
|
290 esac
|
|
|
291
|
|
149
|
292 optname="$opt"
|
|
|
293 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
|
|
|
294
|
|
|
295 case "$opt" in
|
|
|
296
|
|
|
297 run_in_place | \
|
|
70
|
298 with_x | \
|
|
|
299 with_x11 | \
|
|
|
300 with_gcc | \
|
|
|
301 with_gnu_make | \
|
|
|
302 dynamic | \
|
|
149
|
303 with_ncurses | \
|
|
|
304 with_dnet | \
|
|
70
|
305 with_term | \
|
|
149
|
306 with_socks | \
|
|
70
|
307 with_cde | \
|
|
|
308 with_offix | \
|
|
149
|
309 with_gpm | \
|
|
|
310 with_xpm | \
|
|
|
311 with_xface | \
|
|
207
|
312 with_imagick | \
|
|
179
|
313 with_session | \
|
|
70
|
314 with_xmu | \
|
|
149
|
315 with_quantify | \
|
|
70
|
316 with_toolbars | \
|
|
|
317 with_tty | \
|
|
215
|
318 with_xfs | \
|
|
70
|
319 with_i18n3 | \
|
|
|
320 with_mule | \
|
|
|
321 with_canna | \
|
|
|
322 with_wnn | \
|
|
98
|
323 with_wnn6 | \
|
|
149
|
324 with_workshop | \
|
|
70
|
325 with_sparcworks | \
|
|
|
326 with_tooltalk | \
|
|
118
|
327 with_pop | \
|
|
|
328 with_kerberos | \
|
|
|
329 with_hesiod | \
|
|
136
|
330 with_dnet | \
|
|
70
|
331 external_widget | \
|
|
120
|
332 verbose | \
|
|
|
333 extra_verbose | \
|
|
70
|
334 const_is_losing | \
|
|
|
335 usage_tracking | \
|
|
|
336 use_union_type | \
|
|
|
337 debug | \
|
|
|
338 use_assertions | \
|
|
|
339 memory_usage_stats | \
|
|
173
|
340 with_clash_detection | \
|
|
149
|
341 no_doc_file )
|
|
|
342 case "$val" in
|
|
0
|
343 y | ye | yes ) val=yes ;;
|
|
|
344 n | no ) val=no ;;
|
|
149
|
345 * ) (echo "$progname: Usage error:"
|
|
|
346 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
|
|
|
347 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
348 esac
|
|
149
|
349 eval "$opt=\"$val\"" ;;
|
|
|
350
|
|
|
351
|
|
153
|
352 srcdir | \
|
|
70
|
353 compiler | \
|
|
157
|
354 cflags | \
|
|
70
|
355 puresize | \
|
|
153
|
356 cache_file | \
|
|
120
|
357 native_sound_lib | \
|
|
173
|
358 package_path | \
|
|
70
|
359 x_includes | \
|
|
|
360 x_libraries | \
|
|
|
361 site_includes | \
|
|
|
362 site_libraries | \
|
|
209
|
363 site_prefixes | \
|
|
149
|
364 site_runtime_libraries )
|
|
|
365 if test "$valomitted" = "yes" ; then
|
|
|
366 if test "$#" = 0 ; then
|
|
|
367 (echo "$progname: Usage error:"
|
|
|
368 echo " " "The \`--$optname' option requires a value."
|
|
|
369 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
|
0
|
370 fi
|
|
|
371 val="$1"; shift
|
|
|
372 fi
|
|
149
|
373 eval "$opt=\"$val\""
|
|
0
|
374 ;;
|
|
|
375
|
|
149
|
376 rel_alloc | \
|
|
181
|
377 with_debug_malloc | use_debug_malloc | \
|
|
|
378 with_system_malloc | use_system_malloc )
|
|
149
|
379 case "$val" in
|
|
0
|
380 y | ye | yes ) val=yes ;;
|
|
|
381 n | no ) val=no ;;
|
|
181
|
382 d | de | def | defa | defau | defaul | default ) val=default ;;
|
|
149
|
383 * ) (echo "$progname: Usage error:"
|
|
|
384 echo " " "The \`--$optname' option requires one of these values:
|
|
120
|
385 \`yes', \`no', or \`default'."
|
|
149
|
386 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
387 esac
|
|
181
|
388 case "$opt" in use_* ) opt="`echo $opt | sed /use/with/`" ;; esac
|
|
149
|
389 eval "$opt=\"$val\""
|
|
0
|
390 ;;
|
|
|
391
|
|
149
|
392 "with_database" )
|
|
120
|
393 with_database_berkdb=no
|
|
|
394 with_database_dbm=no
|
|
|
395 with_database_gnudbm=no
|
|
159
|
396 for x in `echo "$val" | sed -e 's/,/ /'` ; do
|
|
149
|
397 case "$x" in
|
|
151
|
398 no ) ;;
|
|
120
|
399 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
|
|
|
400 d | db | dbm ) with_database_dbm=yes ;;
|
|
70
|
401 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
|
|
149
|
402 * ) (echo "$progname: Usage error:"
|
|
|
403 echo " " "The \`--$optname' option value
|
|
120
|
404 must be either \`no' or a comma-separated list
|
|
|
405 of one or more of \`berkdb', \`dbm', or \`gnudbm'."
|
|
149
|
406 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
120
|
407 esac
|
|
|
408 done
|
|
149
|
409 if test "$with_database_dbm" = "yes" -a \
|
|
151
|
410 "$with_database_gnudbm" = "yes"; then
|
|
149
|
411 (echo "$progname: Usage error:"
|
|
120
|
412 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
|
|
149
|
413 with the \`--$optname' option."
|
|
|
414 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
0
|
415 fi
|
|
70
|
416 ;;
|
|
0
|
417
|
|
149
|
418 "with_sound" )
|
|
|
419 case "$val" in
|
|
0
|
420 y | ye | yes ) val=native ;;
|
|
|
421 n | no | non | none ) val=no;;
|
|
|
422 na | nat | nati | nativ | native ) val=native ;;
|
|
149
|
423 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
|
|
0
|
424 b | bo | bot | both ) val=both;;
|
|
149
|
425 * ) (echo "$progname: Usage error:"
|
|
|
426 echo " " "The \`--$optname' option must have one of these values:
|
|
120
|
427 \`native', \`nas', \`both', or \`none'."
|
|
149
|
428 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
2
|
429 esac
|
|
149
|
430 eval "$opt=\"$val\""
|
|
0
|
431 ;;
|
|
|
432
|
|
149
|
433 "with_xim" )
|
|
|
434 case "$val" in
|
|
|
435 y | ye | yes ) val=yes ;;
|
|
|
436 n | no | non | none ) val=no ;;
|
|
|
437 x | xl | xli | xlib ) val=xlib ;;
|
|
|
438 m | mo | mot | moti | motif ) val=motif ;;
|
|
|
439 * ) (echo "$progname: Usage error:"
|
|
|
440 echo " " "The \`--$optname' option must have one of these values:
|
|
|
441 \`motif', \`xlib', \`yes', or \`no'."
|
|
|
442 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
443 esac
|
|
149
|
444 eval "$opt=\"$val\""
|
|
0
|
445 ;;
|
|
|
446
|
|
177
|
447 "with_xfs" )
|
|
|
448 case "$val" in
|
|
187
|
449 y | ye | yes ) val=yes ;;
|
|
|
450 n | no | non | none ) val=no ;;
|
|
177
|
451 * ) (echo "$progname: Usage error:"
|
|
|
452 echo " " "The \`--$optname' option must have one of these values:
|
|
|
453 \`yes', or \`no'."
|
|
|
454 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
|
455 esac
|
|
|
456 eval "$opt=\"$val\""
|
|
|
457 ;;
|
|
|
458
|
|
149
|
459 "mail_locking" )
|
|
|
460 case "$val" in
|
|
|
461 lockf ) val=lockf ;;
|
|
|
462 flock ) val=flock ;;
|
|
151
|
463 file ) val=file ;;
|
|
149
|
464 * ) (echo "$progname: Usage error:"
|
|
|
465 echo " " "The \`--$optname' option must have one of these values:
|
|
|
466 \`lockf', \`flock', or \`file'."
|
|
|
467 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
|
468 esac
|
|
|
469 eval "$opt=\"$val\""
|
|
|
470 ;;
|
|
|
471
|
|
|
472 "error_checking" )
|
|
|
473
|
|
159
|
474 for x in `echo "$val" | sed -e 's/,/ /'` ; do
|
|
149
|
475 case "$x" in
|
|
|
476 n | no | non | none ) new_default=no ;;
|
|
0
|
477 a | al | all ) new_default=yes ;;
|
|
|
478
|
|
|
479 extents ) error_check_extents=yes ;;
|
|
|
480 noextents ) error_check_extents=no ;;
|
|
|
481
|
|
|
482 typecheck ) error_check_typecheck=yes ;;
|
|
|
483 notypecheck ) error_check_typecheck=no ;;
|
|
|
484
|
|
|
485 bufpos ) error_check_bufpos=yes ;;
|
|
|
486 nobufpos ) error_check_bufpos=no ;;
|
|
|
487
|
|
|
488 gc ) error_check_gc=yes ;;
|
|
|
489 nogc ) error_check_gc=no ;;
|
|
|
490
|
|
|
491 malloc ) error_check_malloc=yes ;;
|
|
|
492 nomalloc ) error_check_malloc=no ;;
|
|
149
|
493
|
|
0
|
494 * ) bogus_error_check=yes ;;
|
|
|
495 esac
|
|
70
|
496 if test "$bogus_error_check" -o \
|
|
|
497 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
|
|
|
498 if test $error_check_default = yes ; then
|
|
120
|
499 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
|
|
0
|
500 else
|
|
120
|
501 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
|
|
0
|
502 fi
|
|
149
|
503 (echo "$progname: Usage error:"
|
|
|
504 echo " " "Valid types for the \`--$optname' option are:
|
|
120
|
505 $types."
|
|
149
|
506 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
151
|
507 elif test -n "$new_default" ; then
|
|
0
|
508 error_check_extents=$new_default
|
|
|
509 error_check_typecheck=$new_default
|
|
|
510 error_check_bufpos=$new_default
|
|
|
511 error_check_gc=$new_default
|
|
|
512 error_check_malloc=$new_default
|
|
|
513 new_default= # reset this
|
|
|
514 fi
|
|
|
515 echeck_notfirst=true
|
|
|
516 done
|
|
|
517 ;;
|
|
|
518
|
|
149
|
519
|
|
|
520 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
|
203
|
521 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
|
|
|
522 archlibdir | sitelispdir | docdir )
|
|
151
|
523 if test "$valomitted" = "yes"; then
|
|
|
524 if test "$#" = 0; then
|
|
149
|
525 (echo "$progname: Usage error:"
|
|
|
526 echo " " "The \`--$optname' option requires a value."
|
|
|
527 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
|
120
|
528 fi
|
|
|
529 val="$1"; shift
|
|
0
|
530 fi
|
|
149
|
531 eval "$opt=\"$val\""
|
|
|
532
|
|
|
533 case "$opt" in
|
|
|
534 lispdir ) lispdir_user_defined=yes ;;
|
|
|
535 etcdir ) etcdir_user_defined=yes ;;
|
|
|
536 infodir ) infodir_user_defined=yes ;;
|
|
203
|
537 infopath ) infopath_user_defined=yes ;;
|
|
149
|
538 datadir ) lispdir_user_defined=yes etcdir_user_defined=yes ;;
|
|
|
539 statedir | lockdir ) lockdir_user_defined=yes ;;
|
|
|
540 exec_prefix | libdir | archlibdir ) archlibdir_user_defined=yes ;;
|
|
|
541 esac
|
|
0
|
542 ;;
|
|
|
543
|
|
149
|
544 "no_create" ) ;;
|
|
|
545
|
|
215
|
546 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
|
|
149
|
547
|
|
|
548 "with_menubars" | "with_scrollbars" | "with_dialogs" )
|
|
|
549 case "$val" in
|
|
0
|
550 l | lu | luc | luci | lucid ) val=lucid ;;
|
|
|
551 m | mo | mot | moti | motif ) val=motif ;;
|
|
82
|
552 athena3d | athena-3d ) val=athena3d ;;
|
|
0
|
553 a | at | ath | athe | athen | athena ) val=athena ;;
|
|
|
554 n | no | non | none ) val=no ;;
|
|
149
|
555 * ) (echo "$progname: Usage error:"
|
|
|
556 echo " " "The \`--$optname' option must have one of these values:
|
|
|
557 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
|
|
|
558 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
559 esac
|
|
149
|
560 eval "$opt=\"$val\""
|
|
0
|
561 ;;
|
|
|
562
|
|
149
|
563 * ) (echo "$progname: Usage error:"
|
|
|
564 echo " " "Unrecognized option: $arg"
|
|
|
565 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
566
|
|
|
567 esac
|
|
|
568 ;;
|
|
|
569
|
|
243
|
570 *-*-*) configuration="$arg" ;;
|
|
|
571
|
|
|
572 *) (echo "$progname: Usage error:"
|
|
|
573 echo " " "Unrecognized argument: $arg"
|
|
|
574 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
575
|
|
|
576 esac
|
|
|
577 done
|
|
|
578
|
|
149
|
579
|
|
203
|
580
|
|
0
|
581 eval set x "$quoted_arguments"; shift
|
|
|
582
|
|
149
|
583 test "$extra_verbose" = "yes" && verbose=yes
|
|
|
584
|
|
187
|
585 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
|
586 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
209
|
587 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
187
|
588 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
149
|
589
|
|
|
590 test -n "$with_x" && with_x11="$with_x"
|
|
|
591
|
|
|
592 if test "$run_in_place" = "yes"; then
|
|
|
593 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2
|
|
|
594 fi
|
|
|
595
|
|
|
596 case "$srcdir" in
|
|
|
597
|
|
|
598 "" )
|
|
70
|
599 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
|
|
120
|
600 if test -f "$dir/src/lisp.h" -a \
|
|
|
601 -f "$dir/lisp/version.el" ; then
|
|
149
|
602 srcdir="$dir"
|
|
70
|
603 break
|
|
|
604 fi
|
|
|
605 done
|
|
149
|
606 if test -z "$srcdir" ; then
|
|
|
607 (echo "$progname: Usage error:"
|
|
120
|
608 echo " " "Neither the current directory nor its parent seem to
|
|
|
609 contain the XEmacs sources. If you do not want to build XEmacs in its
|
|
149
|
610 source tree, you should run \`$progname' in the directory in which
|
|
120
|
611 you wish to build XEmacs, using the \`--srcdir' option to say where the
|
|
|
612 sources may be found."
|
|
149
|
613 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
120
|
614 fi
|
|
0
|
615 ;;
|
|
|
616
|
|
149
|
617 * )
|
|
243
|
618 if test ! -f "$srcdir/src/lisp.h" -o \
|
|
149
|
619 ! -f "$srcdir/lisp/version.el" ; then
|
|
|
620 (echo "$progname: Usage error:"
|
|
120
|
621 echo " " "The directory specified with the \`--srcdir' option,
|
|
149
|
622 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
|
|
|
623 either run the \`$progname' script at the top of the XEmacs source
|
|
120
|
624 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
|
|
149
|
625 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
0
|
626 fi
|
|
|
627 ;;
|
|
|
628 esac
|
|
|
629
|
|
243
|
630 if test -z "$configuration"; then
|
|
|
631 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
|
|
|
632 echo "configure:633: checking "host system type"" >&5
|
|
|
633 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \
|
|
|
634 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then
|
|
|
635 echo "$ac_t""$configuration" 1>&6
|
|
|
636 else
|
|
|
637 echo "$ac_t""unknown" 1>&6
|
|
|
638 (echo "$progname: Usage error:"
|
|
|
639 echo " " "XEmacs has not been ported to this host type.
|
|
|
640 Try explicitly specifying the CONFIGURATION when rerunning configure."
|
|
|
641 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
|
642 fi
|
|
|
643 fi
|
|
|
644
|
|
149
|
645 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|
243
|
646 echo "configure:647: checking whether ln -s works" >&5
|
|
149
|
647
|
|
0
|
648 rm -f conftestdata
|
|
|
649 if ln -s X conftestdata 2>/dev/null
|
|
|
650 then
|
|
|
651 rm -f conftestdata
|
|
149
|
652 ac_cv_prog_LN_S="ln -s"
|
|
|
653 else
|
|
|
654 ac_cv_prog_LN_S=ln
|
|
|
655 fi
|
|
|
656 LN_S="$ac_cv_prog_LN_S"
|
|
|
657 if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|
|
658 echo "$ac_t""yes" 1>&6
|
|
|
659 else
|
|
|
660 echo "$ac_t""no" 1>&6
|
|
|
661 fi
|
|
|
662
|
|
|
663
|
|
207
|
664 for dir in lisp etc man info; do
|
|
149
|
665 if test ! -d "$dir" ; then
|
|
|
666 echo Making symbolic link to "$srcdir/$dir"
|
|
157
|
667 ${LN_S} "$srcdir/$dir" "$dir"
|
|
0
|
668 fi
|
|
|
669 done
|
|
|
670
|
|
181
|
671 absolute_pwd="`pwd`";
|
|
187
|
672 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
|
|
181
|
673 then blddir="$PWD"
|
|
|
674 else blddir="$absolute_pwd"
|
|
|
675 fi
|
|
|
676
|
|
|
677
|
|
149
|
678 case "$srcdir" in
|
|
0
|
679 /* ) ;;
|
|
181
|
680 . ) srcdir="$blddir" ;;
|
|
|
681 * ) srcdir="`cd $srcdir && pwd`" ;;
|
|
0
|
682 esac
|
|
|
683
|
|
149
|
684 if test `pwd` != `sh -c cd $srcdir && pwd` \
|
|
|
685 && test -f "$srcdir/src/config.h"; then
|
|
|
686 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
|
|
0
|
687 echo " as a build directory right now; it has been configured in its own"
|
|
|
688 echo " right. To configure in another directory as well, you MUST"
|
|
|
689 echo " use GNU make. If you do not have GNU make, then you must"
|
|
149
|
690 echo " now do \`make distclean' in $srcdir,"
|
|
|
691 echo " and then run $progname again.") >&2
|
|
0
|
692 extrasub='/^VPATH[ ]*=/c\
|
|
|
693 vpath %.c $(srcdir)\
|
|
|
694 vpath %.h $(srcdir)\
|
|
|
695 vpath %.y $(srcdir)\
|
|
|
696 vpath %.l $(srcdir)\
|
|
|
697 vpath %.s $(srcdir)\
|
|
|
698 vpath %.in $(srcdir)'
|
|
|
699 fi
|
|
|
700
|
|
171
|
701 . "$srcdir/version.sh" || exit 1;
|
|
173
|
702 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
|
|
|
703 : "${extra_verbose=$beta}"
|
|
171
|
704 version="${emacs_major_version}.${emacs_minor_version}"
|
|
|
705 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
706 Defining EMACS_MAJOR_VERSION = $emacs_major_version
|
|
|
707 EOF
|
|
|
708 cat >> confdefs.h <<EOF
|
|
|
709 #define EMACS_MAJOR_VERSION $emacs_major_version
|
|
|
710 EOF
|
|
|
711 }
|
|
|
712
|
|
|
713 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
714 Defining EMACS_MINOR_VERSION = $emacs_minor_version
|
|
|
715 EOF
|
|
|
716 cat >> confdefs.h <<EOF
|
|
|
717 #define EMACS_MINOR_VERSION $emacs_minor_version
|
|
|
718 EOF
|
|
|
719 }
|
|
|
720
|
|
|
721 if test -n "$emacs_beta_version"; then
|
|
|
722 version="${version}-b${emacs_beta_version}"
|
|
|
723 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
724 Defining EMACS_BETA_VERSION = $emacs_beta_version
|
|
|
725 EOF
|
|
|
726 cat >> confdefs.h <<EOF
|
|
|
727 #define EMACS_BETA_VERSION $emacs_beta_version
|
|
|
728 EOF
|
|
|
729 }
|
|
|
730
|
|
|
731 fi
|
|
|
732 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
733 Defining XEMACS_CODENAME = "$xemacs_codename"
|
|
|
734 EOF
|
|
|
735 cat >> confdefs.h <<EOF
|
|
|
736 #define XEMACS_CODENAME "$xemacs_codename"
|
|
|
737 EOF
|
|
|
738 }
|
|
|
739
|
|
|
740 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
741 Defining EMACS_VERSION = "$version"
|
|
|
742 EOF
|
|
|
743 cat >> confdefs.h <<EOF
|
|
|
744 #define EMACS_VERSION "$version"
|
|
|
745 EOF
|
|
|
746 }
|
|
|
747
|
|
|
748
|
|
|
749 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
|
|
|
750 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
751 Defining ERROR_CHECK_EXTENTS
|
|
|
752 EOF
|
|
|
753 cat >> confdefs.h <<\EOF
|
|
|
754 #define ERROR_CHECK_EXTENTS 1
|
|
|
755 EOF
|
|
|
756 }
|
|
|
757
|
|
|
758 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
759 Defining ERROR_CHECK_TYPECHECK
|
|
|
760 EOF
|
|
|
761 cat >> confdefs.h <<\EOF
|
|
|
762 #define ERROR_CHECK_TYPECHECK 1
|
|
|
763 EOF
|
|
|
764 }
|
|
|
765
|
|
|
766 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
767 Defining ERROR_CHECK_BUFPOS
|
|
|
768 EOF
|
|
|
769 cat >> confdefs.h <<\EOF
|
|
|
770 #define ERROR_CHECK_BUFPOS 1
|
|
|
771 EOF
|
|
|
772 }
|
|
|
773
|
|
|
774 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
775 Defining ERROR_CHECK_GC
|
|
|
776 EOF
|
|
|
777 cat >> confdefs.h <<\EOF
|
|
|
778 #define ERROR_CHECK_GC 1
|
|
|
779 EOF
|
|
|
780 }
|
|
|
781
|
|
|
782 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
783 Defining ERROR_CHECK_MALLOC
|
|
|
784 EOF
|
|
|
785 cat >> confdefs.h <<\EOF
|
|
|
786 #define ERROR_CHECK_MALLOC 1
|
|
|
787 EOF
|
|
|
788 }
|
|
|
789
|
|
|
790 if test "${debug=beta}" = "yes"; then
|
|
|
791 use_assertions=yes memory_usage_stats=yes
|
|
|
792 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
|
|
|
793 echo " xemacs will be linked with \"debug.o\""
|
|
|
794 fi
|
|
|
795 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
796 Defining DEBUG_XEMACS
|
|
|
797 EOF
|
|
|
798 cat >> confdefs.h <<\EOF
|
|
|
799 #define DEBUG_XEMACS 1
|
|
|
800 EOF
|
|
|
801 }
|
|
|
802
|
|
|
803 fi
|
|
|
804 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
805 Defining USE_ASSERTIONS
|
|
|
806 EOF
|
|
|
807 cat >> confdefs.h <<\EOF
|
|
|
808 #define USE_ASSERTIONS 1
|
|
|
809 EOF
|
|
|
810 }
|
|
|
811
|
|
|
812 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
813 Defining MEMORY_USAGE_STATS
|
|
|
814 EOF
|
|
|
815 cat >> confdefs.h <<\EOF
|
|
|
816 #define MEMORY_USAGE_STATS 1
|
|
|
817 EOF
|
|
|
818 }
|
|
|
819
|
|
|
820
|
|
149
|
821
|
|
|
822 echo "checking "the configuration name"" 1>&6
|
|
243
|
823 echo "configure:824: checking "the configuration name"" >&5
|
|
217
|
824 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
|
|
149
|
825 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
|
|
0
|
826 exit $?
|
|
|
827 fi
|
|
|
828
|
|
149
|
829
|
|
|
830
|
|
|
831
|
|
|
832
|
|
151
|
833 machine='' opsys=''
|
|
149
|
834
|
|
|
835 case "$canonical" in
|
|
|
836 sparc-*-* ) machine=sparc ;;
|
|
|
837 alpha-*-* ) machine=alpha ;;
|
|
|
838 vax-*-* ) machine=vax ;;
|
|
|
839 mips-dec-* ) machine=pmax ;;
|
|
|
840 mips-sgi-* ) machine=iris4d ;;
|
|
|
841 romp-ibm-* ) machine=ibmrt ;;
|
|
|
842 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
|
|
|
843 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
|
|
163
|
844 powerpc*-* ) machine=powerpc ;;
|
|
149
|
845 hppa-*-* ) machine=hp800 ;;
|
|
|
846 m88k-dg-* ) machine=aviion ;;
|
|
|
847 m68*-sony-* ) machine=news ;;
|
|
|
848 mips-sony-* ) machine=news-risc ;;
|
|
|
849 clipper-* ) machine=clipper ;;
|
|
|
850 esac
|
|
|
851
|
|
|
852 case "$canonical" in
|
|
|
853 *-*-linux* ) opsys=linux ;;
|
|
|
854 *-*-netbsd* ) opsys=netbsd ;;
|
|
|
855 *-*-nextstep* ) opsys=nextstep ;;
|
|
|
856 *-*-vms ) opsys=vms ;;
|
|
|
857
|
|
|
858 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
|
|
|
859 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
|
|
|
860 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
|
|
|
861 *-dec-osf3* ) opsys=decosf3-1 ;;
|
|
|
862 *-dec-osf4* ) opsys=decosf4-0 ;;
|
|
|
863
|
|
|
864 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
|
865 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
|
|
|
866 *-*-ultrix* ) opsys=ultrix4-3 ;;
|
|
|
867
|
|
|
868 *-*-aix3.1* ) opsys=aix3-1 ;;
|
|
|
869 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
|
|
|
870 *-*-aix3* ) opsys=aix3-2 ;;
|
|
|
871 *-*-aix4.2* ) opsys=aix4-2 ;;
|
|
|
872 *-*-aix4.1* ) opsys=aix4-1 ;;
|
|
|
873 *-*-aix4* ) opsys=aix4 ;;
|
|
|
874
|
|
|
875 *-gnu* ) opsys=gnu ;;
|
|
|
876 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
|
877 *-*-bsd4.2 ) opsys=bsd4-2 ;;
|
|
|
878 *-*-bsd4.3 ) opsys=bsd4-3 ;;
|
|
|
879 *-*-aos4.2 ) opsys=bsd4-2 ;;
|
|
|
880 *-*-aos* ) opsys=bsd4-3 ;;
|
|
|
881 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
|
|
|
882 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
|
|
|
883 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
|
884 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
|
|
|
885 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
|
|
|
886 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
|
|
887 if test -z "$NON_GNU_CPP" ; then
|
|
151
|
888 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
|
|
|
889 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
|
|
|
890 done
|
|
149
|
891 fi
|
|
|
892 opsys=usg5-4-2 ;;
|
|
|
893 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
|
894 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
|
|
|
895 esac
|
|
|
896
|
|
|
897 case "$canonical" in
|
|
|
898
|
|
|
899 *-*-netbsd* )
|
|
|
900 case "$canonical" in
|
|
0
|
901 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
|
902 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
|
149
|
903 machine=hp9000s300 ;;
|
|
70
|
904 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
|
905 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
|
0
|
906 esac
|
|
|
907 ;;
|
|
|
908
|
|
149
|
909 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
|
|
70
|
910 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
|
|
0
|
911
|
|
149
|
912 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
|
|
70
|
913 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
|
|
0
|
914
|
|
149
|
915 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
|
|
|
916
|
|
|
917 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
|
|
|
918
|
|
|
919 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
|
|
|
920
|
|
|
921 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
|
|
|
922
|
|
|
923 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
|
|
|
924
|
|
|
925 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
|
|
74
|
926 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
|
|
|
927 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
|
|
0
|
928
|
|
149
|
929
|
|
|
930 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
|
|
|
931
|
|
|
932 *-convex-bsd* | *-convex-convexos* )
|
|
0
|
933 machine=convex opsys=bsd4-3
|
|
|
934 NON_GNU_CPP="cc -E -P"
|
|
|
935 ;;
|
|
|
936
|
|
149
|
937 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
|
|
|
938
|
|
|
939 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
|
|
|
940 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
|
|
|
941 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
|
|
|
942 m88k-dg-dgux* ) opsys=dgux ;;
|
|
|
943
|
|
|
944 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
|
|
0
|
945 m88k-motorola-sysv4* )
|
|
149
|
946 machine=delta88k opsys=usg5-4-2
|
|
0
|
947 ;;
|
|
70
|
948 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
|
|
0
|
949
|
|
149
|
950 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
|
|
70
|
951 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
|
|
0
|
952
|
|
149
|
953 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
|
|
|
954
|
|
|
955 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
|
|
70
|
956 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
|
|
|
957 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
|
|
0
|
958
|
|
149
|
959 m88k-harris-cxux* )
|
|
|
960 case "`uname -r`" in
|
|
74
|
961 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
|
70
|
962 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
|
0
|
963 esac
|
|
|
964 NON_GNU_CPP="/lib/cpp"
|
|
|
965 ;;
|
|
149
|
966 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
|
|
|
967 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
|
|
|
968
|
|
|
969 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
|
|
|
970
|
|
|
971 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
|
|
|
972
|
|
|
973 *-hp-hpux* )
|
|
|
974 case "$canonical" in
|
|
70
|
975 m68* ) machine=hp9000s300 ;;
|
|
|
976 hppa* ) machine=hp800 ;;
|
|
|
977 esac
|
|
|
978
|
|
149
|
979 case "$canonical" in
|
|
|
980 *-hp-hpux7* ) opsys=hpux ;;
|
|
|
981 *-hp-hpux8* ) opsys=hpux8 ;;
|
|
|
982 *-hp-hpux9* ) opsys=hpux9 ;;
|
|
|
983 *-hp-hpux10* ) opsys=hpux10 ;;
|
|
151
|
984 * ) opsys=hpux ;;
|
|
0
|
985 esac
|
|
72
|
986
|
|
151
|
987 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
|
|
|
988 echo " xemacs will be linked with \"strcat.o\""
|
|
|
989 fi ;; esac
|
|
149
|
990
|
|
|
991 if test "$opsys" = "hpux10"; then ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
|
|
|
992 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
|
|
|
993
|
|
|
994 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
|
|
0
|
995 ;;
|
|
|
996
|
|
149
|
997 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
|
|
70
|
998 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
|
|
0
|
999
|
|
149
|
1000 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
|
|
70
|
1001 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
|
|
|
1002 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
|
|
149
|
1003 romp-ibm-aos* ) opsys=bsd4-3 ;;
|
|
|
1004 romp-ibm-bsd* ) opsys=bsd4-3 ;;
|
|
|
1005 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
|
|
|
1006
|
|
|
1007 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
|
|
70
|
1008 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
|
|
0
|
1009
|
|
149
|
1010 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
|
|
|
1011
|
|
|
1012 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
|
|
|
1013
|
|
|
1014 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
|
|
|
1015
|
|
|
1016 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
|
|
|
1017
|
|
|
1018 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
|
|
|
1019
|
|
|
1020 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
|
|
|
1021
|
|
|
1022 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
|
|
|
1023
|
|
|
1024 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
|
|
|
1025
|
|
|
1026 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
|
|
|
1027
|
|
|
1028 mips-mips-usg* ) machine=mips4 ;;
|
|
70
|
1029 mips-mips-riscos4 )
|
|
|
1030 machine=mips4
|
|
0
|
1031 NON_GNU_CC="cc -systype bsd43"
|
|
|
1032 NON_GNU_CPP="cc -systype bsd43 -E"
|
|
149
|
1033 case "$canonical" in
|
|
70
|
1034 mips-mips-riscos4* ) opsys=bsd4-3 ;;
|
|
|
1035 mips-mips-riscos5* ) opsys=riscos5 ;;
|
|
|
1036 esac
|
|
0
|
1037 ;;
|
|
70
|
1038 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
|
|
|
1039 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
|
|
0
|
1040
|
|
149
|
1041 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
|
|
|
1042
|
|
|
1043 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
|
|
|
1044
|
|
|
1045 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
|
|
70
|
1046 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
|
|
0
|
1047
|
|
149
|
1048 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
|
|
|
1049
|
|
|
1050 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
|
|
|
1051
|
|
|
1052 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
|
|
|
1053
|
|
|
1054 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
|
|
|
1055
|
|
|
1056 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
|
|
70
|
1057 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
|
|
0
|
1058
|
|
149
|
1059 mips-siemens-sysv* | mips-sni-sysv*)
|
|
0
|
1060 machine=mips-siemens opsys=usg5-4
|
|
|
1061 NON_GNU_CC=/usr/ccs/bin/cc
|
|
|
1062 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
|
1063 ;;
|
|
|
1064
|
|
149
|
1065 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
|
|
70
|
1066 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
|
|
149
|
1067 mips-sgi-irix3.* ) opsys=irix3-3 ;;
|
|
|
1068 mips-sgi-irix4.* ) opsys=irix4-0 ;;
|
|
207
|
1069 mips-sgi-irix6* ) opsys=irix6-0 ;;
|
|
149
|
1070 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
|
|
|
1071 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
|
|
|
1072 mips-sgi-irix5.* ) opsys=irix5-3 ;;
|
|
|
1073 mips-sgi-irix* ) opsys=irix5-0 ;;
|
|
|
1074
|
|
|
1075 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
|
|
|
1076 *-sony-news* ) opsys=newsos5 ;;
|
|
|
1077
|
|
|
1078 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
|
|
|
1079
|
|
|
1080 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
|
1081 case "$canonical" in
|
|
0
|
1082 m68*-sunos1* ) machine=sun1 ;;
|
|
|
1083 m68*-sunos2* ) machine=sun2 ;;
|
|
|
1084 m68* ) machine=sun3 ;;
|
|
163
|
1085 i*86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
|
1086 i*86-*-* ) machine=intel386 ;;
|
|
0
|
1087 rs6000* ) machine=rs6000 ;;
|
|
|
1088 esac
|
|
149
|
1089
|
|
|
1090 case "$canonical" in *-sunos5*)
|
|
163
|
1091 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
|
|
0
|
1092 esac
|
|
|
1093
|
|
149
|
1094 case "$canonical" in
|
|
0
|
1095 *-sunos4* )
|
|
157
|
1096 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
|
1097 : ;;
|
|
70
|
1098 *-solaris2* )
|
|
157
|
1099 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
|
1100 RANLIB=':' ;;
|
|
151
|
1101 esac
|
|
149
|
1102
|
|
|
1103 case "$canonical" in
|
|
163
|
1104 *-solaris* )
|
|
|
1105 opsys=sol2
|
|
|
1106 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
|
|
|
1107 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
1108 Defining OS_RELEASE = $os_release
|
|
|
1109 EOF
|
|
|
1110 cat >> confdefs.h <<EOF
|
|
|
1111 #define OS_RELEASE $os_release
|
|
|
1112 EOF
|
|
|
1113 }
|
|
|
1114 ;;
|
|
|
1115
|
|
|
1116 i*86-*-sunos4* ) opsys=sunos4-0 ;;
|
|
74
|
1117 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
|
1118 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
|
110
|
1119 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
|
120
|
1120 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
|
74
|
1121 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
|
1122 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
|
1123 * ) opsys=bsd4-2 ;;
|
|
0
|
1124 esac
|
|
70
|
1125
|
|
149
|
1126 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
|
|
|
1127
|
|
163
|
1128 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
|
|
0
|
1129 ;;
|
|
70
|
1130
|
|
149
|
1131 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
|
|
|
1132
|
|
|
1133 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
|
|
70
|
1134 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
|
|
0
|
1135
|
|
149
|
1136 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
|
|
|
1137
|
|
|
1138 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
|
|
|
1139
|
|
|
1140 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
|
|
|
1141 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
|
|
|
1142
|
|
|
1143 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
|
|
|
1144
|
|
|
1145 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
|
|
|
1146
|
|
|
1147 vax-dec-* )
|
|
|
1148 case "$canonical" in
|
|
|
1149 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
|
1150 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
|
1151 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
0
|
1152 esac
|
|
|
1153 ;;
|
|
|
1154
|
|
149
|
1155 ns16k-whitechapel-* ) machine=mg1 ;;
|
|
|
1156
|
|
|
1157 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
|
|
|
1158
|
|
|
1159 i[3-9]86-*-* )
|
|
0
|
1160 machine=intel386
|
|
149
|
1161 case "$canonical" in
|
|
120
|
1162 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
|
0
|
1163 *-isc2.2* ) opsys=isc2-2 ;;
|
|
|
1164 *-isc4.0* ) opsys=isc4-0 ;;
|
|
|
1165 *-isc4.* ) opsys=isc4-1
|
|
|
1166 GCC_TEST_OPTIONS=-posix
|
|
|
1167 NON_GCC_TEST_OPTIONS=-Xp
|
|
|
1168 ;;
|
|
|
1169 *-isc* ) opsys=isc3-0 ;;
|
|
149
|
1170 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
|
|
0
|
1171 *-esix* ) opsys=esix ;;
|
|
|
1172 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
|
1173 *-xenix* ) opsys=xenix ;;
|
|
149
|
1174 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
|
|
0
|
1175 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
|
110
|
1176 *-bsdi3* ) opsys=bsdos3 ;;
|
|
0
|
1177 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
|
1178 *-bsdi2* ) opsys=bsdos2 ;;
|
|
149
|
1179 *-sco3.2v5* ) opsys=sco5 ;
|
|
|
1180 if test "$dynamic" = "yes" ; then
|
|
70
|
1181 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
|
|
|
1182 else
|
|
|
1183 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
|
|
|
1184 fi ;;
|
|
|
1185 *-386bsd* ) opsys=386bsd ;;
|
|
|
1186 *-freebsd* ) opsys=freebsd ;;
|
|
0
|
1187 *-nextstep* ) opsys=nextstep ;;
|
|
231
|
1188 *-pc-cygwin32 ) opsys=cygwin32 ;;
|
|
149
|
1189 esac
|
|
0
|
1190 ;;
|
|
|
1191
|
|
149
|
1192 m68k-*-linux* ) machine=m68k opsys=linux ;;
|
|
|
1193
|
|
0
|
1194 esac
|
|
|
1195
|
|
149
|
1196 if test -z "$machine" -o -z "$opsys"; then
|
|
|
1197 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
|
|
|
1198 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
|
|
0
|
1199 ) >&2
|
|
|
1200 exit 1
|
|
|
1201 fi
|
|
|
1202
|
|
173
|
1203 if test -z "$dynamic"; then
|
|
|
1204 case "$opsys" in
|
|
|
1205 hpux* | sunos4* | sco5 ) dynamic=no ;;
|
|
|
1206 *) dynamic=yes ;;
|
|
|
1207 esac
|
|
|
1208 fi
|
|
|
1209 if test "$dynamic" = "yes"; then
|
|
149
|
1210 case "$opsys" in
|
|
72
|
1211 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
|
|
173
|
1212 decosf* ) ld_call_shared="-call_shared" ;;
|
|
0
|
1213 esac
|
|
173
|
1214 else case "$opsys" in
|
|
187
|
1215 sol2 )
|
|
173
|
1216 echo "Static linking is not supported on Solaris 2."
|
|
|
1217 echo "Rerun configure without specifying --dynamic=no."
|
|
|
1218 exit 1 ;;
|
|
|
1219 linux ) ld_call_shared="-Bstatic" ;;
|
|
|
1220 decosf* ) ld_call_shared="-non_shared" ;;
|
|
0
|
1221 esac
|
|
|
1222 fi
|
|
|
1223
|
|
207
|
1224 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
|
|
|
1225
|
|
177
|
1226 stack_trace_eye_catcher=`echo xemacs_${version}_${canonical} | sed 'y/.-/__/'`
|
|
173
|
1227 { test "$extra_verbose" = "yes" && cat << EOF
|
|
177
|
1228 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
|
|
173
|
1229 EOF
|
|
|
1230 cat >> confdefs.h <<EOF
|
|
177
|
1231 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
|
|
173
|
1232 EOF
|
|
|
1233 }
|
|
|
1234
|
|
|
1235
|
|
0
|
1236 machfile="m/${machine}.h"
|
|
|
1237 opsysfile="s/${opsys}.h"
|
|
|
1238
|
|
|
1239
|
|
151
|
1240 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
|
|
|
1241 if test "$with_workshop" = "yes"; then
|
|
|
1242 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
1243 Defining SUNPRO
|
|
|
1244 EOF
|
|
|
1245 cat >> confdefs.h <<\EOF
|
|
|
1246 #define SUNPRO 1
|
|
|
1247 EOF
|
|
|
1248 }
|
|
|
1249
|
|
|
1250 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
|
|
|
1251 echo " xemacs will be linked with \"sunpro.o\""
|
|
|
1252 fi
|
|
|
1253 with_tooltalk=yes
|
|
|
1254 fi
|
|
|
1255
|
|
175
|
1256 if test "$with_clash_detection" = "yes"; then
|
|
|
1257 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
1258 Defining CLASH_DETECTION
|
|
|
1259 EOF
|
|
|
1260 cat >> confdefs.h <<\EOF
|
|
|
1261 #define CLASH_DETECTION 1
|
|
|
1262 EOF
|
|
|
1263 }
|
|
|
1264
|
|
|
1265 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
|
|
|
1266 echo " xemacs will be linked with \"filelock.o\""
|
|
|
1267 fi
|
|
|
1268 fi
|
|
|
1269
|
|
169
|
1270 test -n "$compiler" && CC="$compiler"
|
|
|
1271 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
|
|
|
1272 fi
|
|
149
|
1273
|
|
157
|
1274 test "$cflags" != "UNSPECIFIED" && CFLAGS="$cflags"
|
|
|
1275 xe_save_CFLAGS="$CFLAGS"
|
|
|
1276
|
|
149
|
1277 # Extract the first word of "gcc", so it can be a program name with args.
|
|
|
1278 set dummy gcc; ac_word=$2
|
|
|
1279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
243
|
1280 echo "configure:1281: checking for $ac_word" >&5
|
|
149
|
1281
|
|
|
1282 if test -n "$CC"; then
|
|
|
1283 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1284 else
|
|
|
1285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1286 for ac_dir in $PATH; do
|
|
|
1287 test -z "$ac_dir" && ac_dir=.
|
|
|
1288 if test -f $ac_dir/$ac_word; then
|
|
|
1289 ac_cv_prog_CC="gcc"
|
|
|
1290 break
|
|
|
1291 fi
|
|
|
1292 done
|
|
|
1293 IFS="$ac_save_ifs"
|
|
|
1294 fi
|
|
|
1295 CC="$ac_cv_prog_CC"
|
|
|
1296 if test -n "$CC"; then
|
|
|
1297 echo "$ac_t""$CC" 1>&6
|
|
|
1298 else
|
|
|
1299 echo "$ac_t""no" 1>&6
|
|
|
1300 fi
|
|
|
1301
|
|
|
1302 if test -z "$CC"; then
|
|
|
1303 # Extract the first word of "cc", so it can be a program name with args.
|
|
|
1304 set dummy cc; ac_word=$2
|
|
|
1305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
243
|
1306 echo "configure:1307: checking for $ac_word" >&5
|
|
149
|
1307
|
|
|
1308 if test -n "$CC"; then
|
|
|
1309 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1310 else
|
|
|
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1312 ac_prog_rejected=no
|
|
|
1313 for ac_dir in $PATH; do
|
|
|
1314 test -z "$ac_dir" && ac_dir=.
|
|
|
1315 if test -f $ac_dir/$ac_word; then
|
|
|
1316 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
|
1317 ac_prog_rejected=yes
|
|
|
1318 continue
|
|
|
1319 fi
|
|
|
1320 ac_cv_prog_CC="cc"
|
|
|
1321 break
|
|
|
1322 fi
|
|
|
1323 done
|
|
|
1324 IFS="$ac_save_ifs"
|
|
|
1325 if test $ac_prog_rejected = yes; then
|
|
|
1326 # We found a bogon in the path, so make sure we never use it.
|
|
|
1327 set dummy $ac_cv_prog_CC
|
|
|
1328 shift
|
|
|
1329 if test $# -gt 0; then
|
|
|
1330 # We chose a different compiler from the bogus one.
|
|
|
1331 # However, it has the same basename, so the bogon will be chosen
|
|
|
1332 # first if we set CC to just the basename; use the full file name.
|
|
|
1333 shift
|
|
|
1334 set dummy "$ac_dir/$ac_word" "$@"
|
|
|
1335 shift
|
|
|
1336 ac_cv_prog_CC="$@"
|
|
|
1337 fi
|
|
|
1338 fi
|
|
|
1339 fi
|
|
|
1340 CC="$ac_cv_prog_CC"
|
|
|
1341 if test -n "$CC"; then
|
|
|
1342 echo "$ac_t""$CC" 1>&6
|
|
|
1343 else
|
|
|
1344 echo "$ac_t""no" 1>&6
|
|
|
1345 fi
|
|
|
1346
|
|
|
1347 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
|
1348 fi
|
|
|
1349
|
|
|
1350 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
243
|
1351 echo "configure:1352: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
70
|
1352
|
|
0
|
1353 ac_ext=c
|
|
151
|
1354 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
|
1355 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
|
173
|
1356 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
|
149
|
1357 ac_cpp='$CPP '"$xe_cppflags"
|
|
151
|
1358 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
|
1359 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
149
|
1360 cross_compiling=no
|
|
|
1361
|
|
|
1362 cat > conftest.$ac_ext <<EOF
|
|
243
|
1363 #line 1364 "configure"
|
|
149
|
1364 #include "confdefs.h"
|
|
|
1365 main(){return(0);}
|
|
|
1366 EOF
|
|
243
|
1367 if { (eval echo configure:1368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
1368 ac_cv_prog_cc_works=yes
|
|
|
1369 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
1370 if (./conftest; exit) 2>/dev/null; then
|
|
|
1371 ac_cv_prog_cc_cross=no
|
|
|
1372 else
|
|
|
1373 ac_cv_prog_cc_cross=yes
|
|
0
|
1374 fi
|
|
149
|
1375 else
|
|
|
1376 echo "configure: failed program was:" >&5
|
|
|
1377 cat conftest.$ac_ext >&5
|
|
|
1378 ac_cv_prog_cc_works=no
|
|
|
1379 fi
|
|
|
1380 rm -fr conftest*
|
|
|
1381
|
|
|
1382 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
|
1383 if test $ac_cv_prog_cc_works = no; then
|
|
|
1384 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
|
1385 fi
|
|
|
1386 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
243
|
1387 echo "configure:1388: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
149
|
1388 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
1389 cross_compiling=$ac_cv_prog_cc_cross
|
|
|
1390
|
|
|
1391 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|
243
|
1392 echo "configure:1393: checking whether we are using GNU C" >&5
|
|
149
|
1393
|
|
|
1394 cat > conftest.c <<EOF
|
|
|
1395 #ifdef __GNUC__
|
|
|
1396 yes;
|
|
|
1397 #endif
|
|
|
1398 EOF
|
|
243
|
1399 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
149
|
1400 ac_cv_prog_gcc=yes
|
|
|
1401 else
|
|
|
1402 ac_cv_prog_gcc=no
|
|
|
1403 fi
|
|
|
1404
|
|
|
1405 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
1406
|
|
|
1407 if test $ac_cv_prog_gcc = yes; then
|
|
|
1408 GCC=yes
|
|
|
1409 ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
1410 ac_save_CFLAGS="$CFLAGS"
|
|
|
1411 CFLAGS=
|
|
|
1412 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
243
|
1413 echo "configure:1414: checking whether ${CC-cc} accepts -g" >&5
|
|
149
|
1414
|
|
|
1415 echo 'void f(){}' > conftest.c
|
|
|
1416 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
|
1417 ac_cv_prog_cc_g=yes
|
|
|
1418 else
|
|
|
1419 ac_cv_prog_cc_g=no
|
|
|
1420 fi
|
|
|
1421 rm -f conftest*
|
|
|
1422
|
|
|
1423
|
|
|
1424 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
|
1425 if test "$ac_test_CFLAGS" = set; then
|
|
|
1426 CFLAGS="$ac_save_CFLAGS"
|
|
|
1427 elif test $ac_cv_prog_cc_g = yes; then
|
|
|
1428 CFLAGS="-g -O2"
|
|
0
|
1429 else
|
|
149
|
1430 CFLAGS="-O2"
|
|
0
|
1431 fi
|
|
149
|
1432 else
|
|
|
1433 GCC=
|
|
|
1434 test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|
|
1435 fi
|
|
169
|
1436
|
|
|
1437 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
|
|
149
|
1438 CC=${NON_GNU_CC-cc}
|
|
|
1439 # Extract the first word of "gcc", so it can be a program name with args.
|
|
|
1440 set dummy gcc; ac_word=$2
|
|
|
1441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
243
|
1442 echo "configure:1443: checking for $ac_word" >&5
|
|
149
|
1443
|
|
|
1444 if test -n "$CC"; then
|
|
|
1445 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1446 else
|
|
0
|
1447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1448 for ac_dir in $PATH; do
|
|
|
1449 test -z "$ac_dir" && ac_dir=.
|
|
|
1450 if test -f $ac_dir/$ac_word; then
|
|
149
|
1451 ac_cv_prog_CC="gcc"
|
|
|
1452 break
|
|
|
1453 fi
|
|
|
1454 done
|
|
|
1455 IFS="$ac_save_ifs"
|
|
|
1456 fi
|
|
|
1457 CC="$ac_cv_prog_CC"
|
|
|
1458 if test -n "$CC"; then
|
|
|
1459 echo "$ac_t""$CC" 1>&6
|
|
|
1460 else
|
|
|
1461 echo "$ac_t""no" 1>&6
|
|
|
1462 fi
|
|
|
1463
|
|
|
1464 if test -z "$CC"; then
|
|
|
1465 # Extract the first word of "cc", so it can be a program name with args.
|
|
|
1466 set dummy cc; ac_word=$2
|
|
|
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
243
|
1468 echo "configure:1469: checking for $ac_word" >&5
|
|
157
|
1469
|
|
|
1470 if test -n "$CC"; then
|
|
|
1471 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1472 else
|
|
|
1473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1474 ac_prog_rejected=no
|
|
|
1475 for ac_dir in $PATH; do
|
|
|
1476 test -z "$ac_dir" && ac_dir=.
|
|
|
1477 if test -f $ac_dir/$ac_word; then
|
|
|
1478 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
|
1479 ac_prog_rejected=yes
|
|
|
1480 continue
|
|
|
1481 fi
|
|
|
1482 ac_cv_prog_CC="cc"
|
|
|
1483 break
|
|
|
1484 fi
|
|
|
1485 done
|
|
|
1486 IFS="$ac_save_ifs"
|
|
|
1487 if test $ac_prog_rejected = yes; then
|
|
|
1488 # We found a bogon in the path, so make sure we never use it.
|
|
|
1489 set dummy $ac_cv_prog_CC
|
|
|
1490 shift
|
|
|
1491 if test $# -gt 0; then
|
|
|
1492 # We chose a different compiler from the bogus one.
|
|
|
1493 # However, it has the same basename, so the bogon will be chosen
|
|
|
1494 # first if we set CC to just the basename; use the full file name.
|
|
|
1495 shift
|
|
|
1496 set dummy "$ac_dir/$ac_word" "$@"
|
|
|
1497 shift
|
|
|
1498 ac_cv_prog_CC="$@"
|
|
|
1499 fi
|
|
|
1500 fi
|
|
|
1501 fi
|
|
|
1502 CC="$ac_cv_prog_CC"
|
|
|
1503 if test -n "$CC"; then
|
|
|
1504 echo "$ac_t""$CC" 1>&6
|
|
|
1505 else
|
|
|
1506 echo "$ac_t""no" 1>&6
|
|
|
1507 fi
|
|
|
1508
|
|
|
1509 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
|
1510 fi
|
|
|
1511
|
|
|
1512 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
243
|
1513 echo "configure:1514: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
157
|
1514
|
|
|
1515 ac_ext=c
|
|
|
1516 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
|
1517 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
|
173
|
1518 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
|
157
|
1519 ac_cpp='$CPP '"$xe_cppflags"
|
|
|
1520 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
|
1521 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
|
1522 cross_compiling=no
|
|
|
1523
|
|
|
1524 cat > conftest.$ac_ext <<EOF
|
|
243
|
1525 #line 1526 "configure"
|
|
157
|
1526 #include "confdefs.h"
|
|
|
1527 main(){return(0);}
|
|
|
1528 EOF
|
|
243
|
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
157
|
1530 ac_cv_prog_cc_works=yes
|
|
|
1531 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
1532 if (./conftest; exit) 2>/dev/null; then
|
|
|
1533 ac_cv_prog_cc_cross=no
|
|
|
1534 else
|
|
|
1535 ac_cv_prog_cc_cross=yes
|
|
|
1536 fi
|
|
|
1537 else
|
|
|
1538 echo "configure: failed program was:" >&5
|
|
|
1539 cat conftest.$ac_ext >&5
|
|
|
1540 ac_cv_prog_cc_works=no
|
|
|
1541 fi
|
|
|
1542 rm -fr conftest*
|
|
|
1543
|
|
|
1544 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
|
1545 if test $ac_cv_prog_cc_works = no; then
|
|
|
1546 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
|
1547 fi
|
|
|
1548 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
243
|
1549 echo "configure:1550: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
157
|
1550 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
1551 cross_compiling=$ac_cv_prog_cc_cross
|
|
|
1552
|
|
|
1553 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|
243
|
1554 echo "configure:1555: checking whether we are using GNU C" >&5
|
|
157
|
1555
|
|
|
1556 cat > conftest.c <<EOF
|
|
|
1557 #ifdef __GNUC__
|
|
|
1558 yes;
|
|
|
1559 #endif
|
|
|
1560 EOF
|
|
243
|
1561 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
157
|
1562 ac_cv_prog_gcc=yes
|
|
|
1563 else
|
|
|
1564 ac_cv_prog_gcc=no
|
|
|
1565 fi
|
|
|
1566
|
|
|
1567 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
1568
|
|
|
1569 if test $ac_cv_prog_gcc = yes; then
|
|
|
1570 GCC=yes
|
|
|
1571 ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
1572 ac_save_CFLAGS="$CFLAGS"
|
|
|
1573 CFLAGS=
|
|
|
1574 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
243
|
1575 echo "configure:1576: checking whether ${CC-cc} accepts -g" >&5
|
|
157
|
1576
|
|
|
1577 echo 'void f(){}' > conftest.c
|
|
|
1578 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
|
1579 ac_cv_prog_cc_g=yes
|
|
|
1580 else
|
|
|
1581 ac_cv_prog_cc_g=no
|
|
|
1582 fi
|
|
|
1583 rm -f conftest*
|
|
|
1584
|
|
|
1585
|
|
|
1586 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
|
1587 if test "$ac_test_CFLAGS" = set; then
|
|
|
1588 CFLAGS="$ac_save_CFLAGS"
|
|
|
1589 elif test $ac_cv_prog_cc_g = yes; then
|
|
|
1590 CFLAGS="-g -O2"
|
|
|
1591 else
|
|
|
1592 CFLAGS="-O2"
|
|
|
1593 fi
|
|
|
1594 else
|
|
|
1595 GCC=
|
|
|
1596 test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|
|
1597 fi
|
|
|
1598
|
|
169
|
1599 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
|
|
157
|
1600 CC=gcc
|
|
|
1601 # Extract the first word of "gcc", so it can be a program name with args.
|
|
|
1602 set dummy gcc; ac_word=$2
|
|
|
1603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
243
|
1604 echo "configure:1605: checking for $ac_word" >&5
|
|
157
|
1605
|
|
|
1606 if test -n "$CC"; then
|
|
|
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1608 else
|
|
|
1609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1610 for ac_dir in $PATH; do
|
|
|
1611 test -z "$ac_dir" && ac_dir=.
|
|
|
1612 if test -f $ac_dir/$ac_word; then
|
|
|
1613 ac_cv_prog_CC="gcc"
|
|
|
1614 break
|
|
|
1615 fi
|
|
|
1616 done
|
|
|
1617 IFS="$ac_save_ifs"
|
|
|
1618 fi
|
|
|
1619 CC="$ac_cv_prog_CC"
|
|
|
1620 if test -n "$CC"; then
|
|
|
1621 echo "$ac_t""$CC" 1>&6
|
|
|
1622 else
|
|
|
1623 echo "$ac_t""no" 1>&6
|
|
|
1624 fi
|
|
|
1625
|
|
|
1626 if test -z "$CC"; then
|
|
|
1627 # Extract the first word of "cc", so it can be a program name with args.
|
|
|
1628 set dummy cc; ac_word=$2
|
|
|
1629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
243
|
1630 echo "configure:1631: checking for $ac_word" >&5
|
|
149
|
1631
|
|
|
1632 if test -n "$CC"; then
|
|
|
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1634 else
|
|
|
1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1636 ac_prog_rejected=no
|
|
|
1637 for ac_dir in $PATH; do
|
|
|
1638 test -z "$ac_dir" && ac_dir=.
|
|
|
1639 if test -f $ac_dir/$ac_word; then
|
|
|
1640 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
|
1641 ac_prog_rejected=yes
|
|
|
1642 continue
|
|
|
1643 fi
|
|
|
1644 ac_cv_prog_CC="cc"
|
|
|
1645 break
|
|
|
1646 fi
|
|
|
1647 done
|
|
|
1648 IFS="$ac_save_ifs"
|
|
|
1649 if test $ac_prog_rejected = yes; then
|
|
|
1650 # We found a bogon in the path, so make sure we never use it.
|
|
|
1651 set dummy $ac_cv_prog_CC
|
|
|
1652 shift
|
|
|
1653 if test $# -gt 0; then
|
|
|
1654 # We chose a different compiler from the bogus one.
|
|
|
1655 # However, it has the same basename, so the bogon will be chosen
|
|
|
1656 # first if we set CC to just the basename; use the full file name.
|
|
|
1657 shift
|
|
|
1658 set dummy "$ac_dir/$ac_word" "$@"
|
|
|
1659 shift
|
|
|
1660 ac_cv_prog_CC="$@"
|
|
|
1661 fi
|
|
|
1662 fi
|
|
|
1663 fi
|
|
|
1664 CC="$ac_cv_prog_CC"
|
|
|
1665 if test -n "$CC"; then
|
|
|
1666 echo "$ac_t""$CC" 1>&6
|
|
|
1667 else
|
|
|
1668 echo "$ac_t""no" 1>&6
|
|
|
1669 fi
|
|
|
1670
|
|
|
1671 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
|
1672 fi
|
|
|
1673
|
|
|
1674 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
243
|
1675 echo "configure:1676: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
149
|
1676
|
|
|
1677 ac_ext=c
|
|
151
|
1678 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
|
1679 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
|
173
|
1680 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
|
149
|
1681 ac_cpp='$CPP '"$xe_cppflags"
|
|
151
|
1682 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
|
1683 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
149
|
1684 cross_compiling=no
|
|
|
1685
|
|
|
1686 cat > conftest.$ac_ext <<EOF
|
|
243
|
1687 #line 1688 "configure"
|
|
149
|
1688 #include "confdefs.h"
|
|
|
1689 main(){return(0);}
|
|
|
1690 EOF
|
|
243
|
1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
1692 ac_cv_prog_cc_works=yes
|
|
|
1693 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
1694 if (./conftest; exit) 2>/dev/null; then
|
|
|
1695 ac_cv_prog_cc_cross=no
|
|
|
1696 else
|
|
|
1697 ac_cv_prog_cc_cross=yes
|
|
|
1698 fi
|
|
|
1699 else
|
|
|
1700 echo "configure: failed program was:" >&5
|
|
|
1701 cat conftest.$ac_ext >&5
|
|
|
1702 ac_cv_prog_cc_works=no
|
|
|
1703 fi
|
|
|
1704 rm -fr conftest*
|
|
|
1705
|
|
|
1706 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
|
1707 if test $ac_cv_prog_cc_works = no; then
|
|
|
1708 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
|
1709 fi
|
|
|
1710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
243
|
1711 echo "configure:1712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
149
|
1712 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
1713 cross_compiling=$ac_cv_prog_cc_cross
|
|
|
1714
|
|
|
1715 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|
243
|
1716 echo "configure:1717: checking whether we are using GNU C" >&5
|
|
149
|
1717
|
|
|
1718 cat > conftest.c <<EOF
|
|
|
1719 #ifdef __GNUC__
|
|
|
1720 yes;
|
|
|
1721 #endif
|
|
|
1722 EOF
|
|
243
|
1723 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
149
|
1724 ac_cv_prog_gcc=yes
|
|
|
1725 else
|
|
|
1726 ac_cv_prog_gcc=no
|
|
|
1727 fi
|
|
|
1728
|
|
|
1729 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
1730
|
|
|
1731 if test $ac_cv_prog_gcc = yes; then
|
|
|
1732 GCC=yes
|
|
|
1733 ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
1734 ac_save_CFLAGS="$CFLAGS"
|
|
|
1735 CFLAGS=
|
|
|
1736 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
243
|
1737 echo "configure:1738: checking whether ${CC-cc} accepts -g" >&5
|
|
149
|
1738
|
|
|
1739 echo 'void f(){}' > conftest.c
|
|
|
1740 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
|
1741 ac_cv_prog_cc_g=yes
|
|
|
1742 else
|
|
|
1743 ac_cv_prog_cc_g=no
|
|
|
1744 fi
|
|
|
1745 rm -f conftest*
|
|
|
1746
|
|
|
1747
|
|
|
1748 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
|
1749 if test "$ac_test_CFLAGS" = set; then
|
|
|
1750 CFLAGS="$ac_save_CFLAGS"
|
|
|
1751 elif test $ac_cv_prog_cc_g = yes; then
|
|
|
1752 CFLAGS="-g -O2"
|
|
|
1753 else
|
|
|
1754 CFLAGS="-O2"
|
|
|
1755 fi
|
|
|
1756 else
|
|
|
1757 GCC=
|
|
|
1758 test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|
|
1759 fi
|
|
|
1760
|
|
157
|
1761 fi
|
|
|
1762 CFLAGS="$xe_save_CFLAGS"
|
|
149
|
1763
|
|
171
|
1764
|
|
|
1765 test -n "$CPP" -a -d "$CPP" && CPP=
|
|
|
1766
|
|
169
|
1767 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
|
|
149
|
1768
|
|
|
1769 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|
243
|
1770 echo "configure:1771: checking how to run the C preprocessor" >&5
|
|
149
|
1771 # On Suns, sometimes $CPP names a directory.
|
|
|
1772 if test -n "$CPP" && test -d "$CPP"; then
|
|
|
1773 CPP=
|
|
|
1774 fi
|
|
0
|
1775 if test -z "$CPP"; then
|
|
149
|
1776
|
|
0
|
1777 # This must be in double quotes, not single quotes, because CPP may get
|
|
149
|
1778 # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|
0
|
1779 CPP="${CC-cc} -E"
|
|
149
|
1780 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
1781 # not just through cpp.
|
|
|
1782 cat > conftest.$ac_ext <<EOF
|
|
243
|
1783 #line 1784 "configure"
|
|
149
|
1784 #include "confdefs.h"
|
|
|
1785 #include <assert.h>
|
|
0
|
1786 Syntax Error
|
|
|
1787 EOF
|
|
149
|
1788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
1789 { (eval echo configure:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
1790 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
1791 if test -z "$ac_err"; then
|
|
|
1792 :
|
|
|
1793 else
|
|
|
1794 echo "$ac_err" >&5
|
|
|
1795 echo "configure: failed program was:" >&5
|
|
|
1796 cat conftest.$ac_ext >&5
|
|
|
1797 rm -rf conftest*
|
|
|
1798 CPP="${CC-cc} -E -traditional-cpp"
|
|
|
1799 cat > conftest.$ac_ext <<EOF
|
|
243
|
1800 #line 1801 "configure"
|
|
149
|
1801 #include "confdefs.h"
|
|
|
1802 #include <assert.h>
|
|
|
1803 Syntax Error
|
|
|
1804 EOF
|
|
|
1805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
1806 { (eval echo configure:1807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
1807 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
1808 if test -z "$ac_err"; then
|
|
|
1809 :
|
|
|
1810 else
|
|
149
|
1811 echo "$ac_err" >&5
|
|
|
1812 echo "configure: failed program was:" >&5
|
|
|
1813 cat conftest.$ac_ext >&5
|
|
0
|
1814 rm -rf conftest*
|
|
|
1815 CPP=/lib/cpp
|
|
|
1816 fi
|
|
|
1817 rm -f conftest*
|
|
|
1818 fi
|
|
|
1819 rm -f conftest*
|
|
149
|
1820 ac_cv_prog_CPP="$CPP"
|
|
|
1821 CPP="$ac_cv_prog_CPP"
|
|
|
1822 else
|
|
|
1823 ac_cv_prog_CPP="$CPP"
|
|
|
1824 fi
|
|
|
1825 echo "$ac_t""$CPP" 1>&6
|
|
|
1826
|
|
|
1827
|
|
157
|
1828 echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
|
243
|
1829 echo "configure:1830: checking for AIX" >&5
|
|
|
1830 cat > conftest.$ac_ext <<EOF
|
|
|
1831 #line 1832 "configure"
|
|
157
|
1832 #include "confdefs.h"
|
|
|
1833 #ifdef _AIX
|
|
|
1834 yes
|
|
|
1835 #endif
|
|
|
1836
|
|
|
1837 EOF
|
|
|
1838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
1839 egrep "yes" >/dev/null 2>&1; then
|
|
|
1840 rm -rf conftest*
|
|
|
1841 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
1842 Defining _ALL_SOURCE
|
|
|
1843 EOF
|
|
|
1844 cat >> confdefs.h <<\EOF
|
|
|
1845 #define _ALL_SOURCE 1
|
|
|
1846 EOF
|
|
|
1847 }
|
|
|
1848
|
|
|
1849 else
|
|
|
1850 rm -rf conftest*
|
|
|
1851 echo "$ac_t""no" 1>&6
|
|
|
1852 fi
|
|
|
1853 rm -f conftest*
|
|
|
1854
|
|
|
1855
|
|
|
1856
|
|
243
|
1857 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
|
|
|
1858 echo "configure:1859: checking for GNU libc" >&5
|
|
|
1859 cat > conftest.$ac_ext <<EOF
|
|
|
1860 #line 1861 "configure"
|
|
|
1861 #include "confdefs.h"
|
|
|
1862 #include <features.h>
|
|
|
1863 int main() {
|
|
|
1864
|
|
|
1865 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
|
|
|
1866 #error Not a GNU libc system :-(
|
|
|
1867 ******* ======= ******** &&&&&&&&
|
|
|
1868 #endif
|
|
|
1869
|
|
|
1870 ; return 0; }
|
|
|
1871 EOF
|
|
|
1872 if { (eval echo configure:1873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
1873 rm -rf conftest*
|
|
|
1874 have_glibc=yes
|
|
|
1875 else
|
|
|
1876 echo "configure: failed program was:" >&5
|
|
|
1877 cat conftest.$ac_ext >&5
|
|
|
1878 rm -rf conftest*
|
|
|
1879 have_glibc=no
|
|
|
1880 fi
|
|
|
1881 rm -f conftest*
|
|
|
1882 echo "$ac_t""$have_glibc" 1>&6
|
|
|
1883 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
1884 Defining _GNU_SOURCE
|
|
|
1885 EOF
|
|
|
1886 cat >> confdefs.h <<\EOF
|
|
|
1887 #define _GNU_SOURCE 1
|
|
|
1888 EOF
|
|
|
1889 }
|
|
|
1890
|
|
|
1891
|
|
157
|
1892 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
|
|
243
|
1893 echo "configure:1894: checking whether we are using SunPro C" >&5
|
|
|
1894 cat > conftest.$ac_ext <<EOF
|
|
|
1895 #line 1896 "configure"
|
|
157
|
1896 #include "confdefs.h"
|
|
|
1897
|
|
|
1898 int main() {
|
|
|
1899 #ifndef __SUNPRO_C
|
|
|
1900 #error Not a SunPro compiler :-(
|
|
167
|
1901 ******* ======= ******** &&&&&&&&
|
|
157
|
1902 #endif
|
|
|
1903
|
|
|
1904 ; return 0; }
|
|
|
1905 EOF
|
|
243
|
1906 if { (eval echo configure:1907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
157
|
1907 rm -rf conftest*
|
|
|
1908 __sunpro_c=yes
|
|
|
1909 else
|
|
|
1910 echo "configure: failed program was:" >&5
|
|
|
1911 cat conftest.$ac_ext >&5
|
|
|
1912 rm -rf conftest*
|
|
|
1913 __sunpro_c=no
|
|
|
1914 fi
|
|
|
1915 rm -f conftest*
|
|
|
1916 echo "$ac_t""$__sunpro_c" 1>&6
|
|
|
1917
|
|
0
|
1918
|
|
149
|
1919
|
|
|
1920 echo "Extracting information from the machine- and system-dependent headers..."
|
|
|
1921
|
|
|
1922 tempcname="conftest.c"
|
|
|
1923
|
|
|
1924
|
|
|
1925
|
|
|
1926
|
|
|
1927
|
|
|
1928
|
|
|
1929 echo '
|
|
|
1930 #define NOT_C_CODE
|
|
|
1931 #define C_SWITCH_SITE
|
|
|
1932 #define C_SWITCH_X_SITE
|
|
|
1933 #define LD_SWITCH_SITE
|
|
|
1934 #define LD_SWITCH_X_SITE
|
|
|
1935 #define LD_SWITCH_X_SITE_AUX
|
|
163
|
1936 #define OS_RELEASE '$os_release'
|
|
149
|
1937 #include "'$srcdir'/src/'$opsysfile'"
|
|
|
1938 #include "'$srcdir'/src/'$machfile'"
|
|
|
1939
|
|
|
1940 #ifndef LIBS_MACHINE
|
|
151
|
1941 #define LIBS_MACHINE
|
|
149
|
1942 #endif
|
|
|
1943 configure___ libs_machine=LIBS_MACHINE
|
|
|
1944
|
|
|
1945 #ifndef LIBS_SYSTEM
|
|
151
|
1946 #define LIBS_SYSTEM
|
|
149
|
1947 #endif
|
|
|
1948 configure___ libs_system=LIBS_SYSTEM
|
|
|
1949
|
|
|
1950 #ifndef LIBS_TERMCAP
|
|
151
|
1951 #define LIBS_TERMCAP
|
|
149
|
1952 #endif
|
|
|
1953 configure___ libs_termcap=LIBS_TERMCAP
|
|
|
1954
|
|
|
1955 #ifndef LIB_STANDARD
|
|
151
|
1956 #define LIB_STANDARD
|
|
149
|
1957 #endif
|
|
|
1958 configure___ libs_standard=LIB_STANDARD
|
|
|
1959
|
|
|
1960
|
|
163
|
1961 #ifndef OBJECTS_MACHINE
|
|
|
1962 #define OBJECTS_MACHINE
|
|
|
1963 #endif
|
|
|
1964 configure___ objects_machine=OBJECTS_MACHINE
|
|
|
1965
|
|
|
1966 #ifndef OBJECTS_SYSTEM
|
|
|
1967 #define OBJECTS_SYSTEM
|
|
|
1968 #endif
|
|
|
1969 configure___ objects_system=OBJECTS_SYSTEM
|
|
|
1970
|
|
|
1971
|
|
149
|
1972 #ifndef C_SWITCH_MACHINE
|
|
151
|
1973 #define C_SWITCH_MACHINE
|
|
149
|
1974 #endif
|
|
|
1975 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
|
1976
|
|
157
|
1977 #ifndef C_SWITCH_SYSTEM
|
|
|
1978 #define C_SWITCH_SYSTEM
|
|
|
1979 #endif
|
|
|
1980 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
|
1981
|
|
|
1982
|
|
|
1983 #ifndef LD_SWITCH_MACHINE
|
|
|
1984 #define LD_SWITCH_MACHINE
|
|
|
1985 #endif
|
|
|
1986 configure___ ld_switch_machine=LD_SWITCH_MACHINE
|
|
|
1987
|
|
|
1988 #ifndef LD_SWITCH_SYSTEM
|
|
|
1989 #define LD_SWITCH_SYSTEM
|
|
|
1990 #endif
|
|
|
1991 configure___ ld_switch_system=LD_SWITCH_SYSTEM
|
|
|
1992
|
|
149
|
1993
|
|
|
1994 #ifndef UNEXEC
|
|
157
|
1995 #define UNEXEC "unexec.o"
|
|
149
|
1996 #endif
|
|
|
1997 configure___ unexec=UNEXEC
|
|
|
1998
|
|
|
1999
|
|
163
|
2000 #ifndef LD_SWITCH_SHARED
|
|
|
2001 #define LD_SWITCH_SHARED "-c"
|
|
|
2002 #endif
|
|
|
2003 configure___ ld_switch_shared=LD_SWITCH_SHARED
|
|
|
2004
|
|
|
2005
|
|
|
2006 #ifdef ORDINARY_LINK
|
|
|
2007 #define LD "$(CC) $(CFLAGS)"
|
|
|
2008 #else /* no ORDINARY LINK */
|
|
|
2009 #ifdef COFF_ENCAPSULATE
|
|
|
2010 #define LD "$(CC) -nostdlib"
|
|
|
2011 #else /* not COFF_ENCAPSULATE */
|
|
|
2012 #ifdef LINKER
|
|
|
2013 #define LD LINKER
|
|
|
2014 #else /* ! defined (LINKER) */
|
|
|
2015 #define LD "ld"
|
|
|
2016 #endif /* ! defined (LINKER) */
|
|
|
2017 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
|
2018 #endif /* not ORDINARY_LINK */
|
|
|
2019 configure___ ld=LD
|
|
|
2020
|
|
|
2021 #ifndef LIB_GCC
|
|
|
2022 #define LIB_GCC
|
|
|
2023 #endif
|
|
|
2024 configure___ lib_gcc=LIB_GCC
|
|
|
2025
|
|
|
2026 #ifndef LD_TEXT_START_ADDR
|
|
|
2027 #define LD_TEXT_START_ADDR
|
|
|
2028 #endif
|
|
|
2029 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
|
|
|
2030
|
|
|
2031
|
|
|
2032 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
|
|
|
2033 #ifdef NO_REMAP
|
|
|
2034 #ifdef COFF_ENCAPSULATE
|
|
|
2035 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
|
|
|
2036 #else /* ! defined (COFF_ENCAPSULATE) */
|
|
|
2037 #define START_FILES "pre-crt0.o /lib/crt0.o"
|
|
|
2038 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
|
2039 #else /* ! defined (NO_REMAP) */
|
|
|
2040 #define START_FILES "ecrt0.o"
|
|
|
2041 #endif /* ! defined (NO_REMAP) */
|
|
|
2042 #endif /* no ORDINARY_LINK */
|
|
|
2043 #ifndef START_FILES
|
|
|
2044 #define START_FILES
|
|
|
2045 #endif
|
|
|
2046 configure___ start_files=START_FILES
|
|
|
2047
|
|
153
|
2048 #ifdef ORDINARY_LINK
|
|
|
2049 configure___ ordinary_link=yes
|
|
|
2050 #else
|
|
|
2051 configure___ ordinary_link=no
|
|
|
2052 #endif
|
|
|
2053
|
|
149
|
2054 #ifdef SYSTEM_MALLOC
|
|
|
2055 configure___ system_malloc=yes
|
|
|
2056 #else
|
|
|
2057 configure___ system_malloc=no
|
|
|
2058 #endif
|
|
|
2059
|
|
|
2060 #ifdef TERMINFO
|
|
|
2061 configure___ have_terminfo=yes
|
|
|
2062 #else
|
|
|
2063 configure___ have_terminfo=no
|
|
|
2064 #endif
|
|
|
2065
|
|
|
2066 #ifdef MAIL_USE_FLOCK
|
|
|
2067 configure___ mail_use_flock=yes
|
|
|
2068 #else
|
|
|
2069 configure___ mail_use_flock=no
|
|
|
2070 #endif
|
|
|
2071
|
|
|
2072 #ifdef MAIL_USE_LOCKF
|
|
|
2073 configure___ mail_use_lockf=yes
|
|
|
2074 #else
|
|
|
2075 configure___ mail_use_lockf=no
|
|
|
2076 #endif
|
|
|
2077
|
|
|
2078
|
|
157
|
2079 #if 0
|
|
149
|
2080 #ifdef THIS_IS_CONFIGURE
|
|
|
2081
|
|
|
2082 /* Get the CFLAGS for tests in configure. */
|
|
157
|
2083 #ifndef C_DEBUG_SWITCH
|
|
|
2084 #define C_DEBUG_SWITCH "-g"
|
|
|
2085 #endif
|
|
|
2086 configure___ c_debug_switch=C_DEBUG_SWITCH
|
|
|
2087
|
|
|
2088 #ifndef C_OPTIMIZE_SWITCH
|
|
|
2089 #define C_OPTIMIZE_SWITCH "-O"
|
|
|
2090 #endif
|
|
|
2091 configure___ c_optimize_switch=C_OPTIMIZE_SWITCH
|
|
|
2092
|
|
149
|
2093 #ifdef __GNUC__
|
|
|
2094 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS'
|
|
|
2095 #else
|
|
|
2096 configure___ CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS'
|
|
|
2097 #endif
|
|
|
2098
|
|
|
2099 #else /* not THIS_IS_CONFIGURE */
|
|
|
2100
|
|
|
2101 /* Get the CFLAGS for real compilation. */
|
|
|
2102 #ifdef __GNUC__
|
|
|
2103 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '$SPECIFIED_CFLAGS'
|
|
|
2104 #else
|
|
|
2105 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '$SPECIFIED_CFLAGS'
|
|
|
2106 #endif
|
|
|
2107
|
|
|
2108 #endif /* not THIS_IS_CONFIGURE */
|
|
157
|
2109 #endif /* 0 */
|
|
149
|
2110 ' > $tempcname
|
|
|
2111 CPP=`eval "echo $CPP"`
|
|
|
2112 eval `$CPP -Isrc $tempcname \
|
|
165
|
2113 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
|
|
153
|
2114
|
|
149
|
2115 rm $tempcname
|
|
|
2116
|
|
163
|
2117 test "$extra_verbose" = "yes" && \
|
|
201
|
2118 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
|
2119
|
|
153
|
2120 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
|
|
|
2121
|
|
157
|
2122 if test -z "$CFLAGS"; then
|
|
|
2123 if test "$GCC" = "yes"; then
|
|
175
|
2124 CFLAGS="-g -O2 -Wall -Wno-switch"
|
|
223
|
2125 elif test "$__sunpro_c" = "yes"; then
|
|
157
|
2126 case "$opsys" in
|
|
163
|
2127 sol2 ) CFLAGS="-v -xO4" ;;
|
|
|
2128 sunos4* ) CFLAGS="-xO2";;
|
|
157
|
2129 esac
|
|
207
|
2130 elif test "$CC" = "xlc"; then
|
|
|
2131 CFLAGS="-O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
|
|
157
|
2132 else
|
|
207
|
2133 CFLAGS="-O" ; fi
|
|
157
|
2134 fi
|
|
151
|
2135
|
|
163
|
2136 if test "$GCC" = "yes"; then
|
|
|
2137 ld_switch_system_tmp="$ld_switch_system"; ld_switch_system=""
|
|
|
2138 for arg in $ld_switch_system_tmp; do
|
|
|
2139 case "$arg" in
|
|
209
|
2140 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_switch_system="$ld_switch_system $arg" ;;
|
|
163
|
2141 -Xlinker* ) ;;
|
|
|
2142 * ) ld_switch_system="$ld_switch_system -Xlinker $arg" ;;
|
|
|
2143 esac
|
|
|
2144 done
|
|
|
2145 ld_switch_machine_tmp="$ld_switch_machine"; ld_switch_machine=""
|
|
|
2146 for arg in $ld_switch_machine_tmp; do
|
|
|
2147 case "$arg" in
|
|
209
|
2148 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_switch_machine="$ld_switch_machine $arg" ;;
|
|
163
|
2149 -Xlinker* ) ;;
|
|
|
2150 * ) ld_switch_machine="$ld_switch_machine -Xlinker $arg" ;;
|
|
|
2151 esac
|
|
|
2152 done
|
|
|
2153 LDFLAGS_tmp="$LDFLAGS"; LDFLAGS=""
|
|
|
2154 for arg in $LDFLAGS_tmp; do
|
|
|
2155 case "$arg" in
|
|
209
|
2156 -L* | -l* | -R* | -u* | -Wl* | -f*) LDFLAGS="$LDFLAGS $arg" ;;
|
|
163
|
2157 -Xlinker* ) ;;
|
|
|
2158 * ) LDFLAGS="$LDFLAGS -Xlinker $arg" ;;
|
|
|
2159 esac
|
|
|
2160 done
|
|
173
|
2161 ld_call_shared_tmp="$ld_call_shared"; ld_call_shared=""
|
|
|
2162 for arg in $ld_call_shared_tmp; do
|
|
|
2163 case "$arg" in
|
|
209
|
2164 -L* | -l* | -R* | -u* | -Wl* | -f*) ld_call_shared="$ld_call_shared $arg" ;;
|
|
173
|
2165 -Xlinker* ) ;;
|
|
|
2166 * ) ld_call_shared="$ld_call_shared -Xlinker $arg" ;;
|
|
|
2167 esac
|
|
|
2168 done
|
|
163
|
2169 fi
|
|
|
2170
|
|
|
2171 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
|
|
|
2172 echo " xemacs will be linked with \"$objects_machine\""
|
|
|
2173 fi
|
|
|
2174 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
|
|
|
2175 echo " xemacs will be linked with \"$objects_system\""
|
|
|
2176 fi
|
|
|
2177 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
|
|
151
|
2178 echo " xemacs will be linked with \"$unexec\""
|
|
|
2179 fi
|
|
|
2180
|
|
163
|
2181 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
|
|
243
|
2182 echo "configure:2183: checking for dynodump" >&5
|
|
163
|
2183 if test "$unexec" != "unexsol2.o"; then
|
|
|
2184 echo "$ac_t""no" 1>&6
|
|
|
2185 else
|
|
|
2186 echo "$ac_t""yes" 1>&6
|
|
|
2187 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2188 Defining DYNODUMP
|
|
|
2189 EOF
|
|
|
2190 cat >> confdefs.h <<\EOF
|
|
|
2191 #define DYNODUMP 1
|
|
|
2192 EOF
|
|
|
2193 }
|
|
|
2194
|
|
|
2195 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
|
|
175
|
2196 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
|
|
163
|
2197 case "$machine" in
|
|
|
2198 sparc ) dynodump_arch=sparc ;;
|
|
|
2199 *86* ) dynodump_arch=i386 ;;
|
|
|
2200 powerpc ) dynodump_arch=ppc ;;
|
|
|
2201 esac
|
|
|
2202 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
|
|
|
2203 fi
|
|
|
2204
|
|
|
2205
|
|
207
|
2206 if test "$unexec" = "unexaix.o"; then
|
|
219
|
2207 if test "$dynamic" = "no"; then
|
|
207
|
2208 start_flags="-Wl,-bnso,-bnodelcsect"
|
|
209
|
2209 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
|
|
207
|
2210 for f in "/lib/syscalls.exp" "$srcdir/src/m/ibmrs6000.inp"; do
|
|
|
2211 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
|
|
|
2212 done
|
|
|
2213 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
|
|
|
2214 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
|
|
|
2215 done
|
|
219
|
2216 fi
|
|
207
|
2217 elif test -n "$ld_text_start_addr"; then
|
|
|
2218 start_flags="-T $ld_text_start_addr -e __start"
|
|
|
2219 fi
|
|
|
2220
|
|
|
2221
|
|
|
2222
|
|
163
|
2223
|
|
|
2224 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
|
|
|
2225 test -z "$linker" && linker='$(CC) -nostdlib'
|
|
175
|
2226 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
|
|
163
|
2227 fi
|
|
|
2228 test "$GCC" != "yes" && lib_gcc=
|
|
|
2229
|
|
|
2230
|
|
|
2231
|
|
151
|
2232
|
|
209
|
2233
|
|
|
2234 if test -n "$site_prefixes"; then
|
|
|
2235 for arg in $site_prefixes; do
|
|
|
2236 case "$arg" in
|
|
|
2237 -* ) ;;
|
|
|
2238 * ) argi="-I${arg}/include" ; argl="-L${arg}/lib" ;;
|
|
|
2239 esac
|
|
|
2240 c_switch_site="$c_switch_site $argi" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argi\" to \$c_switch_site"; fi
|
|
|
2241 ld_switch_site="$ld_switch_site $argl" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argl\" to \$ld_switch_site"; fi
|
|
|
2242 done
|
|
|
2243 fi
|
|
|
2244
|
|
151
|
2245 if test -n "$site_libraries"; then
|
|
|
2246 for arg in $site_libraries; do
|
|
|
2247 case "$arg" in -* ) ;; * ) arg="-L${arg}" ;; esac
|
|
|
2248 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
|
|
|
2249 done
|
|
|
2250 fi
|
|
|
2251
|
|
|
2252 if test -n "$site_includes" ; then
|
|
|
2253 for arg in $site_includes; do
|
|
|
2254 case "$arg" in -* ) ;; * ) arg="-I${arg}" ;; esac
|
|
|
2255 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
|
|
|
2256 done
|
|
|
2257 fi
|
|
|
2258
|
|
157
|
2259
|
|
151
|
2260 for dir in "/usr/ccs/lib"; do
|
|
|
2261 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
|
|
|
2262 done
|
|
|
2263
|
|
|
2264 if test -n "$site_runtime_libraries" ; then
|
|
165
|
2265 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
|
|
151
|
2266 export LD_RUN_PATH
|
|
|
2267 fi
|
|
|
2268
|
|
|
2269
|
|
|
2270 if test "$dynamic" = "no"; then add_runtime_path=no
|
|
|
2271 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
|
|
163
|
2272 else case "$opsys" in
|
|
|
2273 sol2 | irix* | *bsd* ) add_runtime_path=yes ;;
|
|
151
|
2274 * ) add_runtime_path=no ;;
|
|
|
2275 esac
|
|
|
2276 fi
|
|
|
2277
|
|
|
2278 if test "$add_runtime_path" = "yes"; then
|
|
|
2279 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
|
|
243
|
2280 echo "configure:2281: checking "for runtime libraries flag"" >&5
|
|
151
|
2281 dash_r=""
|
|
|
2282 for try_dash_r in "-R" "-R " "-rpath "; do
|
|
|
2283 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
|
|
|
2284 cat > conftest.$ac_ext <<EOF
|
|
243
|
2285 #line 2286 "configure"
|
|
|
2286 #include "confdefs.h"
|
|
|
2287
|
|
|
2288 int main() {
|
|
|
2289
|
|
|
2290 ; return 0; }
|
|
|
2291 EOF
|
|
|
2292 if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
2293 rm -rf conftest*
|
|
|
2294 dash_r="$try_dash_r"
|
|
|
2295 else
|
|
|
2296 echo "configure: failed program was:" >&5
|
|
|
2297 cat conftest.$ac_ext >&5
|
|
|
2298 fi
|
|
|
2299 rm -f conftest*
|
|
|
2300 xe_check_libs=""
|
|
|
2301 test -n "$dash_r" && break
|
|
|
2302 done
|
|
|
2303 if test -n "$dash_r";
|
|
|
2304 then echo "$ac_t"""\"${dash_r}\""" 1>&6
|
|
|
2305 else echo "$ac_t""NONE" 1>&6
|
|
|
2306 fi
|
|
|
2307 fi
|
|
|
2308
|
|
163
|
2309 xe_add_unique_runpath_dir='
|
|
|
2310 xe_add_p=yes
|
|
|
2311 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
|
|
|
2312 done
|
|
|
2313 if test "$xe_add_p" = "yes"; then
|
|
|
2314 test -n "$runpath" && runpath="${runpath}:"
|
|
|
2315 runpath="${runpath}${xe_runpath_dir}"
|
|
|
2316 runpath_dirs="$runpath_dirs $xe_runpath_dir"
|
|
|
2317 fi'
|
|
|
2318
|
|
|
2319
|
|
151
|
2320
|
|
155
|
2321
|
|
151
|
2322 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
|
165
|
2323 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
|
2324 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
151
|
2325
|
|
163
|
2326 runpath="" runpath_dirs=""
|
|
155
|
2327 if test -n "$LD_RUN_PATH"; then
|
|
151
|
2328 runpath="$LD_RUN_PATH"
|
|
155
|
2329 elif test "$GCC" = "yes"; then
|
|
163
|
2330 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
|
2331 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
|
155
|
2332 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
|
2333 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
|
2334 case "$arg" in P,* | -L* | -R* )
|
|
159
|
2335 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
|
163
|
2336 {
|
|
155
|
2337 xe_runpath_dir="$dir"
|
|
163
|
2338 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
2339 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
2340 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
2341 eval "$xe_add_unique_runpath_dir"
|
|
|
2342 }
|
|
155
|
2343 done ;;
|
|
|
2344 esac
|
|
|
2345 done
|
|
163
|
2346 ld_switch_run="$ld_switch_run_save"
|
|
155
|
2347 rm -f conftest*
|
|
151
|
2348 else
|
|
155
|
2349 for arg in $ld_switch_site $ld_switch_x_site; do
|
|
163
|
2350 case "$arg" in -L*) {
|
|
159
|
2351 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
|
163
|
2352 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
2353 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
2354 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
2355 eval "$xe_add_unique_runpath_dir"
|
|
|
2356 };; esac
|
|
151
|
2357 done
|
|
163
|
2358 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
|
2359 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
|
2360 eval "$xe_add_unique_runpath_dir";
|
|
|
2361 fi
|
|
155
|
2362 fi
|
|
151
|
2363 if test -n "$runpath"; then
|
|
|
2364 ld_switch_run="${dash_r}${runpath}"
|
|
|
2365 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
|
2366 fi
|
|
|
2367 fi
|
|
|
2368
|
|
|
2369
|
|
149
|
2370
|
|
|
2371 GNU_MALLOC=yes
|
|
|
2372 if test "$system_malloc" = "yes" ; then
|
|
|
2373 GNU_MALLOC=no
|
|
|
2374 GNU_MALLOC_reason="
|
|
177
|
2375 (The GNU allocators don't work with this system configuration)."
|
|
181
|
2376 elif test "$with_system_malloc" = "yes" ; then
|
|
149
|
2377 GNU_MALLOC=no
|
|
|
2378 GNU_MALLOC_reason="
|
|
177
|
2379 (User chose not to use GNU allocators)."
|
|
181
|
2380 elif test "$with_debug_malloc" = "yes" ; then
|
|
177
|
2381 GNU_MALLOC=no
|
|
|
2382 GNU_MALLOC_reason="
|
|
|
2383 (User chose to use Debugging Malloc)."
|
|
149
|
2384 fi
|
|
|
2385
|
|
|
2386
|
|
|
2387 # Extract the first word of "ranlib", so it can be a program name with args.
|
|
|
2388 set dummy ranlib; ac_word=$2
|
|
|
2389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
243
|
2390 echo "configure:2391: checking for $ac_word" >&5
|
|
149
|
2391
|
|
|
2392 if test -n "$RANLIB"; then
|
|
|
2393 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
|
2394 else
|
|
0
|
2395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
2396 for ac_dir in $PATH; do
|
|
|
2397 test -z "$ac_dir" && ac_dir=.
|
|
|
2398 if test -f $ac_dir/$ac_word; then
|
|
149
|
2399 ac_cv_prog_RANLIB="ranlib"
|
|
0
|
2400 break
|
|
|
2401 fi
|
|
|
2402 done
|
|
|
2403 IFS="$ac_save_ifs"
|
|
149
|
2404 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
|
2405 fi
|
|
|
2406 RANLIB="$ac_cv_prog_RANLIB"
|
|
|
2407 if test -n "$RANLIB"; then
|
|
|
2408 echo "$ac_t""$RANLIB" 1>&6
|
|
|
2409 else
|
|
|
2410 echo "$ac_t""no" 1>&6
|
|
|
2411 fi
|
|
|
2412
|
|
|
2413 ac_aux_dir=
|
|
|
2414 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|
|
2415 if test -f $ac_dir/install-sh; then
|
|
|
2416 ac_aux_dir=$ac_dir
|
|
|
2417 ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
|
2418 break
|
|
|
2419 elif test -f $ac_dir/install.sh; then
|
|
|
2420 ac_aux_dir=$ac_dir
|
|
|
2421 ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
|
2422 break
|
|
|
2423 fi
|
|
|
2424 done
|
|
|
2425 if test -z "$ac_aux_dir"; then
|
|
|
2426 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|
|
2427 fi
|
|
|
2428 ac_config_guess=$ac_aux_dir/config.guess
|
|
|
2429 ac_config_sub=$ac_aux_dir/config.sub
|
|
|
2430 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|
|
2431
|
|
|
2432 # Find a good install program. We prefer a C program (faster),
|
|
|
2433 # so one script is as good as another. But avoid the broken or
|
|
|
2434 # incompatible versions:
|
|
|
2435 # SysV /etc/install, /usr/sbin/install
|
|
|
2436 # SunOS /usr/etc/install
|
|
|
2437 # IRIX /sbin/install
|
|
|
2438 # AIX /bin/install
|
|
|
2439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
|
2440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
|
2441 # ./install, which can be erroneously created by make from ./install.sh.
|
|
|
2442 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|
243
|
2443 echo "configure:2444: checking for a BSD compatible install" >&5
|
|
149
|
2444 if test -z "$INSTALL"; then
|
|
|
2445
|
|
|
2446 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
|
|
0
|
2447 for ac_dir in $PATH; do
|
|
149
|
2448 # Account for people who put trailing slashes in PATH elements.
|
|
|
2449 case "$ac_dir/" in
|
|
|
2450 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|
0
|
2451 *)
|
|
|
2452 # OSF1 and SCO ODT 3.0 have their own names for install.
|
|
149
|
2453 for ac_prog in ginstall installbsd scoinst install; do
|
|
0
|
2454 if test -f $ac_dir/$ac_prog; then
|
|
|
2455 if test $ac_prog = install &&
|
|
|
2456 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
|
2457 # AIX install. It has an incompatible calling convention.
|
|
|
2458 # OSF/1 installbsd also uses dspmsg, but is usable.
|
|
|
2459 :
|
|
|
2460 else
|
|
149
|
2461 ac_cv_path_install="$ac_dir/$ac_prog -c"
|
|
0
|
2462 break 2
|
|
|
2463 fi
|
|
|
2464 fi
|
|
|
2465 done
|
|
|
2466 ;;
|
|
|
2467 esac
|
|
|
2468 done
|
|
149
|
2469 IFS="$ac_save_IFS"
|
|
|
2470
|
|
|
2471 if test "${ac_cv_path_install+set}" = set; then
|
|
|
2472 INSTALL="$ac_cv_path_install"
|
|
|
2473 else
|
|
|
2474 # As a last resort, use the slow shell script. We don't cache a
|
|
|
2475 # path for INSTALL within a source directory, because that will
|
|
|
2476 # break other packages using the cache if that directory is
|
|
|
2477 # removed, or if the path is relative.
|
|
|
2478 INSTALL="$ac_install_sh"
|
|
|
2479 fi
|
|
|
2480 fi
|
|
|
2481 echo "$ac_t""$INSTALL" 1>&6
|
|
|
2482
|
|
|
2483 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|
0
|
2484 # It thinks the first close brace ends the variable substitution.
|
|
|
2485 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
|
2486
|
|
|
2487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
|
2488
|
|
|
2489 for ac_prog in 'bison -y' byacc
|
|
|
2490 do
|
|
149
|
2491 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
2492 set dummy $ac_prog; ac_word=$2
|
|
|
2493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
243
|
2494 echo "configure:2495: checking for $ac_word" >&5
|
|
149
|
2495
|
|
|
2496 if test -n "$YACC"; then
|
|
|
2497 ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
|
|
2498 else
|
|
0
|
2499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
2500 for ac_dir in $PATH; do
|
|
|
2501 test -z "$ac_dir" && ac_dir=.
|
|
|
2502 if test -f $ac_dir/$ac_word; then
|
|
149
|
2503 ac_cv_prog_YACC="$ac_prog"
|
|
0
|
2504 break
|
|
|
2505 fi
|
|
|
2506 done
|
|
|
2507 IFS="$ac_save_ifs"
|
|
|
2508 fi
|
|
149
|
2509 YACC="$ac_cv_prog_YACC"
|
|
|
2510 if test -n "$YACC"; then
|
|
|
2511 echo "$ac_t""$YACC" 1>&6
|
|
|
2512 else
|
|
|
2513 echo "$ac_t""no" 1>&6
|
|
|
2514 fi
|
|
0
|
2515
|
|
|
2516 test -n "$YACC" && break
|
|
|
2517 done
|
|
|
2518 test -n "$YACC" || YACC="yacc"
|
|
|
2519
|
|
|
2520
|
|
120
|
2521 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
|
|
|
2522 do
|
|
149
|
2523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
2524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
243
|
2525 echo "configure:2526: checking for $ac_hdr" >&5
|
|
|
2526
|
|
|
2527 cat > conftest.$ac_ext <<EOF
|
|
|
2528 #line 2529 "configure"
|
|
149
|
2529 #include "confdefs.h"
|
|
|
2530 #include <$ac_hdr>
|
|
|
2531 EOF
|
|
|
2532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
2533 { (eval echo configure:2534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
2534 ac_err=`grep -v '^ *+' conftest.out`
|
|
120
|
2535 if test -z "$ac_err"; then
|
|
|
2536 rm -rf conftest*
|
|
149
|
2537 eval "ac_cv_header_$ac_safe=yes"
|
|
|
2538 else
|
|
|
2539 echo "$ac_err" >&5
|
|
|
2540 echo "configure: failed program was:" >&5
|
|
|
2541 cat conftest.$ac_ext >&5
|
|
|
2542 rm -rf conftest*
|
|
|
2543 eval "ac_cv_header_$ac_safe=no"
|
|
|
2544 fi
|
|
|
2545 rm -f conftest*
|
|
|
2546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
2547 echo "$ac_t""yes" 1>&6
|
|
|
2548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
2549 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
2550 Defining $ac_tr_hdr
|
|
|
2551 EOF
|
|
|
2552 cat >> confdefs.h <<EOF
|
|
|
2553 #define $ac_tr_hdr 1
|
|
|
2554 EOF
|
|
|
2555 }
|
|
|
2556
|
|
|
2557 else
|
|
|
2558 echo "$ac_t""no" 1>&6
|
|
|
2559 fi
|
|
120
|
2560 done
|
|
|
2561
|
|
169
|
2562 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
|
|
120
|
2563 do
|
|
149
|
2564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
2565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
243
|
2566 echo "configure:2567: checking for $ac_hdr" >&5
|
|
|
2567
|
|
|
2568 cat > conftest.$ac_ext <<EOF
|
|
|
2569 #line 2570 "configure"
|
|
149
|
2570 #include "confdefs.h"
|
|
|
2571 #include <$ac_hdr>
|
|
|
2572 EOF
|
|
|
2573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
2574 { (eval echo configure:2575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
2575 ac_err=`grep -v '^ *+' conftest.out`
|
|
120
|
2576 if test -z "$ac_err"; then
|
|
|
2577 rm -rf conftest*
|
|
149
|
2578 eval "ac_cv_header_$ac_safe=yes"
|
|
|
2579 else
|
|
|
2580 echo "$ac_err" >&5
|
|
|
2581 echo "configure: failed program was:" >&5
|
|
|
2582 cat conftest.$ac_ext >&5
|
|
|
2583 rm -rf conftest*
|
|
|
2584 eval "ac_cv_header_$ac_safe=no"
|
|
|
2585 fi
|
|
|
2586 rm -f conftest*
|
|
|
2587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
2588 echo "$ac_t""yes" 1>&6
|
|
|
2589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
2590 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
2591 Defining $ac_tr_hdr
|
|
|
2592 EOF
|
|
|
2593 cat >> confdefs.h <<EOF
|
|
|
2594 #define $ac_tr_hdr 1
|
|
|
2595 EOF
|
|
|
2596 }
|
|
|
2597
|
|
|
2598 else
|
|
|
2599 echo "$ac_t""no" 1>&6
|
|
|
2600 fi
|
|
120
|
2601 done
|
|
|
2602
|
|
243
|
2603 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h
|
|
0
|
2604 do
|
|
149
|
2605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
2606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
243
|
2607 echo "configure:2608: checking for $ac_hdr" >&5
|
|
|
2608
|
|
|
2609 cat > conftest.$ac_ext <<EOF
|
|
|
2610 #line 2611 "configure"
|
|
149
|
2611 #include "confdefs.h"
|
|
|
2612 #include <$ac_hdr>
|
|
|
2613 EOF
|
|
|
2614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
2615 { (eval echo configure:2616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
2616 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
2617 if test -z "$ac_err"; then
|
|
|
2618 rm -rf conftest*
|
|
149
|
2619 eval "ac_cv_header_$ac_safe=yes"
|
|
|
2620 else
|
|
|
2621 echo "$ac_err" >&5
|
|
|
2622 echo "configure: failed program was:" >&5
|
|
|
2623 cat conftest.$ac_ext >&5
|
|
|
2624 rm -rf conftest*
|
|
|
2625 eval "ac_cv_header_$ac_safe=no"
|
|
|
2626 fi
|
|
|
2627 rm -f conftest*
|
|
|
2628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
2629 echo "$ac_t""yes" 1>&6
|
|
|
2630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
2631 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
2632 Defining $ac_tr_hdr
|
|
|
2633 EOF
|
|
|
2634 cat >> confdefs.h <<EOF
|
|
|
2635 #define $ac_tr_hdr 1
|
|
|
2636 EOF
|
|
|
2637 }
|
|
|
2638
|
|
|
2639 else
|
|
|
2640 echo "$ac_t""no" 1>&6
|
|
|
2641 fi
|
|
0
|
2642 done
|
|
|
2643
|
|
155
|
2644 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
|
243
|
2645 echo "configure:2646: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
|
2646
|
|
|
2647 cat > conftest.$ac_ext <<EOF
|
|
|
2648 #line 2649 "configure"
|
|
155
|
2649 #include "confdefs.h"
|
|
|
2650 #include <sys/types.h>
|
|
|
2651 #include <sys/wait.h>
|
|
|
2652 #ifndef WEXITSTATUS
|
|
|
2653 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|
|
2654 #endif
|
|
|
2655 #ifndef WIFEXITED
|
|
|
2656 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|
|
2657 #endif
|
|
|
2658 int main() {
|
|
|
2659 int s;
|
|
|
2660 wait (&s);
|
|
|
2661 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
|
2662 ; return 0; }
|
|
|
2663 EOF
|
|
243
|
2664 if { (eval echo configure:2665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
155
|
2665 rm -rf conftest*
|
|
|
2666 ac_cv_header_sys_wait_h=yes
|
|
|
2667 else
|
|
|
2668 echo "configure: failed program was:" >&5
|
|
|
2669 cat conftest.$ac_ext >&5
|
|
|
2670 rm -rf conftest*
|
|
|
2671 ac_cv_header_sys_wait_h=no
|
|
|
2672 fi
|
|
|
2673 rm -f conftest*
|
|
|
2674
|
|
|
2675 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
|
2676 if test $ac_cv_header_sys_wait_h = yes; then
|
|
|
2677 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2678 Defining HAVE_SYS_WAIT_H
|
|
|
2679 EOF
|
|
|
2680 cat >> confdefs.h <<\EOF
|
|
|
2681 #define HAVE_SYS_WAIT_H 1
|
|
|
2682 EOF
|
|
|
2683 }
|
|
|
2684
|
|
|
2685 fi
|
|
|
2686
|
|
149
|
2687 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|
243
|
2688 echo "configure:2689: checking for ANSI C header files" >&5
|
|
|
2689
|
|
|
2690 cat > conftest.$ac_ext <<EOF
|
|
|
2691 #line 2692 "configure"
|
|
0
|
2692 #include "confdefs.h"
|
|
|
2693 #include <stdlib.h>
|
|
|
2694 #include <stdarg.h>
|
|
|
2695 #include <string.h>
|
|
|
2696 #include <float.h>
|
|
|
2697 EOF
|
|
149
|
2698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
2699 { (eval echo configure:2700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
2700 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
2701 if test -z "$ac_err"; then
|
|
|
2702 rm -rf conftest*
|
|
149
|
2703 ac_cv_header_stdc=yes
|
|
|
2704 else
|
|
|
2705 echo "$ac_err" >&5
|
|
|
2706 echo "configure: failed program was:" >&5
|
|
|
2707 cat conftest.$ac_ext >&5
|
|
|
2708 rm -rf conftest*
|
|
|
2709 ac_cv_header_stdc=no
|
|
|
2710 fi
|
|
|
2711 rm -f conftest*
|
|
|
2712
|
|
|
2713 if test $ac_cv_header_stdc = yes; then
|
|
0
|
2714 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
149
|
2715 cat > conftest.$ac_ext <<EOF
|
|
243
|
2716 #line 2717 "configure"
|
|
149
|
2717 #include "confdefs.h"
|
|
|
2718 #include <string.h>
|
|
|
2719 EOF
|
|
|
2720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
2721 egrep "memchr" >/dev/null 2>&1; then
|
|
|
2722 :
|
|
|
2723 else
|
|
|
2724 rm -rf conftest*
|
|
|
2725 ac_cv_header_stdc=no
|
|
|
2726 fi
|
|
|
2727 rm -f conftest*
|
|
|
2728
|
|
|
2729 fi
|
|
|
2730
|
|
|
2731 if test $ac_cv_header_stdc = yes; then
|
|
|
2732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
|
2733 cat > conftest.$ac_ext <<EOF
|
|
243
|
2734 #line 2735 "configure"
|
|
149
|
2735 #include "confdefs.h"
|
|
|
2736 #include <stdlib.h>
|
|
|
2737 EOF
|
|
|
2738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
2739 egrep "free" >/dev/null 2>&1; then
|
|
|
2740 :
|
|
|
2741 else
|
|
|
2742 rm -rf conftest*
|
|
|
2743 ac_cv_header_stdc=no
|
|
|
2744 fi
|
|
|
2745 rm -f conftest*
|
|
|
2746
|
|
|
2747 fi
|
|
|
2748
|
|
|
2749 if test $ac_cv_header_stdc = yes; then
|
|
|
2750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
|
2751 cat > conftest.$ac_ext <<EOF
|
|
243
|
2752 #line 2753 "configure"
|
|
0
|
2753 #include "confdefs.h"
|
|
|
2754 #include <ctype.h>
|
|
|
2755 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
|
2756 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
149
|
2757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
0
|
2758 int main () { int i; for (i = 0; i < 256; i++)
|
|
|
2759 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
|
2760 exit (0); }
|
|
|
2761
|
|
|
2762 EOF
|
|
243
|
2763 if { (eval echo configure:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
2764 then
|
|
|
2765 :
|
|
|
2766 else
|
|
|
2767 echo "configure: failed program was:" >&5
|
|
|
2768 cat conftest.$ac_ext >&5
|
|
|
2769 rm -fr conftest*
|
|
|
2770 ac_cv_header_stdc=no
|
|
0
|
2771 fi
|
|
|
2772 rm -fr conftest*
|
|
149
|
2773 fi
|
|
|
2774
|
|
|
2775 echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
|
2776 if test $ac_cv_header_stdc = yes; then
|
|
|
2777 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2778 Defining STDC_HEADERS
|
|
|
2779 EOF
|
|
|
2780 cat >> confdefs.h <<\EOF
|
|
|
2781 #define STDC_HEADERS 1
|
|
|
2782 EOF
|
|
|
2783 }
|
|
|
2784
|
|
|
2785 fi
|
|
|
2786
|
|
|
2787 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
|
243
|
2788 echo "configure:2789: checking whether time.h and sys/time.h may both be included" >&5
|
|
|
2789
|
|
|
2790 cat > conftest.$ac_ext <<EOF
|
|
|
2791 #line 2792 "configure"
|
|
0
|
2792 #include "confdefs.h"
|
|
|
2793 #include <sys/types.h>
|
|
|
2794 #include <sys/time.h>
|
|
|
2795 #include <time.h>
|
|
149
|
2796 int main() {
|
|
|
2797 struct tm *tp;
|
|
|
2798 ; return 0; }
|
|
|
2799 EOF
|
|
243
|
2800 if { (eval echo configure:2801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
2801 rm -rf conftest*
|
|
|
2802 ac_cv_header_time=yes
|
|
|
2803 else
|
|
|
2804 echo "configure: failed program was:" >&5
|
|
|
2805 cat conftest.$ac_ext >&5
|
|
|
2806 rm -rf conftest*
|
|
|
2807 ac_cv_header_time=no
|
|
|
2808 fi
|
|
|
2809 rm -f conftest*
|
|
|
2810
|
|
|
2811 echo "$ac_t""$ac_cv_header_time" 1>&6
|
|
|
2812 if test $ac_cv_header_time = yes; then
|
|
|
2813 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2814 Defining TIME_WITH_SYS_TIME
|
|
|
2815 EOF
|
|
|
2816 cat >> confdefs.h <<\EOF
|
|
|
2817 #define TIME_WITH_SYS_TIME 1
|
|
|
2818 EOF
|
|
|
2819 }
|
|
|
2820
|
|
|
2821 fi
|
|
|
2822
|
|
|
2823 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
|
|
243
|
2824 echo "configure:2825: checking for sys_siglist declaration in signal.h or unistd.h" >&5
|
|
|
2825
|
|
|
2826 cat > conftest.$ac_ext <<EOF
|
|
|
2827 #line 2828 "configure"
|
|
149
|
2828 #include "confdefs.h"
|
|
|
2829 #include <sys/types.h>
|
|
0
|
2830 #include <signal.h>
|
|
149
|
2831 /* NetBSD declares sys_siglist in unistd.h. */
|
|
0
|
2832 #ifdef HAVE_UNISTD_H
|
|
|
2833 #include <unistd.h>
|
|
|
2834 #endif
|
|
149
|
2835 int main() {
|
|
|
2836 char *msg = *(sys_siglist + 1);
|
|
|
2837 ; return 0; }
|
|
|
2838 EOF
|
|
243
|
2839 if { (eval echo configure:2840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
2840 rm -rf conftest*
|
|
|
2841 ac_cv_decl_sys_siglist=yes
|
|
|
2842 else
|
|
|
2843 echo "configure: failed program was:" >&5
|
|
|
2844 cat conftest.$ac_ext >&5
|
|
|
2845 rm -rf conftest*
|
|
|
2846 ac_cv_decl_sys_siglist=no
|
|
|
2847 fi
|
|
|
2848 rm -f conftest*
|
|
|
2849
|
|
|
2850 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
|
|
|
2851 if test $ac_cv_decl_sys_siglist = yes; then
|
|
|
2852 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2853 Defining SYS_SIGLIST_DECLARED
|
|
|
2854 EOF
|
|
|
2855 cat >> confdefs.h <<\EOF
|
|
|
2856 #define SYS_SIGLIST_DECLARED 1
|
|
|
2857 EOF
|
|
|
2858 }
|
|
|
2859
|
|
|
2860 fi
|
|
|
2861
|
|
|
2862
|
|
|
2863 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
|
|
243
|
2864 echo "configure:2865: checking for struct utimbuf" >&5
|
|
|
2865 cat > conftest.$ac_ext <<EOF
|
|
|
2866 #line 2867 "configure"
|
|
0
|
2867 #include "confdefs.h"
|
|
|
2868 #ifdef TIME_WITH_SYS_TIME
|
|
|
2869 #include <sys/time.h>
|
|
|
2870 #include <time.h>
|
|
|
2871 #else
|
|
|
2872 #ifdef HAVE_SYS_TIME_H
|
|
|
2873 #include <sys/time.h>
|
|
|
2874 #else
|
|
|
2875 #include <time.h>
|
|
|
2876 #endif
|
|
|
2877 #endif
|
|
|
2878 #ifdef HAVE_UTIME_H
|
|
|
2879 #include <utime.h>
|
|
|
2880 #endif
|
|
149
|
2881 int main() {
|
|
|
2882 static struct utimbuf x; x.actime = x.modtime;
|
|
|
2883 ; return 0; }
|
|
|
2884 EOF
|
|
243
|
2885 if { (eval echo configure:2886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
2886 rm -rf conftest*
|
|
|
2887 echo "$ac_t""yes" 1>&6
|
|
|
2888 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2889 Defining HAVE_STRUCT_UTIMBUF
|
|
|
2890 EOF
|
|
|
2891 cat >> confdefs.h <<\EOF
|
|
|
2892 #define HAVE_STRUCT_UTIMBUF 1
|
|
|
2893 EOF
|
|
|
2894 }
|
|
|
2895
|
|
|
2896 else
|
|
|
2897 echo "configure: failed program was:" >&5
|
|
|
2898 cat conftest.$ac_ext >&5
|
|
|
2899 rm -rf conftest*
|
|
|
2900 echo "$ac_t""no" 1>&6
|
|
|
2901 fi
|
|
|
2902 rm -f conftest*
|
|
|
2903
|
|
|
2904 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
|
243
|
2905 echo "configure:2906: checking return type of signal handlers" >&5
|
|
|
2906
|
|
|
2907 cat > conftest.$ac_ext <<EOF
|
|
|
2908 #line 2909 "configure"
|
|
0
|
2909 #include "confdefs.h"
|
|
|
2910 #include <sys/types.h>
|
|
|
2911 #include <signal.h>
|
|
|
2912 #ifdef signal
|
|
|
2913 #undef signal
|
|
|
2914 #endif
|
|
149
|
2915 #ifdef __cplusplus
|
|
|
2916 extern "C" void (*signal (int, void (*)(int)))(int);
|
|
|
2917 #else
|
|
|
2918 void (*signal ()) ();
|
|
|
2919 #endif
|
|
|
2920
|
|
|
2921 int main() {
|
|
|
2922 int i;
|
|
|
2923 ; return 0; }
|
|
|
2924 EOF
|
|
243
|
2925 if { (eval echo configure:2926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
2926 rm -rf conftest*
|
|
|
2927 ac_cv_type_signal=void
|
|
|
2928 else
|
|
|
2929 echo "configure: failed program was:" >&5
|
|
|
2930 cat conftest.$ac_ext >&5
|
|
|
2931 rm -rf conftest*
|
|
|
2932 ac_cv_type_signal=int
|
|
|
2933 fi
|
|
|
2934 rm -f conftest*
|
|
|
2935
|
|
|
2936 echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
|
2937 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
2938 Defining RETSIGTYPE = $ac_cv_type_signal
|
|
|
2939 EOF
|
|
|
2940 cat >> confdefs.h <<EOF
|
|
|
2941 #define RETSIGTYPE $ac_cv_type_signal
|
|
|
2942 EOF
|
|
|
2943 }
|
|
|
2944
|
|
|
2945
|
|
163
|
2946 echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|
243
|
2947 echo "configure:2948: checking for size_t" >&5
|
|
|
2948
|
|
|
2949 cat > conftest.$ac_ext <<EOF
|
|
|
2950 #line 2951 "configure"
|
|
163
|
2951 #include "confdefs.h"
|
|
|
2952 #include <sys/types.h>
|
|
|
2953 #if STDC_HEADERS
|
|
|
2954 #include <stdlib.h>
|
|
|
2955 #include <stddef.h>
|
|
|
2956 #endif
|
|
|
2957 EOF
|
|
|
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
2959 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
2960 rm -rf conftest*
|
|
|
2961 ac_cv_type_size_t=yes
|
|
|
2962 else
|
|
|
2963 rm -rf conftest*
|
|
|
2964 ac_cv_type_size_t=no
|
|
|
2965 fi
|
|
|
2966 rm -f conftest*
|
|
|
2967
|
|
|
2968 echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
|
2969 if test $ac_cv_type_size_t = no; then
|
|
|
2970 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2971 Defining size_t = unsigned
|
|
|
2972 EOF
|
|
|
2973 cat >> confdefs.h <<\EOF
|
|
|
2974 #define size_t unsigned
|
|
|
2975 EOF
|
|
|
2976 }
|
|
|
2977
|
|
|
2978 fi
|
|
|
2979
|
|
|
2980 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
|
243
|
2981 echo "configure:2982: checking for pid_t" >&5
|
|
|
2982
|
|
|
2983 cat > conftest.$ac_ext <<EOF
|
|
|
2984 #line 2985 "configure"
|
|
163
|
2985 #include "confdefs.h"
|
|
|
2986 #include <sys/types.h>
|
|
|
2987 #if STDC_HEADERS
|
|
|
2988 #include <stdlib.h>
|
|
|
2989 #include <stddef.h>
|
|
|
2990 #endif
|
|
|
2991 EOF
|
|
|
2992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
2993 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
2994 rm -rf conftest*
|
|
|
2995 ac_cv_type_pid_t=yes
|
|
|
2996 else
|
|
|
2997 rm -rf conftest*
|
|
|
2998 ac_cv_type_pid_t=no
|
|
|
2999 fi
|
|
|
3000 rm -f conftest*
|
|
|
3001
|
|
|
3002 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|
|
3003 if test $ac_cv_type_pid_t = no; then
|
|
|
3004 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3005 Defining pid_t = int
|
|
|
3006 EOF
|
|
|
3007 cat >> confdefs.h <<\EOF
|
|
|
3008 #define pid_t int
|
|
|
3009 EOF
|
|
|
3010 }
|
|
|
3011
|
|
|
3012 fi
|
|
|
3013
|
|
|
3014 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
|
|
243
|
3015 echo "configure:3016: checking for uid_t in sys/types.h" >&5
|
|
|
3016
|
|
|
3017 cat > conftest.$ac_ext <<EOF
|
|
|
3018 #line 3019 "configure"
|
|
163
|
3019 #include "confdefs.h"
|
|
|
3020 #include <sys/types.h>
|
|
|
3021 EOF
|
|
|
3022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3023 egrep "uid_t" >/dev/null 2>&1; then
|
|
|
3024 rm -rf conftest*
|
|
|
3025 ac_cv_type_uid_t=yes
|
|
|
3026 else
|
|
|
3027 rm -rf conftest*
|
|
|
3028 ac_cv_type_uid_t=no
|
|
|
3029 fi
|
|
|
3030 rm -f conftest*
|
|
|
3031
|
|
|
3032
|
|
|
3033 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
|
|
|
3034 if test $ac_cv_type_uid_t = no; then
|
|
|
3035 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3036 Defining uid_t = int
|
|
|
3037 EOF
|
|
|
3038 cat >> confdefs.h <<\EOF
|
|
|
3039 #define uid_t int
|
|
|
3040 EOF
|
|
|
3041 }
|
|
|
3042
|
|
|
3043 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3044 Defining gid_t = int
|
|
|
3045 EOF
|
|
|
3046 cat >> confdefs.h <<\EOF
|
|
|
3047 #define gid_t int
|
|
|
3048 EOF
|
|
|
3049 }
|
|
|
3050
|
|
|
3051 fi
|
|
|
3052
|
|
|
3053 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
|
243
|
3054 echo "configure:3055: checking for mode_t" >&5
|
|
|
3055
|
|
|
3056 cat > conftest.$ac_ext <<EOF
|
|
|
3057 #line 3058 "configure"
|
|
163
|
3058 #include "confdefs.h"
|
|
|
3059 #include <sys/types.h>
|
|
|
3060 #if STDC_HEADERS
|
|
|
3061 #include <stdlib.h>
|
|
|
3062 #include <stddef.h>
|
|
|
3063 #endif
|
|
|
3064 EOF
|
|
|
3065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3066 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
3067 rm -rf conftest*
|
|
|
3068 ac_cv_type_mode_t=yes
|
|
|
3069 else
|
|
|
3070 rm -rf conftest*
|
|
|
3071 ac_cv_type_mode_t=no
|
|
|
3072 fi
|
|
|
3073 rm -f conftest*
|
|
|
3074
|
|
|
3075 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
|
|
3076 if test $ac_cv_type_mode_t = no; then
|
|
|
3077 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3078 Defining mode_t = int
|
|
|
3079 EOF
|
|
|
3080 cat >> confdefs.h <<\EOF
|
|
|
3081 #define mode_t int
|
|
|
3082 EOF
|
|
|
3083 }
|
|
|
3084
|
|
|
3085 fi
|
|
|
3086
|
|
|
3087 echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
|
243
|
3088 echo "configure:3089: checking for off_t" >&5
|
|
|
3089
|
|
|
3090 cat > conftest.$ac_ext <<EOF
|
|
|
3091 #line 3092 "configure"
|
|
163
|
3092 #include "confdefs.h"
|
|
|
3093 #include <sys/types.h>
|
|
|
3094 #if STDC_HEADERS
|
|
|
3095 #include <stdlib.h>
|
|
|
3096 #include <stddef.h>
|
|
|
3097 #endif
|
|
|
3098 EOF
|
|
|
3099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3100 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
3101 rm -rf conftest*
|
|
|
3102 ac_cv_type_off_t=yes
|
|
|
3103 else
|
|
|
3104 rm -rf conftest*
|
|
|
3105 ac_cv_type_off_t=no
|
|
|
3106 fi
|
|
|
3107 rm -f conftest*
|
|
|
3108
|
|
|
3109 echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|
|
3110 if test $ac_cv_type_off_t = no; then
|
|
|
3111 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3112 Defining off_t = long
|
|
|
3113 EOF
|
|
|
3114 cat >> confdefs.h <<\EOF
|
|
|
3115 #define off_t long
|
|
|
3116 EOF
|
|
|
3117 }
|
|
|
3118
|
|
|
3119 fi
|
|
|
3120
|
|
149
|
3121
|
|
|
3122 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
|
|
243
|
3123 echo "configure:3124: checking for struct timeval" >&5
|
|
|
3124 cat > conftest.$ac_ext <<EOF
|
|
|
3125 #line 3126 "configure"
|
|
0
|
3126 #include "confdefs.h"
|
|
|
3127 #ifdef TIME_WITH_SYS_TIME
|
|
|
3128 #include <sys/time.h>
|
|
|
3129 #include <time.h>
|
|
|
3130 #else
|
|
|
3131 #ifdef HAVE_SYS_TIME_H
|
|
|
3132 #include <sys/time.h>
|
|
|
3133 #else
|
|
|
3134 #include <time.h>
|
|
|
3135 #endif
|
|
|
3136 #endif
|
|
149
|
3137 int main() {
|
|
|
3138 static struct timeval x; x.tv_sec = x.tv_usec;
|
|
|
3139 ; return 0; }
|
|
|
3140 EOF
|
|
243
|
3141 if { (eval echo configure:3142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3142 rm -rf conftest*
|
|
|
3143 echo "$ac_t""yes" 1>&6
|
|
0
|
3144 HAVE_TIMEVAL=yes
|
|
149
|
3145 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3146 Defining HAVE_TIMEVAL
|
|
|
3147 EOF
|
|
|
3148 cat >> confdefs.h <<\EOF
|
|
|
3149 #define HAVE_TIMEVAL 1
|
|
|
3150 EOF
|
|
|
3151 }
|
|
|
3152
|
|
|
3153 else
|
|
|
3154 echo "configure: failed program was:" >&5
|
|
|
3155 cat conftest.$ac_ext >&5
|
|
|
3156 rm -rf conftest*
|
|
|
3157 echo "$ac_t""no" 1>&6
|
|
|
3158 HAVE_TIMEVAL=no
|
|
|
3159 fi
|
|
|
3160 rm -f conftest*
|
|
|
3161
|
|
|
3162 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
|
243
|
3163 echo "configure:3164: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
|
3164
|
|
|
3165 cat > conftest.$ac_ext <<EOF
|
|
|
3166 #line 3167 "configure"
|
|
0
|
3167 #include "confdefs.h"
|
|
|
3168 #include <sys/types.h>
|
|
|
3169 #include <time.h>
|
|
149
|
3170 int main() {
|
|
|
3171 struct tm *tp; tp->tm_sec;
|
|
|
3172 ; return 0; }
|
|
|
3173 EOF
|
|
243
|
3174 if { (eval echo configure:3175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3175 rm -rf conftest*
|
|
|
3176 ac_cv_struct_tm=time.h
|
|
|
3177 else
|
|
|
3178 echo "configure: failed program was:" >&5
|
|
|
3179 cat conftest.$ac_ext >&5
|
|
|
3180 rm -rf conftest*
|
|
|
3181 ac_cv_struct_tm=sys/time.h
|
|
|
3182 fi
|
|
|
3183 rm -f conftest*
|
|
|
3184
|
|
|
3185 echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|
|
3186 if test $ac_cv_struct_tm = sys/time.h; then
|
|
|
3187 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3188 Defining TM_IN_SYS_TIME
|
|
|
3189 EOF
|
|
|
3190 cat >> confdefs.h <<\EOF
|
|
|
3191 #define TM_IN_SYS_TIME 1
|
|
|
3192 EOF
|
|
|
3193 }
|
|
|
3194
|
|
|
3195 fi
|
|
|
3196
|
|
|
3197 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
|
243
|
3198 echo "configure:3199: checking for tm_zone in struct tm" >&5
|
|
|
3199
|
|
|
3200 cat > conftest.$ac_ext <<EOF
|
|
|
3201 #line 3202 "configure"
|
|
149
|
3202 #include "confdefs.h"
|
|
|
3203 #include <sys/types.h>
|
|
|
3204 #include <$ac_cv_struct_tm>
|
|
|
3205 int main() {
|
|
|
3206 struct tm tm; tm.tm_zone;
|
|
|
3207 ; return 0; }
|
|
|
3208 EOF
|
|
243
|
3209 if { (eval echo configure:3210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3210 rm -rf conftest*
|
|
|
3211 ac_cv_struct_tm_zone=yes
|
|
|
3212 else
|
|
|
3213 echo "configure: failed program was:" >&5
|
|
|
3214 cat conftest.$ac_ext >&5
|
|
|
3215 rm -rf conftest*
|
|
|
3216 ac_cv_struct_tm_zone=no
|
|
|
3217 fi
|
|
|
3218 rm -f conftest*
|
|
|
3219
|
|
|
3220 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
|
|
|
3221 if test "$ac_cv_struct_tm_zone" = yes; then
|
|
|
3222 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3223 Defining HAVE_TM_ZONE
|
|
|
3224 EOF
|
|
|
3225 cat >> confdefs.h <<\EOF
|
|
|
3226 #define HAVE_TM_ZONE 1
|
|
|
3227 EOF
|
|
|
3228 }
|
|
|
3229
|
|
|
3230 else
|
|
|
3231 echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
|
243
|
3232 echo "configure:3233: checking for tzname" >&5
|
|
|
3233
|
|
|
3234 cat > conftest.$ac_ext <<EOF
|
|
|
3235 #line 3236 "configure"
|
|
0
|
3236 #include "confdefs.h"
|
|
|
3237 #include <time.h>
|
|
|
3238 #ifndef tzname /* For SGI. */
|
|
149
|
3239 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
|
0
|
3240 #endif
|
|
149
|
3241 int main() {
|
|
|
3242 atoi(*tzname);
|
|
|
3243 ; return 0; }
|
|
|
3244 EOF
|
|
243
|
3245 if { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
3246 rm -rf conftest*
|
|
|
3247 ac_cv_var_tzname=yes
|
|
|
3248 else
|
|
|
3249 echo "configure: failed program was:" >&5
|
|
|
3250 cat conftest.$ac_ext >&5
|
|
|
3251 rm -rf conftest*
|
|
|
3252 ac_cv_var_tzname=no
|
|
|
3253 fi
|
|
|
3254 rm -f conftest*
|
|
|
3255
|
|
|
3256 echo "$ac_t""$ac_cv_var_tzname" 1>&6
|
|
|
3257 if test $ac_cv_var_tzname = yes; then
|
|
|
3258 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3259 Defining HAVE_TZNAME
|
|
|
3260 EOF
|
|
|
3261 cat >> confdefs.h <<\EOF
|
|
|
3262 #define HAVE_TZNAME 1
|
|
|
3263 EOF
|
|
|
3264 }
|
|
|
3265
|
|
|
3266 fi
|
|
|
3267 fi
|
|
|
3268
|
|
|
3269
|
|
|
3270 echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|
243
|
3271 echo "configure:3272: checking for working const" >&5
|
|
|
3272
|
|
|
3273 cat > conftest.$ac_ext <<EOF
|
|
|
3274 #line 3275 "configure"
|
|
149
|
3275 #include "confdefs.h"
|
|
|
3276
|
|
|
3277 int main() {
|
|
|
3278
|
|
|
3279 /* Ultrix mips cc rejects this. */
|
|
0
|
3280 typedef int charset[2]; const charset x;
|
|
|
3281 /* SunOS 4.1.1 cc rejects this. */
|
|
|
3282 char const *const *ccp;
|
|
|
3283 char **p;
|
|
149
|
3284 /* NEC SVR4.0.2 mips cc rejects this. */
|
|
|
3285 struct point {int x, y;};
|
|
|
3286 static struct point const zero = {0,0};
|
|
0
|
3287 /* AIX XL C 1.02.0.0 rejects this.
|
|
|
3288 It does not let you subtract one const X* pointer from another in an arm
|
|
|
3289 of an if-expression whose if-part is not a constant expression */
|
|
|
3290 const char *g = "string";
|
|
|
3291 ccp = &g + (g ? g-g : 0);
|
|
|
3292 /* HPUX 7.0 cc rejects these. */
|
|
|
3293 ++ccp;
|
|
|
3294 p = (char**) ccp;
|
|
|
3295 ccp = (char const *const *) p;
|
|
|
3296 { /* SCO 3.2v4 cc rejects this. */
|
|
|
3297 char *t;
|
|
|
3298 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
|
3299
|
|
|
3300 *t++ = 0;
|
|
|
3301 }
|
|
|
3302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
149
|
3303 int x[] = {25, 17};
|
|
0
|
3304 const int *foo = &x[0];
|
|
|
3305 ++foo;
|
|
|
3306 }
|
|
|
3307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
|
3308 typedef const int *iptr;
|
|
|
3309 iptr p = 0;
|
|
|
3310 ++p;
|
|
|
3311 }
|
|
|
3312 { /* AIX XL C 1.02.0.0 rejects this saying
|
|
|
3313 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
|
3314 struct s { int j; const int *ap[3]; };
|
|
|
3315 struct s *b; b->j = 5;
|
|
|
3316 }
|
|
|
3317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
|
3318 const int foo = 10;
|
|
149
|
3319 }
|
|
|
3320
|
|
|
3321 ; return 0; }
|
|
|
3322 EOF
|
|
243
|
3323 if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3324 rm -rf conftest*
|
|
|
3325 ac_cv_c_const=yes
|
|
|
3326 else
|
|
|
3327 echo "configure: failed program was:" >&5
|
|
|
3328 cat conftest.$ac_ext >&5
|
|
|
3329 rm -rf conftest*
|
|
|
3330 ac_cv_c_const=no
|
|
|
3331 fi
|
|
|
3332 rm -f conftest*
|
|
|
3333
|
|
|
3334 echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
|
3335 if test $ac_cv_c_const = no; then
|
|
|
3336 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3337 Defining const =
|
|
|
3338 EOF
|
|
|
3339 cat >> confdefs.h <<\EOF
|
|
|
3340 #define const
|
|
|
3341 EOF
|
|
|
3342 }
|
|
|
3343
|
|
|
3344 fi
|
|
|
3345
|
|
|
3346
|
|
|
3347 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|
243
|
3348 echo "configure:3349: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|
149
|
3349 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
|
3350
|
|
|
3351 cat > conftestmake <<\EOF
|
|
0
|
3352 all:
|
|
|
3353 @echo 'ac_maketemp="${MAKE}"'
|
|
|
3354 EOF
|
|
|
3355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
|
3356 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|
149
|
3357 if test -n "$ac_maketemp"; then
|
|
|
3358 eval ac_cv_prog_make_${ac_make}_set=yes
|
|
|
3359 else
|
|
|
3360 eval ac_cv_prog_make_${ac_make}_set=no
|
|
|
3361 fi
|
|
0
|
3362 rm -f conftestmake
|
|
149
|
3363 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
|
3364 echo "$ac_t""yes" 1>&6
|
|
|
3365 SET_MAKE=
|
|
|
3366 else
|
|
|
3367 echo "$ac_t""no" 1>&6
|
|
|
3368 SET_MAKE="MAKE=${MAKE-make}"
|
|
|
3369 fi
|
|
|
3370
|
|
|
3371
|
|
|
3372 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
|
243
|
3373 echo "configure:3374: checking whether byte ordering is bigendian" >&5
|
|
149
|
3374
|
|
|
3375 ac_cv_c_bigendian=unknown
|
|
|
3376 # See if sys/param.h defines the BYTE_ORDER macro.
|
|
|
3377 cat > conftest.$ac_ext <<EOF
|
|
243
|
3378 #line 3379 "configure"
|
|
149
|
3379 #include "confdefs.h"
|
|
|
3380 #include <sys/types.h>
|
|
|
3381 #include <sys/param.h>
|
|
|
3382 int main() {
|
|
|
3383
|
|
|
3384 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|
|
3385 bogus endian macros
|
|
|
3386 #endif
|
|
|
3387 ; return 0; }
|
|
|
3388 EOF
|
|
243
|
3389 if { (eval echo configure:3390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3390 rm -rf conftest*
|
|
|
3391 # It does; now see whether it defined to BIG_ENDIAN or not.
|
|
|
3392 cat > conftest.$ac_ext <<EOF
|
|
243
|
3393 #line 3394 "configure"
|
|
149
|
3394 #include "confdefs.h"
|
|
|
3395 #include <sys/types.h>
|
|
|
3396 #include <sys/param.h>
|
|
|
3397 int main() {
|
|
|
3398
|
|
|
3399 #if BYTE_ORDER != BIG_ENDIAN
|
|
|
3400 not big endian
|
|
|
3401 #endif
|
|
|
3402 ; return 0; }
|
|
|
3403 EOF
|
|
243
|
3404 if { (eval echo configure:3405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3405 rm -rf conftest*
|
|
|
3406 ac_cv_c_bigendian=yes
|
|
|
3407 else
|
|
|
3408 echo "configure: failed program was:" >&5
|
|
|
3409 cat conftest.$ac_ext >&5
|
|
|
3410 rm -rf conftest*
|
|
|
3411 ac_cv_c_bigendian=no
|
|
|
3412 fi
|
|
|
3413 rm -f conftest*
|
|
|
3414 else
|
|
|
3415 echo "configure: failed program was:" >&5
|
|
|
3416 cat conftest.$ac_ext >&5
|
|
|
3417 fi
|
|
|
3418 rm -f conftest*
|
|
|
3419 if test $ac_cv_c_bigendian = unknown; then
|
|
|
3420 cat > conftest.$ac_ext <<EOF
|
|
243
|
3421 #line 3422 "configure"
|
|
0
|
3422 #include "confdefs.h"
|
|
|
3423 main () {
|
|
|
3424 /* Are we little or big endian? From Harbison&Steele. */
|
|
|
3425 union
|
|
|
3426 {
|
|
|
3427 long l;
|
|
|
3428 char c[sizeof (long)];
|
|
|
3429 } u;
|
|
|
3430 u.l = 1;
|
|
|
3431 exit (u.c[sizeof (long) - 1] == 1);
|
|
|
3432 }
|
|
|
3433 EOF
|
|
243
|
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
3435 then
|
|
|
3436 ac_cv_c_bigendian=no
|
|
|
3437 else
|
|
|
3438 echo "configure: failed program was:" >&5
|
|
|
3439 cat conftest.$ac_ext >&5
|
|
|
3440 rm -fr conftest*
|
|
|
3441 ac_cv_c_bigendian=yes
|
|
0
|
3442 fi
|
|
|
3443 rm -fr conftest*
|
|
149
|
3444 fi
|
|
|
3445
|
|
|
3446 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|
|
3447 if test $ac_cv_c_bigendian = yes; then
|
|
|
3448 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3449 Defining WORDS_BIGENDIAN
|
|
|
3450 EOF
|
|
|
3451 cat >> confdefs.h <<\EOF
|
|
|
3452 #define WORDS_BIGENDIAN 1
|
|
|
3453 EOF
|
|
|
3454 }
|
|
|
3455
|
|
|
3456 fi
|
|
|
3457
|
|
|
3458
|
|
151
|
3459 echo $ac_n "checking size of short""... $ac_c" 1>&6
|
|
243
|
3460 echo "configure:3461: checking size of short" >&5
|
|
|
3461
|
|
|
3462 cat > conftest.$ac_ext <<EOF
|
|
|
3463 #line 3464 "configure"
|
|
151
|
3464 #include "confdefs.h"
|
|
|
3465 #include <stdio.h>
|
|
|
3466 main()
|
|
|
3467 {
|
|
|
3468 FILE *f=fopen("conftestval", "w");
|
|
|
3469 if (!f) exit(1);
|
|
|
3470 fprintf(f, "%d\n", sizeof(short));
|
|
|
3471 exit(0);
|
|
|
3472 }
|
|
|
3473 EOF
|
|
243
|
3474 if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
151
|
3475 then
|
|
|
3476 ac_cv_sizeof_short=`cat conftestval`
|
|
|
3477 else
|
|
|
3478 echo "configure: failed program was:" >&5
|
|
|
3479 cat conftest.$ac_ext >&5
|
|
|
3480 rm -fr conftest*
|
|
|
3481 ac_cv_sizeof_short=0
|
|
|
3482 fi
|
|
|
3483 rm -fr conftest*
|
|
|
3484 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|
|
3485 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3486 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
|
|
|
3487 EOF
|
|
|
3488 cat >> confdefs.h <<EOF
|
|
|
3489 #define SIZEOF_SHORT $ac_cv_sizeof_short
|
|
|
3490 EOF
|
|
|
3491 }
|
|
|
3492
|
|
|
3493
|
|
163
|
3494 if test "$ac_cv_sizeof_short" = 0; then
|
|
|
3495 echo ""
|
|
|
3496 echo "*** PANIC *** Configure tests are not working - compiler is broken."
|
|
|
3497 echo "*** PANIC *** Please examine config.log for compilation errors."
|
|
|
3498 exit 1
|
|
|
3499 fi
|
|
151
|
3500 echo $ac_n "checking size of int""... $ac_c" 1>&6
|
|
243
|
3501 echo "configure:3502: checking size of int" >&5
|
|
|
3502
|
|
|
3503 cat > conftest.$ac_ext <<EOF
|
|
|
3504 #line 3505 "configure"
|
|
151
|
3505 #include "confdefs.h"
|
|
|
3506 #include <stdio.h>
|
|
|
3507 main()
|
|
|
3508 {
|
|
|
3509 FILE *f=fopen("conftestval", "w");
|
|
|
3510 if (!f) exit(1);
|
|
|
3511 fprintf(f, "%d\n", sizeof(int));
|
|
|
3512 exit(0);
|
|
|
3513 }
|
|
|
3514 EOF
|
|
243
|
3515 if { (eval echo configure:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
151
|
3516 then
|
|
|
3517 ac_cv_sizeof_int=`cat conftestval`
|
|
|
3518 else
|
|
|
3519 echo "configure: failed program was:" >&5
|
|
|
3520 cat conftest.$ac_ext >&5
|
|
|
3521 rm -fr conftest*
|
|
|
3522 ac_cv_sizeof_int=0
|
|
|
3523 fi
|
|
|
3524 rm -fr conftest*
|
|
|
3525 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
|
3526 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3527 Defining SIZEOF_INT = $ac_cv_sizeof_int
|
|
|
3528 EOF
|
|
|
3529 cat >> confdefs.h <<EOF
|
|
|
3530 #define SIZEOF_INT $ac_cv_sizeof_int
|
|
|
3531 EOF
|
|
|
3532 }
|
|
|
3533
|
|
|
3534
|
|
|
3535 echo $ac_n "checking size of long""... $ac_c" 1>&6
|
|
243
|
3536 echo "configure:3537: checking size of long" >&5
|
|
|
3537
|
|
|
3538 cat > conftest.$ac_ext <<EOF
|
|
|
3539 #line 3540 "configure"
|
|
151
|
3540 #include "confdefs.h"
|
|
|
3541 #include <stdio.h>
|
|
|
3542 main()
|
|
|
3543 {
|
|
|
3544 FILE *f=fopen("conftestval", "w");
|
|
|
3545 if (!f) exit(1);
|
|
|
3546 fprintf(f, "%d\n", sizeof(long));
|
|
|
3547 exit(0);
|
|
|
3548 }
|
|
|
3549 EOF
|
|
243
|
3550 if { (eval echo configure:3551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
151
|
3551 then
|
|
|
3552 ac_cv_sizeof_long=`cat conftestval`
|
|
|
3553 else
|
|
|
3554 echo "configure: failed program was:" >&5
|
|
|
3555 cat conftest.$ac_ext >&5
|
|
|
3556 rm -fr conftest*
|
|
|
3557 ac_cv_sizeof_long=0
|
|
|
3558 fi
|
|
|
3559 rm -fr conftest*
|
|
|
3560 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|
|
3561 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3562 Defining SIZEOF_LONG = $ac_cv_sizeof_long
|
|
|
3563 EOF
|
|
|
3564 cat >> confdefs.h <<EOF
|
|
|
3565 #define SIZEOF_LONG $ac_cv_sizeof_long
|
|
|
3566 EOF
|
|
|
3567 }
|
|
|
3568
|
|
|
3569
|
|
163
|
3570 echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
|
243
|
3571 echo "configure:3572: checking size of long long" >&5
|
|
|
3572
|
|
|
3573 cat > conftest.$ac_ext <<EOF
|
|
|
3574 #line 3575 "configure"
|
|
163
|
3575 #include "confdefs.h"
|
|
|
3576 #include <stdio.h>
|
|
|
3577 main()
|
|
|
3578 {
|
|
|
3579 FILE *f=fopen("conftestval", "w");
|
|
|
3580 if (!f) exit(1);
|
|
|
3581 fprintf(f, "%d\n", sizeof(long long));
|
|
|
3582 exit(0);
|
|
|
3583 }
|
|
|
3584 EOF
|
|
243
|
3585 if { (eval echo configure:3586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
163
|
3586 then
|
|
|
3587 ac_cv_sizeof_long_long=`cat conftestval`
|
|
|
3588 else
|
|
|
3589 echo "configure: failed program was:" >&5
|
|
|
3590 cat conftest.$ac_ext >&5
|
|
|
3591 rm -fr conftest*
|
|
|
3592 ac_cv_sizeof_long_long=0
|
|
|
3593 fi
|
|
|
3594 rm -fr conftest*
|
|
|
3595 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
|
|
3596 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3597 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
|
|
|
3598 EOF
|
|
|
3599 cat >> confdefs.h <<EOF
|
|
|
3600 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|
|
3601 EOF
|
|
|
3602 }
|
|
|
3603
|
|
|
3604
|
|
|
3605 echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
|
243
|
3606 echo "configure:3607: checking size of void *" >&5
|
|
|
3607
|
|
|
3608 cat > conftest.$ac_ext <<EOF
|
|
|
3609 #line 3610 "configure"
|
|
163
|
3610 #include "confdefs.h"
|
|
|
3611 #include <stdio.h>
|
|
|
3612 main()
|
|
|
3613 {
|
|
|
3614 FILE *f=fopen("conftestval", "w");
|
|
|
3615 if (!f) exit(1);
|
|
|
3616 fprintf(f, "%d\n", sizeof(void *));
|
|
|
3617 exit(0);
|
|
|
3618 }
|
|
|
3619 EOF
|
|
243
|
3620 if { (eval echo configure:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
163
|
3621 then
|
|
|
3622 ac_cv_sizeof_void_p=`cat conftestval`
|
|
|
3623 else
|
|
|
3624 echo "configure: failed program was:" >&5
|
|
|
3625 cat conftest.$ac_ext >&5
|
|
|
3626 rm -fr conftest*
|
|
|
3627 ac_cv_sizeof_void_p=0
|
|
|
3628 fi
|
|
|
3629 rm -fr conftest*
|
|
|
3630 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
|
|
3631 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3632 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
|
|
|
3633 EOF
|
|
|
3634 cat >> confdefs.h <<EOF
|
|
|
3635 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
|
3636 EOF
|
|
|
3637 }
|
|
|
3638
|
|
|
3639
|
|
151
|
3640
|
|
149
|
3641 echo $ac_n "checking for long file names""... $ac_c" 1>&6
|
|
243
|
3642 echo "configure:3643: checking for long file names" >&5
|
|
149
|
3643
|
|
|
3644 ac_cv_sys_long_file_names=yes
|
|
0
|
3645 # Test for long file names in all the places we know might matter:
|
|
|
3646 # . the current directory, where building will happen
|
|
149
|
3647 # $prefix/lib where we will be installing things
|
|
|
3648 # $exec_prefix/lib likewise
|
|
|
3649 # eval it to expand exec_prefix.
|
|
|
3650 # $TMPDIR if set, where it might want to write temporary files
|
|
|
3651 # if $TMPDIR is not set:
|
|
0
|
3652 # /tmp where it might want to write temporary files
|
|
|
3653 # /var/tmp likewise
|
|
|
3654 # /usr/tmp likewise
|
|
149
|
3655 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
|
|
|
3656 ac_tmpdirs="$TMPDIR"
|
|
|
3657 else
|
|
|
3658 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
|
|
|
3659 fi
|
|
|
3660 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
|
|
0
|
3661 test -d $ac_dir || continue
|
|
149
|
3662 test -w $ac_dir || continue # It is less confusing to not echo anything here.
|
|
0
|
3663 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
|
|
|
3664 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
|
|
|
3665 val=`cat $ac_dir/conftest9012345 2>/dev/null`
|
|
149
|
3666 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
|
|
|
3667 ac_cv_sys_long_file_names=no
|
|
|
3668 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
|
3669 break
|
|
0
|
3670 fi
|
|
149
|
3671 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
|
3672 done
|
|
|
3673
|
|
|
3674 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
|
|
|
3675 if test $ac_cv_sys_long_file_names = yes; then
|
|
|
3676 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3677 Defining HAVE_LONG_FILE_NAMES
|
|
|
3678 EOF
|
|
|
3679 cat >> confdefs.h <<\EOF
|
|
|
3680 #define HAVE_LONG_FILE_NAMES 1
|
|
|
3681 EOF
|
|
|
3682 }
|
|
|
3683
|
|
|
3684 fi
|
|
|
3685
|
|
|
3686
|
|
|
3687
|
|
207
|
3688 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
|
243
|
3689 echo "configure:3690: checking for sin in -lm" >&5
|
|
207
|
3690 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
|
149
|
3691
|
|
|
3692 xe_check_libs=" -lm "
|
|
|
3693 cat > conftest.$ac_ext <<EOF
|
|
243
|
3694 #line 3695 "configure"
|
|
149
|
3695 #include "confdefs.h"
|
|
|
3696 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
3697 /* We use char because int might match the return type of a gcc2
|
|
|
3698 builtin and then its argument prototype would still apply. */
|
|
207
|
3699 char sin();
|
|
149
|
3700
|
|
|
3701 int main() {
|
|
207
|
3702 sin()
|
|
149
|
3703 ; return 0; }
|
|
|
3704 EOF
|
|
243
|
3705 if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
3706 rm -rf conftest*
|
|
|
3707 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
3708 else
|
|
|
3709 echo "configure: failed program was:" >&5
|
|
|
3710 cat conftest.$ac_ext >&5
|
|
|
3711 rm -rf conftest*
|
|
|
3712 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
3713 fi
|
|
|
3714 rm -f conftest*
|
|
|
3715 xe_check_libs=""
|
|
|
3716
|
|
151
|
3717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
3718 echo "$ac_t""yes" 1>&6
|
|
|
3719 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
3720 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
3721 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3722 Defining $ac_tr_lib
|
|
|
3723 EOF
|
|
|
3724 cat >> confdefs.h <<EOF
|
|
|
3725 #define $ac_tr_lib 1
|
|
|
3726 EOF
|
|
|
3727 }
|
|
|
3728
|
|
151
|
3729 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
|
|
|
3730
|
|
|
3731 else
|
|
|
3732 echo "$ac_t""no" 1>&6
|
|
|
3733 fi
|
|
|
3734
|
|
|
3735
|
|
|
3736
|
|
|
3737 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3738 Defining LISP_FLOAT_TYPE
|
|
|
3739 EOF
|
|
|
3740 cat >> confdefs.h <<\EOF
|
|
|
3741 #define LISP_FLOAT_TYPE 1
|
|
|
3742 EOF
|
|
|
3743 }
|
|
149
|
3744
|
|
|
3745
|
|
243
|
3746 cat > conftest.$ac_ext <<EOF
|
|
|
3747 #line 3748 "configure"
|
|
|
3748 #include "confdefs.h"
|
|
|
3749 #include <math.h>
|
|
|
3750 int main() {
|
|
|
3751 return atanh(1.0) + asinh(1.0) + acosh(1.0);
|
|
|
3752 ; return 0; }
|
|
|
3753 EOF
|
|
|
3754 if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
|
3755 rm -rf conftest*
|
|
|
3756 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3757 Defining HAVE_INVERSE_HYPERBOLIC
|
|
|
3758 EOF
|
|
|
3759 cat >> confdefs.h <<\EOF
|
|
|
3760 #define HAVE_INVERSE_HYPERBOLIC 1
|
|
|
3761 EOF
|
|
|
3762 }
|
|
|
3763
|
|
|
3764 else
|
|
|
3765 echo "configure: failed program was:" >&5
|
|
|
3766 cat conftest.$ac_ext >&5
|
|
|
3767 fi
|
|
|
3768 rm -f conftest*
|
|
|
3769
|
|
149
|
3770 echo "checking type of mail spool file locking" 1>&6
|
|
243
|
3771 echo "configure:3772: checking type of mail spool file locking" >&5
|
|
149
|
3772 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
|
|
|
3773 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
|
|
|
3774 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3775 Defining REAL_MAIL_USE_LOCKF
|
|
|
3776 EOF
|
|
|
3777 cat >> confdefs.h <<\EOF
|
|
|
3778 #define REAL_MAIL_USE_LOCKF 1
|
|
|
3779 EOF
|
|
|
3780 }
|
|
|
3781
|
|
|
3782 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3783 Defining REAL_MAIL_USE_FLOCK
|
|
|
3784 EOF
|
|
|
3785 cat >> confdefs.h <<\EOF
|
|
|
3786 #define REAL_MAIL_USE_FLOCK 1
|
|
|
3787 EOF
|
|
|
3788 }
|
|
|
3789
|
|
157
|
3790 else mail_locking="dot-locking"
|
|
149
|
3791 fi
|
|
|
3792
|
|
151
|
3793
|
|
|
3794 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
|
|
243
|
3795 echo "configure:3796: checking for kstat_open in -lkstat" >&5
|
|
151
|
3796 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
|
|
|
3797
|
|
|
3798 xe_check_libs=" -lkstat "
|
|
|
3799 cat > conftest.$ac_ext <<EOF
|
|
243
|
3800 #line 3801 "configure"
|
|
151
|
3801 #include "confdefs.h"
|
|
|
3802 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
3803 /* We use char because int might match the return type of a gcc2
|
|
|
3804 builtin and then its argument prototype would still apply. */
|
|
|
3805 char kstat_open();
|
|
|
3806
|
|
|
3807 int main() {
|
|
|
3808 kstat_open()
|
|
|
3809 ; return 0; }
|
|
|
3810 EOF
|
|
243
|
3811 if { (eval echo configure:3812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
3812 rm -rf conftest*
|
|
|
3813 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
3814 else
|
|
|
3815 echo "configure: failed program was:" >&5
|
|
|
3816 cat conftest.$ac_ext >&5
|
|
|
3817 rm -rf conftest*
|
|
|
3818 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
3819 fi
|
|
|
3820 rm -f conftest*
|
|
|
3821 xe_check_libs=""
|
|
|
3822
|
|
|
3823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
3824 echo "$ac_t""yes" 1>&6
|
|
|
3825 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
3826 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
3827 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3828 Defining $ac_tr_lib
|
|
|
3829 EOF
|
|
|
3830 cat >> confdefs.h <<EOF
|
|
|
3831 #define $ac_tr_lib 1
|
|
|
3832 EOF
|
|
|
3833 }
|
|
|
3834
|
|
|
3835 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
|
|
|
3836
|
|
|
3837 else
|
|
|
3838 echo "$ac_t""no" 1>&6
|
|
|
3839 fi
|
|
|
3840
|
|
|
3841
|
|
|
3842
|
|
|
3843
|
|
|
3844 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
|
|
243
|
3845 echo "configure:3846: checking for kvm_read in -lkvm" >&5
|
|
151
|
3846 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
|
|
|
3847
|
|
|
3848 xe_check_libs=" -lkvm "
|
|
|
3849 cat > conftest.$ac_ext <<EOF
|
|
243
|
3850 #line 3851 "configure"
|
|
151
|
3851 #include "confdefs.h"
|
|
|
3852 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
3853 /* We use char because int might match the return type of a gcc2
|
|
|
3854 builtin and then its argument prototype would still apply. */
|
|
|
3855 char kvm_read();
|
|
|
3856
|
|
|
3857 int main() {
|
|
|
3858 kvm_read()
|
|
|
3859 ; return 0; }
|
|
|
3860 EOF
|
|
243
|
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
3862 rm -rf conftest*
|
|
|
3863 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
3864 else
|
|
|
3865 echo "configure: failed program was:" >&5
|
|
|
3866 cat conftest.$ac_ext >&5
|
|
|
3867 rm -rf conftest*
|
|
|
3868 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
3869 fi
|
|
|
3870 rm -f conftest*
|
|
|
3871 xe_check_libs=""
|
|
|
3872
|
|
|
3873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
3874 echo "$ac_t""yes" 1>&6
|
|
|
3875 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
3876 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
3877 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3878 Defining $ac_tr_lib
|
|
|
3879 EOF
|
|
|
3880 cat >> confdefs.h <<EOF
|
|
|
3881 #define $ac_tr_lib 1
|
|
|
3882 EOF
|
|
|
3883 }
|
|
|
3884
|
|
|
3885 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
|
|
|
3886
|
|
|
3887 else
|
|
|
3888 echo "$ac_t""no" 1>&6
|
|
|
3889 fi
|
|
|
3890
|
|
|
3891
|
|
|
3892
|
|
|
3893
|
|
|
3894 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
|
|
243
|
3895 echo "configure:3896: checking for cma_open in -lpthreads" >&5
|
|
151
|
3896 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
|
|
|
3897
|
|
|
3898 xe_check_libs=" -lpthreads "
|
|
|
3899 cat > conftest.$ac_ext <<EOF
|
|
243
|
3900 #line 3901 "configure"
|
|
151
|
3901 #include "confdefs.h"
|
|
|
3902 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
3903 /* We use char because int might match the return type of a gcc2
|
|
|
3904 builtin and then its argument prototype would still apply. */
|
|
|
3905 char cma_open();
|
|
|
3906
|
|
|
3907 int main() {
|
|
|
3908 cma_open()
|
|
|
3909 ; return 0; }
|
|
|
3910 EOF
|
|
243
|
3911 if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
3912 rm -rf conftest*
|
|
|
3913 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
3914 else
|
|
|
3915 echo "configure: failed program was:" >&5
|
|
|
3916 cat conftest.$ac_ext >&5
|
|
|
3917 rm -rf conftest*
|
|
|
3918 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
3919 fi
|
|
|
3920 rm -f conftest*
|
|
|
3921 xe_check_libs=""
|
|
|
3922
|
|
|
3923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
3924 echo "$ac_t""yes" 1>&6
|
|
|
3925 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
3926 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
3927 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3928 Defining $ac_tr_lib
|
|
|
3929 EOF
|
|
|
3930 cat >> confdefs.h <<EOF
|
|
|
3931 #define $ac_tr_lib 1
|
|
|
3932 EOF
|
|
|
3933 }
|
|
|
3934
|
|
|
3935 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
|
|
|
3936
|
|
|
3937 else
|
|
|
3938 echo "$ac_t""no" 1>&6
|
|
|
3939 fi
|
|
|
3940
|
|
|
3941
|
|
|
3942 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
|
|
|
3943 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
|
|
|
3944 fi
|
|
|
3945
|
|
|
3946 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
|
|
243
|
3947 echo "configure:3948: checking whether the -xildoff compiler flag is required" >&5
|
|
151
|
3948 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
|
3949 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
|
|
|
3950 then echo "$ac_t""no" 1>&6;
|
|
|
3951 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
|
|
|
3952 fi
|
|
|
3953 else echo "$ac_t""no" 1>&6
|
|
|
3954 fi
|
|
|
3955
|
|
165
|
3956 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
|
|
155
|
3957 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
|
|
243
|
3958 echo "configure:3959: checking for \"-z ignore\" linker flag" >&5
|
|
155
|
3959 case "`ld -h 2>&1`" in
|
|
|
3960 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
|
|
|
3961 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
|
|
|
3962 *) echo "$ac_t""no" 1>&6 ;;
|
|
163
|
3963 esac
|
|
|
3964 fi
|
|
155
|
3965
|
|
149
|
3966
|
|
|
3967 echo "checking "for specified window system"" 1>&6
|
|
243
|
3968 echo "configure:3969: checking "for specified window system"" >&5
|
|
149
|
3969
|
|
187
|
3970 if test "$with_x11" != "no"; then
|
|
|
3971 test "$x_includes $x_libraries" != "NONE NONE" && \
|
|
|
3972 window_system=x11 with_x11=yes
|
|
|
3973
|
|
|
3974 if test "$x_includes $x_libraries" = "NONE NONE"; then
|
|
|
3975 if test -n "$OPENWINHOME" \
|
|
|
3976 -a "$OPENWINHOME" != "/usr/openwin" \
|
|
|
3977 -a -d "$OPENWINHOME"; then
|
|
|
3978 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
|
|
|
3979 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
|
|
|
3980 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
|
|
|
3981 else
|
|
|
3982 for dir in "/usr/X11R6/include" "/usr/include/X11R6"; do
|
|
|
3983 if test -d "$dir/X11"; then x_includes="$dir"; break; fi
|
|
|
3984 done
|
|
|
3985 if test "$x_includes" != "NONE"; then
|
|
|
3986 for dir in "/usr/X11R6/lib" "/usr/lib/X11R6"; do
|
|
|
3987 if test -d "$dir"; then x_libraries="$dir"; break; fi
|
|
|
3988 done
|
|
|
3989 fi
|
|
|
3990 fi
|
|
149
|
3991 fi
|
|
187
|
3992
|
|
149
|
3993 # If we find X, set shell vars x_includes and x_libraries to the
|
|
|
3994 # paths, otherwise set no_x=yes.
|
|
|
3995 # Uses ac_ vars as temps to allow command line to override cache and checks.
|
|
|
3996 # --without-x overrides everything else, but does not touch the cache.
|
|
|
3997 echo $ac_n "checking for X""... $ac_c" 1>&6
|
|
243
|
3998 echo "configure:3999: checking for X" >&5
|
|
149
|
3999
|
|
|
4000 # Check whether --with-x or --without-x was given.
|
|
|
4001 if test "${with_x+set}" = set; then
|
|
|
4002 withval="$with_x"
|
|
|
4003 :
|
|
|
4004 fi
|
|
|
4005
|
|
|
4006 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|
|
4007 if test "x$with_x" = xno; then
|
|
|
4008 # The user explicitly disabled X.
|
|
|
4009 have_x=disabled
|
|
|
4010 else
|
|
|
4011 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
|
|
4012 # Both variables are already set.
|
|
|
4013 have_x=yes
|
|
|
4014 else
|
|
|
4015
|
|
|
4016 # One or both of the vars are not set, and there is no cached value.
|
|
|
4017 ac_x_includes=NO ac_x_libraries=NO
|
|
0
|
4018 rm -fr conftestdir
|
|
|
4019 if mkdir conftestdir; then
|
|
|
4020 cd conftestdir
|
|
|
4021 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
|
4022 cat > Imakefile <<'EOF'
|
|
|
4023 acfindx:
|
|
|
4024 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
|
4025 EOF
|
|
|
4026 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
|
4027 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
149
|
4028 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
|
0
|
4029 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
|
149
|
4030 for ac_extension in a so sl; do
|
|
|
4031 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
|
|
4032 test -f $ac_im_libdir/libX11.$ac_extension; then
|
|
|
4033 ac_im_usrlibdir=$ac_im_libdir; break
|
|
|
4034 fi
|
|
|
4035 done
|
|
|
4036 # Screen out bogus values from the imake configuration. They are
|
|
|
4037 # bogus both because they are the default anyway, and because
|
|
|
4038 # using them would break gcc on systems where it needs fixed includes.
|
|
0
|
4039 case "$ac_im_incroot" in
|
|
|
4040 /usr/include) ;;
|
|
149
|
4041 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
|
0
|
4042 esac
|
|
|
4043 case "$ac_im_usrlibdir" in
|
|
|
4044 /usr/lib | /lib) ;;
|
|
149
|
4045 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
|
0
|
4046 esac
|
|
|
4047 fi
|
|
|
4048 cd ..
|
|
|
4049 rm -fr conftestdir
|
|
|
4050 fi
|
|
|
4051
|
|
149
|
4052 if test "$ac_x_includes" = NO; then
|
|
|
4053 # Guess where to find include files, by looking for this one X11 .h file.
|
|
|
4054 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
|
|
4055
|
|
|
4056 # First, try using that file with no special directory specified.
|
|
|
4057 cat > conftest.$ac_ext <<EOF
|
|
243
|
4058 #line 4059 "configure"
|
|
0
|
4059 #include "confdefs.h"
|
|
|
4060 #include <$x_direct_test_include>
|
|
|
4061 EOF
|
|
149
|
4062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
4063 { (eval echo configure:4064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
4064 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
4065 if test -z "$ac_err"; then
|
|
|
4066 rm -rf conftest*
|
|
149
|
4067 # We can compile using X headers with no special include directory.
|
|
|
4068 ac_x_includes=
|
|
|
4069 else
|
|
|
4070 echo "$ac_err" >&5
|
|
|
4071 echo "configure: failed program was:" >&5
|
|
|
4072 cat conftest.$ac_ext >&5
|
|
|
4073 rm -rf conftest*
|
|
|
4074 # Look for the header file in a standard set of common directories.
|
|
|
4075 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
0
|
4076 for ac_dir in \
|
|
149
|
4077 /usr/X11/include \
|
|
0
|
4078 /usr/X11R6/include \
|
|
|
4079 /usr/X11R5/include \
|
|
|
4080 /usr/X11R4/include \
|
|
|
4081 \
|
|
149
|
4082 /usr/include/X11 \
|
|
0
|
4083 /usr/include/X11R6 \
|
|
|
4084 /usr/include/X11R5 \
|
|
|
4085 /usr/include/X11R4 \
|
|
|
4086 \
|
|
149
|
4087 /usr/local/X11/include \
|
|
0
|
4088 /usr/local/X11R6/include \
|
|
|
4089 /usr/local/X11R5/include \
|
|
|
4090 /usr/local/X11R4/include \
|
|
|
4091 \
|
|
149
|
4092 /usr/local/include/X11 \
|
|
0
|
4093 /usr/local/include/X11R6 \
|
|
|
4094 /usr/local/include/X11R5 \
|
|
|
4095 /usr/local/include/X11R4 \
|
|
|
4096 \
|
|
|
4097 /usr/X386/include \
|
|
|
4098 /usr/x386/include \
|
|
|
4099 /usr/XFree86/include/X11 \
|
|
|
4100 \
|
|
|
4101 /usr/include \
|
|
|
4102 /usr/local/include \
|
|
|
4103 /usr/unsupported/include \
|
|
|
4104 /usr/athena/include \
|
|
|
4105 /usr/local/x11r5/include \
|
|
|
4106 /usr/lpp/Xamples/include \
|
|
|
4107 \
|
|
|
4108 /usr/openwin/include \
|
|
|
4109 /usr/openwin/share/include \
|
|
|
4110 ; \
|
|
|
4111 do
|
|
|
4112 if test -r "$ac_dir/$x_direct_test_include"; then
|
|
149
|
4113 ac_x_includes=$ac_dir
|
|
0
|
4114 break
|
|
|
4115 fi
|
|
|
4116 done
|
|
|
4117 fi
|
|
|
4118 rm -f conftest*
|
|
149
|
4119 fi # $ac_x_includes = NO
|
|
|
4120
|
|
|
4121 if test "$ac_x_libraries" = NO; then
|
|
|
4122 # Check for the libraries.
|
|
|
4123
|
|
|
4124 test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
|
|
4125 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
|
|
4126
|
|
|
4127 # See if we find them without any special options.
|
|
|
4128 # Don't add to $LIBS permanently.
|
|
|
4129 ac_save_LIBS="$LIBS"
|
|
|
4130 LIBS="-l$x_direct_test_library $LIBS"
|
|
|
4131 cat > conftest.$ac_ext <<EOF
|
|
243
|
4132 #line 4133 "configure"
|
|
149
|
4133 #include "confdefs.h"
|
|
|
4134
|
|
|
4135 int main() {
|
|
|
4136 ${x_direct_test_function}()
|
|
|
4137 ; return 0; }
|
|
|
4138 EOF
|
|
243
|
4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4140 rm -rf conftest*
|
|
|
4141 LIBS="$ac_save_LIBS"
|
|
|
4142 # We can link X programs with no special library path.
|
|
|
4143 ac_x_libraries=
|
|
|
4144 else
|
|
|
4145 echo "configure: failed program was:" >&5
|
|
|
4146 cat conftest.$ac_ext >&5
|
|
|
4147 rm -rf conftest*
|
|
|
4148 LIBS="$ac_save_LIBS"
|
|
|
4149 # First see if replacing the include by lib works.
|
|
|
4150 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
|
4151 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
|
|
4152 /usr/X11/lib \
|
|
0
|
4153 /usr/X11R6/lib \
|
|
|
4154 /usr/X11R5/lib \
|
|
|
4155 /usr/X11R4/lib \
|
|
|
4156 \
|
|
149
|
4157 /usr/lib/X11 \
|
|
0
|
4158 /usr/lib/X11R6 \
|
|
|
4159 /usr/lib/X11R5 \
|
|
|
4160 /usr/lib/X11R4 \
|
|
|
4161 \
|
|
149
|
4162 /usr/local/X11/lib \
|
|
0
|
4163 /usr/local/X11R6/lib \
|
|
|
4164 /usr/local/X11R5/lib \
|
|
|
4165 /usr/local/X11R4/lib \
|
|
|
4166 \
|
|
149
|
4167 /usr/local/lib/X11 \
|
|
0
|
4168 /usr/local/lib/X11R6 \
|
|
|
4169 /usr/local/lib/X11R5 \
|
|
|
4170 /usr/local/lib/X11R4 \
|
|
|
4171 \
|
|
|
4172 /usr/X386/lib \
|
|
|
4173 /usr/x386/lib \
|
|
|
4174 /usr/XFree86/lib/X11 \
|
|
|
4175 \
|
|
|
4176 /usr/lib \
|
|
|
4177 /usr/local/lib \
|
|
|
4178 /usr/unsupported/lib \
|
|
|
4179 /usr/athena/lib \
|
|
|
4180 /usr/local/x11r5/lib \
|
|
|
4181 /usr/lpp/Xamples/lib \
|
|
149
|
4182 /lib/usr/lib/X11 \
|
|
0
|
4183 \
|
|
|
4184 /usr/openwin/lib \
|
|
|
4185 /usr/openwin/share/lib \
|
|
|
4186 ; \
|
|
|
4187 do
|
|
|
4188 for ac_extension in a so sl; do
|
|
|
4189 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
|
149
|
4190 ac_x_libraries=$ac_dir
|
|
0
|
4191 break 2
|
|
|
4192 fi
|
|
|
4193 done
|
|
|
4194 done
|
|
|
4195 fi
|
|
149
|
4196 rm -f conftest*
|
|
|
4197 fi # $ac_x_libraries = NO
|
|
|
4198
|
|
|
4199 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
|
|
4200 # Didn't find X anywhere. Cache the known absence of X.
|
|
|
4201 ac_cv_have_x="have_x=no"
|
|
|
4202 else
|
|
|
4203 # Record where we found X for the cache.
|
|
|
4204 ac_cv_have_x="have_x=yes \
|
|
|
4205 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
|
|
4206 fi
|
|
|
4207 fi
|
|
|
4208 eval "$ac_cv_have_x"
|
|
|
4209 fi # $with_x != no
|
|
|
4210
|
|
|
4211 if test "$have_x" != yes; then
|
|
|
4212 echo "$ac_t""$have_x" 1>&6
|
|
|
4213 no_x=yes
|
|
|
4214 else
|
|
|
4215 # If each of the values was on the command line, it overrides each guess.
|
|
|
4216 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
|
|
4217 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
|
|
4218 # Update the cache value to reflect the command line values.
|
|
|
4219 ac_cv_have_x="have_x=yes \
|
|
|
4220 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
|
|
4221 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
|
|
4222 fi
|
|
|
4223
|
|
|
4224 if test "$no_x" = yes; then
|
|
|
4225 # Not all programs may use this symbol, but it does not hurt to define it.
|
|
|
4226 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
4227 Defining X_DISPLAY_MISSING
|
|
|
4228 EOF
|
|
|
4229 cat >> confdefs.h <<\EOF
|
|
|
4230 #define X_DISPLAY_MISSING 1
|
|
|
4231 EOF
|
|
|
4232 }
|
|
|
4233
|
|
|
4234 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
|
|
4235 else
|
|
|
4236 if test -n "$x_includes"; then
|
|
|
4237 X_CFLAGS="$X_CFLAGS -I$x_includes"
|
|
|
4238 fi
|
|
|
4239
|
|
|
4240 # It would also be nice to do this for all -L options, not just this one.
|
|
|
4241 if test -n "$x_libraries"; then
|
|
|
4242 X_LIBS="$X_LIBS -L$x_libraries"
|
|
|
4243 # For Solaris; some versions of Sun CC require a space after -R and
|
|
|
4244 # others require no space. Words are not sufficient . . . .
|
|
|
4245 case "`(uname -sr) 2>/dev/null`" in
|
|
|
4246 "SunOS 5"*)
|
|
|
4247 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
|
243
|
4248 echo "configure:4249: checking whether -R must be followed by a space" >&5
|
|
149
|
4249 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
|
|
4250 cat > conftest.$ac_ext <<EOF
|
|
243
|
4251 #line 4252 "configure"
|
|
|
4252 #include "confdefs.h"
|
|
|
4253
|
|
|
4254 int main() {
|
|
|
4255
|
|
|
4256 ; return 0; }
|
|
|
4257 EOF
|
|
|
4258 if { (eval echo configure:4259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4259 rm -rf conftest*
|
|
|
4260 ac_R_nospace=yes
|
|
|
4261 else
|
|
|
4262 echo "configure: failed program was:" >&5
|
|
|
4263 cat conftest.$ac_ext >&5
|
|
|
4264 rm -rf conftest*
|
|
|
4265 ac_R_nospace=no
|
|
|
4266 fi
|
|
|
4267 rm -f conftest*
|
|
|
4268 if test $ac_R_nospace = yes; then
|
|
|
4269 echo "$ac_t""no" 1>&6
|
|
|
4270 X_LIBS="$X_LIBS -R$x_libraries"
|
|
|
4271 else
|
|
|
4272 LIBS="$ac_xsave_LIBS -R $x_libraries"
|
|
|
4273 cat > conftest.$ac_ext <<EOF
|
|
243
|
4274 #line 4275 "configure"
|
|
|
4275 #include "confdefs.h"
|
|
|
4276
|
|
|
4277 int main() {
|
|
|
4278
|
|
|
4279 ; return 0; }
|
|
|
4280 EOF
|
|
|
4281 if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4282 rm -rf conftest*
|
|
|
4283 ac_R_space=yes
|
|
|
4284 else
|
|
|
4285 echo "configure: failed program was:" >&5
|
|
|
4286 cat conftest.$ac_ext >&5
|
|
|
4287 rm -rf conftest*
|
|
|
4288 ac_R_space=no
|
|
|
4289 fi
|
|
|
4290 rm -f conftest*
|
|
|
4291 if test $ac_R_space = yes; then
|
|
|
4292 echo "$ac_t""yes" 1>&6
|
|
|
4293 X_LIBS="$X_LIBS -R $x_libraries"
|
|
|
4294 else
|
|
|
4295 echo "$ac_t""neither works" 1>&6
|
|
|
4296 fi
|
|
|
4297 fi
|
|
|
4298 LIBS="$ac_xsave_LIBS"
|
|
|
4299 esac
|
|
|
4300 fi
|
|
|
4301
|
|
|
4302 # Check for system-dependent libraries X programs must link with.
|
|
|
4303 # Do this before checking for the system-independent R6 libraries
|
|
|
4304 # (-lICE), since we may need -lsocket or whatever for X linking.
|
|
|
4305
|
|
|
4306 if test "$ISC" = yes; then
|
|
|
4307 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
|
|
4308 else
|
|
|
4309 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
|
|
4310 # libraries were built with DECnet support. And karl@cs.umb.edu says
|
|
|
4311 # the Alpha needs dnet_stub (dnet does not exist).
|
|
151
|
4312 if test "$with_dnet" = "no" ; then
|
|
149
|
4313 ac_cv_lib_dnet_dnet_ntoa=no
|
|
|
4314 else
|
|
|
4315
|
|
|
4316 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
|
243
|
4317 echo "configure:4318: checking for dnet_ntoa in -ldnet" >&5
|
|
149
|
4318 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
|
4319
|
|
|
4320 xe_check_libs=" -ldnet "
|
|
|
4321 cat > conftest.$ac_ext <<EOF
|
|
243
|
4322 #line 4323 "configure"
|
|
149
|
4323 #include "confdefs.h"
|
|
|
4324 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4325 /* We use char because int might match the return type of a gcc2
|
|
|
4326 builtin and then its argument prototype would still apply. */
|
|
|
4327 char dnet_ntoa();
|
|
|
4328
|
|
|
4329 int main() {
|
|
|
4330 dnet_ntoa()
|
|
|
4331 ; return 0; }
|
|
|
4332 EOF
|
|
243
|
4333 if { (eval echo configure:4334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4334 rm -rf conftest*
|
|
|
4335 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4336 else
|
|
|
4337 echo "configure: failed program was:" >&5
|
|
|
4338 cat conftest.$ac_ext >&5
|
|
|
4339 rm -rf conftest*
|
|
|
4340 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4341 fi
|
|
|
4342 rm -f conftest*
|
|
|
4343 xe_check_libs=""
|
|
|
4344
|
|
151
|
4345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4346 echo "$ac_t""yes" 1>&6
|
|
|
4347 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
|
|
4348 else
|
|
|
4349 echo "$ac_t""no" 1>&6
|
|
|
4350 fi
|
|
|
4351
|
|
|
4352 fi
|
|
|
4353
|
|
|
4354 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
|
|
4355
|
|
|
4356 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
|
243
|
4357 echo "configure:4358: checking for dnet_ntoa in -ldnet_stub" >&5
|
|
149
|
4358 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
|
4359
|
|
|
4360 xe_check_libs=" -ldnet_stub "
|
|
|
4361 cat > conftest.$ac_ext <<EOF
|
|
243
|
4362 #line 4363 "configure"
|
|
149
|
4363 #include "confdefs.h"
|
|
|
4364 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4365 /* We use char because int might match the return type of a gcc2
|
|
|
4366 builtin and then its argument prototype would still apply. */
|
|
|
4367 char dnet_ntoa();
|
|
|
4368
|
|
|
4369 int main() {
|
|
|
4370 dnet_ntoa()
|
|
|
4371 ; return 0; }
|
|
|
4372 EOF
|
|
243
|
4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4374 rm -rf conftest*
|
|
|
4375 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4376 else
|
|
|
4377 echo "configure: failed program was:" >&5
|
|
|
4378 cat conftest.$ac_ext >&5
|
|
|
4379 rm -rf conftest*
|
|
|
4380 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4381 fi
|
|
|
4382 rm -f conftest*
|
|
|
4383 xe_check_libs=""
|
|
|
4384
|
|
151
|
4385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4386 echo "$ac_t""yes" 1>&6
|
|
|
4387 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
|
|
4388 else
|
|
|
4389 echo "$ac_t""no" 1>&6
|
|
|
4390 fi
|
|
|
4391
|
|
|
4392
|
|
|
4393 fi
|
|
|
4394
|
|
|
4395 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
|
|
4396 # to get the SysV transport functions.
|
|
|
4397 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
|
|
4398 # needs -lnsl.
|
|
|
4399 # The nsl library prevents programs from opening the X display
|
|
|
4400 # on Irix 5.2, according to dickey@clark.net.
|
|
|
4401 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
|
243
|
4402 echo "configure:4403: checking for gethostbyname" >&5
|
|
|
4403
|
|
|
4404 cat > conftest.$ac_ext <<EOF
|
|
|
4405 #line 4406 "configure"
|
|
149
|
4406 #include "confdefs.h"
|
|
|
4407 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
4408 which can conflict with char gethostbyname(); below. */
|
|
|
4409 #include <assert.h>
|
|
|
4410 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4411 /* We use char because int might match the return type of a gcc2
|
|
|
4412 builtin and then its argument prototype would still apply. */
|
|
|
4413 char gethostbyname();
|
|
|
4414
|
|
|
4415 int main() {
|
|
|
4416
|
|
|
4417 /* The GNU C library defines this for functions which it implements
|
|
|
4418 to always fail with ENOSYS. Some functions are actually named
|
|
|
4419 something starting with __ and the normal name is an alias. */
|
|
|
4420 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
|
|
4421 choke me
|
|
|
4422 #else
|
|
|
4423 gethostbyname();
|
|
|
4424 #endif
|
|
|
4425
|
|
|
4426 ; return 0; }
|
|
|
4427 EOF
|
|
243
|
4428 if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4429 rm -rf conftest*
|
|
|
4430 eval "ac_cv_func_gethostbyname=yes"
|
|
|
4431 else
|
|
|
4432 echo "configure: failed program was:" >&5
|
|
|
4433 cat conftest.$ac_ext >&5
|
|
|
4434 rm -rf conftest*
|
|
|
4435 eval "ac_cv_func_gethostbyname=no"
|
|
|
4436 fi
|
|
|
4437 rm -f conftest*
|
|
|
4438
|
|
|
4439 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
|
|
4440 echo "$ac_t""yes" 1>&6
|
|
|
4441 :
|
|
|
4442 else
|
|
|
4443 echo "$ac_t""no" 1>&6
|
|
|
4444 fi
|
|
|
4445
|
|
|
4446 if test $ac_cv_func_gethostbyname = no; then
|
|
|
4447
|
|
|
4448 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
|
243
|
4449 echo "configure:4450: checking for gethostbyname in -lnsl" >&5
|
|
149
|
4450 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|
|
4451
|
|
|
4452 xe_check_libs=" -lnsl "
|
|
|
4453 cat > conftest.$ac_ext <<EOF
|
|
243
|
4454 #line 4455 "configure"
|
|
149
|
4455 #include "confdefs.h"
|
|
|
4456 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4457 /* We use char because int might match the return type of a gcc2
|
|
|
4458 builtin and then its argument prototype would still apply. */
|
|
|
4459 char gethostbyname();
|
|
|
4460
|
|
|
4461 int main() {
|
|
|
4462 gethostbyname()
|
|
|
4463 ; return 0; }
|
|
|
4464 EOF
|
|
243
|
4465 if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4466 rm -rf conftest*
|
|
|
4467 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4468 else
|
|
|
4469 echo "configure: failed program was:" >&5
|
|
|
4470 cat conftest.$ac_ext >&5
|
|
|
4471 rm -rf conftest*
|
|
|
4472 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4473 fi
|
|
|
4474 rm -f conftest*
|
|
|
4475 xe_check_libs=""
|
|
|
4476
|
|
151
|
4477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4478 echo "$ac_t""yes" 1>&6
|
|
|
4479 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
|
|
4480 else
|
|
|
4481 echo "$ac_t""no" 1>&6
|
|
|
4482 fi
|
|
|
4483
|
|
|
4484
|
|
|
4485 fi
|
|
|
4486
|
|
|
4487 # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
|
|
4488 # socket/setsockopt and other routines are undefined under SCO ODT
|
|
|
4489 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
|
|
4490 # on later versions), says simon@lia.di.epfl.ch: it contains
|
|
|
4491 # gethostby* variants that don't use the nameserver (or something).
|
|
|
4492 # -lsocket must be given before -lnsl if both are needed.
|
|
|
4493 # We assume that if connect needs -lnsl, so does gethostbyname.
|
|
|
4494 echo $ac_n "checking for connect""... $ac_c" 1>&6
|
|
243
|
4495 echo "configure:4496: checking for connect" >&5
|
|
|
4496
|
|
|
4497 cat > conftest.$ac_ext <<EOF
|
|
|
4498 #line 4499 "configure"
|
|
149
|
4499 #include "confdefs.h"
|
|
|
4500 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
4501 which can conflict with char connect(); below. */
|
|
|
4502 #include <assert.h>
|
|
|
4503 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4504 /* We use char because int might match the return type of a gcc2
|
|
|
4505 builtin and then its argument prototype would still apply. */
|
|
|
4506 char connect();
|
|
|
4507
|
|
|
4508 int main() {
|
|
|
4509
|
|
|
4510 /* The GNU C library defines this for functions which it implements
|
|
|
4511 to always fail with ENOSYS. Some functions are actually named
|
|
|
4512 something starting with __ and the normal name is an alias. */
|
|
|
4513 #if defined (__stub_connect) || defined (__stub___connect)
|
|
|
4514 choke me
|
|
|
4515 #else
|
|
|
4516 connect();
|
|
|
4517 #endif
|
|
|
4518
|
|
|
4519 ; return 0; }
|
|
|
4520 EOF
|
|
243
|
4521 if { (eval echo configure:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4522 rm -rf conftest*
|
|
|
4523 eval "ac_cv_func_connect=yes"
|
|
|
4524 else
|
|
|
4525 echo "configure: failed program was:" >&5
|
|
|
4526 cat conftest.$ac_ext >&5
|
|
|
4527 rm -rf conftest*
|
|
|
4528 eval "ac_cv_func_connect=no"
|
|
|
4529 fi
|
|
|
4530 rm -f conftest*
|
|
|
4531
|
|
|
4532 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
|
|
4533 echo "$ac_t""yes" 1>&6
|
|
|
4534 :
|
|
|
4535 else
|
|
|
4536 echo "$ac_t""no" 1>&6
|
|
|
4537 fi
|
|
|
4538
|
|
|
4539 if test $ac_cv_func_connect = no; then
|
|
|
4540
|
|
|
4541 xe_msg_checking="for connect in -lsocket"
|
|
|
4542 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
|
4543 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
243
|
4544 echo "configure:4545: checking "$xe_msg_checking"" >&5
|
|
149
|
4545 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
|
|
4546
|
|
|
4547 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
|
|
|
4548 cat > conftest.$ac_ext <<EOF
|
|
243
|
4549 #line 4550 "configure"
|
|
149
|
4550 #include "confdefs.h"
|
|
|
4551 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4552 /* We use char because int might match the return type of a gcc2
|
|
|
4553 builtin and then its argument prototype would still apply. */
|
|
|
4554 char connect();
|
|
|
4555
|
|
|
4556 int main() {
|
|
|
4557 connect()
|
|
|
4558 ; return 0; }
|
|
|
4559 EOF
|
|
243
|
4560 if { (eval echo configure:4561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4561 rm -rf conftest*
|
|
|
4562 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4563 else
|
|
|
4564 echo "configure: failed program was:" >&5
|
|
|
4565 cat conftest.$ac_ext >&5
|
|
|
4566 rm -rf conftest*
|
|
|
4567 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4568 fi
|
|
|
4569 rm -f conftest*
|
|
|
4570 xe_check_libs=""
|
|
|
4571
|
|
151
|
4572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4573 echo "$ac_t""yes" 1>&6
|
|
|
4574 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
|
|
4575 else
|
|
|
4576 echo "$ac_t""no" 1>&6
|
|
|
4577 fi
|
|
|
4578
|
|
|
4579
|
|
|
4580 fi
|
|
|
4581
|
|
|
4582 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
|
|
4583 echo $ac_n "checking for remove""... $ac_c" 1>&6
|
|
243
|
4584 echo "configure:4585: checking for remove" >&5
|
|
|
4585
|
|
|
4586 cat > conftest.$ac_ext <<EOF
|
|
|
4587 #line 4588 "configure"
|
|
149
|
4588 #include "confdefs.h"
|
|
|
4589 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
4590 which can conflict with char remove(); below. */
|
|
|
4591 #include <assert.h>
|
|
|
4592 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4593 /* We use char because int might match the return type of a gcc2
|
|
|
4594 builtin and then its argument prototype would still apply. */
|
|
|
4595 char remove();
|
|
|
4596
|
|
|
4597 int main() {
|
|
|
4598
|
|
|
4599 /* The GNU C library defines this for functions which it implements
|
|
|
4600 to always fail with ENOSYS. Some functions are actually named
|
|
|
4601 something starting with __ and the normal name is an alias. */
|
|
|
4602 #if defined (__stub_remove) || defined (__stub___remove)
|
|
|
4603 choke me
|
|
|
4604 #else
|
|
|
4605 remove();
|
|
|
4606 #endif
|
|
|
4607
|
|
|
4608 ; return 0; }
|
|
|
4609 EOF
|
|
243
|
4610 if { (eval echo configure:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4611 rm -rf conftest*
|
|
|
4612 eval "ac_cv_func_remove=yes"
|
|
|
4613 else
|
|
|
4614 echo "configure: failed program was:" >&5
|
|
|
4615 cat conftest.$ac_ext >&5
|
|
|
4616 rm -rf conftest*
|
|
|
4617 eval "ac_cv_func_remove=no"
|
|
|
4618 fi
|
|
|
4619 rm -f conftest*
|
|
|
4620
|
|
|
4621 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
|
|
4622 echo "$ac_t""yes" 1>&6
|
|
|
4623 :
|
|
|
4624 else
|
|
|
4625 echo "$ac_t""no" 1>&6
|
|
|
4626 fi
|
|
|
4627
|
|
|
4628 if test $ac_cv_func_remove = no; then
|
|
|
4629
|
|
|
4630 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
|
243
|
4631 echo "configure:4632: checking for remove in -lposix" >&5
|
|
149
|
4632 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
|
|
4633
|
|
|
4634 xe_check_libs=" -lposix "
|
|
|
4635 cat > conftest.$ac_ext <<EOF
|
|
243
|
4636 #line 4637 "configure"
|
|
149
|
4637 #include "confdefs.h"
|
|
|
4638 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4639 /* We use char because int might match the return type of a gcc2
|
|
|
4640 builtin and then its argument prototype would still apply. */
|
|
|
4641 char remove();
|
|
|
4642
|
|
|
4643 int main() {
|
|
|
4644 remove()
|
|
|
4645 ; return 0; }
|
|
|
4646 EOF
|
|
243
|
4647 if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4648 rm -rf conftest*
|
|
|
4649 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4650 else
|
|
|
4651 echo "configure: failed program was:" >&5
|
|
|
4652 cat conftest.$ac_ext >&5
|
|
|
4653 rm -rf conftest*
|
|
|
4654 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4655 fi
|
|
|
4656 rm -f conftest*
|
|
|
4657 xe_check_libs=""
|
|
|
4658
|
|
151
|
4659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4660 echo "$ac_t""yes" 1>&6
|
|
|
4661 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
|
|
4662 else
|
|
|
4663 echo "$ac_t""no" 1>&6
|
|
|
4664 fi
|
|
|
4665
|
|
|
4666
|
|
|
4667 fi
|
|
|
4668
|
|
|
4669 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
|
|
4670 echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
|
243
|
4671 echo "configure:4672: checking for shmat" >&5
|
|
|
4672
|
|
|
4673 cat > conftest.$ac_ext <<EOF
|
|
|
4674 #line 4675 "configure"
|
|
149
|
4675 #include "confdefs.h"
|
|
|
4676 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
4677 which can conflict with char shmat(); below. */
|
|
|
4678 #include <assert.h>
|
|
|
4679 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4680 /* We use char because int might match the return type of a gcc2
|
|
|
4681 builtin and then its argument prototype would still apply. */
|
|
|
4682 char shmat();
|
|
|
4683
|
|
|
4684 int main() {
|
|
|
4685
|
|
|
4686 /* The GNU C library defines this for functions which it implements
|
|
|
4687 to always fail with ENOSYS. Some functions are actually named
|
|
|
4688 something starting with __ and the normal name is an alias. */
|
|
|
4689 #if defined (__stub_shmat) || defined (__stub___shmat)
|
|
|
4690 choke me
|
|
|
4691 #else
|
|
|
4692 shmat();
|
|
|
4693 #endif
|
|
|
4694
|
|
|
4695 ; return 0; }
|
|
|
4696 EOF
|
|
243
|
4697 if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4698 rm -rf conftest*
|
|
|
4699 eval "ac_cv_func_shmat=yes"
|
|
|
4700 else
|
|
|
4701 echo "configure: failed program was:" >&5
|
|
|
4702 cat conftest.$ac_ext >&5
|
|
|
4703 rm -rf conftest*
|
|
|
4704 eval "ac_cv_func_shmat=no"
|
|
|
4705 fi
|
|
|
4706 rm -f conftest*
|
|
|
4707
|
|
|
4708 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
|
|
4709 echo "$ac_t""yes" 1>&6
|
|
|
4710 :
|
|
|
4711 else
|
|
|
4712 echo "$ac_t""no" 1>&6
|
|
|
4713 fi
|
|
|
4714
|
|
|
4715 if test $ac_cv_func_shmat = no; then
|
|
|
4716
|
|
|
4717 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
|
243
|
4718 echo "configure:4719: checking for shmat in -lipc" >&5
|
|
149
|
4719 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
|
|
4720
|
|
|
4721 xe_check_libs=" -lipc "
|
|
|
4722 cat > conftest.$ac_ext <<EOF
|
|
243
|
4723 #line 4724 "configure"
|
|
149
|
4724 #include "confdefs.h"
|
|
|
4725 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4726 /* We use char because int might match the return type of a gcc2
|
|
|
4727 builtin and then its argument prototype would still apply. */
|
|
|
4728 char shmat();
|
|
|
4729
|
|
|
4730 int main() {
|
|
|
4731 shmat()
|
|
|
4732 ; return 0; }
|
|
|
4733 EOF
|
|
243
|
4734 if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4735 rm -rf conftest*
|
|
|
4736 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4737 else
|
|
|
4738 echo "configure: failed program was:" >&5
|
|
|
4739 cat conftest.$ac_ext >&5
|
|
|
4740 rm -rf conftest*
|
|
|
4741 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4742 fi
|
|
|
4743 rm -f conftest*
|
|
|
4744 xe_check_libs=""
|
|
|
4745
|
|
151
|
4746 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4747 echo "$ac_t""yes" 1>&6
|
|
|
4748 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
|
|
4749 else
|
|
|
4750 echo "$ac_t""no" 1>&6
|
|
|
4751 fi
|
|
|
4752
|
|
0
|
4753
|
|
|
4754 fi
|
|
149
|
4755 fi
|
|
|
4756
|
|
|
4757 # Check for libraries that X11R6 Xt/Xaw programs need.
|
|
|
4758 ac_save_LDFLAGS="$LDFLAGS"
|
|
|
4759 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
|
|
4760 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
|
|
4761 # check for ICE first), but we must link in the order -lSM -lICE or
|
|
|
4762 # we get undefined symbols. So assume we have SM if we have ICE.
|
|
|
4763 # These have to be linked with before -lX11, unlike the other
|
|
|
4764 # libraries we check for below, so use a different variable.
|
|
|
4765 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
|
|
4766
|
|
|
4767 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
|
|
243
|
4768 echo "configure:4769: checking for IceConnectionNumber in -lICE" >&5
|
|
149
|
4769 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
|
|
4770
|
|
|
4771 xe_check_libs=" -lICE "
|
|
|
4772 cat > conftest.$ac_ext <<EOF
|
|
243
|
4773 #line 4774 "configure"
|
|
149
|
4774 #include "confdefs.h"
|
|
|
4775 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4776 /* We use char because int might match the return type of a gcc2
|
|
|
4777 builtin and then its argument prototype would still apply. */
|
|
|
4778 char IceConnectionNumber();
|
|
|
4779
|
|
|
4780 int main() {
|
|
|
4781 IceConnectionNumber()
|
|
|
4782 ; return 0; }
|
|
|
4783 EOF
|
|
243
|
4784 if { (eval echo configure:4785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4785 rm -rf conftest*
|
|
|
4786 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4787 else
|
|
|
4788 echo "configure: failed program was:" >&5
|
|
|
4789 cat conftest.$ac_ext >&5
|
|
|
4790 rm -rf conftest*
|
|
|
4791 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4792 fi
|
|
|
4793 rm -f conftest*
|
|
|
4794 xe_check_libs=""
|
|
|
4795
|
|
151
|
4796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4797 echo "$ac_t""yes" 1>&6
|
|
|
4798 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
|
|
4799 else
|
|
|
4800 echo "$ac_t""no" 1>&6
|
|
|
4801 fi
|
|
|
4802
|
|
|
4803
|
|
|
4804 LDFLAGS="$ac_save_LDFLAGS"
|
|
|
4805
|
|
|
4806 fi
|
|
|
4807 # Autoconf claims to find X library and include dirs for us.
|
|
|
4808 if test "$no_x" = "yes"
|
|
|
4809 then with_x11=no window_system=none HAVE_X_WINDOWS=no
|
|
|
4810 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
|
|
|
4811 fi
|
|
|
4812 fi
|
|
|
4813
|
|
|
4814 case "$with_x11" in
|
|
|
4815 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
|
|
|
4816 no ) window_system=none HAVE_X_WINDOWS=no ;;
|
|
0
|
4817 esac
|
|
|
4818
|
|
231
|
4819 if test "$window_system" = "none"; then
|
|
|
4820 echo "checking for MS-Windows" 1>&6
|
|
243
|
4821 echo "configure:4822: checking for MS-Windows" >&5
|
|
231
|
4822
|
|
|
4823 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
|
|
243
|
4824 echo "configure:4825: checking for main in -lgdi32" >&5
|
|
231
|
4825 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
|
|
|
4826
|
|
|
4827 xe_check_libs=" -lgdi32 "
|
|
|
4828 cat > conftest.$ac_ext <<EOF
|
|
243
|
4829 #line 4830 "configure"
|
|
231
|
4830 #include "confdefs.h"
|
|
|
4831
|
|
|
4832 int main() {
|
|
|
4833 main()
|
|
|
4834 ; return 0; }
|
|
|
4835 EOF
|
|
243
|
4836 if { (eval echo configure:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
231
|
4837 rm -rf conftest*
|
|
|
4838 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4839 else
|
|
|
4840 echo "configure: failed program was:" >&5
|
|
|
4841 cat conftest.$ac_ext >&5
|
|
|
4842 rm -rf conftest*
|
|
|
4843 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4844 fi
|
|
|
4845 rm -f conftest*
|
|
|
4846 xe_check_libs=""
|
|
|
4847
|
|
|
4848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
4849 echo "$ac_t""yes" 1>&6
|
|
|
4850 have_msw=yes
|
|
|
4851 else
|
|
|
4852 echo "$ac_t""no" 1>&6
|
|
|
4853 fi
|
|
|
4854
|
|
|
4855
|
|
|
4856 if test "$have_msw" = "yes"; then
|
|
|
4857 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
4858 Defining HAVE_MS_WINDOWS
|
|
|
4859 EOF
|
|
|
4860 cat >> confdefs.h <<\EOF
|
|
|
4861 #define HAVE_MS_WINDOWS 1
|
|
|
4862 EOF
|
|
|
4863 }
|
|
|
4864
|
|
239
|
4865 libs_system="$libs_system -lgdi32 -luser32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lgdi32 -luser32\" to \$libs_system"; fi
|
|
231
|
4866 window_system=msw
|
|
239
|
4867 test "$with_scrollbars" != "no" && with_scrollbars=msw && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
|
4868 echo " xemacs will be linked with \"scrollbar-msw.o\""
|
|
|
4869 fi
|
|
|
4870 test "$with_menubars" != "no" && with_menubars=msw && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
|
4871 echo " xemacs will be linked with \"menubar-msw.o\""
|
|
|
4872 fi
|
|
231
|
4873 with_dialogs=msw
|
|
|
4874 with_toolbars=no
|
|
|
4875 with_tty=no
|
|
239
|
4876 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o msw-proc.o" && if test "$extra_verbose" = "yes"; then
|
|
|
4877 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o msw-proc.o\""
|
|
231
|
4878 fi
|
|
|
4879 fi
|
|
|
4880 fi
|
|
|
4881
|
|
149
|
4882 if test "$with_x11" = "yes"; then
|
|
|
4883 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
4884 Defining HAVE_X_WINDOWS
|
|
|
4885 EOF
|
|
|
4886 cat >> confdefs.h <<\EOF
|
|
|
4887 #define HAVE_X_WINDOWS 1
|
|
|
4888 EOF
|
|
|
4889 }
|
|
|
4890
|
|
151
|
4891 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
|
|
175
|
4892 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
|
|
149
|
4893
|
|
|
4894 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
|
|
159
|
4895 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
|
|
149
|
4896 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
|
151
|
4897 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
|
4898 x_libraries="$lib_dir $x_libraries"
|
|
|
4899 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
|
|
149
|
4900 esac
|
|
151
|
4901 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
|
4902 x_includes="$inc_dir $x_includes"
|
|
|
4903 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
|
|
149
|
4904 esac
|
|
|
4905 break; fi
|
|
|
4906 done
|
|
|
4907
|
|
|
4908 for rel in "X11R6" "X11R5" "X11R4"; do
|
|
|
4909 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
|
|
|
4910 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
|
151
|
4911 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
|
4912 x_libraries="$x_libraries $lib_dir"
|
|
|
4913 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
|
|
149
|
4914 esac
|
|
151
|
4915 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
|
4916 x_includes="$x_includes $inc_dir"
|
|
|
4917 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
|
|
149
|
4918 esac
|
|
|
4919 break; fi
|
|
|
4920 done
|
|
|
4921
|
|
|
4922 ld_switch_x_site="$X_LIBS"
|
|
|
4923
|
|
151
|
4924
|
|
|
4925 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
|
165
|
4926 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
|
4927 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
151
|
4928
|
|
163
|
4929 runpath="" runpath_dirs=""
|
|
155
|
4930 if test -n "$LD_RUN_PATH"; then
|
|
151
|
4931 runpath="$LD_RUN_PATH"
|
|
155
|
4932 elif test "$GCC" = "yes"; then
|
|
163
|
4933 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
|
4934 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
|
155
|
4935 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
|
4936 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
|
4937 case "$arg" in P,* | -L* | -R* )
|
|
159
|
4938 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
|
163
|
4939 {
|
|
155
|
4940 xe_runpath_dir="$dir"
|
|
163
|
4941 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
4942 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
4943 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
4944 eval "$xe_add_unique_runpath_dir"
|
|
|
4945 }
|
|
155
|
4946 done ;;
|
|
|
4947 esac
|
|
|
4948 done
|
|
163
|
4949 ld_switch_run="$ld_switch_run_save"
|
|
155
|
4950 rm -f conftest*
|
|
151
|
4951 else
|
|
155
|
4952 for arg in $ld_switch_site $ld_switch_x_site; do
|
|
163
|
4953 case "$arg" in -L*) {
|
|
159
|
4954 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
|
163
|
4955 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
4956 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
4957 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
4958 eval "$xe_add_unique_runpath_dir"
|
|
|
4959 };; esac
|
|
151
|
4960 done
|
|
163
|
4961 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
|
4962 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
|
4963 eval "$xe_add_unique_runpath_dir";
|
|
|
4964 fi
|
|
155
|
4965 fi
|
|
151
|
4966 if test -n "$runpath"; then
|
|
|
4967 ld_switch_run="${dash_r}${runpath}"
|
|
|
4968 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
|
4969 fi
|
|
|
4970 fi
|
|
|
4971
|
|
|
4972
|
|
149
|
4973 if test "$extra_verbose" = "yes"; then
|
|
|
4974 echo; echo "X11 compilation variables:"
|
|
163
|
4975 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
|
|
149
|
4976 echo
|
|
|
4977 fi
|
|
|
4978
|
|
163
|
4979 echo "checking for X defines extracted by xmkmf" 1>&6
|
|
243
|
4980 echo "configure:4981: checking for X defines extracted by xmkmf" >&5
|
|
163
|
4981 rm -fr conftestdir
|
|
|
4982 if mkdir conftestdir; then
|
|
|
4983 cd conftestdir
|
|
|
4984 cat > Imakefile <<'EOF'
|
|
|
4985 xetest:
|
|
|
4986 @echo ${PROTO_DEFINES} ${STD_DEFINES}
|
|
|
4987 EOF
|
|
|
4988 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
|
4989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
|
4990 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
|
|
|
4991 fi
|
|
|
4992 cd ..
|
|
|
4993 rm -fr conftestdir
|
|
|
4994 for word in $xmkmf_defines; do
|
|
|
4995 case "$word" in
|
|
|
4996 -D*=* ) ;;
|
|
|
4997 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
|
|
|
4998 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
4999 Defining $word
|
|
|
5000 EOF
|
|
|
5001 cat >> confdefs.h <<EOF
|
|
|
5002 #define $word 1
|
|
|
5003 EOF
|
|
|
5004 }
|
|
|
5005 ;;
|
|
|
5006 esac
|
|
|
5007 done
|
|
|
5008 fi
|
|
|
5009
|
|
149
|
5010 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
|
|
|
5011 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
|
|
243
|
5012 echo "configure:5013: checking for X11/Intrinsic.h" >&5
|
|
|
5013
|
|
|
5014 cat > conftest.$ac_ext <<EOF
|
|
|
5015 #line 5016 "configure"
|
|
149
|
5016 #include "confdefs.h"
|
|
|
5017 #include <X11/Intrinsic.h>
|
|
|
5018 EOF
|
|
|
5019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
5020 { (eval echo configure:5021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5021 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
5022 if test -z "$ac_err"; then
|
|
|
5023 rm -rf conftest*
|
|
|
5024 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5025 else
|
|
|
5026 echo "$ac_err" >&5
|
|
|
5027 echo "configure: failed program was:" >&5
|
|
|
5028 cat conftest.$ac_ext >&5
|
|
|
5029 rm -rf conftest*
|
|
|
5030 eval "ac_cv_header_$ac_safe=no"
|
|
|
5031 fi
|
|
|
5032 rm -f conftest*
|
|
|
5033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5034 echo "$ac_t""yes" 1>&6
|
|
|
5035 :
|
|
|
5036 else
|
|
|
5037 echo "$ac_t""no" 1>&6
|
|
|
5038 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
|
|
|
5039 fi
|
|
|
5040
|
|
|
5041
|
|
|
5042
|
|
|
5043 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
|
|
243
|
5044 echo "configure:5045: checking for XOpenDisplay in -lX11" >&5
|
|
149
|
5045 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
|
|
|
5046
|
|
|
5047 xe_check_libs=" -lX11 "
|
|
|
5048 cat > conftest.$ac_ext <<EOF
|
|
243
|
5049 #line 5050 "configure"
|
|
149
|
5050 #include "confdefs.h"
|
|
|
5051 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5052 /* We use char because int might match the return type of a gcc2
|
|
|
5053 builtin and then its argument prototype would still apply. */
|
|
|
5054 char XOpenDisplay();
|
|
|
5055
|
|
|
5056 int main() {
|
|
|
5057 XOpenDisplay()
|
|
|
5058 ; return 0; }
|
|
|
5059 EOF
|
|
243
|
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5061 rm -rf conftest*
|
|
|
5062 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5063 else
|
|
|
5064 echo "configure: failed program was:" >&5
|
|
|
5065 cat conftest.$ac_ext >&5
|
|
|
5066 rm -rf conftest*
|
|
|
5067 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5068 fi
|
|
|
5069 rm -f conftest*
|
|
|
5070 xe_check_libs=""
|
|
|
5071
|
|
151
|
5072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5073 echo "$ac_t""yes" 1>&6
|
|
|
5074 have_lib_x11=yes
|
|
|
5075 else
|
|
|
5076 echo "$ac_t""no" 1>&6
|
|
|
5077 fi
|
|
|
5078
|
|
|
5079
|
|
|
5080 if test "$have_lib_x11" != "yes"; then
|
|
|
5081
|
|
|
5082 xe_msg_checking="for XGetFontProperty in -lX11"
|
|
|
5083 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
|
|
|
5084 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
243
|
5085 echo "configure:5086: checking "$xe_msg_checking"" >&5
|
|
149
|
5086 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
|
|
|
5087
|
|
|
5088 xe_check_libs=" -lX11 -b i486-linuxaout"
|
|
|
5089 cat > conftest.$ac_ext <<EOF
|
|
243
|
5090 #line 5091 "configure"
|
|
149
|
5091 #include "confdefs.h"
|
|
|
5092 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5093 /* We use char because int might match the return type of a gcc2
|
|
|
5094 builtin and then its argument prototype would still apply. */
|
|
|
5095 char XGetFontProperty();
|
|
|
5096
|
|
|
5097 int main() {
|
|
|
5098 XGetFontProperty()
|
|
|
5099 ; return 0; }
|
|
|
5100 EOF
|
|
243
|
5101 if { (eval echo configure:5102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5102 rm -rf conftest*
|
|
|
5103 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5104 else
|
|
|
5105 echo "configure: failed program was:" >&5
|
|
|
5106 cat conftest.$ac_ext >&5
|
|
|
5107 rm -rf conftest*
|
|
|
5108 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5109 fi
|
|
|
5110 rm -f conftest*
|
|
|
5111 xe_check_libs=""
|
|
|
5112
|
|
151
|
5113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5114 echo "$ac_t""yes" 1>&6
|
|
|
5115 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
|
|
|
5116 else
|
|
|
5117 echo "$ac_t""no" 1>&6
|
|
|
5118 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
|
|
|
5119 fi
|
|
|
5120
|
|
|
5121
|
|
0
|
5122 fi
|
|
149
|
5123 libs_x="-lX11"
|
|
151
|
5124 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
|
|
149
|
5125
|
|
153
|
5126
|
|
|
5127 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
|
|
243
|
5128 echo "configure:5129: checking for XShapeSelectInput in -lXext" >&5
|
|
153
|
5129 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
|
|
|
5130
|
|
|
5131 xe_check_libs=" -lXext "
|
|
|
5132 cat > conftest.$ac_ext <<EOF
|
|
243
|
5133 #line 5134 "configure"
|
|
153
|
5134 #include "confdefs.h"
|
|
|
5135 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5136 /* We use char because int might match the return type of a gcc2
|
|
|
5137 builtin and then its argument prototype would still apply. */
|
|
|
5138 char XShapeSelectInput();
|
|
|
5139
|
|
|
5140 int main() {
|
|
|
5141 XShapeSelectInput()
|
|
|
5142 ; return 0; }
|
|
|
5143 EOF
|
|
243
|
5144 if { (eval echo configure:5145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
153
|
5145 rm -rf conftest*
|
|
|
5146 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5147 else
|
|
|
5148 echo "configure: failed program was:" >&5
|
|
|
5149 cat conftest.$ac_ext >&5
|
|
|
5150 rm -rf conftest*
|
|
|
5151 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5152 fi
|
|
|
5153 rm -f conftest*
|
|
|
5154 xe_check_libs=""
|
|
|
5155
|
|
|
5156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5157 echo "$ac_t""yes" 1>&6
|
|
|
5158 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
|
|
|
5159 else
|
|
|
5160 echo "$ac_t""no" 1>&6
|
|
|
5161 fi
|
|
|
5162
|
|
|
5163
|
|
|
5164
|
|
169
|
5165
|
|
149
|
5166 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
|
|
243
|
5167 echo "configure:5168: checking for XtOpenDisplay in -lXt" >&5
|
|
149
|
5168 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
|
|
|
5169
|
|
|
5170 xe_check_libs=" -lXt "
|
|
|
5171 cat > conftest.$ac_ext <<EOF
|
|
243
|
5172 #line 5173 "configure"
|
|
149
|
5173 #include "confdefs.h"
|
|
|
5174 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5175 /* We use char because int might match the return type of a gcc2
|
|
|
5176 builtin and then its argument prototype would still apply. */
|
|
|
5177 char XtOpenDisplay();
|
|
|
5178
|
|
|
5179 int main() {
|
|
|
5180 XtOpenDisplay()
|
|
|
5181 ; return 0; }
|
|
|
5182 EOF
|
|
243
|
5183 if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5184 rm -rf conftest*
|
|
|
5185 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5186 else
|
|
|
5187 echo "configure: failed program was:" >&5
|
|
|
5188 cat conftest.$ac_ext >&5
|
|
|
5189 rm -rf conftest*
|
|
|
5190 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5191 fi
|
|
|
5192 rm -f conftest*
|
|
|
5193 xe_check_libs=""
|
|
|
5194
|
|
151
|
5195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5196 echo "$ac_t""yes" 1>&6
|
|
|
5197 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
|
|
149
|
5198 else
|
|
|
5199 echo "$ac_t""no" 1>&6
|
|
|
5200 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
|
|
|
5201 fi
|
|
|
5202
|
|
169
|
5203
|
|
149
|
5204
|
|
|
5205 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
|
|
243
|
5206 echo "configure:5207: checking the version of X11 being used" >&5
|
|
149
|
5207 cat > conftest.$ac_ext <<EOF
|
|
243
|
5208 #line 5209 "configure"
|
|
149
|
5209 #include "confdefs.h"
|
|
|
5210 #include <X11/Intrinsic.h>
|
|
|
5211 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
|
|
|
5212 EOF
|
|
243
|
5213 if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
5214 then
|
|
151
|
5215 ./conftest foobar; x11_release=$?
|
|
149
|
5216 else
|
|
|
5217 echo "configure: failed program was:" >&5
|
|
|
5218 cat conftest.$ac_ext >&5
|
|
|
5219 rm -fr conftest*
|
|
151
|
5220 x11_release=4
|
|
149
|
5221 fi
|
|
|
5222 rm -fr conftest*
|
|
151
|
5223 echo "$ac_t""R${x11_release}" 1>&6
|
|
149
|
5224 { test "$extra_verbose" = "yes" && cat << EOF
|
|
151
|
5225 Defining THIS_IS_X11R${x11_release}
|
|
149
|
5226 EOF
|
|
|
5227 cat >> confdefs.h <<EOF
|
|
151
|
5228 #define THIS_IS_X11R${x11_release} 1
|
|
149
|
5229 EOF
|
|
|
5230 }
|
|
|
5231
|
|
|
5232
|
|
|
5233 for ac_hdr in X11/Xlocale.h
|
|
|
5234 do
|
|
|
5235 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
5236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
243
|
5237 echo "configure:5238: checking for $ac_hdr" >&5
|
|
|
5238
|
|
|
5239 cat > conftest.$ac_ext <<EOF
|
|
|
5240 #line 5241 "configure"
|
|
149
|
5241 #include "confdefs.h"
|
|
|
5242 #include <$ac_hdr>
|
|
|
5243 EOF
|
|
|
5244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
5245 { (eval echo configure:5246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5246 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
5247 if test -z "$ac_err"; then
|
|
|
5248 rm -rf conftest*
|
|
|
5249 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5250 else
|
|
|
5251 echo "$ac_err" >&5
|
|
|
5252 echo "configure: failed program was:" >&5
|
|
|
5253 cat conftest.$ac_ext >&5
|
|
|
5254 rm -rf conftest*
|
|
|
5255 eval "ac_cv_header_$ac_safe=no"
|
|
|
5256 fi
|
|
|
5257 rm -f conftest*
|
|
|
5258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5259 echo "$ac_t""yes" 1>&6
|
|
|
5260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
5261 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
5262 Defining $ac_tr_hdr
|
|
|
5263 EOF
|
|
|
5264 cat >> confdefs.h <<EOF
|
|
|
5265 #define $ac_tr_hdr 1
|
|
|
5266 EOF
|
|
|
5267 }
|
|
|
5268
|
|
|
5269 else
|
|
|
5270 echo "$ac_t""no" 1>&6
|
|
|
5271 fi
|
|
|
5272 done
|
|
|
5273
|
|
|
5274
|
|
|
5275 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
|
|
243
|
5276 echo "configure:5277: checking for XFree86" >&5
|
|
149
|
5277 if test -d "/usr/X386/include" -o \
|
|
169
|
5278 -f "/etc/XF86Config" -o \
|
|
149
|
5279 -f "/etc/X11/XF86Config" -o \
|
|
|
5280 -f "/usr/X11R6/lib/X11/XF86Config"; then
|
|
|
5281 echo "$ac_t""yes" 1>&6
|
|
|
5282 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5283 Defining HAVE_XFREE386
|
|
|
5284 EOF
|
|
|
5285 cat >> confdefs.h <<\EOF
|
|
|
5286 #define HAVE_XFREE386 1
|
|
|
5287 EOF
|
|
|
5288 }
|
|
|
5289
|
|
|
5290 else
|
|
|
5291 echo "$ac_t""no" 1>&6
|
|
|
5292 fi
|
|
|
5293
|
|
169
|
5294 test -z "$with_xmu" && {
|
|
|
5295 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
|
|
243
|
5296 echo "configure:5297: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
|
|
169
|
5297 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
|
|
149
|
5298
|
|
|
5299 xe_check_libs=" -lXmu "
|
|
|
5300 cat > conftest.$ac_ext <<EOF
|
|
243
|
5301 #line 5302 "configure"
|
|
149
|
5302 #include "confdefs.h"
|
|
|
5303 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5304 /* We use char because int might match the return type of a gcc2
|
|
|
5305 builtin and then its argument prototype would still apply. */
|
|
169
|
5306 char XmuReadBitmapDataFromFile();
|
|
149
|
5307
|
|
|
5308 int main() {
|
|
169
|
5309 XmuReadBitmapDataFromFile()
|
|
149
|
5310 ; return 0; }
|
|
|
5311 EOF
|
|
243
|
5312 if { (eval echo configure:5313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5313 rm -rf conftest*
|
|
|
5314 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5315 else
|
|
|
5316 echo "configure: failed program was:" >&5
|
|
|
5317 cat conftest.$ac_ext >&5
|
|
|
5318 rm -rf conftest*
|
|
|
5319 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5320 fi
|
|
|
5321 rm -f conftest*
|
|
|
5322 xe_check_libs=""
|
|
|
5323
|
|
151
|
5324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5325 echo "$ac_t""yes" 1>&6
|
|
|
5326 with_xmu=yes
|
|
|
5327 else
|
|
|
5328 echo "$ac_t""no" 1>&6
|
|
|
5329 with_xmu=no
|
|
|
5330 fi
|
|
|
5331
|
|
169
|
5332 }
|
|
185
|
5333 if test "$with_xmu" = "no"; then
|
|
|
5334 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
|
|
151
|
5335 echo " xemacs will be linked with \"xmu.o\""
|
|
|
5336 fi
|
|
187
|
5337 else
|
|
185
|
5338 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
|
|
|
5339 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5340 Defining HAVE_XMU
|
|
|
5341 EOF
|
|
|
5342 cat >> confdefs.h <<\EOF
|
|
|
5343 #define HAVE_XMU 1
|
|
|
5344 EOF
|
|
|
5345 }
|
|
|
5346
|
|
169
|
5347 fi
|
|
151
|
5348
|
|
|
5349
|
|
|
5350 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
|
|
243
|
5351 echo "configure:5352: checking for main in -lXbsd" >&5
|
|
151
|
5352 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
|
|
|
5353
|
|
|
5354 xe_check_libs=" -lXbsd "
|
|
|
5355 cat > conftest.$ac_ext <<EOF
|
|
243
|
5356 #line 5357 "configure"
|
|
151
|
5357 #include "confdefs.h"
|
|
149
|
5358
|
|
|
5359 int main() {
|
|
151
|
5360 main()
|
|
149
|
5361 ; return 0; }
|
|
|
5362 EOF
|
|
243
|
5363 if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5364 rm -rf conftest*
|
|
|
5365 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5366 else
|
|
|
5367 echo "configure: failed program was:" >&5
|
|
|
5368 cat conftest.$ac_ext >&5
|
|
|
5369 rm -rf conftest*
|
|
|
5370 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5371 fi
|
|
|
5372 rm -f conftest*
|
|
|
5373 xe_check_libs=""
|
|
|
5374
|
|
151
|
5375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5376 echo "$ac_t""yes" 1>&6
|
|
|
5377 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
|
|
|
5378 else
|
|
|
5379 echo "$ac_t""no" 1>&6
|
|
|
5380 fi
|
|
|
5381
|
|
149
|
5382
|
|
|
5383
|
|
243
|
5384 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
|
|
|
5385 libs_x="$libs_x -lc_r" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lc_r\" to \$libs_x"; fi
|
|
|
5386 fi
|
|
|
5387
|
|
149
|
5388 fi
|
|
|
5389 test -z "$window_system" && window_system="none"
|
|
|
5390
|
|
|
5391 if test "$window_system" = "none" ; then
|
|
|
5392 if test "$with_tty" = "no" ; then
|
|
|
5393 { echo "configure: error: No window system support and no TTY support - Unable to proceed." 1>&2; exit 1; }
|
|
|
5394 fi
|
|
179
|
5395 for feature in tooltalk cde offix session \
|
|
149
|
5396 menubars scrollbars toolbars dialogs xim xmu \
|
|
207
|
5397 imagick xface xpm
|
|
70
|
5398 do
|
|
149
|
5399 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
|
5400 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
|
|
70
|
5401 fi
|
|
149
|
5402 eval "with_${feature}=no"
|
|
70
|
5403 done
|
|
149
|
5404 else
|
|
|
5405 test -z "$with_toolbars" && with_toolbars=yes
|
|
|
5406 fi
|
|
|
5407
|
|
0
|
5408 bitmapdir=
|
|
|
5409
|
|
149
|
5410 case "$window_system" in
|
|
70
|
5411 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
|
231
|
5412 msw ) HAVE_X_WINDOWS=no; echo " Using MS-Windows." ;;
|
|
70
|
5413 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
|
0
|
5414 esac
|
|
|
5415
|
|
149
|
5416 case "$x_libraries" in *X11R4* )
|
|
|
5417 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
|
|
|
5418 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
|
|
|
5419 esac
|
|
|
5420
|
|
179
|
5421 echo "checking for session-management option" 1>&6
|
|
243
|
5422 echo "configure:5423: checking for session-management option" >&5;
|
|
227
|
5423 if test "$with_session" != "no"; then
|
|
177
|
5424 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
179
|
5425 Defining HAVE_SESSION
|
|
|
5426 EOF
|
|
|
5427 cat >> confdefs.h <<\EOF
|
|
|
5428 #define HAVE_SESSION 1
|
|
177
|
5429 EOF
|
|
|
5430 }
|
|
|
5431
|
|
|
5432 fi
|
|
|
5433
|
|
149
|
5434 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
|
|
|
5435 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
|
|
|
5436 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
|
|
243
|
5437 echo "configure:5438: checking for X11/Xauth.h" >&5
|
|
|
5438
|
|
|
5439 cat > conftest.$ac_ext <<EOF
|
|
|
5440 #line 5441 "configure"
|
|
149
|
5441 #include "confdefs.h"
|
|
|
5442 #include <X11/Xauth.h>
|
|
|
5443 EOF
|
|
|
5444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
5445 { (eval echo configure:5446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5446 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
5447 if test -z "$ac_err"; then
|
|
|
5448 rm -rf conftest*
|
|
|
5449 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5450 else
|
|
|
5451 echo "$ac_err" >&5
|
|
|
5452 echo "configure: failed program was:" >&5
|
|
|
5453 cat conftest.$ac_ext >&5
|
|
|
5454 rm -rf conftest*
|
|
|
5455 eval "ac_cv_header_$ac_safe=no"
|
|
|
5456 fi
|
|
|
5457 rm -f conftest*
|
|
|
5458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5459 echo "$ac_t""yes" 1>&6
|
|
|
5460 :
|
|
|
5461 else
|
|
|
5462 echo "$ac_t""no" 1>&6
|
|
|
5463 with_xauth=no
|
|
|
5464 fi
|
|
|
5465 }
|
|
|
5466 test -z "$with_xauth" && {
|
|
|
5467 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
|
|
243
|
5468 echo "configure:5469: checking for XauGetAuthByAddr in -lXau" >&5
|
|
149
|
5469 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
|
|
|
5470
|
|
|
5471 xe_check_libs=" -lXau "
|
|
|
5472 cat > conftest.$ac_ext <<EOF
|
|
243
|
5473 #line 5474 "configure"
|
|
149
|
5474 #include "confdefs.h"
|
|
|
5475 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5476 /* We use char because int might match the return type of a gcc2
|
|
|
5477 builtin and then its argument prototype would still apply. */
|
|
|
5478 char XauGetAuthByAddr();
|
|
|
5479
|
|
|
5480 int main() {
|
|
|
5481 XauGetAuthByAddr()
|
|
|
5482 ; return 0; }
|
|
|
5483 EOF
|
|
243
|
5484 if { (eval echo configure:5485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5485 rm -rf conftest*
|
|
|
5486 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5487 else
|
|
|
5488 echo "configure: failed program was:" >&5
|
|
|
5489 cat conftest.$ac_ext >&5
|
|
|
5490 rm -rf conftest*
|
|
|
5491 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5492 fi
|
|
|
5493 rm -f conftest*
|
|
|
5494 xe_check_libs=""
|
|
|
5495
|
|
151
|
5496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5497 echo "$ac_t""yes" 1>&6
|
|
|
5498 :
|
|
|
5499 else
|
|
|
5500 echo "$ac_t""no" 1>&6
|
|
|
5501 with_xauth=no
|
|
|
5502 fi
|
|
|
5503
|
|
|
5504 }
|
|
|
5505 test -z "$with_xauth" && with_xauth=yes
|
|
|
5506 if test "$with_xauth" = "yes"; then
|
|
|
5507 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5508 Defining HAVE_XAUTH
|
|
|
5509 EOF
|
|
|
5510 cat >> confdefs.h <<\EOF
|
|
|
5511 #define HAVE_XAUTH 1
|
|
|
5512 EOF
|
|
|
5513 }
|
|
|
5514
|
|
159
|
5515
|
|
|
5516 T=""
|
|
|
5517 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
|
|
|
5518 libs_xauth="$T"
|
|
|
5519
|
|
|
5520 fi
|
|
|
5521
|
|
149
|
5522
|
|
197
|
5523 OFFIX_O=""
|
|
207
|
5524 test "$window_system" != "x11" && with_offix=no
|
|
149
|
5525 test -z "$with_offix" && with_offix=yes
|
|
|
5526 if test "$with_offix" = "yes"; then
|
|
|
5527 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5528 Defining HAVE_OFFIX_DND
|
|
|
5529 EOF
|
|
|
5530 cat >> confdefs.h <<\EOF
|
|
|
5531 #define HAVE_OFFIX_DND 1
|
|
|
5532 EOF
|
|
|
5533 }
|
|
|
5534
|
|
197
|
5535 OFFIX_O="offix.o"
|
|
|
5536 fi
|
|
|
5537
|
|
149
|
5538
|
|
|
5539 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
|
|
|
5540 if test "$with_tooltalk" != "no" ; then
|
|
|
5541 for dir in "" "Tt/" "desktop/" ; do
|
|
|
5542 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
|
|
|
5543 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
|
|
243
|
5544 echo "configure:5545: checking for ${dir}tt_c.h" >&5
|
|
|
5545
|
|
|
5546 cat > conftest.$ac_ext <<EOF
|
|
|
5547 #line 5548 "configure"
|
|
149
|
5548 #include "confdefs.h"
|
|
|
5549 #include <${dir}tt_c.h>
|
|
|
5550 EOF
|
|
|
5551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
5552 { (eval echo configure:5553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5553 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
5554 if test -z "$ac_err"; then
|
|
|
5555 rm -rf conftest*
|
|
|
5556 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5557 else
|
|
|
5558 echo "$ac_err" >&5
|
|
|
5559 echo "configure: failed program was:" >&5
|
|
|
5560 cat conftest.$ac_ext >&5
|
|
|
5561 rm -rf conftest*
|
|
|
5562 eval "ac_cv_header_$ac_safe=no"
|
|
|
5563 fi
|
|
|
5564 rm -f conftest*
|
|
|
5565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5566 echo "$ac_t""yes" 1>&6
|
|
|
5567 tt_c_h_path="${dir}tt_c.h" && break
|
|
|
5568 else
|
|
|
5569 echo "$ac_t""no" 1>&6
|
|
|
5570 fi
|
|
|
5571
|
|
|
5572 done
|
|
|
5573 test -z "$tt_c_h_path" && with_tooltalk=no
|
|
|
5574 fi
|
|
|
5575 if test "$with_tooltalk" != "no" ; then
|
|
|
5576 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
|
|
|
5577
|
|
|
5578 xe_msg_checking="for tt_message_create in -ltt"
|
|
|
5579 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
|
|
|
5580 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
243
|
5581 echo "configure:5582: checking "$xe_msg_checking"" >&5
|
|
149
|
5582 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
|
|
|
5583
|
|
|
5584 xe_check_libs=" -ltt $extra_libs"
|
|
|
5585 cat > conftest.$ac_ext <<EOF
|
|
243
|
5586 #line 5587 "configure"
|
|
149
|
5587 #include "confdefs.h"
|
|
|
5588 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5589 /* We use char because int might match the return type of a gcc2
|
|
|
5590 builtin and then its argument prototype would still apply. */
|
|
|
5591 char tt_message_create();
|
|
|
5592
|
|
|
5593 int main() {
|
|
|
5594 tt_message_create()
|
|
|
5595 ; return 0; }
|
|
|
5596 EOF
|
|
243
|
5597 if { (eval echo configure:5598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5598 rm -rf conftest*
|
|
|
5599 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5600 else
|
|
|
5601 echo "configure: failed program was:" >&5
|
|
|
5602 cat conftest.$ac_ext >&5
|
|
|
5603 rm -rf conftest*
|
|
|
5604 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5605 fi
|
|
|
5606 rm -f conftest*
|
|
|
5607 xe_check_libs=""
|
|
|
5608
|
|
151
|
5609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5610 echo "$ac_t""yes" 1>&6
|
|
|
5611 with_tooltalk=yes tt_libs="-ltt $extra_libs"; break
|
|
|
5612 else
|
|
|
5613 echo "$ac_t""no" 1>&6
|
|
|
5614 :
|
|
|
5615 fi
|
|
|
5616
|
|
|
5617
|
|
|
5618 done
|
|
|
5619 fi
|
|
|
5620 test -z "$with_tooltalk" && with_tooltalk=no
|
|
|
5621 if test "$with_tooltalk" = "yes"; then
|
|
|
5622 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5623 Defining TOOLTALK
|
|
|
5624 EOF
|
|
|
5625 cat >> confdefs.h <<\EOF
|
|
|
5626 #define TOOLTALK 1
|
|
|
5627 EOF
|
|
|
5628 }
|
|
|
5629
|
|
|
5630 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
5631 Defining TT_C_H_PATH = "$tt_c_h_path"
|
|
|
5632 EOF
|
|
|
5633 cat >> confdefs.h <<EOF
|
|
|
5634 #define TT_C_H_PATH "$tt_c_h_path"
|
|
|
5635 EOF
|
|
|
5636 }
|
|
|
5637
|
|
151
|
5638 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
|
|
|
5639 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
|
|
|
5640 echo " xemacs will be linked with \"tooltalk.o\""
|
|
|
5641 fi
|
|
149
|
5642 fi
|
|
|
5643
|
|
|
5644 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
|
|
|
5645 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
|
|
243
|
5646 echo "configure:5647: checking for Dt/Dt.h" >&5
|
|
|
5647
|
|
|
5648 cat > conftest.$ac_ext <<EOF
|
|
|
5649 #line 5650 "configure"
|
|
149
|
5650 #include "confdefs.h"
|
|
|
5651 #include <Dt/Dt.h>
|
|
|
5652 EOF
|
|
|
5653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
5654 { (eval echo configure:5655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5655 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
5656 if test -z "$ac_err"; then
|
|
|
5657 rm -rf conftest*
|
|
|
5658 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5659 else
|
|
|
5660 echo "$ac_err" >&5
|
|
|
5661 echo "configure: failed program was:" >&5
|
|
|
5662 cat conftest.$ac_ext >&5
|
|
|
5663 rm -rf conftest*
|
|
|
5664 eval "ac_cv_header_$ac_safe=no"
|
|
|
5665 fi
|
|
|
5666 rm -f conftest*
|
|
|
5667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5668 echo "$ac_t""yes" 1>&6
|
|
|
5669 :
|
|
|
5670 else
|
|
|
5671 echo "$ac_t""no" 1>&6
|
|
|
5672 with_cde=no
|
|
136
|
5673 fi
|
|
|
5674 }
|
|
149
|
5675 test -z "$with_cde" && {
|
|
|
5676 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
|
|
243
|
5677 echo "configure:5678: checking for DtDndDragStart in -lDtSvc" >&5
|
|
149
|
5678 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
|
|
|
5679
|
|
|
5680 xe_check_libs=" -lDtSvc "
|
|
|
5681 cat > conftest.$ac_ext <<EOF
|
|
243
|
5682 #line 5683 "configure"
|
|
149
|
5683 #include "confdefs.h"
|
|
|
5684 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5685 /* We use char because int might match the return type of a gcc2
|
|
|
5686 builtin and then its argument prototype would still apply. */
|
|
|
5687 char DtDndDragStart();
|
|
|
5688
|
|
|
5689 int main() {
|
|
|
5690 DtDndDragStart()
|
|
|
5691 ; return 0; }
|
|
|
5692 EOF
|
|
243
|
5693 if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5694 rm -rf conftest*
|
|
|
5695 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5696 else
|
|
|
5697 echo "configure: failed program was:" >&5
|
|
|
5698 cat conftest.$ac_ext >&5
|
|
|
5699 rm -rf conftest*
|
|
|
5700 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5701 fi
|
|
|
5702 rm -f conftest*
|
|
|
5703 xe_check_libs=""
|
|
|
5704
|
|
151
|
5705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5706 echo "$ac_t""yes" 1>&6
|
|
|
5707 :
|
|
|
5708 else
|
|
|
5709 echo "$ac_t""no" 1>&6
|
|
|
5710 with_cde=no
|
|
|
5711 fi
|
|
|
5712
|
|
|
5713 }
|
|
|
5714 test -z "$with_cde" && with_cde=yes
|
|
|
5715 if test "$with_cde" = "yes" ; then
|
|
|
5716 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5717 Defining HAVE_CDE
|
|
|
5718 EOF
|
|
|
5719 cat >> confdefs.h <<\EOF
|
|
|
5720 #define HAVE_CDE 1
|
|
|
5721 EOF
|
|
|
5722 }
|
|
|
5723
|
|
151
|
5724 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
|
|
149
|
5725 with_tooltalk=yes # CDE requires Tooltalk
|
|
167
|
5726 need_motif=yes # CDE requires Motif
|
|
149
|
5727 fi
|
|
|
5728
|
|
|
5729
|
|
193
|
5730 if test "$with_x11" = "yes"; then
|
|
|
5731
|
|
|
5732 echo "checking for X11 graphics libraries" 1>&6
|
|
243
|
5733 echo "configure:5734: checking for X11 graphics libraries" >&5
|
|
|
5734
|
|
193
|
5735 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
|
|
243
|
5736 echo "configure:5737: checking for Xpm - no older than 3.4f" >&5
|
|
193
|
5737 xe_check_libs=-lXpm
|
|
|
5738 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
|
|
243
|
5739 #line 5740 "configure"
|
|
149
|
5740 #include "confdefs.h"
|
|
|
5741 #include <X11/xpm.h>
|
|
193
|
5742 int main(int c, char **v) {
|
|
|
5743 return c == 1 ? 0 :
|
|
|
5744 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
|
|
|
5745 XpmIncludeVersion < 30406 ? 2 :
|
|
|
5746 0 ;
|
|
|
5747 }
|
|
|
5748 EOF
|
|
243
|
5749 if { (eval echo configure:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
159
|
5750 then
|
|
163
|
5751 ./conftest foobar; xpm_status=$?;
|
|
193
|
5752 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
|
|
159
|
5753 else
|
|
|
5754 echo "configure: failed program was:" >&5
|
|
|
5755 cat conftest.$ac_ext >&5
|
|
|
5756 rm -fr conftest*
|
|
|
5757 with_xpm=no
|
|
|
5758 fi
|
|
|
5759 rm -fr conftest*
|
|
193
|
5760 }
|
|
|
5761 xe_check_libs=
|
|
|
5762 echo "$ac_t""$with_xpm" 1>&6
|
|
|
5763 if test "$xpm_status" = "1" -o "$xpm_status" = "2"; then
|
|
|
5764 test "$xpm_status" = "1" && problem="Xpm library version and header file version don't match!"
|
|
|
5765 test "$xpm_status" = "2" && problem="Xpm library version is too old!"
|
|
|
5766 echo "
|
|
|
5767 *** WARNING *** $problem
|
|
|
5768 I'm not touching that with a 10-foot pole!
|
|
|
5769 If you really want to use the installed version of Xpm, rerun
|
|
|
5770 configure --with-xpm=yes, but don't blame me if XEmacs crashes!
|
|
|
5771 "
|
|
|
5772 fi
|
|
|
5773 if test "$with_xpm" = "yes"; then
|
|
|
5774 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
5775 Defining HAVE_XPM
|
|
|
5776 EOF
|
|
|
5777 cat >> confdefs.h <<\EOF
|
|
|
5778 #define HAVE_XPM 1
|
|
|
5779 EOF
|
|
|
5780 }
|
|
|
5781
|
|
193
|
5782 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
|
|
|
5783 fi
|
|
|
5784
|
|
|
5785 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
149
|
5786 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
|
243
|
5787 echo "configure:5788: checking for compface.h" >&5
|
|
|
5788
|
|
|
5789 cat > conftest.$ac_ext <<EOF
|
|
|
5790 #line 5791 "configure"
|
|
0
|
5791 #include "confdefs.h"
|
|
|
5792 #include <compface.h>
|
|
|
5793 EOF
|
|
149
|
5794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
5795 { (eval echo configure:5796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5796 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
5797 if test -z "$ac_err"; then
|
|
|
5798 rm -rf conftest*
|
|
149
|
5799 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5800 else
|
|
|
5801 echo "$ac_err" >&5
|
|
|
5802 echo "configure: failed program was:" >&5
|
|
|
5803 cat conftest.$ac_ext >&5
|
|
|
5804 rm -rf conftest*
|
|
|
5805 eval "ac_cv_header_$ac_safe=no"
|
|
|
5806 fi
|
|
|
5807 rm -f conftest*
|
|
|
5808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5809 echo "$ac_t""yes" 1>&6
|
|
|
5810 :
|
|
|
5811 else
|
|
|
5812 echo "$ac_t""no" 1>&6
|
|
|
5813 with_xface=no
|
|
|
5814 fi
|
|
|
5815 }
|
|
193
|
5816 test -z "$with_xface" && {
|
|
149
|
5817 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
|
243
|
5818 echo "configure:5819: checking for UnGenFace in -lcompface" >&5
|
|
149
|
5819 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
|
5820
|
|
|
5821 xe_check_libs=" -lcompface "
|
|
|
5822 cat > conftest.$ac_ext <<EOF
|
|
243
|
5823 #line 5824 "configure"
|
|
149
|
5824 #include "confdefs.h"
|
|
|
5825 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5826 /* We use char because int might match the return type of a gcc2
|
|
|
5827 builtin and then its argument prototype would still apply. */
|
|
|
5828 char UnGenFace();
|
|
|
5829
|
|
|
5830 int main() {
|
|
|
5831 UnGenFace()
|
|
|
5832 ; return 0; }
|
|
|
5833 EOF
|
|
243
|
5834 if { (eval echo configure:5835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5835 rm -rf conftest*
|
|
|
5836 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5837 else
|
|
|
5838 echo "configure: failed program was:" >&5
|
|
|
5839 cat conftest.$ac_ext >&5
|
|
|
5840 rm -rf conftest*
|
|
|
5841 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5842 fi
|
|
|
5843 rm -f conftest*
|
|
|
5844 xe_check_libs=""
|
|
|
5845
|
|
151
|
5846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5847 echo "$ac_t""yes" 1>&6
|
|
|
5848 :
|
|
|
5849 else
|
|
|
5850 echo "$ac_t""no" 1>&6
|
|
|
5851 with_xface=no
|
|
|
5852 fi
|
|
|
5853
|
|
|
5854 }
|
|
193
|
5855 test -z "$with_xface" && with_xface=yes
|
|
|
5856 if test "$with_xface" = "yes"; then
|
|
|
5857 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
5858 Defining HAVE_XFACE
|
|
|
5859 EOF
|
|
|
5860 cat >> confdefs.h <<\EOF
|
|
|
5861 #define HAVE_XFACE 1
|
|
|
5862 EOF
|
|
|
5863 }
|
|
|
5864
|
|
193
|
5865 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
|
|
|
5866 fi
|
|
|
5867
|
|
225
|
5868 test "$with_imagick" != "no" && { ac_safe=`echo "magick/magick.h" | sed 'y%./+-%__p_%'`
|
|
209
|
5869 echo $ac_n "checking for magick/magick.h""... $ac_c" 1>&6
|
|
243
|
5870 echo "configure:5871: checking for magick/magick.h" >&5
|
|
|
5871
|
|
|
5872 cat > conftest.$ac_ext <<EOF
|
|
|
5873 #line 5874 "configure"
|
|
209
|
5874 #include "confdefs.h"
|
|
|
5875 #include <magick/magick.h>
|
|
0
|
5876 EOF
|
|
149
|
5877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
5878 { (eval echo configure:5879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5879 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
5880 if test -z "$ac_err"; then
|
|
149
|
5881 rm -rf conftest*
|
|
|
5882 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5883 else
|
|
|
5884 echo "$ac_err" >&5
|
|
|
5885 echo "configure: failed program was:" >&5
|
|
|
5886 cat conftest.$ac_ext >&5
|
|
|
5887 rm -rf conftest*
|
|
|
5888 eval "ac_cv_header_$ac_safe=no"
|
|
|
5889 fi
|
|
|
5890 rm -f conftest*
|
|
|
5891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5892 echo "$ac_t""yes" 1>&6
|
|
0
|
5893 :
|
|
|
5894 else
|
|
149
|
5895 echo "$ac_t""no" 1>&6
|
|
223
|
5896 ac_safe=`echo "X11/magick/magick.h" | sed 'y%./+-%__p_%'`
|
|
|
5897 echo $ac_n "checking for X11/magick/magick.h""... $ac_c" 1>&6
|
|
243
|
5898 echo "configure:5899: checking for X11/magick/magick.h" >&5
|
|
|
5899
|
|
|
5900 cat > conftest.$ac_ext <<EOF
|
|
|
5901 #line 5902 "configure"
|
|
223
|
5902 #include "confdefs.h"
|
|
|
5903 #include <X11/magick/magick.h>
|
|
|
5904 EOF
|
|
|
5905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
5906 { (eval echo configure:5907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
223
|
5907 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
5908 if test -z "$ac_err"; then
|
|
|
5909 rm -rf conftest*
|
|
|
5910 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5911 else
|
|
|
5912 echo "$ac_err" >&5
|
|
|
5913 echo "configure: failed program was:" >&5
|
|
|
5914 cat conftest.$ac_ext >&5
|
|
|
5915 rm -rf conftest*
|
|
|
5916 eval "ac_cv_header_$ac_safe=no"
|
|
|
5917 fi
|
|
|
5918 rm -f conftest*
|
|
|
5919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5920 echo "$ac_t""yes" 1>&6
|
|
|
5921 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5922 Defining MAGICK_HEADERS_ARE_UNDER_X11
|
|
|
5923 EOF
|
|
|
5924 cat >> confdefs.h <<\EOF
|
|
|
5925 #define MAGICK_HEADERS_ARE_UNDER_X11 1
|
|
|
5926 EOF
|
|
|
5927 }
|
|
|
5928
|
|
|
5929 else
|
|
|
5930 echo "$ac_t""no" 1>&6
|
|
207
|
5931 with_imagick=no
|
|
149
|
5932 fi
|
|
223
|
5933
|
|
|
5934 fi
|
|
70
|
5935 }
|
|
225
|
5936 test "$with_imagick" != "no" && {
|
|
243
|
5937 z_libs=""
|
|
|
5938
|
|
|
5939 echo $ac_n "checking for inflateInit_ in -lz""... $ac_c" 1>&6
|
|
|
5940 echo "configure:5941: checking for inflateInit_ in -lz" >&5
|
|
|
5941 ac_lib_var=`echo z'_'inflateInit_ | sed 'y%./+-%__p_%'`
|
|
|
5942
|
|
|
5943 xe_check_libs=" -lz "
|
|
|
5944 cat > conftest.$ac_ext <<EOF
|
|
|
5945 #line 5946 "configure"
|
|
|
5946 #include "confdefs.h"
|
|
|
5947 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5948 /* We use char because int might match the return type of a gcc2
|
|
|
5949 builtin and then its argument prototype would still apply. */
|
|
|
5950 char inflateInit_();
|
|
|
5951
|
|
|
5952 int main() {
|
|
|
5953 inflateInit_()
|
|
|
5954 ; return 0; }
|
|
|
5955 EOF
|
|
|
5956 if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
|
5957 rm -rf conftest*
|
|
|
5958 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5959 else
|
|
|
5960 echo "configure: failed program was:" >&5
|
|
|
5961 cat conftest.$ac_ext >&5
|
|
|
5962 rm -rf conftest*
|
|
|
5963 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5964 fi
|
|
|
5965 rm -f conftest*
|
|
|
5966 xe_check_libs=""
|
|
|
5967
|
|
|
5968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5969 echo "$ac_t""yes" 1>&6
|
|
|
5970 z_libs="$z_libs -lz" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lz\" to \$z_libs"; fi
|
|
|
5971 else
|
|
|
5972 echo "$ac_t""no" 1>&6
|
|
|
5973 echo $ac_n "checking for inflateInit_ in -lgz""... $ac_c" 1>&6
|
|
|
5974 echo "configure:5975: checking for inflateInit_ in -lgz" >&5
|
|
|
5975 ac_lib_var=`echo gz'_'inflateInit_ | sed 'y%./+-%__p_%'`
|
|
|
5976
|
|
|
5977 xe_check_libs=" -lgz "
|
|
|
5978 cat > conftest.$ac_ext <<EOF
|
|
|
5979 #line 5980 "configure"
|
|
|
5980 #include "confdefs.h"
|
|
|
5981 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5982 /* We use char because int might match the return type of a gcc2
|
|
|
5983 builtin and then its argument prototype would still apply. */
|
|
|
5984 char inflateInit_();
|
|
|
5985
|
|
|
5986 int main() {
|
|
|
5987 inflateInit_()
|
|
|
5988 ; return 0; }
|
|
|
5989 EOF
|
|
|
5990 if { (eval echo configure:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
|
5991 rm -rf conftest*
|
|
|
5992 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5993 else
|
|
|
5994 echo "configure: failed program was:" >&5
|
|
|
5995 cat conftest.$ac_ext >&5
|
|
|
5996 rm -rf conftest*
|
|
|
5997 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5998 fi
|
|
|
5999 rm -f conftest*
|
|
|
6000 xe_check_libs=""
|
|
|
6001
|
|
|
6002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6003 echo "$ac_t""yes" 1>&6
|
|
|
6004 z_libs="$z_libs -lgz" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lgz\" to \$z_libs"; fi
|
|
|
6005 else
|
|
|
6006 echo "$ac_t""no" 1>&6
|
|
|
6007 fi
|
|
|
6008
|
|
|
6009
|
|
|
6010 fi
|
|
|
6011
|
|
|
6012
|
|
|
6013
|
|
|
6014 imagick_libs=""
|
|
217
|
6015
|
|
|
6016 echo $ac_n "checking for XDPSPixelsPerPoint in -ldps""... $ac_c" 1>&6
|
|
243
|
6017 echo "configure:6018: checking for XDPSPixelsPerPoint in -ldps" >&5
|
|
217
|
6018 ac_lib_var=`echo dps'_'XDPSPixelsPerPoint | sed 'y%./+-%__p_%'`
|
|
|
6019
|
|
|
6020 xe_check_libs="-ldpstk -ldps "
|
|
|
6021 cat > conftest.$ac_ext <<EOF
|
|
243
|
6022 #line 6023 "configure"
|
|
217
|
6023 #include "confdefs.h"
|
|
|
6024 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6025 /* We use char because int might match the return type of a gcc2
|
|
|
6026 builtin and then its argument prototype would still apply. */
|
|
|
6027 char XDPSPixelsPerPoint();
|
|
|
6028
|
|
|
6029 int main() {
|
|
|
6030 XDPSPixelsPerPoint()
|
|
|
6031 ; return 0; }
|
|
|
6032 EOF
|
|
243
|
6033 if { (eval echo configure:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
6034 rm -rf conftest*
|
|
|
6035 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6036 else
|
|
|
6037 echo "configure: failed program was:" >&5
|
|
|
6038 cat conftest.$ac_ext >&5
|
|
|
6039 rm -rf conftest*
|
|
|
6040 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6041 fi
|
|
|
6042 rm -f conftest*
|
|
|
6043 xe_check_libs=""
|
|
|
6044
|
|
|
6045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6046 echo "$ac_t""yes" 1>&6
|
|
|
6047 imagick_libs="$imagick_libs -ldpstk -ldps" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ldpstk -ldps\" to \$imagick_libs"; fi
|
|
|
6048 else
|
|
|
6049 echo "$ac_t""no" 1>&6
|
|
|
6050 fi
|
|
|
6051
|
|
|
6052
|
|
|
6053
|
|
|
6054 echo $ac_n "checking for FPX_SetToolkitMemoryLimit in -lfpx""... $ac_c" 1>&6
|
|
243
|
6055 echo "configure:6056: checking for FPX_SetToolkitMemoryLimit in -lfpx" >&5
|
|
217
|
6056 ac_lib_var=`echo fpx'_'FPX_SetToolkitMemoryLimit | sed 'y%./+-%__p_%'`
|
|
|
6057
|
|
|
6058 xe_check_libs=" -lfpx "
|
|
|
6059 cat > conftest.$ac_ext <<EOF
|
|
243
|
6060 #line 6061 "configure"
|
|
217
|
6061 #include "confdefs.h"
|
|
|
6062 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6063 /* We use char because int might match the return type of a gcc2
|
|
|
6064 builtin and then its argument prototype would still apply. */
|
|
|
6065 char FPX_SetToolkitMemoryLimit();
|
|
|
6066
|
|
|
6067 int main() {
|
|
|
6068 FPX_SetToolkitMemoryLimit()
|
|
|
6069 ; return 0; }
|
|
|
6070 EOF
|
|
243
|
6071 if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
6072 rm -rf conftest*
|
|
|
6073 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6074 else
|
|
|
6075 echo "configure: failed program was:" >&5
|
|
|
6076 cat conftest.$ac_ext >&5
|
|
|
6077 rm -rf conftest*
|
|
|
6078 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6079 fi
|
|
|
6080 rm -f conftest*
|
|
|
6081 xe_check_libs=""
|
|
|
6082
|
|
|
6083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6084 echo "$ac_t""yes" 1>&6
|
|
|
6085 imagick_libs="$imagick_libs -lfpx" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lfpx\" to \$imagick_libs"; fi
|
|
|
6086 else
|
|
|
6087 echo "$ac_t""no" 1>&6
|
|
|
6088 fi
|
|
|
6089
|
|
|
6090
|
|
|
6091
|
|
|
6092 echo $ac_n "checking for DF24getdims in -ldf""... $ac_c" 1>&6
|
|
243
|
6093 echo "configure:6094: checking for DF24getdims in -ldf" >&5
|
|
217
|
6094 ac_lib_var=`echo df'_'DF24getdims | sed 'y%./+-%__p_%'`
|
|
|
6095
|
|
|
6096 xe_check_libs=" -ldf "
|
|
|
6097 cat > conftest.$ac_ext <<EOF
|
|
243
|
6098 #line 6099 "configure"
|
|
217
|
6099 #include "confdefs.h"
|
|
|
6100 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6101 /* We use char because int might match the return type of a gcc2
|
|
|
6102 builtin and then its argument prototype would still apply. */
|
|
|
6103 char DF24getdims();
|
|
|
6104
|
|
|
6105 int main() {
|
|
|
6106 DF24getdims()
|
|
|
6107 ; return 0; }
|
|
|
6108 EOF
|
|
243
|
6109 if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
6110 rm -rf conftest*
|
|
|
6111 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6112 else
|
|
|
6113 echo "configure: failed program was:" >&5
|
|
|
6114 cat conftest.$ac_ext >&5
|
|
|
6115 rm -rf conftest*
|
|
|
6116 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6117 fi
|
|
|
6118 rm -f conftest*
|
|
|
6119 xe_check_libs=""
|
|
|
6120
|
|
|
6121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6122 echo "$ac_t""yes" 1>&6
|
|
|
6123 imagick_libs="$imagick_libs -ldf" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ldf\" to \$imagick_libs"; fi
|
|
|
6124 else
|
|
|
6125 echo "$ac_t""no" 1>&6
|
|
|
6126 fi
|
|
|
6127
|
|
|
6128
|
|
|
6129
|
|
|
6130 echo $ac_n "checking for jbg_dec_init in -ljbig""... $ac_c" 1>&6
|
|
243
|
6131 echo "configure:6132: checking for jbg_dec_init in -ljbig" >&5
|
|
217
|
6132 ac_lib_var=`echo jbig'_'jbg_dec_init | sed 'y%./+-%__p_%'`
|
|
|
6133
|
|
|
6134 xe_check_libs=" -ljbig "
|
|
|
6135 cat > conftest.$ac_ext <<EOF
|
|
243
|
6136 #line 6137 "configure"
|
|
217
|
6137 #include "confdefs.h"
|
|
|
6138 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6139 /* We use char because int might match the return type of a gcc2
|
|
|
6140 builtin and then its argument prototype would still apply. */
|
|
|
6141 char jbg_dec_init();
|
|
|
6142
|
|
|
6143 int main() {
|
|
|
6144 jbg_dec_init()
|
|
|
6145 ; return 0; }
|
|
|
6146 EOF
|
|
243
|
6147 if { (eval echo configure:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
6148 rm -rf conftest*
|
|
|
6149 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6150 else
|
|
|
6151 echo "configure: failed program was:" >&5
|
|
|
6152 cat conftest.$ac_ext >&5
|
|
|
6153 rm -rf conftest*
|
|
|
6154 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6155 fi
|
|
|
6156 rm -f conftest*
|
|
|
6157 xe_check_libs=""
|
|
|
6158
|
|
|
6159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6160 echo "$ac_t""yes" 1>&6
|
|
|
6161 imagick_libs="$imagick_libs -ljbig" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ljbig\" to \$imagick_libs"; fi
|
|
|
6162 else
|
|
|
6163 echo "$ac_t""no" 1>&6
|
|
|
6164 fi
|
|
|
6165
|
|
|
6166
|
|
|
6167
|
|
|
6168 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
|
|
243
|
6169 echo "configure:6170: checking for jpeg_read_header in -ljpeg" >&5
|
|
217
|
6170 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
|
|
|
6171
|
|
|
6172 xe_check_libs=" -ljpeg "
|
|
|
6173 cat > conftest.$ac_ext <<EOF
|
|
243
|
6174 #line 6175 "configure"
|
|
217
|
6175 #include "confdefs.h"
|
|
|
6176 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6177 /* We use char because int might match the return type of a gcc2
|
|
|
6178 builtin and then its argument prototype would still apply. */
|
|
|
6179 char jpeg_read_header();
|
|
|
6180
|
|
|
6181 int main() {
|
|
|
6182 jpeg_read_header()
|
|
|
6183 ; return 0; }
|
|
|
6184 EOF
|
|
243
|
6185 if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
6186 rm -rf conftest*
|
|
|
6187 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6188 else
|
|
|
6189 echo "configure: failed program was:" >&5
|
|
|
6190 cat conftest.$ac_ext >&5
|
|
|
6191 rm -rf conftest*
|
|
|
6192 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6193 fi
|
|
|
6194 rm -f conftest*
|
|
|
6195 xe_check_libs=""
|
|
|
6196
|
|
|
6197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6198 echo "$ac_t""yes" 1>&6
|
|
|
6199 imagick_libs="$imagick_libs -ljpeg" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ljpeg\" to \$imagick_libs"; fi
|
|
|
6200 else
|
|
|
6201 echo "$ac_t""no" 1>&6
|
|
|
6202 fi
|
|
|
6203
|
|
|
6204
|
|
|
6205
|
|
|
6206 echo $ac_n "checking for OpenMPEG in -lmpeg""... $ac_c" 1>&6
|
|
243
|
6207 echo "configure:6208: checking for OpenMPEG in -lmpeg" >&5
|
|
217
|
6208 ac_lib_var=`echo mpeg'_'OpenMPEG | sed 'y%./+-%__p_%'`
|
|
|
6209
|
|
|
6210 xe_check_libs=" -lmpeg "
|
|
|
6211 cat > conftest.$ac_ext <<EOF
|
|
243
|
6212 #line 6213 "configure"
|
|
217
|
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 OpenMPEG();
|
|
|
6218
|
|
|
6219 int main() {
|
|
|
6220 OpenMPEG()
|
|
|
6221 ; return 0; }
|
|
|
6222 EOF
|
|
243
|
6223 if { (eval echo configure:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
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 imagick_libs="$imagick_libs -lmpeg" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmpeg\" to \$imagick_libs"; fi
|
|
|
6238 else
|
|
|
6239 echo "$ac_t""no" 1>&6
|
|
|
6240 fi
|
|
|
6241
|
|
|
6242
|
|
|
6243
|
|
223
|
6244 echo $ac_n "checking for TT_Init_FreeType in -lttf""... $ac_c" 1>&6
|
|
243
|
6245 echo "configure:6246: checking for TT_Init_FreeType in -lttf" >&5
|
|
223
|
6246 ac_lib_var=`echo ttf'_'TT_Init_FreeType | sed 'y%./+-%__p_%'`
|
|
|
6247
|
|
|
6248 xe_check_libs=" -lttf "
|
|
|
6249 cat > conftest.$ac_ext <<EOF
|
|
243
|
6250 #line 6251 "configure"
|
|
223
|
6251 #include "confdefs.h"
|
|
|
6252 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6253 /* We use char because int might match the return type of a gcc2
|
|
|
6254 builtin and then its argument prototype would still apply. */
|
|
|
6255 char TT_Init_FreeType();
|
|
|
6256
|
|
|
6257 int main() {
|
|
|
6258 TT_Init_FreeType()
|
|
|
6259 ; return 0; }
|
|
|
6260 EOF
|
|
243
|
6261 if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
223
|
6262 rm -rf conftest*
|
|
|
6263 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6264 else
|
|
|
6265 echo "configure: failed program was:" >&5
|
|
|
6266 cat conftest.$ac_ext >&5
|
|
|
6267 rm -rf conftest*
|
|
|
6268 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6269 fi
|
|
|
6270 rm -f conftest*
|
|
|
6271 xe_check_libs=""
|
|
|
6272
|
|
|
6273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6274 echo "$ac_t""yes" 1>&6
|
|
|
6275 imagick_libs="$imagick_libs -lttf" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lttf\" to \$imagick_libs"; fi
|
|
|
6276 else
|
|
|
6277 echo "$ac_t""no" 1>&6
|
|
|
6278 fi
|
|
|
6279
|
|
|
6280
|
|
|
6281
|
|
243
|
6282 xe_msg_checking="for png_create_read_struct in -lpng"
|
|
|
6283 test -n "$z_libs" && xe_msg_checking="$xe_msg_checking using extra libs $z_libs"
|
|
|
6284 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
|
6285 echo "configure:6286: checking "$xe_msg_checking"" >&5
|
|
217
|
6286 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
|
|
|
6287
|
|
243
|
6288 xe_check_libs=" -lpng $z_libs"
|
|
|
6289 cat > conftest.$ac_ext <<EOF
|
|
|
6290 #line 6291 "configure"
|
|
217
|
6291 #include "confdefs.h"
|
|
|
6292 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6293 /* We use char because int might match the return type of a gcc2
|
|
|
6294 builtin and then its argument prototype would still apply. */
|
|
|
6295 char png_create_read_struct();
|
|
|
6296
|
|
|
6297 int main() {
|
|
|
6298 png_create_read_struct()
|
|
|
6299 ; return 0; }
|
|
|
6300 EOF
|
|
243
|
6301 if { (eval echo configure:6302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
6302 rm -rf conftest*
|
|
|
6303 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6304 else
|
|
|
6305 echo "configure: failed program was:" >&5
|
|
|
6306 cat conftest.$ac_ext >&5
|
|
|
6307 rm -rf conftest*
|
|
|
6308 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6309 fi
|
|
|
6310 rm -f conftest*
|
|
|
6311 xe_check_libs=""
|
|
|
6312
|
|
|
6313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6314 echo "$ac_t""yes" 1>&6
|
|
|
6315 imagick_libs="$imagick_libs -lpng" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lpng\" to \$imagick_libs"; fi
|
|
|
6316 else
|
|
|
6317 echo "$ac_t""no" 1>&6
|
|
|
6318 fi
|
|
|
6319
|
|
|
6320
|
|
|
6321
|
|
|
6322 echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
|
|
243
|
6323 echo "configure:6324: checking for TIFFOpen in -ltiff" >&5
|
|
217
|
6324 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
|
|
|
6325
|
|
243
|
6326 xe_check_libs="$z_libs -ltiff "
|
|
|
6327 cat > conftest.$ac_ext <<EOF
|
|
|
6328 #line 6329 "configure"
|
|
217
|
6329 #include "confdefs.h"
|
|
|
6330 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6331 /* We use char because int might match the return type of a gcc2
|
|
|
6332 builtin and then its argument prototype would still apply. */
|
|
|
6333 char TIFFOpen();
|
|
|
6334
|
|
|
6335 int main() {
|
|
|
6336 TIFFOpen()
|
|
|
6337 ; return 0; }
|
|
|
6338 EOF
|
|
243
|
6339 if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
6340 rm -rf conftest*
|
|
|
6341 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6342 else
|
|
|
6343 echo "configure: failed program was:" >&5
|
|
|
6344 cat conftest.$ac_ext >&5
|
|
|
6345 rm -rf conftest*
|
|
|
6346 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6347 fi
|
|
|
6348 rm -f conftest*
|
|
|
6349 xe_check_libs=""
|
|
|
6350
|
|
|
6351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6352 echo "$ac_t""yes" 1>&6
|
|
|
6353 imagick_libs="$imagick_libs -ltiff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ltiff\" to \$imagick_libs"; fi
|
|
|
6354 else
|
|
|
6355 echo "$ac_t""no" 1>&6
|
|
|
6356 xe_msg_checking="for TIFFOpen in -ltiff"
|
|
243
|
6357 test -n "-ljpeg $z_libs" && xe_msg_checking="$xe_msg_checking using extra libs -ljpeg $z_libs"
|
|
217
|
6358 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
243
|
6359 echo "configure:6360: checking "$xe_msg_checking"" >&5
|
|
217
|
6360 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
|
|
|
6361
|
|
243
|
6362 xe_check_libs=" -ltiff -ljpeg $z_libs"
|
|
|
6363 cat > conftest.$ac_ext <<EOF
|
|
|
6364 #line 6365 "configure"
|
|
217
|
6365 #include "confdefs.h"
|
|
|
6366 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6367 /* We use char because int might match the return type of a gcc2
|
|
|
6368 builtin and then its argument prototype would still apply. */
|
|
|
6369 char TIFFOpen();
|
|
|
6370
|
|
|
6371 int main() {
|
|
|
6372 TIFFOpen()
|
|
|
6373 ; return 0; }
|
|
|
6374 EOF
|
|
243
|
6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
6376 rm -rf conftest*
|
|
|
6377 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6378 else
|
|
|
6379 echo "configure: failed program was:" >&5
|
|
|
6380 cat conftest.$ac_ext >&5
|
|
|
6381 rm -rf conftest*
|
|
|
6382 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6383 fi
|
|
|
6384 rm -f conftest*
|
|
|
6385 xe_check_libs=""
|
|
|
6386
|
|
|
6387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6388 echo "$ac_t""yes" 1>&6
|
|
243
|
6389 imagick_libs="$imagick_libs -ltiff -ljpeg" && if test "$extra_verbose" = "yes"; then echo " Appending \"-ltiff -ljpeg\" to \$imagick_libs"; fi
|
|
|
6390 else
|
|
|
6391 echo "$ac_t""no" 1>&6
|
|
|
6392 fi
|
|
|
6393
|
|
|
6394
|
|
|
6395 fi
|
|
|
6396
|
|
|
6397
|
|
|
6398 imagick_libs="$imagick_libs $z_libs" && if test "$extra_verbose" = "yes"; then echo " Appending \"$z_libs\" to \$imagick_libs"; fi
|
|
217
|
6399 libs_x="$libs_x $imagick_libs" && if test "$extra_verbose" = "yes"; then echo " Appending \"$imagick_libs\" to \$libs_x"; fi
|
|
|
6400 }
|
|
207
|
6401 test -z "$with_imagick" && {
|
|
|
6402 echo $ac_n "checking for MogrifyImage in -lMagick""... $ac_c" 1>&6
|
|
243
|
6403 echo "configure:6404: checking for MogrifyImage in -lMagick" >&5
|
|
207
|
6404 ac_lib_var=`echo Magick'_'MogrifyImage | sed 'y%./+-%__p_%'`
|
|
|
6405
|
|
|
6406 xe_check_libs=" -lMagick "
|
|
|
6407 cat > conftest.$ac_ext <<EOF
|
|
243
|
6408 #line 6409 "configure"
|
|
149
|
6409 #include "confdefs.h"
|
|
|
6410 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6411 /* We use char because int might match the return type of a gcc2
|
|
|
6412 builtin and then its argument prototype would still apply. */
|
|
207
|
6413 char MogrifyImage();
|
|
149
|
6414
|
|
|
6415 int main() {
|
|
207
|
6416 MogrifyImage()
|
|
149
|
6417 ; return 0; }
|
|
|
6418 EOF
|
|
243
|
6419 if { (eval echo configure:6420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
6420 rm -rf conftest*
|
|
|
6421 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6422 else
|
|
|
6423 echo "configure: failed program was:" >&5
|
|
|
6424 cat conftest.$ac_ext >&5
|
|
|
6425 rm -rf conftest*
|
|
|
6426 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6427 fi
|
|
|
6428 rm -f conftest*
|
|
|
6429 xe_check_libs=""
|
|
|
6430
|
|
151
|
6431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
6432 echo "$ac_t""yes" 1>&6
|
|
207
|
6433 :
|
|
|
6434 else
|
|
|
6435 echo "$ac_t""no" 1>&6
|
|
|
6436 with_imagick=no
|
|
|
6437 fi
|
|
|
6438
|
|
|
6439 }
|
|
|
6440 test -z "$with_imagick" && with_imagick=yes
|
|
|
6441 if test "$with_imagick" = "yes"; then
|
|
193
|
6442 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
207
|
6443 Defining HAVE_IMAGEMAGICK
|
|
|
6444 EOF
|
|
|
6445 cat >> confdefs.h <<\EOF
|
|
|
6446 #define HAVE_IMAGEMAGICK 1
|
|
|
6447 EOF
|
|
|
6448 }
|
|
|
6449
|
|
|
6450 libs_x="-lMagick $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lMagick\" to \$libs_x"; fi
|
|
193
|
6451 fi
|
|
|
6452
|
|
|
6453
|
|
|
6454 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
|
|
243
|
6455 echo "configure:6456: checking for XawScrollbarSetThumb in -lXaw" >&5
|
|
193
|
6456 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
|
|
|
6457
|
|
|
6458 xe_check_libs=" -lXaw "
|
|
|
6459 cat > conftest.$ac_ext <<EOF
|
|
243
|
6460 #line 6461 "configure"
|
|
193
|
6461 #include "confdefs.h"
|
|
|
6462 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6463 /* We use char because int might match the return type of a gcc2
|
|
|
6464 builtin and then its argument prototype would still apply. */
|
|
|
6465 char XawScrollbarSetThumb();
|
|
|
6466
|
|
|
6467 int main() {
|
|
|
6468 XawScrollbarSetThumb()
|
|
|
6469 ; return 0; }
|
|
|
6470 EOF
|
|
243
|
6471 if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
193
|
6472 rm -rf conftest*
|
|
|
6473 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6474 else
|
|
|
6475 echo "configure: failed program was:" >&5
|
|
|
6476 cat conftest.$ac_ext >&5
|
|
|
6477 rm -rf conftest*
|
|
|
6478 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6479 fi
|
|
|
6480 rm -f conftest*
|
|
|
6481 xe_check_libs=""
|
|
|
6482
|
|
|
6483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6484 echo "$ac_t""yes" 1>&6
|
|
|
6485 have_xaw=yes
|
|
|
6486 else
|
|
|
6487 echo "$ac_t""no" 1>&6
|
|
|
6488 have_xaw=no
|
|
|
6489 fi
|
|
|
6490
|
|
|
6491
|
|
219
|
6492
|
|
193
|
6493 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
|
|
151
|
6494 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
|
|
243
|
6495 echo "configure:6496: checking for Xm/Xm.h" >&5
|
|
|
6496
|
|
|
6497 cat > conftest.$ac_ext <<EOF
|
|
|
6498 #line 6499 "configure"
|
|
151
|
6499 #include "confdefs.h"
|
|
|
6500 #include <Xm/Xm.h>
|
|
|
6501 EOF
|
|
|
6502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
6503 { (eval echo configure:6504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
151
|
6504 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
6505 if test -z "$ac_err"; then
|
|
|
6506 rm -rf conftest*
|
|
|
6507 eval "ac_cv_header_$ac_safe=yes"
|
|
|
6508 else
|
|
|
6509 echo "$ac_err" >&5
|
|
|
6510 echo "configure: failed program was:" >&5
|
|
|
6511 cat conftest.$ac_ext >&5
|
|
|
6512 rm -rf conftest*
|
|
|
6513 eval "ac_cv_header_$ac_safe=no"
|
|
|
6514 fi
|
|
|
6515 rm -f conftest*
|
|
|
6516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
6517 echo "$ac_t""yes" 1>&6
|
|
|
6518
|
|
|
6519 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
|
|
243
|
6520 echo "configure:6521: checking for XmStringFree in -lXm" >&5
|
|
151
|
6521 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
|
|
|
6522
|
|
|
6523 xe_check_libs=" -lXm "
|
|
|
6524 cat > conftest.$ac_ext <<EOF
|
|
243
|
6525 #line 6526 "configure"
|
|
151
|
6526 #include "confdefs.h"
|
|
|
6527 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6528 /* We use char because int might match the return type of a gcc2
|
|
|
6529 builtin and then its argument prototype would still apply. */
|
|
|
6530 char XmStringFree();
|
|
|
6531
|
|
|
6532 int main() {
|
|
|
6533 XmStringFree()
|
|
|
6534 ; return 0; }
|
|
|
6535 EOF
|
|
243
|
6536 if { (eval echo configure:6537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
6537 rm -rf conftest*
|
|
|
6538 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6539 else
|
|
|
6540 echo "configure: failed program was:" >&5
|
|
|
6541 cat conftest.$ac_ext >&5
|
|
|
6542 rm -rf conftest*
|
|
|
6543 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6544 fi
|
|
|
6545 rm -f conftest*
|
|
|
6546 xe_check_libs=""
|
|
|
6547
|
|
|
6548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6549 echo "$ac_t""yes" 1>&6
|
|
|
6550 have_motif=yes
|
|
|
6551 else
|
|
|
6552 echo "$ac_t""no" 1>&6
|
|
|
6553 have_motif=no
|
|
|
6554 fi
|
|
|
6555
|
|
|
6556
|
|
|
6557 else
|
|
|
6558 echo "$ac_t""no" 1>&6
|
|
|
6559 have_motif=no
|
|
|
6560 fi
|
|
|
6561
|
|
149
|
6562
|
|
193
|
6563 fi
|
|
149
|
6564
|
|
243
|
6565 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
|
|
149
|
6566 with_menubars="lucid" ;;
|
|
|
6567 esac
|
|
243
|
6568 case "$with_dialogs" in "" | "yes" | "lucid" )
|
|
149
|
6569 if test "$have_motif" = "yes"; then with_dialogs="motif"
|
|
|
6570 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
|
|
|
6571 else with_dialogs=no
|
|
|
6572 fi ;;
|
|
|
6573 esac
|
|
|
6574 case "$with_scrollbars" in "" | "yes" )
|
|
|
6575 with_scrollbars="lucid" ;;
|
|
|
6576 esac
|
|
|
6577
|
|
|
6578 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
|
|
|
6579
|
|
|
6580 case "$all_widgets" in *athena* )
|
|
|
6581 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6582 Defining LWLIB_USES_ATHENA
|
|
|
6583 EOF
|
|
|
6584 cat >> confdefs.h <<\EOF
|
|
|
6585 #define LWLIB_USES_ATHENA 1
|
|
|
6586 EOF
|
|
|
6587 }
|
|
|
6588
|
|
157
|
6589 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6590 Defining NEED_ATHENA
|
|
|
6591 EOF
|
|
|
6592 cat >> confdefs.h <<\EOF
|
|
|
6593 #define NEED_ATHENA 1
|
|
|
6594 EOF
|
|
|
6595 }
|
|
|
6596
|
|
|
6597 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
|
|
151
|
6598 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
|
|
149
|
6599 esac
|
|
|
6600
|
|
|
6601 case "$all_widgets" in *motif* )
|
|
|
6602 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6603 Defining LWLIB_USES_MOTIF
|
|
|
6604 EOF
|
|
|
6605 cat >> confdefs.h <<\EOF
|
|
|
6606 #define LWLIB_USES_MOTIF 1
|
|
|
6607 EOF
|
|
|
6608 }
|
|
|
6609
|
|
157
|
6610 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6611 Defining NEED_MOTIF
|
|
|
6612 EOF
|
|
|
6613 cat >> confdefs.h <<\EOF
|
|
|
6614 #define NEED_MOTIF 1
|
|
|
6615 EOF
|
|
|
6616 }
|
|
|
6617
|
|
|
6618 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
|
|
149
|
6619 need_motif=yes ;;
|
|
70
|
6620 esac
|
|
|
6621
|
|
157
|
6622 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
|
6623 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
|
6624 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
|
|
|
6625 case "$all_widgets" in *lucid* )
|
|
|
6626 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6627 Defining NEED_LUCID
|
|
|
6628 EOF
|
|
|
6629 cat >> confdefs.h <<\EOF
|
|
|
6630 #define NEED_LUCID 1
|
|
|
6631 EOF
|
|
|
6632 }
|
|
|
6633
|
|
|
6634 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
|
|
|
6635 esac
|
|
|
6636
|
|
|
6637
|
|
|
6638
|
|
149
|
6639 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6640 Defining LWLIB_SCROLLBARS_ATHENA
|
|
|
6641 EOF
|
|
|
6642 cat >> confdefs.h <<\EOF
|
|
|
6643 #define LWLIB_SCROLLBARS_ATHENA 1
|
|
|
6644 EOF
|
|
|
6645 }
|
|
|
6646 ;; esac
|
|
|
6647 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6648 Defining LWLIB_DIALOGS_ATHENA
|
|
|
6649 EOF
|
|
|
6650 cat >> confdefs.h <<\EOF
|
|
|
6651 #define LWLIB_DIALOGS_ATHENA 1
|
|
|
6652 EOF
|
|
|
6653 }
|
|
|
6654 ;; esac
|
|
|
6655 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6656 Defining LWLIB_SCROLLBARS_ATHENA3D
|
|
|
6657 EOF
|
|
|
6658 cat >> confdefs.h <<\EOF
|
|
|
6659 #define LWLIB_SCROLLBARS_ATHENA3D 1
|
|
|
6660 EOF
|
|
|
6661 }
|
|
|
6662
|
|
|
6663 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6664 Defining LWLIB_DIALOGS_ATHENA3D
|
|
|
6665 EOF
|
|
|
6666 cat >> confdefs.h <<\EOF
|
|
|
6667 #define LWLIB_DIALOGS_ATHENA3D 1
|
|
|
6668 EOF
|
|
|
6669 }
|
|
|
6670
|
|
|
6671
|
|
|
6672 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6673 Defining HAVE_MENUBARS
|
|
|
6674 EOF
|
|
|
6675 cat >> confdefs.h <<\EOF
|
|
|
6676 #define HAVE_MENUBARS 1
|
|
|
6677 EOF
|
|
|
6678 }
|
|
|
6679
|
|
|
6680 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6681 Defining HAVE_SCROLLBARS
|
|
|
6682 EOF
|
|
|
6683 cat >> confdefs.h <<\EOF
|
|
|
6684 #define HAVE_SCROLLBARS 1
|
|
|
6685 EOF
|
|
|
6686 }
|
|
|
6687
|
|
|
6688 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6689 Defining HAVE_DIALOGS
|
|
|
6690 EOF
|
|
|
6691 cat >> confdefs.h <<\EOF
|
|
|
6692 #define HAVE_DIALOGS 1
|
|
|
6693 EOF
|
|
|
6694 }
|
|
|
6695
|
|
|
6696 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6697 Defining HAVE_TOOLBARS
|
|
|
6698 EOF
|
|
|
6699 cat >> confdefs.h <<\EOF
|
|
|
6700 #define HAVE_TOOLBARS 1
|
|
|
6701 EOF
|
|
|
6702 }
|
|
|
6703
|
|
|
6704
|
|
|
6705 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6706 Defining LWLIB_MENUBARS_LUCID
|
|
|
6707 EOF
|
|
|
6708 cat >> confdefs.h <<\EOF
|
|
|
6709 #define LWLIB_MENUBARS_LUCID 1
|
|
|
6710 EOF
|
|
|
6711 }
|
|
|
6712
|
|
|
6713 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6714 Defining LWLIB_SCROLLBARS_LUCID
|
|
|
6715 EOF
|
|
|
6716 cat >> confdefs.h <<\EOF
|
|
|
6717 #define LWLIB_SCROLLBARS_LUCID 1
|
|
|
6718 EOF
|
|
|
6719 }
|
|
|
6720
|
|
|
6721
|
|
|
6722 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6723 Defining LWLIB_MENUBARS_MOTIF
|
|
|
6724 EOF
|
|
|
6725 cat >> confdefs.h <<\EOF
|
|
|
6726 #define LWLIB_MENUBARS_MOTIF 1
|
|
|
6727 EOF
|
|
|
6728 }
|
|
|
6729
|
|
|
6730 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6731 Defining LWLIB_SCROLLBARS_MOTIF
|
|
|
6732 EOF
|
|
|
6733 cat >> confdefs.h <<\EOF
|
|
|
6734 #define LWLIB_SCROLLBARS_MOTIF 1
|
|
|
6735 EOF
|
|
|
6736 }
|
|
|
6737
|
|
|
6738 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6739 Defining LWLIB_DIALOGS_MOTIF
|
|
|
6740 EOF
|
|
|
6741 cat >> confdefs.h <<\EOF
|
|
|
6742 #define LWLIB_DIALOGS_MOTIF 1
|
|
|
6743 EOF
|
|
|
6744 }
|
|
|
6745
|
|
|
6746
|
|
151
|
6747 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6748 echo " xemacs will be linked with \"menubar.o\""
|
|
|
6749 fi
|
|
|
6750 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6751 echo " xemacs will be linked with \"scrollbar.o\""
|
|
|
6752 fi
|
|
|
6753 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6754 echo " xemacs will be linked with \"dialog.o\""
|
|
|
6755 fi
|
|
|
6756 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6757 echo " xemacs will be linked with \"toolbar.o\""
|
|
|
6758 fi
|
|
|
6759 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6760 echo " xemacs will be linked with \"gui.o\""
|
|
|
6761 fi
|
|
149
|
6762
|
|
|
6763 if test "$with_x11" = "yes"; then
|
|
151
|
6764 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6765 echo " xemacs will be linked with \"menubar-x.o\""
|
|
|
6766 fi
|
|
|
6767 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6768 echo " xemacs will be linked with \"scrollbar-x.o\""
|
|
|
6769 fi
|
|
|
6770 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6771 echo " xemacs will be linked with \"dialog-x.o\""
|
|
|
6772 fi
|
|
|
6773 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6774 echo " xemacs will be linked with \"toolbar-x.o\""
|
|
|
6775 fi
|
|
|
6776 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6777 echo " xemacs will be linked with \"gui-x.o\""
|
|
|
6778 fi
|
|
211
|
6779 else
|
|
|
6780 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
|
|
|
6781 echo "Attempt to Build NAS sound without X"
|
|
|
6782 echo "Please remove NAS configuration or build with X"
|
|
|
6783 exit 1
|
|
|
6784 fi
|
|
149
|
6785 fi
|
|
|
6786
|
|
|
6787
|
|
|
6788 test -z "$with_mule" && with_mule=no
|
|
|
6789
|
|
207
|
6790
|
|
149
|
6791 if test "$with_mule" = "yes" ; then
|
|
151
|
6792 echo "checking for Mule-related features" 1>&6
|
|
243
|
6793 echo "configure:6794: checking for Mule-related features" >&5
|
|
149
|
6794 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6795 Defining MULE
|
|
|
6796 EOF
|
|
|
6797 cat >> confdefs.h <<\EOF
|
|
|
6798 #define MULE 1
|
|
|
6799 EOF
|
|
|
6800 }
|
|
|
6801
|
|
151
|
6802 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o mule-coding.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6803 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o mule-coding.o\""
|
|
|
6804 fi
|
|
149
|
6805
|
|
155
|
6806 for ac_hdr in libintl.h
|
|
|
6807 do
|
|
|
6808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
6809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
243
|
6810 echo "configure:6811: checking for $ac_hdr" >&5
|
|
|
6811
|
|
|
6812 cat > conftest.$ac_ext <<EOF
|
|
|
6813 #line 6814 "configure"
|
|
155
|
6814 #include "confdefs.h"
|
|
|
6815 #include <$ac_hdr>
|
|
|
6816 EOF
|
|
|
6817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
6818 { (eval echo configure:6819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
155
|
6819 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
6820 if test -z "$ac_err"; then
|
|
|
6821 rm -rf conftest*
|
|
|
6822 eval "ac_cv_header_$ac_safe=yes"
|
|
|
6823 else
|
|
|
6824 echo "$ac_err" >&5
|
|
|
6825 echo "configure: failed program was:" >&5
|
|
|
6826 cat conftest.$ac_ext >&5
|
|
|
6827 rm -rf conftest*
|
|
|
6828 eval "ac_cv_header_$ac_safe=no"
|
|
|
6829 fi
|
|
|
6830 rm -f conftest*
|
|
|
6831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
6832 echo "$ac_t""yes" 1>&6
|
|
|
6833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
6834 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
6835 Defining $ac_tr_hdr
|
|
|
6836 EOF
|
|
|
6837 cat >> confdefs.h <<EOF
|
|
|
6838 #define $ac_tr_hdr 1
|
|
|
6839 EOF
|
|
|
6840 }
|
|
|
6841
|
|
|
6842 else
|
|
|
6843 echo "$ac_t""no" 1>&6
|
|
|
6844 fi
|
|
|
6845 done
|
|
|
6846
|
|
|
6847
|
|
149
|
6848 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
|
|
243
|
6849 echo "configure:6850: checking for strerror in -lintl" >&5
|
|
149
|
6850 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
|
|
|
6851
|
|
|
6852 xe_check_libs=" -lintl "
|
|
|
6853 cat > conftest.$ac_ext <<EOF
|
|
243
|
6854 #line 6855 "configure"
|
|
149
|
6855 #include "confdefs.h"
|
|
|
6856 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6857 /* We use char because int might match the return type of a gcc2
|
|
|
6858 builtin and then its argument prototype would still apply. */
|
|
|
6859 char strerror();
|
|
|
6860
|
|
|
6861 int main() {
|
|
|
6862 strerror()
|
|
|
6863 ; return 0; }
|
|
|
6864 EOF
|
|
243
|
6865 if { (eval echo configure:6866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
6866 rm -rf conftest*
|
|
|
6867 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6868 else
|
|
|
6869 echo "configure: failed program was:" >&5
|
|
|
6870 cat conftest.$ac_ext >&5
|
|
|
6871 rm -rf conftest*
|
|
|
6872 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6873 fi
|
|
|
6874 rm -f conftest*
|
|
|
6875 xe_check_libs=""
|
|
|
6876
|
|
151
|
6877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
6878 echo "$ac_t""yes" 1>&6
|
|
|
6879 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
6880 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
6881 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
6882 Defining $ac_tr_lib
|
|
|
6883 EOF
|
|
|
6884 cat >> confdefs.h <<EOF
|
|
|
6885 #define $ac_tr_lib 1
|
|
|
6886 EOF
|
|
|
6887 }
|
|
|
6888
|
|
151
|
6889 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
|
|
149
|
6890
|
|
|
6891 else
|
|
|
6892 echo "$ac_t""no" 1>&6
|
|
|
6893 fi
|
|
|
6894
|
|
|
6895
|
|
|
6896
|
|
|
6897 echo "checking for Mule input methods" 1>&6
|
|
243
|
6898 echo "configure:6899: checking for Mule input methods" >&5
|
|
163
|
6899 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
|
|
151
|
6900 case "$with_xim" in "" | "yes" )
|
|
149
|
6901 echo "checking for XIM" 1>&6
|
|
243
|
6902 echo "configure:6903: checking for XIM" >&5
|
|
149
|
6903
|
|
|
6904 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
|
|
243
|
6905 echo "configure:6906: checking for XmImMbLookupString in -lXm" >&5
|
|
149
|
6906 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
|
|
|
6907
|
|
|
6908 xe_check_libs=" -lXm "
|
|
|
6909 cat > conftest.$ac_ext <<EOF
|
|
243
|
6910 #line 6911 "configure"
|
|
149
|
6911 #include "confdefs.h"
|
|
|
6912 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6913 /* We use char because int might match the return type of a gcc2
|
|
|
6914 builtin and then its argument prototype would still apply. */
|
|
|
6915 char XmImMbLookupString();
|
|
|
6916
|
|
|
6917 int main() {
|
|
|
6918 XmImMbLookupString()
|
|
|
6919 ; return 0; }
|
|
|
6920 EOF
|
|
243
|
6921 if { (eval echo configure:6922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
6922 rm -rf conftest*
|
|
|
6923 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6924 else
|
|
|
6925 echo "configure: failed program was:" >&5
|
|
|
6926 cat conftest.$ac_ext >&5
|
|
|
6927 rm -rf conftest*
|
|
|
6928 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6929 fi
|
|
|
6930 rm -f conftest*
|
|
|
6931 xe_check_libs=""
|
|
|
6932
|
|
151
|
6933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
6934 echo "$ac_t""yes" 1>&6
|
|
|
6935 with_xim=motif
|
|
|
6936 else
|
|
|
6937 echo "$ac_t""no" 1>&6
|
|
|
6938 with_xim=xlib
|
|
|
6939 fi
|
|
|
6940
|
|
|
6941
|
|
|
6942 esac
|
|
|
6943 if test "$with_xim" != "no" ; then
|
|
|
6944 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6945 Defining HAVE_XIM
|
|
|
6946 EOF
|
|
|
6947 cat >> confdefs.h <<\EOF
|
|
|
6948 #define HAVE_XIM 1
|
|
|
6949 EOF
|
|
|
6950 }
|
|
|
6951
|
|
|
6952 if test "$with_xim" = "xlib"; then
|
|
|
6953 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6954 Defining XIM_XLIB
|
|
|
6955 EOF
|
|
|
6956 cat >> confdefs.h <<\EOF
|
|
|
6957 #define XIM_XLIB 1
|
|
|
6958 EOF
|
|
|
6959 }
|
|
|
6960
|
|
151
|
6961 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6962 echo " xemacs will be linked with \"input-method-xlib.o\""
|
|
|
6963 fi
|
|
|
6964 fi
|
|
149
|
6965 if test "$with_xim" = "motif"; then
|
|
|
6966 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6967 Defining XIM_MOTIF
|
|
|
6968 EOF
|
|
|
6969 cat >> confdefs.h <<\EOF
|
|
|
6970 #define XIM_MOTIF 1
|
|
|
6971 EOF
|
|
|
6972 }
|
|
|
6973
|
|
|
6974 need_motif=yes
|
|
151
|
6975 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6976 echo " xemacs will be linked with \"input-method-motif.o\""
|
|
|
6977 fi
|
|
149
|
6978 fi
|
|
215
|
6979 if test "$with_xim" = "motif"; then
|
|
177
|
6980 with_xfs=no
|
|
|
6981 fi
|
|
215
|
6982 fi
|
|
|
6983
|
|
|
6984 if test "$with_xfs" = "yes" ; then
|
|
|
6985 echo "checking for XFontSet" 1>&6
|
|
243
|
6986 echo "configure:6987: checking for XFontSet" >&5
|
|
215
|
6987
|
|
177
|
6988 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
|
|
243
|
6989 echo "configure:6990: checking for XmbDrawString in -lX11" >&5
|
|
177
|
6990 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
|
|
|
6991
|
|
|
6992 xe_check_libs=" -lX11 "
|
|
|
6993 cat > conftest.$ac_ext <<EOF
|
|
243
|
6994 #line 6995 "configure"
|
|
177
|
6995 #include "confdefs.h"
|
|
|
6996 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6997 /* We use char because int might match the return type of a gcc2
|
|
|
6998 builtin and then its argument prototype would still apply. */
|
|
|
6999 char XmbDrawString();
|
|
|
7000
|
|
|
7001 int main() {
|
|
|
7002 XmbDrawString()
|
|
|
7003 ; return 0; }
|
|
|
7004 EOF
|
|
243
|
7005 if { (eval echo configure:7006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
177
|
7006 rm -rf conftest*
|
|
|
7007 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7008 else
|
|
|
7009 echo "configure: failed program was:" >&5
|
|
|
7010 cat conftest.$ac_ext >&5
|
|
|
7011 rm -rf conftest*
|
|
|
7012 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7013 fi
|
|
|
7014 rm -f conftest*
|
|
|
7015 xe_check_libs=""
|
|
|
7016
|
|
|
7017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
7018 echo "$ac_t""yes" 1>&6
|
|
|
7019 :
|
|
|
7020 else
|
|
|
7021 echo "$ac_t""no" 1>&6
|
|
|
7022 with_xfs=no
|
|
|
7023 fi
|
|
|
7024
|
|
|
7025
|
|
|
7026 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
|
|
|
7027 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7028 Defining USE_XFONTSET
|
|
|
7029 EOF
|
|
|
7030 cat >> confdefs.h <<\EOF
|
|
|
7031 #define USE_XFONTSET 1
|
|
|
7032 EOF
|
|
|
7033 }
|
|
|
7034
|
|
215
|
7035 if test "$with_xim" = "no" ; then
|
|
|
7036 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
|
|
177
|
7037 echo " xemacs will be linked with \"input-method-xfs.o\""
|
|
|
7038 fi
|
|
215
|
7039 fi
|
|
177
|
7040 fi
|
|
151
|
7041 fi
|
|
149
|
7042 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
|
|
151
|
7043 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
|
|
|
7044 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
|
|
243
|
7045 echo "configure:7046: checking for wnn/jllib.h" >&5
|
|
|
7046
|
|
|
7047 cat > conftest.$ac_ext <<EOF
|
|
|
7048 #line 7049 "configure"
|
|
151
|
7049 #include "confdefs.h"
|
|
|
7050 #include <wnn/jllib.h>
|
|
149
|
7051 EOF
|
|
|
7052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
7053 { (eval echo configure:7054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
7054 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
7055 if test -z "$ac_err"; then
|
|
|
7056 rm -rf conftest*
|
|
|
7057 eval "ac_cv_header_$ac_safe=yes"
|
|
|
7058 else
|
|
|
7059 echo "$ac_err" >&5
|
|
|
7060 echo "configure: failed program was:" >&5
|
|
|
7061 cat conftest.$ac_ext >&5
|
|
|
7062 rm -rf conftest*
|
|
|
7063 eval "ac_cv_header_$ac_safe=no"
|
|
|
7064 fi
|
|
|
7065 rm -f conftest*
|
|
|
7066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
7067 echo "$ac_t""yes" 1>&6
|
|
|
7068 :
|
|
|
7069 else
|
|
|
7070 echo "$ac_t""no" 1>&6
|
|
|
7071 with_wnn=no
|
|
|
7072 fi
|
|
|
7073 }
|
|
167
|
7074 if test "$with_wnn" != "no"; then
|
|
|
7075 for ac_func in crypt
|
|
|
7076 do
|
|
|
7077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
243
|
7078 echo "configure:7079: checking for $ac_func" >&5
|
|
|
7079
|
|
|
7080 cat > conftest.$ac_ext <<EOF
|
|
|
7081 #line 7082 "configure"
|
|
167
|
7082 #include "confdefs.h"
|
|
|
7083 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
7084 which can conflict with char $ac_func(); below. */
|
|
|
7085 #include <assert.h>
|
|
|
7086 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7087 /* We use char because int might match the return type of a gcc2
|
|
|
7088 builtin and then its argument prototype would still apply. */
|
|
|
7089 char $ac_func();
|
|
|
7090
|
|
|
7091 int main() {
|
|
|
7092
|
|
|
7093 /* The GNU C library defines this for functions which it implements
|
|
|
7094 to always fail with ENOSYS. Some functions are actually named
|
|
|
7095 something starting with __ and the normal name is an alias. */
|
|
|
7096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
7097 choke me
|
|
|
7098 #else
|
|
|
7099 $ac_func();
|
|
|
7100 #endif
|
|
|
7101
|
|
|
7102 ; return 0; }
|
|
|
7103 EOF
|
|
243
|
7104 if { (eval echo configure:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
167
|
7105 rm -rf conftest*
|
|
|
7106 eval "ac_cv_func_$ac_func=yes"
|
|
|
7107 else
|
|
|
7108 echo "configure: failed program was:" >&5
|
|
|
7109 cat conftest.$ac_ext >&5
|
|
|
7110 rm -rf conftest*
|
|
|
7111 eval "ac_cv_func_$ac_func=no"
|
|
|
7112 fi
|
|
|
7113 rm -f conftest*
|
|
|
7114
|
|
|
7115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
7116 echo "$ac_t""yes" 1>&6
|
|
|
7117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
7118 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7119 Defining $ac_tr_func
|
|
|
7120 EOF
|
|
|
7121 cat >> confdefs.h <<EOF
|
|
|
7122 #define $ac_tr_func 1
|
|
|
7123 EOF
|
|
|
7124 }
|
|
|
7125
|
|
|
7126 else
|
|
|
7127 echo "$ac_t""no" 1>&6
|
|
|
7128 fi
|
|
|
7129 done
|
|
|
7130
|
|
|
7131 test "$ac_cv_func_crypt" != "yes" && {
|
|
|
7132 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
|
243
|
7133 echo "configure:7134: checking for crypt in -lcrypt" >&5
|
|
167
|
7134 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
|
|
|
7135
|
|
|
7136 xe_check_libs=" -lcrypt "
|
|
|
7137 cat > conftest.$ac_ext <<EOF
|
|
243
|
7138 #line 7139 "configure"
|
|
167
|
7139 #include "confdefs.h"
|
|
|
7140 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7141 /* We use char because int might match the return type of a gcc2
|
|
|
7142 builtin and then its argument prototype would still apply. */
|
|
|
7143 char crypt();
|
|
|
7144
|
|
|
7145 int main() {
|
|
|
7146 crypt()
|
|
|
7147 ; return 0; }
|
|
|
7148 EOF
|
|
243
|
7149 if { (eval echo configure:7150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
167
|
7150 rm -rf conftest*
|
|
|
7151 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7152 else
|
|
|
7153 echo "configure: failed program was:" >&5
|
|
|
7154 cat conftest.$ac_ext >&5
|
|
|
7155 rm -rf conftest*
|
|
|
7156 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7157 fi
|
|
|
7158 rm -f conftest*
|
|
|
7159 xe_check_libs=""
|
|
|
7160
|
|
|
7161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
7162 echo "$ac_t""yes" 1>&6
|
|
|
7163 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
7164 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
7165 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7166 Defining $ac_tr_lib
|
|
|
7167 EOF
|
|
|
7168 cat >> confdefs.h <<EOF
|
|
|
7169 #define $ac_tr_lib 1
|
|
|
7170 EOF
|
|
|
7171 }
|
|
|
7172
|
|
|
7173 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
|
|
|
7174
|
|
|
7175 else
|
|
|
7176 echo "$ac_t""no" 1>&6
|
|
|
7177 fi
|
|
|
7178
|
|
|
7179 }
|
|
|
7180 fi
|
|
|
7181 test -z "$with_wnn" && {
|
|
159
|
7182 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
|
|
243
|
7183 echo "configure:7184: checking for jl_dic_list_e in -lwnn" >&5
|
|
155
|
7184 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
149
|
7185
|
|
159
|
7186 xe_check_libs=" -lwnn "
|
|
|
7187 cat > conftest.$ac_ext <<EOF
|
|
243
|
7188 #line 7189 "configure"
|
|
149
|
7189 #include "confdefs.h"
|
|
|
7190 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7191 /* We use char because int might match the return type of a gcc2
|
|
|
7192 builtin and then its argument prototype would still apply. */
|
|
155
|
7193 char jl_dic_list_e();
|
|
149
|
7194
|
|
|
7195 int main() {
|
|
155
|
7196 jl_dic_list_e()
|
|
149
|
7197 ; return 0; }
|
|
|
7198 EOF
|
|
243
|
7199 if { (eval echo configure:7200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7200 rm -rf conftest*
|
|
|
7201 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7202 else
|
|
|
7203 echo "configure: failed program was:" >&5
|
|
|
7204 cat conftest.$ac_ext >&5
|
|
|
7205 rm -rf conftest*
|
|
|
7206 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7207 fi
|
|
|
7208 rm -f conftest*
|
|
|
7209 xe_check_libs=""
|
|
|
7210
|
|
151
|
7211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
7212 echo "$ac_t""yes" 1>&6
|
|
159
|
7213 :
|
|
|
7214 else
|
|
|
7215 echo "$ac_t""no" 1>&6
|
|
|
7216 with_wnn=no
|
|
149
|
7217 fi
|
|
|
7218
|
|
|
7219 }
|
|
|
7220 test -z "$with_wnn" && with_wnn=yes
|
|
|
7221 if test "$with_wnn" = "yes"; then
|
|
|
7222 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7223 Defining HAVE_WNN
|
|
|
7224 EOF
|
|
|
7225 cat >> confdefs.h <<\EOF
|
|
|
7226 #define HAVE_WNN 1
|
|
|
7227 EOF
|
|
|
7228 }
|
|
|
7229
|
|
151
|
7230 libs_x="-lwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lwnn\" to \$libs_x"; fi
|
|
|
7231 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7232 echo " xemacs will be linked with \"mule-wnnfns.o\""
|
|
|
7233 fi
|
|
149
|
7234
|
|
|
7235 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
|
|
243
|
7236 echo "configure:7237: checking for jl_fi_dic_list in -lwnn" >&5
|
|
149
|
7237 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
|
|
|
7238
|
|
|
7239 xe_check_libs=" -lwnn "
|
|
|
7240 cat > conftest.$ac_ext <<EOF
|
|
243
|
7241 #line 7242 "configure"
|
|
149
|
7242 #include "confdefs.h"
|
|
|
7243 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7244 /* We use char because int might match the return type of a gcc2
|
|
|
7245 builtin and then its argument prototype would still apply. */
|
|
|
7246 char jl_fi_dic_list();
|
|
|
7247
|
|
|
7248 int main() {
|
|
|
7249 jl_fi_dic_list()
|
|
|
7250 ; return 0; }
|
|
|
7251 EOF
|
|
243
|
7252 if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7253 rm -rf conftest*
|
|
|
7254 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7255 else
|
|
|
7256 echo "configure: failed program was:" >&5
|
|
|
7257 cat conftest.$ac_ext >&5
|
|
|
7258 rm -rf conftest*
|
|
|
7259 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7260 fi
|
|
|
7261 rm -f conftest*
|
|
|
7262 xe_check_libs=""
|
|
|
7263
|
|
151
|
7264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
7265 echo "$ac_t""yes" 1>&6
|
|
|
7266 with_wnn6=yes
|
|
|
7267 else
|
|
|
7268 echo "$ac_t""no" 1>&6
|
|
|
7269 fi
|
|
|
7270
|
|
|
7271
|
|
|
7272 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
151
|
7273 Defining WNN6
|
|
|
7274 EOF
|
|
|
7275 cat >> confdefs.h <<\EOF
|
|
|
7276 #define WNN6 1
|
|
|
7277 EOF
|
|
|
7278 }
|
|
|
7279
|
|
|
7280 fi
|
|
149
|
7281
|
|
|
7282 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
|
|
|
7283 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
|
|
243
|
7284 echo "configure:7285: checking for canna/RK.h" >&5
|
|
|
7285
|
|
|
7286 cat > conftest.$ac_ext <<EOF
|
|
|
7287 #line 7288 "configure"
|
|
149
|
7288 #include "confdefs.h"
|
|
|
7289 #include <canna/RK.h>
|
|
|
7290 EOF
|
|
|
7291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
7292 { (eval echo configure:7293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
7293 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
7294 if test -z "$ac_err"; then
|
|
|
7295 rm -rf conftest*
|
|
|
7296 eval "ac_cv_header_$ac_safe=yes"
|
|
|
7297 else
|
|
|
7298 echo "$ac_err" >&5
|
|
|
7299 echo "configure: failed program was:" >&5
|
|
|
7300 cat conftest.$ac_ext >&5
|
|
|
7301 rm -rf conftest*
|
|
|
7302 eval "ac_cv_header_$ac_safe=no"
|
|
|
7303 fi
|
|
|
7304 rm -f conftest*
|
|
|
7305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
7306 echo "$ac_t""yes" 1>&6
|
|
|
7307 :
|
|
|
7308 else
|
|
|
7309 echo "$ac_t""no" 1>&6
|
|
|
7310 with_canna=no
|
|
|
7311 fi
|
|
|
7312 }
|
|
|
7313 test -z "$with_canna" && {
|
|
|
7314 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
|
|
243
|
7315 echo "configure:7316: checking for RkBgnBun in -lRKC" >&5
|
|
149
|
7316 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
|
|
|
7317
|
|
|
7318 xe_check_libs=" -lRKC "
|
|
|
7319 cat > conftest.$ac_ext <<EOF
|
|
243
|
7320 #line 7321 "configure"
|
|
149
|
7321 #include "confdefs.h"
|
|
|
7322 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7323 /* We use char because int might match the return type of a gcc2
|
|
|
7324 builtin and then its argument prototype would still apply. */
|
|
|
7325 char RkBgnBun();
|
|
|
7326
|
|
|
7327 int main() {
|
|
|
7328 RkBgnBun()
|
|
|
7329 ; return 0; }
|
|
|
7330 EOF
|
|
243
|
7331 if { (eval echo configure:7332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7332 rm -rf conftest*
|
|
|
7333 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7334 else
|
|
|
7335 echo "configure: failed program was:" >&5
|
|
|
7336 cat conftest.$ac_ext >&5
|
|
|
7337 rm -rf conftest*
|
|
|
7338 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7339 fi
|
|
|
7340 rm -f conftest*
|
|
|
7341 xe_check_libs=""
|
|
|
7342
|
|
151
|
7343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
7344 echo "$ac_t""yes" 1>&6
|
|
|
7345 :
|
|
|
7346 else
|
|
|
7347 echo "$ac_t""no" 1>&6
|
|
|
7348 with_canna=no
|
|
|
7349 fi
|
|
|
7350
|
|
|
7351 }
|
|
|
7352 test -z "$with_canna" && {
|
|
|
7353 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
|
|
243
|
7354 echo "configure:7355: checking for jrKanjiControl in -lcanna" >&5
|
|
149
|
7355 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
|
|
|
7356
|
|
|
7357 xe_check_libs=" -lcanna "
|
|
|
7358 cat > conftest.$ac_ext <<EOF
|
|
243
|
7359 #line 7360 "configure"
|
|
149
|
7360 #include "confdefs.h"
|
|
|
7361 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7362 /* We use char because int might match the return type of a gcc2
|
|
|
7363 builtin and then its argument prototype would still apply. */
|
|
|
7364 char jrKanjiControl();
|
|
|
7365
|
|
|
7366 int main() {
|
|
|
7367 jrKanjiControl()
|
|
|
7368 ; return 0; }
|
|
|
7369 EOF
|
|
243
|
7370 if { (eval echo configure:7371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7371 rm -rf conftest*
|
|
|
7372 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7373 else
|
|
|
7374 echo "configure: failed program was:" >&5
|
|
|
7375 cat conftest.$ac_ext >&5
|
|
|
7376 rm -rf conftest*
|
|
|
7377 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7378 fi
|
|
|
7379 rm -f conftest*
|
|
|
7380 xe_check_libs=""
|
|
|
7381
|
|
151
|
7382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
7383 echo "$ac_t""yes" 1>&6
|
|
|
7384 :
|
|
|
7385 else
|
|
|
7386 echo "$ac_t""no" 1>&6
|
|
|
7387 with_canna=no
|
|
|
7388 fi
|
|
|
7389
|
|
|
7390 }
|
|
|
7391 test -z "$with_canna" && with_canna=yes
|
|
|
7392 if test "$with_canna" = "yes"; then
|
|
|
7393 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7394 Defining HAVE_CANNA
|
|
|
7395 EOF
|
|
|
7396 cat >> confdefs.h <<\EOF
|
|
|
7397 #define HAVE_CANNA 1
|
|
|
7398 EOF
|
|
|
7399 }
|
|
|
7400
|
|
151
|
7401 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
|
|
|
7402 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7403 echo " xemacs will be linked with \"mule-canna.o\""
|
|
|
7404 fi
|
|
|
7405 fi
|
|
155
|
7406
|
|
151
|
7407 else for feature in xim canna wnn; do
|
|
149
|
7408 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
|
7409 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
|
|
|
7410 fi
|
|
|
7411 eval "with_${feature}=no"
|
|
|
7412 done
|
|
151
|
7413 fi
|
|
|
7414
|
|
|
7415 if test "$need_motif" = "yes" ; then
|
|
|
7416 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
|
|
207
|
7417
|
|
|
7418 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
|
|
243
|
7419 echo "configure:7420: checking for layout_object_getvalue in -li18n" >&5
|
|
207
|
7420 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
|
|
|
7421
|
|
|
7422 xe_check_libs=" -li18n "
|
|
|
7423 cat > conftest.$ac_ext <<EOF
|
|
243
|
7424 #line 7425 "configure"
|
|
207
|
7425 #include "confdefs.h"
|
|
|
7426 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7427 /* We use char because int might match the return type of a gcc2
|
|
|
7428 builtin and then its argument prototype would still apply. */
|
|
|
7429 char layout_object_getvalue();
|
|
|
7430
|
|
|
7431 int main() {
|
|
|
7432 layout_object_getvalue()
|
|
|
7433 ; return 0; }
|
|
|
7434 EOF
|
|
243
|
7435 if { (eval echo configure:7436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
207
|
7436 rm -rf conftest*
|
|
|
7437 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7438 else
|
|
|
7439 echo "configure: failed program was:" >&5
|
|
|
7440 cat conftest.$ac_ext >&5
|
|
|
7441 rm -rf conftest*
|
|
|
7442 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7443 fi
|
|
|
7444 rm -f conftest*
|
|
|
7445 xe_check_libs=""
|
|
|
7446
|
|
|
7447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
7448 echo "$ac_t""yes" 1>&6
|
|
|
7449 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
|
|
|
7450 else
|
|
|
7451 echo "$ac_t""no" 1>&6
|
|
|
7452 fi
|
|
|
7453
|
|
|
7454
|
|
151
|
7455
|
|
|
7456 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
|
165
|
7457 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
|
7458 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
151
|
7459
|
|
163
|
7460 runpath="" runpath_dirs=""
|
|
155
|
7461 if test -n "$LD_RUN_PATH"; then
|
|
151
|
7462 runpath="$LD_RUN_PATH"
|
|
155
|
7463 elif test "$GCC" = "yes"; then
|
|
163
|
7464 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
|
7465 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
|
155
|
7466 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
|
7467 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
|
7468 case "$arg" in P,* | -L* | -R* )
|
|
159
|
7469 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
|
163
|
7470 {
|
|
155
|
7471 xe_runpath_dir="$dir"
|
|
163
|
7472 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
7473 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
7474 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
7475 eval "$xe_add_unique_runpath_dir"
|
|
|
7476 }
|
|
155
|
7477 done ;;
|
|
|
7478 esac
|
|
|
7479 done
|
|
163
|
7480 ld_switch_run="$ld_switch_run_save"
|
|
155
|
7481 rm -f conftest*
|
|
151
|
7482 else
|
|
155
|
7483 for arg in $ld_switch_site $ld_switch_x_site; do
|
|
163
|
7484 case "$arg" in -L*) {
|
|
159
|
7485 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
|
163
|
7486 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
7487 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
7488 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
7489 eval "$xe_add_unique_runpath_dir"
|
|
|
7490 };; esac
|
|
151
|
7491 done
|
|
163
|
7492 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
|
7493 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
|
7494 eval "$xe_add_unique_runpath_dir";
|
|
|
7495 fi
|
|
155
|
7496 fi
|
|
151
|
7497 if test -n "$runpath"; then
|
|
|
7498 ld_switch_run="${dash_r}${runpath}"
|
|
|
7499 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
|
7500 fi
|
|
|
7501 fi
|
|
|
7502
|
|
|
7503 fi
|
|
|
7504
|
|
243
|
7505 for ac_func in 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
|
7506 do
|
|
|
7507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
243
|
7508 echo "configure:7509: checking for $ac_func" >&5
|
|
|
7509
|
|
|
7510 cat > conftest.$ac_ext <<EOF
|
|
|
7511 #line 7512 "configure"
|
|
149
|
7512 #include "confdefs.h"
|
|
|
7513 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
7514 which can conflict with char $ac_func(); below. */
|
|
|
7515 #include <assert.h>
|
|
|
7516 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7517 /* We use char because int might match the return type of a gcc2
|
|
|
7518 builtin and then its argument prototype would still apply. */
|
|
|
7519 char $ac_func();
|
|
|
7520
|
|
|
7521 int main() {
|
|
|
7522
|
|
70
|
7523 /* The GNU C library defines this for functions which it implements
|
|
|
7524 to always fail with ENOSYS. Some functions are actually named
|
|
|
7525 something starting with __ and the normal name is an alias. */
|
|
149
|
7526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
70
|
7527 choke me
|
|
|
7528 #else
|
|
149
|
7529 $ac_func();
|
|
70
|
7530 #endif
|
|
149
|
7531
|
|
70
|
7532 ; return 0; }
|
|
|
7533 EOF
|
|
243
|
7534 if { (eval echo configure:7535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7535 rm -rf conftest*
|
|
|
7536 eval "ac_cv_func_$ac_func=yes"
|
|
|
7537 else
|
|
|
7538 echo "configure: failed program was:" >&5
|
|
|
7539 cat conftest.$ac_ext >&5
|
|
|
7540 rm -rf conftest*
|
|
|
7541 eval "ac_cv_func_$ac_func=no"
|
|
|
7542 fi
|
|
|
7543 rm -f conftest*
|
|
|
7544
|
|
|
7545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
7546 echo "$ac_t""yes" 1>&6
|
|
|
7547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
7548 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7549 Defining $ac_tr_func
|
|
|
7550 EOF
|
|
|
7551 cat >> confdefs.h <<EOF
|
|
|
7552 #define $ac_tr_func 1
|
|
|
7553 EOF
|
|
|
7554 }
|
|
|
7555
|
|
|
7556 else
|
|
|
7557 echo "$ac_t""no" 1>&6
|
|
|
7558 fi
|
|
|
7559 done
|
|
|
7560
|
|
|
7561
|
|
151
|
7562
|
|
|
7563 case "$opsys" in
|
|
209
|
7564 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
|
|
151
|
7565 echo " xemacs will be linked with \"realpath.o\""
|
|
|
7566 fi ;;
|
|
|
7567 * )
|
|
|
7568 for ac_func in realpath
|
|
|
7569 do
|
|
|
7570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
243
|
7571 echo "configure:7572: checking for $ac_func" >&5
|
|
|
7572
|
|
|
7573 cat > conftest.$ac_ext <<EOF
|
|
|
7574 #line 7575 "configure"
|
|
151
|
7575 #include "confdefs.h"
|
|
|
7576 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
7577 which can conflict with char $ac_func(); below. */
|
|
|
7578 #include <assert.h>
|
|
|
7579 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7580 /* We use char because int might match the return type of a gcc2
|
|
|
7581 builtin and then its argument prototype would still apply. */
|
|
|
7582 char $ac_func();
|
|
|
7583
|
|
|
7584 int main() {
|
|
|
7585
|
|
|
7586 /* The GNU C library defines this for functions which it implements
|
|
|
7587 to always fail with ENOSYS. Some functions are actually named
|
|
|
7588 something starting with __ and the normal name is an alias. */
|
|
|
7589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
7590 choke me
|
|
|
7591 #else
|
|
|
7592 $ac_func();
|
|
|
7593 #endif
|
|
|
7594
|
|
|
7595 ; return 0; }
|
|
|
7596 EOF
|
|
243
|
7597 if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
7598 rm -rf conftest*
|
|
|
7599 eval "ac_cv_func_$ac_func=yes"
|
|
|
7600 else
|
|
|
7601 echo "configure: failed program was:" >&5
|
|
|
7602 cat conftest.$ac_ext >&5
|
|
|
7603 rm -rf conftest*
|
|
|
7604 eval "ac_cv_func_$ac_func=no"
|
|
|
7605 fi
|
|
|
7606 rm -f conftest*
|
|
|
7607
|
|
|
7608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
7609 echo "$ac_t""yes" 1>&6
|
|
|
7610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
7611 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7612 Defining $ac_tr_func
|
|
|
7613 EOF
|
|
|
7614 cat >> confdefs.h <<EOF
|
|
|
7615 #define $ac_tr_func 1
|
|
|
7616 EOF
|
|
|
7617 }
|
|
|
7618
|
|
|
7619 else
|
|
|
7620 echo "$ac_t""no" 1>&6
|
|
|
7621 fi
|
|
|
7622 done
|
|
|
7623
|
|
|
7624 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7625 echo " xemacs will be linked with \"realpath.o\""
|
|
|
7626 fi ;;
|
|
|
7627 esac
|
|
|
7628
|
|
149
|
7629 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
|
|
243
|
7630 echo "configure:7631: checking whether netdb declares h_errno" >&5
|
|
|
7631 cat > conftest.$ac_ext <<EOF
|
|
|
7632 #line 7633 "configure"
|
|
0
|
7633 #include "confdefs.h"
|
|
|
7634 #include <netdb.h>
|
|
149
|
7635 int main() {
|
|
|
7636 return h_errno;
|
|
|
7637 ; return 0; }
|
|
|
7638 EOF
|
|
243
|
7639 if { (eval echo configure:7640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7640 rm -rf conftest*
|
|
|
7641 echo "$ac_t""yes" 1>&6
|
|
|
7642 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7643 Defining HAVE_H_ERRNO
|
|
|
7644 EOF
|
|
|
7645 cat >> confdefs.h <<\EOF
|
|
|
7646 #define HAVE_H_ERRNO 1
|
|
|
7647 EOF
|
|
|
7648 }
|
|
|
7649
|
|
|
7650 else
|
|
|
7651 echo "configure: failed program was:" >&5
|
|
|
7652 cat conftest.$ac_ext >&5
|
|
|
7653 rm -rf conftest*
|
|
|
7654 echo "$ac_t""no" 1>&6
|
|
|
7655 fi
|
|
|
7656 rm -f conftest*
|
|
|
7657
|
|
|
7658 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
|
|
243
|
7659 echo "configure:7660: checking for sigsetjmp" >&5
|
|
|
7660 cat > conftest.$ac_ext <<EOF
|
|
|
7661 #line 7662 "configure"
|
|
0
|
7662 #include "confdefs.h"
|
|
|
7663 #include <setjmp.h>
|
|
149
|
7664 int main() {
|
|
|
7665 sigjmp_buf bar; sigsetjmp (bar, 0);
|
|
|
7666 ; return 0; }
|
|
|
7667 EOF
|
|
243
|
7668 if { (eval echo configure:7669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
7669 rm -rf conftest*
|
|
|
7670 echo "$ac_t""yes" 1>&6
|
|
|
7671 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7672 Defining HAVE_SIGSETJMP
|
|
|
7673 EOF
|
|
|
7674 cat >> confdefs.h <<\EOF
|
|
|
7675 #define HAVE_SIGSETJMP 1
|
|
|
7676 EOF
|
|
|
7677 }
|
|
|
7678
|
|
|
7679 else
|
|
|
7680 echo "configure: failed program was:" >&5
|
|
|
7681 cat conftest.$ac_ext >&5
|
|
|
7682 rm -rf conftest*
|
|
|
7683 echo "$ac_t""no" 1>&6
|
|
|
7684 fi
|
|
|
7685 rm -f conftest*
|
|
|
7686
|
|
|
7687 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
|
|
243
|
7688 echo "configure:7689: checking whether localtime caches TZ" >&5
|
|
149
|
7689
|
|
|
7690 if test "$ac_cv_func_tzset" = "yes"; then
|
|
|
7691 cat > conftest.$ac_ext <<EOF
|
|
243
|
7692 #line 7693 "configure"
|
|
0
|
7693 #include "confdefs.h"
|
|
|
7694 #include <time.h>
|
|
149
|
7695 #if STDC_HEADERS
|
|
0
|
7696 # include <stdlib.h>
|
|
|
7697 #endif
|
|
|
7698 extern char **environ;
|
|
|
7699 unset_TZ ()
|
|
|
7700 {
|
|
|
7701 char **from, **to;
|
|
|
7702 for (to = from = environ; (*to = *from); from++)
|
|
|
7703 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
|
7704 to++;
|
|
|
7705 }
|
|
149
|
7706 char TZ_GMT0[] = "TZ=GMT0";
|
|
|
7707 char TZ_PST8[] = "TZ=PST8";
|
|
0
|
7708 main()
|
|
|
7709 {
|
|
|
7710 time_t now = time ((time_t *) 0);
|
|
|
7711 int hour_GMT0, hour_unset;
|
|
149
|
7712 if (putenv (TZ_GMT0) != 0)
|
|
0
|
7713 exit (1);
|
|
|
7714 hour_GMT0 = localtime (&now)->tm_hour;
|
|
|
7715 unset_TZ ();
|
|
|
7716 hour_unset = localtime (&now)->tm_hour;
|
|
149
|
7717 if (putenv (TZ_PST8) != 0)
|
|
0
|
7718 exit (1);
|
|
|
7719 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
|
7720 exit (1);
|
|
|
7721 unset_TZ ();
|
|
|
7722 if (localtime (&now)->tm_hour != hour_unset)
|
|
|
7723 exit (1);
|
|
|
7724 exit (0);
|
|
|
7725 }
|
|
|
7726 EOF
|
|
243
|
7727 if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
7728 then
|
|
0
|
7729 emacs_cv_localtime_cache=no
|
|
149
|
7730 else
|
|
|
7731 echo "configure: failed program was:" >&5
|
|
|
7732 cat conftest.$ac_ext >&5
|
|
|
7733 rm -fr conftest*
|
|
0
|
7734 emacs_cv_localtime_cache=yes
|
|
|
7735 fi
|
|
|
7736 rm -fr conftest*
|
|
149
|
7737 else
|
|
|
7738 # If we lack tzset, report that localtime does not cache TZ,
|
|
|
7739 # since we can't invalidate the cache if we don't have tzset.
|
|
|
7740 emacs_cv_localtime_cache=no
|
|
|
7741 fi
|
|
|
7742 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
|
|
|
7743 if test $emacs_cv_localtime_cache = yes; then
|
|
|
7744 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7745 Defining LOCALTIME_CACHE
|
|
|
7746 EOF
|
|
|
7747 cat >> confdefs.h <<\EOF
|
|
|
7748 #define LOCALTIME_CACHE 1
|
|
|
7749 EOF
|
|
|
7750 }
|
|
|
7751
|
|
|
7752 fi
|
|
|
7753
|
|
|
7754 if test "$HAVE_TIMEVAL" = "yes"; then
|
|
|
7755 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
|
|
243
|
7756 echo "configure:7757: checking whether gettimeofday cannot accept two arguments" >&5
|
|
|
7757 cat > conftest.$ac_ext <<EOF
|
|
|
7758 #line 7759 "configure"
|
|
0
|
7759 #include "confdefs.h"
|
|
|
7760
|
|
|
7761 #ifdef TIME_WITH_SYS_TIME
|
|
|
7762 #include <sys/time.h>
|
|
|
7763 #include <time.h>
|
|
|
7764 #else
|
|
|
7765 #ifdef HAVE_SYS_TIME_H
|
|
|
7766 #include <sys/time.h>
|
|
|
7767 #else
|
|
|
7768 #include <time.h>
|
|
|
7769 #endif
|
|
|
7770 #endif
|
|
|
7771
|
|
149
|
7772 int main() {
|
|
|
7773
|
|
0
|
7774 struct timeval time;
|
|
|
7775 struct timezone dummy;
|
|
|
7776 gettimeofday (&time, &dummy);
|
|
149
|
7777
|
|
0
|
7778 ; return 0; }
|
|
|
7779 EOF
|
|
243
|
7780 if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7781 rm -rf conftest*
|
|
|
7782 echo "$ac_t""no" 1>&6
|
|
|
7783 else
|
|
|
7784 echo "configure: failed program was:" >&5
|
|
|
7785 cat conftest.$ac_ext >&5
|
|
|
7786 rm -rf conftest*
|
|
|
7787 echo "$ac_t""yes" 1>&6
|
|
|
7788 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7789 Defining GETTIMEOFDAY_ONE_ARGUMENT
|
|
|
7790 EOF
|
|
|
7791 cat >> confdefs.h <<\EOF
|
|
|
7792 #define GETTIMEOFDAY_ONE_ARGUMENT 1
|
|
|
7793 EOF
|
|
|
7794 }
|
|
|
7795
|
|
|
7796 fi
|
|
|
7797 rm -f conftest*
|
|
|
7798 fi
|
|
|
7799
|
|
|
7800
|
|
|
7801 echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|
243
|
7802 echo "configure:7803: checking for inline" >&5
|
|
149
|
7803
|
|
|
7804 ac_cv_c_inline=no
|
|
|
7805 for ac_kw in inline __inline__ __inline; do
|
|
|
7806 cat > conftest.$ac_ext <<EOF
|
|
243
|
7807 #line 7808 "configure"
|
|
149
|
7808 #include "confdefs.h"
|
|
|
7809
|
|
|
7810 int main() {
|
|
|
7811 } $ac_kw foo() {
|
|
0
|
7812 ; return 0; }
|
|
|
7813 EOF
|
|
243
|
7814 if { (eval echo configure:7815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
7815 rm -rf conftest*
|
|
|
7816 ac_cv_c_inline=$ac_kw; break
|
|
|
7817 else
|
|
|
7818 echo "configure: failed program was:" >&5
|
|
|
7819 cat conftest.$ac_ext >&5
|
|
|
7820 fi
|
|
|
7821 rm -f conftest*
|
|
|
7822 done
|
|
|
7823
|
|
|
7824
|
|
|
7825 echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
|
7826 case "$ac_cv_c_inline" in
|
|
|
7827 inline | yes) ;;
|
|
|
7828 no) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7829 Defining inline =
|
|
|
7830 EOF
|
|
|
7831 cat >> confdefs.h <<\EOF
|
|
|
7832 #define inline
|
|
|
7833 EOF
|
|
|
7834 }
|
|
|
7835 ;;
|
|
|
7836 *) { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7837 Defining inline = $ac_cv_c_inline
|
|
|
7838 EOF
|
|
|
7839 cat >> confdefs.h <<EOF
|
|
|
7840 #define inline $ac_cv_c_inline
|
|
|
7841 EOF
|
|
|
7842 }
|
|
|
7843 ;;
|
|
|
7844 esac
|
|
|
7845
|
|
155
|
7846 if test "$ac_cv_c_inline" != "no"; then
|
|
|
7847 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
7848 Defining HAVE_INLINE
|
|
|
7849 EOF
|
|
|
7850 cat >> confdefs.h <<\EOF
|
|
|
7851 #define HAVE_INLINE 1
|
|
|
7852 EOF
|
|
|
7853 }
|
|
|
7854
|
|
155
|
7855 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7856 echo " xemacs will be linked with \"inline.o\""
|
|
|
7857 fi
|
|
|
7858 fi
|
|
149
|
7859
|
|
|
7860
|
|
0
|
7861 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|
|
7862 # for constant arguments. Useless!
|
|
149
|
7863 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|
243
|
7864 echo "configure:7865: checking for working alloca.h" >&5
|
|
|
7865
|
|
|
7866 cat > conftest.$ac_ext <<EOF
|
|
|
7867 #line 7868 "configure"
|
|
0
|
7868 #include "confdefs.h"
|
|
|
7869 #include <alloca.h>
|
|
149
|
7870 int main() {
|
|
|
7871 char *p = alloca(2 * sizeof(int));
|
|
0
|
7872 ; return 0; }
|
|
|
7873 EOF
|
|
243
|
7874 if { (eval echo configure:7875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7875 rm -rf conftest*
|
|
|
7876 ac_cv_header_alloca_h=yes
|
|
|
7877 else
|
|
|
7878 echo "configure: failed program was:" >&5
|
|
|
7879 cat conftest.$ac_ext >&5
|
|
|
7880 rm -rf conftest*
|
|
|
7881 ac_cv_header_alloca_h=no
|
|
|
7882 fi
|
|
|
7883 rm -f conftest*
|
|
|
7884
|
|
|
7885 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|
|
7886 if test $ac_cv_header_alloca_h = yes; then
|
|
|
7887 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7888 Defining HAVE_ALLOCA_H
|
|
|
7889 EOF
|
|
|
7890 cat >> confdefs.h <<\EOF
|
|
|
7891 #define HAVE_ALLOCA_H 1
|
|
|
7892 EOF
|
|
|
7893 }
|
|
|
7894
|
|
|
7895 fi
|
|
|
7896
|
|
|
7897 echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|
243
|
7898 echo "configure:7899: checking for alloca" >&5
|
|
|
7899
|
|
|
7900 cat > conftest.$ac_ext <<EOF
|
|
|
7901 #line 7902 "configure"
|
|
149
|
7902 #include "confdefs.h"
|
|
|
7903
|
|
|
7904 #ifdef __GNUC__
|
|
|
7905 # define alloca __builtin_alloca
|
|
0
|
7906 #else
|
|
149
|
7907 # if HAVE_ALLOCA_H
|
|
|
7908 # include <alloca.h>
|
|
|
7909 # else
|
|
|
7910 # ifdef _AIX
|
|
|
7911 #pragma alloca
|
|
|
7912 # else
|
|
|
7913 # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|
|
7914 char *alloca ();
|
|
|
7915 # endif
|
|
|
7916 # endif
|
|
|
7917 # endif
|
|
0
|
7918 #endif
|
|
149
|
7919
|
|
|
7920 int main() {
|
|
|
7921 char *p = (char *) alloca(1);
|
|
0
|
7922 ; return 0; }
|
|
|
7923 EOF
|
|
243
|
7924 if { (eval echo configure:7925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7925 rm -rf conftest*
|
|
|
7926 ac_cv_func_alloca_works=yes
|
|
|
7927 else
|
|
|
7928 echo "configure: failed program was:" >&5
|
|
|
7929 cat conftest.$ac_ext >&5
|
|
|
7930 rm -rf conftest*
|
|
|
7931 ac_cv_func_alloca_works=no
|
|
|
7932 fi
|
|
|
7933 rm -f conftest*
|
|
|
7934
|
|
|
7935 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|
|
7936 if test $ac_cv_func_alloca_works = yes; then
|
|
|
7937 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7938 Defining HAVE_ALLOCA
|
|
|
7939 EOF
|
|
|
7940 cat >> confdefs.h <<\EOF
|
|
|
7941 #define HAVE_ALLOCA 1
|
|
|
7942 EOF
|
|
|
7943 }
|
|
|
7944
|
|
|
7945 fi
|
|
|
7946
|
|
|
7947 if test $ac_cv_func_alloca_works = no; then
|
|
0
|
7948 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
|
7949 # that cause trouble. Some versions do not even contain alloca or
|
|
|
7950 # contain a buggy version. If you still want to use their alloca,
|
|
|
7951 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|
|
7952 ALLOCA=alloca.o
|
|
149
|
7953 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7954 Defining C_ALLOCA
|
|
|
7955 EOF
|
|
|
7956 cat >> confdefs.h <<\EOF
|
|
|
7957 #define C_ALLOCA 1
|
|
|
7958 EOF
|
|
|
7959 }
|
|
|
7960
|
|
|
7961
|
|
|
7962 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|
243
|
7963 echo "configure:7964: checking whether alloca needs Cray hooks" >&5
|
|
|
7964
|
|
|
7965 cat > conftest.$ac_ext <<EOF
|
|
|
7966 #line 7967 "configure"
|
|
149
|
7967 #include "confdefs.h"
|
|
|
7968 #if defined(CRAY) && ! defined(CRAY2)
|
|
|
7969 webecray
|
|
|
7970 #else
|
|
|
7971 wenotbecray
|
|
|
7972 #endif
|
|
|
7973
|
|
|
7974 EOF
|
|
|
7975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
7976 egrep "webecray" >/dev/null 2>&1; then
|
|
|
7977 rm -rf conftest*
|
|
|
7978 ac_cv_os_cray=yes
|
|
|
7979 else
|
|
|
7980 rm -rf conftest*
|
|
|
7981 ac_cv_os_cray=no
|
|
|
7982 fi
|
|
|
7983 rm -f conftest*
|
|
|
7984
|
|
|
7985
|
|
|
7986 echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|
|
7987 if test $ac_cv_os_cray = yes; then
|
|
|
7988 for ac_func in _getb67 GETB67 getb67; do
|
|
|
7989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
243
|
7990 echo "configure:7991: checking for $ac_func" >&5
|
|
|
7991
|
|
|
7992 cat > conftest.$ac_ext <<EOF
|
|
|
7993 #line 7994 "configure"
|
|
149
|
7994 #include "confdefs.h"
|
|
|
7995 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
7996 which can conflict with char $ac_func(); below. */
|
|
|
7997 #include <assert.h>
|
|
|
7998 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7999 /* We use char because int might match the return type of a gcc2
|
|
|
8000 builtin and then its argument prototype would still apply. */
|
|
|
8001 char $ac_func();
|
|
|
8002
|
|
|
8003 int main() {
|
|
|
8004
|
|
|
8005 /* The GNU C library defines this for functions which it implements
|
|
|
8006 to always fail with ENOSYS. Some functions are actually named
|
|
|
8007 something starting with __ and the normal name is an alias. */
|
|
|
8008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
8009 choke me
|
|
|
8010 #else
|
|
|
8011 $ac_func();
|
|
|
8012 #endif
|
|
|
8013
|
|
|
8014 ; return 0; }
|
|
|
8015 EOF
|
|
243
|
8016 if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8017 rm -rf conftest*
|
|
|
8018 eval "ac_cv_func_$ac_func=yes"
|
|
|
8019 else
|
|
|
8020 echo "configure: failed program was:" >&5
|
|
|
8021 cat conftest.$ac_ext >&5
|
|
|
8022 rm -rf conftest*
|
|
|
8023 eval "ac_cv_func_$ac_func=no"
|
|
|
8024 fi
|
|
|
8025 rm -f conftest*
|
|
|
8026
|
|
|
8027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
8028 echo "$ac_t""yes" 1>&6
|
|
|
8029 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
8030 Defining CRAY_STACKSEG_END = $ac_func
|
|
|
8031 EOF
|
|
|
8032 cat >> confdefs.h <<EOF
|
|
|
8033 #define CRAY_STACKSEG_END $ac_func
|
|
|
8034 EOF
|
|
|
8035 }
|
|
|
8036
|
|
|
8037 break
|
|
|
8038 else
|
|
|
8039 echo "$ac_t""no" 1>&6
|
|
|
8040 fi
|
|
|
8041
|
|
|
8042 done
|
|
|
8043 fi
|
|
|
8044
|
|
|
8045 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|
243
|
8046 echo "configure:8047: checking stack direction for C alloca" >&5
|
|
|
8047
|
|
|
8048 cat > conftest.$ac_ext <<EOF
|
|
|
8049 #line 8050 "configure"
|
|
0
|
8050 #include "confdefs.h"
|
|
|
8051 find_stack_direction ()
|
|
|
8052 {
|
|
|
8053 static char *addr = 0;
|
|
|
8054 auto char dummy;
|
|
|
8055 if (addr == 0)
|
|
|
8056 {
|
|
|
8057 addr = &dummy;
|
|
|
8058 return find_stack_direction ();
|
|
|
8059 }
|
|
|
8060 else
|
|
|
8061 return (&dummy > addr) ? 1 : -1;
|
|
|
8062 }
|
|
|
8063 main ()
|
|
|
8064 {
|
|
|
8065 exit (find_stack_direction() < 0);
|
|
|
8066 }
|
|
|
8067 EOF
|
|
243
|
8068 if { (eval echo configure:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
8069 then
|
|
|
8070 ac_cv_c_stack_direction=1
|
|
|
8071 else
|
|
|
8072 echo "configure: failed program was:" >&5
|
|
|
8073 cat conftest.$ac_ext >&5
|
|
|
8074 rm -fr conftest*
|
|
|
8075 ac_cv_c_stack_direction=-1
|
|
0
|
8076 fi
|
|
|
8077 rm -fr conftest*
|
|
149
|
8078
|
|
|
8079 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|
|
8080 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
8081 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
|
|
|
8082 EOF
|
|
|
8083 cat >> confdefs.h <<EOF
|
|
|
8084 #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
|
8085 EOF
|
|
|
8086 }
|
|
|
8087
|
|
|
8088 fi
|
|
|
8089
|
|
151
|
8090 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
|
|
|
8091 echo " xemacs will be linked with \"$ALLOCA\""
|
|
|
8092 fi
|
|
149
|
8093
|
|
|
8094 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
|
|
|
8095 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
|
|
243
|
8096 echo "configure:8097: checking for vfork.h" >&5
|
|
|
8097
|
|
|
8098 cat > conftest.$ac_ext <<EOF
|
|
|
8099 #line 8100 "configure"
|
|
0
|
8100 #include "confdefs.h"
|
|
|
8101 #include <vfork.h>
|
|
|
8102 EOF
|
|
149
|
8103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
8104 { (eval echo configure:8105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8105 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8106 if test -z "$ac_err"; then
|
|
|
8107 rm -rf conftest*
|
|
149
|
8108 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8109 else
|
|
|
8110 echo "$ac_err" >&5
|
|
|
8111 echo "configure: failed program was:" >&5
|
|
|
8112 cat conftest.$ac_ext >&5
|
|
|
8113 rm -rf conftest*
|
|
|
8114 eval "ac_cv_header_$ac_safe=no"
|
|
|
8115 fi
|
|
|
8116 rm -f conftest*
|
|
|
8117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8118 echo "$ac_t""yes" 1>&6
|
|
|
8119 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8120 Defining HAVE_VFORK_H
|
|
|
8121 EOF
|
|
|
8122 cat >> confdefs.h <<\EOF
|
|
|
8123 #define HAVE_VFORK_H 1
|
|
|
8124 EOF
|
|
|
8125 }
|
|
|
8126
|
|
|
8127 else
|
|
|
8128 echo "$ac_t""no" 1>&6
|
|
|
8129 fi
|
|
|
8130
|
|
|
8131 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
|
|
243
|
8132 echo "configure:8133: checking for working vfork" >&5
|
|
|
8133
|
|
|
8134 cat > conftest.$ac_ext <<EOF
|
|
|
8135 #line 8136 "configure"
|
|
0
|
8136 #include "confdefs.h"
|
|
|
8137 /* Thanks to Paul Eggert for this test. */
|
|
|
8138 #include <stdio.h>
|
|
|
8139 #include <sys/types.h>
|
|
|
8140 #include <sys/stat.h>
|
|
|
8141 #ifdef HAVE_UNISTD_H
|
|
|
8142 #include <unistd.h>
|
|
|
8143 #endif
|
|
|
8144 #ifdef HAVE_VFORK_H
|
|
|
8145 #include <vfork.h>
|
|
|
8146 #endif
|
|
149
|
8147 /* On some sparc systems, changes by the child to local and incoming
|
|
|
8148 argument registers are propagated back to the parent.
|
|
|
8149 The compiler is told about this with #include <vfork.h>,
|
|
|
8150 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
|
|
|
8151 Test for this by using a static variable whose address
|
|
|
8152 is put into a register that is clobbered by the vfork. */
|
|
|
8153 static
|
|
|
8154 #ifdef __cplusplus
|
|
|
8155 sparc_address_test (int arg)
|
|
|
8156 #else
|
|
|
8157 sparc_address_test (arg) int arg;
|
|
|
8158 #endif
|
|
|
8159 {
|
|
|
8160 static pid_t child;
|
|
|
8161 if (!child) {
|
|
|
8162 child = vfork ();
|
|
|
8163 if (child < 0) {
|
|
|
8164 perror ("vfork");
|
|
|
8165 _exit(2);
|
|
|
8166 }
|
|
|
8167 if (!child) {
|
|
|
8168 arg = getpid();
|
|
|
8169 write(-1, "", 0);
|
|
|
8170 _exit (arg);
|
|
|
8171 }
|
|
|
8172 }
|
|
|
8173 }
|
|
0
|
8174 main() {
|
|
|
8175 pid_t parent = getpid ();
|
|
|
8176 pid_t child;
|
|
|
8177
|
|
149
|
8178 sparc_address_test ();
|
|
0
|
8179
|
|
|
8180 child = vfork ();
|
|
|
8181
|
|
|
8182 if (child == 0) {
|
|
149
|
8183 /* Here is another test for sparc vfork register problems.
|
|
|
8184 This test uses lots of local variables, at least
|
|
0
|
8185 as many local variables as main has allocated so far
|
|
|
8186 including compiler temporaries. 4 locals are enough for
|
|
149
|
8187 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
|
|
0
|
8188 A buggy compiler should reuse the register of parent
|
|
|
8189 for one of the local variables, since it will think that
|
|
|
8190 parent can't possibly be used any more in this routine.
|
|
|
8191 Assigning to the local variable will thus munge parent
|
|
|
8192 in the parent process. */
|
|
|
8193 pid_t
|
|
|
8194 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
|
|
8195 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
|
|
8196 /* Convince the compiler that p..p7 are live; otherwise, it might
|
|
|
8197 use the same hardware register for all 8 local variables. */
|
|
|
8198 if (p != p1 || p != p2 || p != p3 || p != p4
|
|
|
8199 || p != p5 || p != p6 || p != p7)
|
|
|
8200 _exit(1);
|
|
|
8201
|
|
|
8202 /* On some systems (e.g. IRIX 3.3),
|
|
|
8203 vfork doesn't separate parent from child file descriptors.
|
|
|
8204 If the child closes a descriptor before it execs or exits,
|
|
|
8205 this munges the parent's descriptor as well.
|
|
|
8206 Test for this by closing stdout in the child. */
|
|
|
8207 _exit(close(fileno(stdout)) != 0);
|
|
|
8208 } else {
|
|
|
8209 int status;
|
|
|
8210 struct stat st;
|
|
|
8211
|
|
|
8212 while (wait(&status) != child)
|
|
|
8213 ;
|
|
|
8214 exit(
|
|
|
8215 /* Was there some problem with vforking? */
|
|
|
8216 child < 0
|
|
|
8217
|
|
|
8218 /* Did the child fail? (This shouldn't happen.) */
|
|
|
8219 || status
|
|
|
8220
|
|
|
8221 /* Did the vfork/compiler bug occur? */
|
|
|
8222 || parent != getpid()
|
|
|
8223
|
|
|
8224 /* Did the file descriptor bug occur? */
|
|
|
8225 || fstat(fileno(stdout), &st) != 0
|
|
|
8226 );
|
|
|
8227 }
|
|
|
8228 }
|
|
|
8229 EOF
|
|
243
|
8230 if { (eval echo configure:8231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
8231 then
|
|
|
8232 ac_cv_func_vfork_works=yes
|
|
|
8233 else
|
|
|
8234 echo "configure: failed program was:" >&5
|
|
|
8235 cat conftest.$ac_ext >&5
|
|
|
8236 rm -fr conftest*
|
|
|
8237 ac_cv_func_vfork_works=no
|
|
0
|
8238 fi
|
|
|
8239 rm -fr conftest*
|
|
|
8240
|
|
149
|
8241 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
|
|
|
8242 if test $ac_cv_func_vfork_works = no; then
|
|
|
8243 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8244 Defining vfork = fork
|
|
|
8245 EOF
|
|
|
8246 cat >> confdefs.h <<\EOF
|
|
|
8247 #define vfork fork
|
|
|
8248 EOF
|
|
|
8249 }
|
|
|
8250
|
|
|
8251 fi
|
|
|
8252
|
|
|
8253
|
|
|
8254 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
|
|
243
|
8255 echo "configure:8256: checking for working strcoll" >&5
|
|
|
8256
|
|
|
8257 cat > conftest.$ac_ext <<EOF
|
|
|
8258 #line 8259 "configure"
|
|
0
|
8259 #include "confdefs.h"
|
|
|
8260 #include <string.h>
|
|
|
8261 main ()
|
|
|
8262 {
|
|
|
8263 exit (strcoll ("abc", "def") >= 0 ||
|
|
|
8264 strcoll ("ABC", "DEF") >= 0 ||
|
|
|
8265 strcoll ("123", "456") >= 0);
|
|
|
8266 }
|
|
|
8267 EOF
|
|
243
|
8268 if { (eval echo configure:8269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
8269 then
|
|
|
8270 ac_cv_func_strcoll_works=yes
|
|
|
8271 else
|
|
|
8272 echo "configure: failed program was:" >&5
|
|
|
8273 cat conftest.$ac_ext >&5
|
|
|
8274 rm -fr conftest*
|
|
|
8275 ac_cv_func_strcoll_works=no
|
|
0
|
8276 fi
|
|
|
8277 rm -fr conftest*
|
|
|
8278
|
|
149
|
8279 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
|
|
|
8280 if test $ac_cv_func_strcoll_works = yes; then
|
|
|
8281 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8282 Defining HAVE_STRCOLL
|
|
|
8283 EOF
|
|
|
8284 cat >> confdefs.h <<\EOF
|
|
|
8285 #define HAVE_STRCOLL 1
|
|
|
8286 EOF
|
|
|
8287 }
|
|
|
8288
|
|
|
8289 fi
|
|
|
8290
|
|
|
8291
|
|
163
|
8292 for ac_func in getpgrp
|
|
|
8293 do
|
|
|
8294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
243
|
8295 echo "configure:8296: checking for $ac_func" >&5
|
|
|
8296
|
|
|
8297 cat > conftest.$ac_ext <<EOF
|
|
|
8298 #line 8299 "configure"
|
|
163
|
8299 #include "confdefs.h"
|
|
|
8300 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
8301 which can conflict with char $ac_func(); below. */
|
|
|
8302 #include <assert.h>
|
|
|
8303 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8304 /* We use char because int might match the return type of a gcc2
|
|
|
8305 builtin and then its argument prototype would still apply. */
|
|
|
8306 char $ac_func();
|
|
|
8307
|
|
|
8308 int main() {
|
|
|
8309
|
|
|
8310 /* The GNU C library defines this for functions which it implements
|
|
|
8311 to always fail with ENOSYS. Some functions are actually named
|
|
|
8312 something starting with __ and the normal name is an alias. */
|
|
|
8313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
8314 choke me
|
|
|
8315 #else
|
|
|
8316 $ac_func();
|
|
|
8317 #endif
|
|
|
8318
|
|
|
8319 ; return 0; }
|
|
|
8320 EOF
|
|
243
|
8321 if { (eval echo configure:8322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
163
|
8322 rm -rf conftest*
|
|
|
8323 eval "ac_cv_func_$ac_func=yes"
|
|
|
8324 else
|
|
|
8325 echo "configure: failed program was:" >&5
|
|
|
8326 cat conftest.$ac_ext >&5
|
|
|
8327 rm -rf conftest*
|
|
|
8328 eval "ac_cv_func_$ac_func=no"
|
|
|
8329 fi
|
|
|
8330 rm -f conftest*
|
|
|
8331
|
|
|
8332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
8333 echo "$ac_t""yes" 1>&6
|
|
|
8334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
8335 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
8336 Defining $ac_tr_func
|
|
|
8337 EOF
|
|
|
8338 cat >> confdefs.h <<EOF
|
|
|
8339 #define $ac_tr_func 1
|
|
|
8340 EOF
|
|
|
8341 }
|
|
|
8342
|
|
|
8343 else
|
|
|
8344 echo "$ac_t""no" 1>&6
|
|
|
8345 fi
|
|
|
8346 done
|
|
|
8347
|
|
|
8348 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
|
|
243
|
8349 echo "configure:8350: checking whether getpgrp takes no argument" >&5
|
|
|
8350
|
|
|
8351 cat > conftest.$ac_ext <<EOF
|
|
|
8352 #line 8353 "configure"
|
|
163
|
8353 #include "confdefs.h"
|
|
|
8354
|
|
|
8355 /*
|
|
|
8356 * If this system has a BSD-style getpgrp(),
|
|
|
8357 * which takes a pid argument, exit unsuccessfully.
|
|
|
8358 *
|
|
|
8359 * Snarfed from Chet Ramey's bash pgrp.c test program
|
|
|
8360 */
|
|
|
8361 #include <stdio.h>
|
|
|
8362 #include <sys/types.h>
|
|
|
8363
|
|
|
8364 int pid;
|
|
|
8365 int pg1, pg2, pg3, pg4;
|
|
|
8366 int ng, np, s, child;
|
|
|
8367
|
|
|
8368 main()
|
|
|
8369 {
|
|
|
8370 pid = getpid();
|
|
|
8371 pg1 = getpgrp(0);
|
|
|
8372 pg2 = getpgrp();
|
|
|
8373 pg3 = getpgrp(pid);
|
|
|
8374 pg4 = getpgrp(1);
|
|
|
8375
|
|
|
8376 /*
|
|
|
8377 * If all of these values are the same, it's pretty sure that
|
|
|
8378 * we're on a system that ignores getpgrp's first argument.
|
|
|
8379 */
|
|
|
8380 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
|
|
|
8381 exit(0);
|
|
|
8382
|
|
|
8383 child = fork();
|
|
|
8384 if (child < 0)
|
|
|
8385 exit(1);
|
|
|
8386 else if (child == 0) {
|
|
|
8387 np = getpid();
|
|
|
8388 /*
|
|
|
8389 * If this is Sys V, this will not work; pgrp will be
|
|
|
8390 * set to np because setpgrp just changes a pgrp to be
|
|
|
8391 * the same as the pid.
|
|
|
8392 */
|
|
|
8393 setpgrp(np, pg1);
|
|
|
8394 ng = getpgrp(0); /* Same result for Sys V and BSD */
|
|
|
8395 if (ng == pg1) {
|
|
|
8396 exit(1);
|
|
|
8397 } else {
|
|
|
8398 exit(0);
|
|
|
8399 }
|
|
|
8400 } else {
|
|
|
8401 wait(&s);
|
|
|
8402 exit(s>>8);
|
|
|
8403 }
|
|
|
8404 }
|
|
|
8405
|
|
|
8406 EOF
|
|
243
|
8407 if { (eval echo configure:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
163
|
8408 then
|
|
|
8409 ac_cv_func_getpgrp_void=yes
|
|
|
8410 else
|
|
|
8411 echo "configure: failed program was:" >&5
|
|
|
8412 cat conftest.$ac_ext >&5
|
|
|
8413 rm -fr conftest*
|
|
|
8414 ac_cv_func_getpgrp_void=no
|
|
|
8415 fi
|
|
|
8416 rm -fr conftest*
|
|
|
8417
|
|
|
8418
|
|
|
8419 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
|
|
|
8420 if test $ac_cv_func_getpgrp_void = yes; then
|
|
|
8421 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8422 Defining GETPGRP_VOID
|
|
|
8423 EOF
|
|
|
8424 cat >> confdefs.h <<\EOF
|
|
|
8425 #define GETPGRP_VOID 1
|
|
|
8426 EOF
|
|
|
8427 }
|
|
|
8428
|
|
|
8429 fi
|
|
|
8430
|
|
|
8431
|
|
149
|
8432 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|
243
|
8433 echo "configure:8434: checking for working mmap" >&5
|
|
155
|
8434 case "$opsys" in ultrix* ) have_mmap=no ;; *)
|
|
|
8435 cat > conftest.$ac_ext <<EOF
|
|
243
|
8436 #line 8437 "configure"
|
|
153
|
8437 #include "confdefs.h"
|
|
|
8438 #include <stdio.h>
|
|
|
8439 #include <unistd.h>
|
|
149
|
8440 #include <fcntl.h>
|
|
|
8441 #include <sys/mman.h>
|
|
|
8442
|
|
153
|
8443 #ifndef MAP_VARIABLE
|
|
|
8444 #define MAP_VARIABLE 0
|
|
0
|
8445 #endif
|
|
149
|
8446
|
|
153
|
8447 #ifndef MAP_FAILED
|
|
|
8448 #define MAP_FAILED -1
|
|
|
8449 #endif
|
|
|
8450
|
|
|
8451 int main (int argc, char *argv[])
|
|
0
|
8452 {
|
|
153
|
8453 int fd = -1;
|
|
|
8454 caddr_t p;
|
|
|
8455 #ifndef MAP_ANONYMOUS
|
|
|
8456 fd = open ("/dev/zero", O_RDWR);
|
|
|
8457 if (fd < 0)
|
|
|
8458 return 1;
|
|
|
8459 #define MAP_ANONYMOUS 0
|
|
|
8460 #endif
|
|
|
8461 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
|
|
|
8462 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
|
|
|
8463 fd, 0) != (void *) MAP_FAILED)
|
|
|
8464 return 0;
|
|
|
8465 perror ("conftest: mmap failed");
|
|
|
8466 return 1;
|
|
|
8467 }
|
|
|
8468 EOF
|
|
243
|
8469 if { (eval echo configure:8470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
|
|
149
|
8470 then
|
|
153
|
8471 have_mmap=yes
|
|
149
|
8472 else
|
|
|
8473 echo "configure: failed program was:" >&5
|
|
|
8474 cat conftest.$ac_ext >&5
|
|
|
8475 rm -fr conftest*
|
|
153
|
8476 have_mmap=no
|
|
149
|
8477 fi
|
|
155
|
8478 rm -fr conftest* ;;
|
|
|
8479 esac
|
|
153
|
8480 echo "$ac_t""$have_mmap" 1>&6
|
|
|
8481 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
8482 Defining HAVE_MMAP
|
|
|
8483 EOF
|
|
|
8484 cat >> confdefs.h <<\EOF
|
|
|
8485 #define HAVE_MMAP 1
|
|
|
8486 EOF
|
|
|
8487 }
|
|
|
8488
|
|
153
|
8489
|
|
|
8490 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
|
|
|
8491 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
|
|
149
|
8492 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8493 Defining REL_ALLOC
|
|
|
8494 EOF
|
|
|
8495 cat >> confdefs.h <<\EOF
|
|
|
8496 #define REL_ALLOC 1
|
|
|
8497 EOF
|
|
|
8498 }
|
|
|
8499
|
|
|
8500
|
|
175
|
8501 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
|
|
|
8502 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
|
|
243
|
8503 echo "configure:8504: checking for termios.h" >&5
|
|
|
8504
|
|
|
8505 cat > conftest.$ac_ext <<EOF
|
|
|
8506 #line 8507 "configure"
|
|
175
|
8507 #include "confdefs.h"
|
|
|
8508 #include <termios.h>
|
|
|
8509 EOF
|
|
|
8510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
8511 { (eval echo configure:8512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
175
|
8512 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
8513 if test -z "$ac_err"; then
|
|
|
8514 rm -rf conftest*
|
|
|
8515 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8516 else
|
|
|
8517 echo "$ac_err" >&5
|
|
|
8518 echo "configure: failed program was:" >&5
|
|
|
8519 cat conftest.$ac_ext >&5
|
|
|
8520 rm -rf conftest*
|
|
|
8521 eval "ac_cv_header_$ac_safe=no"
|
|
|
8522 fi
|
|
|
8523 rm -f conftest*
|
|
|
8524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8525 echo "$ac_t""yes" 1>&6
|
|
|
8526 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8527 Defining HAVE_TERMIOS
|
|
|
8528 EOF
|
|
|
8529 cat >> confdefs.h <<\EOF
|
|
|
8530 #define HAVE_TERMIOS 1
|
|
|
8531 EOF
|
|
|
8532 }
|
|
|
8533
|
|
|
8534 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8535 Defining SIGNALS_VIA_CHARACTERS
|
|
|
8536 EOF
|
|
|
8537 cat >> confdefs.h <<\EOF
|
|
|
8538 #define SIGNALS_VIA_CHARACTERS 1
|
|
|
8539 EOF
|
|
|
8540 }
|
|
|
8541
|
|
|
8542 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8543 Defining NO_TERMIO
|
|
|
8544 EOF
|
|
|
8545 cat >> confdefs.h <<\EOF
|
|
|
8546 #define NO_TERMIO 1
|
|
|
8547 EOF
|
|
|
8548 }
|
|
|
8549
|
|
|
8550 else
|
|
|
8551 echo "$ac_t""no" 1>&6
|
|
|
8552 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
|
|
|
8553 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
|
|
243
|
8554 echo "configure:8555: checking for termio.h" >&5
|
|
|
8555
|
|
|
8556 cat > conftest.$ac_ext <<EOF
|
|
|
8557 #line 8558 "configure"
|
|
175
|
8558 #include "confdefs.h"
|
|
|
8559 #include <termio.h>
|
|
|
8560 EOF
|
|
|
8561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
8562 { (eval echo configure:8563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
175
|
8563 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
8564 if test -z "$ac_err"; then
|
|
|
8565 rm -rf conftest*
|
|
|
8566 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8567 else
|
|
|
8568 echo "$ac_err" >&5
|
|
|
8569 echo "configure: failed program was:" >&5
|
|
|
8570 cat conftest.$ac_ext >&5
|
|
|
8571 rm -rf conftest*
|
|
|
8572 eval "ac_cv_header_$ac_safe=no"
|
|
|
8573 fi
|
|
|
8574 rm -f conftest*
|
|
|
8575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8576 echo "$ac_t""yes" 1>&6
|
|
|
8577 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8578 Defining HAVE_TERMIO
|
|
|
8579 EOF
|
|
|
8580 cat >> confdefs.h <<\EOF
|
|
|
8581 #define HAVE_TERMIO 1
|
|
|
8582 EOF
|
|
|
8583 }
|
|
|
8584
|
|
|
8585 else
|
|
|
8586 echo "$ac_t""no" 1>&6
|
|
|
8587 fi
|
|
|
8588
|
|
|
8589 fi
|
|
|
8590
|
|
|
8591
|
|
|
8592
|
|
149
|
8593 echo $ac_n "checking for socket""... $ac_c" 1>&6
|
|
243
|
8594 echo "configure:8595: checking for socket" >&5
|
|
|
8595
|
|
|
8596 cat > conftest.$ac_ext <<EOF
|
|
|
8597 #line 8598 "configure"
|
|
149
|
8598 #include "confdefs.h"
|
|
|
8599 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
8600 which can conflict with char socket(); below. */
|
|
|
8601 #include <assert.h>
|
|
|
8602 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8603 /* We use char because int might match the return type of a gcc2
|
|
|
8604 builtin and then its argument prototype would still apply. */
|
|
|
8605 char socket();
|
|
|
8606
|
|
|
8607 int main() {
|
|
|
8608
|
|
0
|
8609 /* The GNU C library defines this for functions which it implements
|
|
|
8610 to always fail with ENOSYS. Some functions are actually named
|
|
|
8611 something starting with __ and the normal name is an alias. */
|
|
|
8612 #if defined (__stub_socket) || defined (__stub___socket)
|
|
|
8613 choke me
|
|
|
8614 #else
|
|
149
|
8615 socket();
|
|
0
|
8616 #endif
|
|
149
|
8617
|
|
0
|
8618 ; return 0; }
|
|
|
8619 EOF
|
|
243
|
8620 if { (eval echo configure:8621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8621 rm -rf conftest*
|
|
|
8622 eval "ac_cv_func_socket=yes"
|
|
|
8623 else
|
|
|
8624 echo "configure: failed program was:" >&5
|
|
|
8625 cat conftest.$ac_ext >&5
|
|
|
8626 rm -rf conftest*
|
|
|
8627 eval "ac_cv_func_socket=no"
|
|
|
8628 fi
|
|
|
8629 rm -f conftest*
|
|
|
8630
|
|
|
8631 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
|
|
|
8632 echo "$ac_t""yes" 1>&6
|
|
|
8633 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
|
|
|
8634 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
|
|
243
|
8635 echo "configure:8636: checking for netinet/in.h" >&5
|
|
|
8636
|
|
|
8637 cat > conftest.$ac_ext <<EOF
|
|
|
8638 #line 8639 "configure"
|
|
0
|
8639 #include "confdefs.h"
|
|
|
8640 #include <netinet/in.h>
|
|
|
8641 EOF
|
|
149
|
8642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
8643 { (eval echo configure:8644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8644 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8645 if test -z "$ac_err"; then
|
|
149
|
8646 rm -rf conftest*
|
|
|
8647 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8648 else
|
|
|
8649 echo "$ac_err" >&5
|
|
|
8650 echo "configure: failed program was:" >&5
|
|
|
8651 cat conftest.$ac_ext >&5
|
|
|
8652 rm -rf conftest*
|
|
|
8653 eval "ac_cv_header_$ac_safe=no"
|
|
|
8654 fi
|
|
|
8655 rm -f conftest*
|
|
|
8656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8657 echo "$ac_t""yes" 1>&6
|
|
|
8658 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
|
|
|
8659 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
|
|
243
|
8660 echo "configure:8661: checking for arpa/inet.h" >&5
|
|
|
8661
|
|
|
8662 cat > conftest.$ac_ext <<EOF
|
|
|
8663 #line 8664 "configure"
|
|
0
|
8664 #include "confdefs.h"
|
|
|
8665 #include <arpa/inet.h>
|
|
|
8666 EOF
|
|
149
|
8667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
8668 { (eval echo configure:8669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8669 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8670 if test -z "$ac_err"; then
|
|
149
|
8671 rm -rf conftest*
|
|
|
8672 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8673 else
|
|
|
8674 echo "$ac_err" >&5
|
|
|
8675 echo "configure: failed program was:" >&5
|
|
|
8676 cat conftest.$ac_ext >&5
|
|
|
8677 rm -rf conftest*
|
|
|
8678 eval "ac_cv_header_$ac_safe=no"
|
|
|
8679 fi
|
|
|
8680 rm -f conftest*
|
|
|
8681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8682 echo "$ac_t""yes" 1>&6
|
|
0
|
8683
|
|
149
|
8684 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8685 Defining HAVE_SOCKETS
|
|
|
8686 EOF
|
|
|
8687 cat >> confdefs.h <<\EOF
|
|
|
8688 #define HAVE_SOCKETS 1
|
|
|
8689 EOF
|
|
|
8690 }
|
|
|
8691
|
|
|
8692 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
|
|
243
|
8693 echo "configure:8694: checking "for sun_len member in struct sockaddr_un"" >&5
|
|
149
|
8694 cat > conftest.$ac_ext <<EOF
|
|
243
|
8695 #line 8696 "configure"
|
|
149
|
8696 #include "confdefs.h"
|
|
|
8697
|
|
0
|
8698 #include <sys/types.h>
|
|
149
|
8699 #include <sys/socket.h>
|
|
|
8700 #include <sys/un.h>
|
|
|
8701
|
|
|
8702 int main() {
|
|
|
8703 static struct sockaddr_un x; x.sun_len = 1;
|
|
|
8704 ; return 0; }
|
|
|
8705 EOF
|
|
243
|
8706 if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8707 rm -rf conftest*
|
|
|
8708 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8709 Defining HAVE_SOCKADDR_SUN_LEN
|
|
|
8710 EOF
|
|
|
8711 cat >> confdefs.h <<\EOF
|
|
|
8712 #define HAVE_SOCKADDR_SUN_LEN 1
|
|
|
8713 EOF
|
|
|
8714 }
|
|
|
8715
|
|
|
8716 else
|
|
|
8717 echo "configure: failed program was:" >&5
|
|
|
8718 cat conftest.$ac_ext >&5
|
|
|
8719 rm -rf conftest*
|
|
|
8720 echo "$ac_t""no" 1>&6
|
|
|
8721 fi
|
|
|
8722 rm -f conftest*
|
|
|
8723 else
|
|
|
8724 echo "$ac_t""no" 1>&6
|
|
|
8725 fi
|
|
|
8726
|
|
|
8727 else
|
|
|
8728 echo "$ac_t""no" 1>&6
|
|
|
8729 fi
|
|
|
8730
|
|
|
8731 else
|
|
|
8732 echo "$ac_t""no" 1>&6
|
|
|
8733 fi
|
|
|
8734
|
|
|
8735
|
|
|
8736 echo $ac_n "checking for msgget""... $ac_c" 1>&6
|
|
243
|
8737 echo "configure:8738: checking for msgget" >&5
|
|
|
8738
|
|
|
8739 cat > conftest.$ac_ext <<EOF
|
|
|
8740 #line 8741 "configure"
|
|
149
|
8741 #include "confdefs.h"
|
|
|
8742 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
8743 which can conflict with char msgget(); below. */
|
|
|
8744 #include <assert.h>
|
|
|
8745 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8746 /* We use char because int might match the return type of a gcc2
|
|
|
8747 builtin and then its argument prototype would still apply. */
|
|
|
8748 char msgget();
|
|
|
8749
|
|
|
8750 int main() {
|
|
|
8751
|
|
0
|
8752 /* The GNU C library defines this for functions which it implements
|
|
|
8753 to always fail with ENOSYS. Some functions are actually named
|
|
|
8754 something starting with __ and the normal name is an alias. */
|
|
|
8755 #if defined (__stub_msgget) || defined (__stub___msgget)
|
|
|
8756 choke me
|
|
|
8757 #else
|
|
149
|
8758 msgget();
|
|
0
|
8759 #endif
|
|
149
|
8760
|
|
0
|
8761 ; return 0; }
|
|
|
8762 EOF
|
|
243
|
8763 if { (eval echo configure:8764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8764 rm -rf conftest*
|
|
|
8765 eval "ac_cv_func_msgget=yes"
|
|
|
8766 else
|
|
|
8767 echo "configure: failed program was:" >&5
|
|
|
8768 cat conftest.$ac_ext >&5
|
|
|
8769 rm -rf conftest*
|
|
|
8770 eval "ac_cv_func_msgget=no"
|
|
|
8771 fi
|
|
|
8772 rm -f conftest*
|
|
|
8773
|
|
|
8774 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
|
|
|
8775 echo "$ac_t""yes" 1>&6
|
|
|
8776 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
|
|
|
8777 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
|
|
243
|
8778 echo "configure:8779: checking for sys/ipc.h" >&5
|
|
|
8779
|
|
|
8780 cat > conftest.$ac_ext <<EOF
|
|
|
8781 #line 8782 "configure"
|
|
0
|
8782 #include "confdefs.h"
|
|
|
8783 #include <sys/ipc.h>
|
|
|
8784 EOF
|
|
149
|
8785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
8786 { (eval echo configure:8787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8787 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8788 if test -z "$ac_err"; then
|
|
149
|
8789 rm -rf conftest*
|
|
|
8790 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8791 else
|
|
|
8792 echo "$ac_err" >&5
|
|
|
8793 echo "configure: failed program was:" >&5
|
|
|
8794 cat conftest.$ac_ext >&5
|
|
|
8795 rm -rf conftest*
|
|
|
8796 eval "ac_cv_header_$ac_safe=no"
|
|
|
8797 fi
|
|
|
8798 rm -f conftest*
|
|
|
8799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8800 echo "$ac_t""yes" 1>&6
|
|
|
8801 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
|
|
|
8802 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
|
|
243
|
8803 echo "configure:8804: checking for sys/msg.h" >&5
|
|
|
8804
|
|
|
8805 cat > conftest.$ac_ext <<EOF
|
|
|
8806 #line 8807 "configure"
|
|
0
|
8807 #include "confdefs.h"
|
|
|
8808 #include <sys/msg.h>
|
|
|
8809 EOF
|
|
149
|
8810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
8811 { (eval echo configure:8812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8812 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8813 if test -z "$ac_err"; then
|
|
149
|
8814 rm -rf conftest*
|
|
|
8815 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8816 else
|
|
|
8817 echo "$ac_err" >&5
|
|
|
8818 echo "configure: failed program was:" >&5
|
|
|
8819 cat conftest.$ac_ext >&5
|
|
|
8820 rm -rf conftest*
|
|
|
8821 eval "ac_cv_header_$ac_safe=no"
|
|
|
8822 fi
|
|
|
8823 rm -f conftest*
|
|
|
8824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8825 echo "$ac_t""yes" 1>&6
|
|
|
8826 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8827 Defining HAVE_SYSVIPC
|
|
|
8828 EOF
|
|
|
8829 cat >> confdefs.h <<\EOF
|
|
|
8830 #define HAVE_SYSVIPC 1
|
|
|
8831 EOF
|
|
|
8832 }
|
|
|
8833
|
|
|
8834 else
|
|
|
8835 echo "$ac_t""no" 1>&6
|
|
|
8836 fi
|
|
|
8837
|
|
|
8838 else
|
|
|
8839 echo "$ac_t""no" 1>&6
|
|
|
8840 fi
|
|
|
8841
|
|
|
8842 else
|
|
|
8843 echo "$ac_t""no" 1>&6
|
|
|
8844 fi
|
|
|
8845
|
|
|
8846
|
|
|
8847 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
|
|
|
8848 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
|
|
243
|
8849 echo "configure:8850: checking for dirent.h" >&5
|
|
|
8850
|
|
|
8851 cat > conftest.$ac_ext <<EOF
|
|
|
8852 #line 8853 "configure"
|
|
0
|
8853 #include "confdefs.h"
|
|
|
8854 #include <dirent.h>
|
|
|
8855 EOF
|
|
149
|
8856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
8857 { (eval echo configure:8858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8858 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8859 if test -z "$ac_err"; then
|
|
|
8860 rm -rf conftest*
|
|
149
|
8861 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8862 else
|
|
|
8863 echo "$ac_err" >&5
|
|
|
8864 echo "configure: failed program was:" >&5
|
|
|
8865 cat conftest.$ac_ext >&5
|
|
|
8866 rm -rf conftest*
|
|
|
8867 eval "ac_cv_header_$ac_safe=no"
|
|
|
8868 fi
|
|
|
8869 rm -f conftest*
|
|
|
8870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8871 echo "$ac_t""yes" 1>&6
|
|
|
8872 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8873 Defining SYSV_SYSTEM_DIR
|
|
|
8874 EOF
|
|
|
8875 cat >> confdefs.h <<\EOF
|
|
|
8876 #define SYSV_SYSTEM_DIR 1
|
|
|
8877 EOF
|
|
|
8878 }
|
|
|
8879
|
|
|
8880 else
|
|
|
8881 echo "$ac_t""no" 1>&6
|
|
|
8882 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
|
|
|
8883 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
|
|
243
|
8884 echo "configure:8885: checking for sys/dir.h" >&5
|
|
|
8885
|
|
|
8886 cat > conftest.$ac_ext <<EOF
|
|
|
8887 #line 8888 "configure"
|
|
0
|
8888 #include "confdefs.h"
|
|
|
8889 #include <sys/dir.h>
|
|
|
8890 EOF
|
|
149
|
8891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
8892 { (eval echo configure:8893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8893 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8894 if test -z "$ac_err"; then
|
|
149
|
8895 rm -rf conftest*
|
|
|
8896 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8897 else
|
|
|
8898 echo "$ac_err" >&5
|
|
|
8899 echo "configure: failed program was:" >&5
|
|
|
8900 cat conftest.$ac_ext >&5
|
|
|
8901 rm -rf conftest*
|
|
|
8902 eval "ac_cv_header_$ac_safe=no"
|
|
|
8903 fi
|
|
|
8904 rm -f conftest*
|
|
|
8905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8906 echo "$ac_t""yes" 1>&6
|
|
0
|
8907 :
|
|
|
8908 else
|
|
149
|
8909 echo "$ac_t""no" 1>&6
|
|
|
8910 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8911 Defining NONSYSTEM_DIR_LIBRARY
|
|
|
8912 EOF
|
|
|
8913 cat >> confdefs.h <<\EOF
|
|
|
8914 #define NONSYSTEM_DIR_LIBRARY 1
|
|
|
8915 EOF
|
|
|
8916 }
|
|
|
8917
|
|
|
8918 fi
|
|
|
8919
|
|
|
8920 fi
|
|
|
8921
|
|
|
8922
|
|
|
8923 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
|
|
|
8924 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
|
|
243
|
8925 echo "configure:8926: checking for nlist.h" >&5
|
|
|
8926
|
|
|
8927 cat > conftest.$ac_ext <<EOF
|
|
|
8928 #line 8929 "configure"
|
|
0
|
8929 #include "confdefs.h"
|
|
|
8930 #include <nlist.h>
|
|
|
8931 EOF
|
|
149
|
8932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
8933 { (eval echo configure:8934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8934 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
8935 if test -z "$ac_err"; then
|
|
|
8936 rm -rf conftest*
|
|
149
|
8937 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8938 else
|
|
|
8939 echo "$ac_err" >&5
|
|
|
8940 echo "configure: failed program was:" >&5
|
|
|
8941 cat conftest.$ac_ext >&5
|
|
|
8942 rm -rf conftest*
|
|
|
8943 eval "ac_cv_header_$ac_safe=no"
|
|
|
8944 fi
|
|
|
8945 rm -f conftest*
|
|
|
8946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8947 echo "$ac_t""yes" 1>&6
|
|
|
8948 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8949 Defining NLIST_STRUCT
|
|
|
8950 EOF
|
|
|
8951 cat >> confdefs.h <<\EOF
|
|
|
8952 #define NLIST_STRUCT 1
|
|
|
8953 EOF
|
|
|
8954 }
|
|
|
8955
|
|
|
8956 else
|
|
|
8957 echo "$ac_t""no" 1>&6
|
|
|
8958 fi
|
|
|
8959
|
|
|
8960
|
|
0
|
8961
|
|
149
|
8962 echo "checking "for sound support"" 1>&6
|
|
243
|
8963 echo "configure:8964: checking "for sound support"" >&5
|
|
149
|
8964 case "$with_sound" in
|
|
|
8965 native | both ) with_native_sound=yes;;
|
|
|
8966 nas | no ) with_native_sound=no;;
|
|
|
8967 esac
|
|
155
|
8968 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
|
|
|
8969
|
|
149
|
8970 if test "$with_native_sound" != "no"; then
|
|
155
|
8971 if test -n "$native_sound_lib"; then
|
|
|
8972 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
|
|
|
8973 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
|
|
243
|
8974 echo "configure:8975: checking for multimedia/audio_device.h" >&5
|
|
|
8975
|
|
|
8976 cat > conftest.$ac_ext <<EOF
|
|
|
8977 #line 8978 "configure"
|
|
155
|
8978 #include "confdefs.h"
|
|
|
8979 #include <multimedia/audio_device.h>
|
|
|
8980 EOF
|
|
|
8981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
8982 { (eval echo configure:8983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
155
|
8983 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
8984 if test -z "$ac_err"; then
|
|
|
8985 rm -rf conftest*
|
|
|
8986 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8987 else
|
|
|
8988 echo "$ac_err" >&5
|
|
|
8989 echo "configure: failed program was:" >&5
|
|
|
8990 cat conftest.$ac_ext >&5
|
|
|
8991 rm -rf conftest*
|
|
|
8992 eval "ac_cv_header_$ac_safe=no"
|
|
|
8993 fi
|
|
|
8994 rm -f conftest*
|
|
|
8995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8996 echo "$ac_t""yes" 1>&6
|
|
|
8997 sound_found=yes sound_cflags=""
|
|
|
8998 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
8999 echo " xemacs will be linked with \"sunplay.o\""
|
|
|
9000 fi
|
|
|
9001 else
|
|
|
9002 echo "$ac_t""no" 1>&6
|
|
|
9003 fi
|
|
|
9004
|
|
|
9005 fi
|
|
|
9006
|
|
|
9007 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
|
|
|
9008 sound_found=yes
|
|
151
|
9009 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9010 echo " xemacs will be linked with \"sunplay.o\""
|
|
|
9011 fi
|
|
149
|
9012 if test -d "/usr/demo/SOUND/include"
|
|
|
9013 then sound_cflags="-I/usr/demo/SOUND/include"
|
|
|
9014 else sound_cflags="-I/usr/demo/SOUND"
|
|
|
9015 fi
|
|
|
9016 if test -z "$native_sound_lib" ; then
|
|
|
9017 if test -r "/usr/demo/SOUND/lib/libaudio.a"
|
|
|
9018 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
|
|
|
9019 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
|
|
|
9020 fi
|
|
|
9021 fi
|
|
155
|
9022 fi
|
|
|
9023
|
|
|
9024 if test -z "$sound_found"; then
|
|
|
9025 case "$canonical" in
|
|
149
|
9026 *-sgi-* )
|
|
155
|
9027 if test -z "$native_sound_lib"; then
|
|
|
9028
|
|
149
|
9029 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
|
|
243
|
9030 echo "configure:9031: checking for ALopenport in -laudio" >&5
|
|
149
|
9031 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
|
|
|
9032
|
|
|
9033 xe_check_libs=" -laudio "
|
|
|
9034 cat > conftest.$ac_ext <<EOF
|
|
243
|
9035 #line 9036 "configure"
|
|
149
|
9036 #include "confdefs.h"
|
|
|
9037 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9038 /* We use char because int might match the return type of a gcc2
|
|
|
9039 builtin and then its argument prototype would still apply. */
|
|
|
9040 char ALopenport();
|
|
|
9041
|
|
|
9042 int main() {
|
|
|
9043 ALopenport()
|
|
|
9044 ; return 0; }
|
|
|
9045 EOF
|
|
243
|
9046 if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9047 rm -rf conftest*
|
|
|
9048 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9049 else
|
|
|
9050 echo "configure: failed program was:" >&5
|
|
|
9051 cat conftest.$ac_ext >&5
|
|
|
9052 rm -rf conftest*
|
|
|
9053 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9054 fi
|
|
|
9055 rm -f conftest*
|
|
|
9056 xe_check_libs=""
|
|
|
9057
|
|
151
|
9058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
9059 echo "$ac_t""yes" 1>&6
|
|
|
9060 native_sound_lib="-laudio"
|
|
|
9061 else
|
|
|
9062 echo "$ac_t""no" 1>&6
|
|
|
9063 fi
|
|
|
9064
|
|
|
9065
|
|
155
|
9066 fi
|
|
|
9067 if test -n "$native_sound_lib"; then
|
|
|
9068 sound_found=yes sound_cflags=""
|
|
151
|
9069 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9070 echo " xemacs will be linked with \"sgiplay.o\""
|
|
|
9071 fi
|
|
149
|
9072 fi ;;
|
|
|
9073 hppa*-hp-hpux* )
|
|
155
|
9074 if test -z "$native_sound_lib"; then
|
|
|
9075
|
|
149
|
9076 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
|
|
243
|
9077 echo "configure:9078: checking for AOpenAudio in -lAlib" >&5
|
|
149
|
9078 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
|
|
|
9079
|
|
|
9080 xe_check_libs=" -lAlib "
|
|
|
9081 cat > conftest.$ac_ext <<EOF
|
|
243
|
9082 #line 9083 "configure"
|
|
149
|
9083 #include "confdefs.h"
|
|
|
9084 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9085 /* We use char because int might match the return type of a gcc2
|
|
|
9086 builtin and then its argument prototype would still apply. */
|
|
|
9087 char AOpenAudio();
|
|
|
9088
|
|
|
9089 int main() {
|
|
|
9090 AOpenAudio()
|
|
|
9091 ; return 0; }
|
|
|
9092 EOF
|
|
243
|
9093 if { (eval echo configure:9094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9094 rm -rf conftest*
|
|
|
9095 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9096 else
|
|
|
9097 echo "configure: failed program was:" >&5
|
|
|
9098 cat conftest.$ac_ext >&5
|
|
|
9099 rm -rf conftest*
|
|
|
9100 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9101 fi
|
|
|
9102 rm -f conftest*
|
|
|
9103 xe_check_libs=""
|
|
|
9104
|
|
151
|
9105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
9106 echo "$ac_t""yes" 1>&6
|
|
|
9107 native_sound_lib="-lAlib"
|
|
|
9108 else
|
|
|
9109 echo "$ac_t""no" 1>&6
|
|
|
9110 fi
|
|
|
9111
|
|
|
9112
|
|
155
|
9113 fi
|
|
|
9114 if test -n "$native_sound_lib"; then
|
|
|
9115 sound_found=yes
|
|
151
|
9116 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9117 echo " xemacs will be linked with \"hpplay.o\""
|
|
|
9118 fi
|
|
169
|
9119 if test "$GCC" = "yes" # Kludge city
|
|
149
|
9120 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
|
|
|
9121 else sound_cflags="+e -I/usr/audio/examples"
|
|
|
9122 fi
|
|
|
9123 fi ;;
|
|
0
|
9124 esac
|
|
|
9125 fi
|
|
149
|
9126
|
|
155
|
9127 if test -z "$sound_found"; then
|
|
149
|
9128 for dir in "machine" "sys" "linux"; do
|
|
|
9129 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
|
|
|
9130 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
|
|
243
|
9131 echo "configure:9132: checking for ${dir}/soundcard.h" >&5
|
|
|
9132
|
|
|
9133 cat > conftest.$ac_ext <<EOF
|
|
|
9134 #line 9135 "configure"
|
|
149
|
9135 #include "confdefs.h"
|
|
|
9136 #include <${dir}/soundcard.h>
|
|
|
9137 EOF
|
|
|
9138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
9139 { (eval echo configure:9140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
9140 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
9141 if test -z "$ac_err"; then
|
|
|
9142 rm -rf conftest*
|
|
|
9143 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9144 else
|
|
|
9145 echo "$ac_err" >&5
|
|
|
9146 echo "configure: failed program was:" >&5
|
|
|
9147 cat conftest.$ac_ext >&5
|
|
|
9148 rm -rf conftest*
|
|
|
9149 eval "ac_cv_header_$ac_safe=no"
|
|
|
9150 fi
|
|
|
9151 rm -f conftest*
|
|
|
9152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9153 echo "$ac_t""yes" 1>&6
|
|
|
9154 sound_found=yes
|
|
151
|
9155 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9156 echo " xemacs will be linked with \"linuxplay.o\""
|
|
|
9157 fi
|
|
149
|
9158 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
9159 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
|
|
|
9160 EOF
|
|
|
9161 cat >> confdefs.h <<EOF
|
|
|
9162 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
|
|
|
9163 EOF
|
|
|
9164 }
|
|
|
9165
|
|
|
9166 break
|
|
|
9167 else
|
|
|
9168 echo "$ac_t""no" 1>&6
|
|
|
9169 fi
|
|
|
9170
|
|
|
9171 done
|
|
100
|
9172 fi
|
|
149
|
9173
|
|
|
9174 test "$sound_found" = "yes" && with_native_sound=yes
|
|
|
9175 fi
|
|
|
9176
|
|
|
9177 if test -z "$with_sound"; then
|
|
|
9178 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
|
|
|
9179 with_sound=native
|
|
100
|
9180 fi
|
|
|
9181 fi
|
|
|
9182
|
|
149
|
9183 if test "$with_native_sound" = "yes"; then
|
|
|
9184 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9185 Defining HAVE_NATIVE_SOUND
|
|
|
9186 EOF
|
|
|
9187 cat >> confdefs.h <<\EOF
|
|
|
9188 #define HAVE_NATIVE_SOUND 1
|
|
|
9189 EOF
|
|
|
9190 }
|
|
|
9191
|
|
151
|
9192 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
|
9193 fi
|
|
|
9194
|
|
|
9195 case "$with_sound" in both | nas )
|
|
|
9196 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9197 Defining HAVE_NAS_SOUND
|
|
|
9198 EOF
|
|
|
9199 cat >> confdefs.h <<\EOF
|
|
|
9200 #define HAVE_NAS_SOUND 1
|
|
|
9201 EOF
|
|
|
9202 }
|
|
|
9203
|
|
151
|
9204 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9205 echo " xemacs will be linked with \"nas.o\""
|
|
|
9206 fi
|
|
201
|
9207 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
|
|
149
|
9208 cat > conftest.$ac_ext <<EOF
|
|
243
|
9209 #line 9210 "configure"
|
|
149
|
9210 #include "confdefs.h"
|
|
|
9211 #include <audio/Xtutil.h>
|
|
|
9212 EOF
|
|
|
9213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
9214 egrep "AuXtErrorJump" >/dev/null 2>&1; then
|
|
|
9215 :
|
|
|
9216 else
|
|
|
9217 rm -rf conftest*
|
|
|
9218 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9219 Defining NAS_NO_ERROR_JUMP
|
|
|
9220 EOF
|
|
|
9221 cat >> confdefs.h <<\EOF
|
|
|
9222 #define NAS_NO_ERROR_JUMP 1
|
|
|
9223 EOF
|
|
|
9224 }
|
|
|
9225
|
|
|
9226 fi
|
|
|
9227 rm -f conftest*
|
|
|
9228
|
|
|
9229 esac
|
|
|
9230
|
|
|
9231
|
|
|
9232 test -z "$with_tty" && with_tty=yes
|
|
|
9233
|
|
|
9234 if test "$with_tty" = "yes" ; then
|
|
151
|
9235 echo "checking for TTY-related features" 1>&6
|
|
243
|
9236 echo "configure:9237: checking for TTY-related features" >&5
|
|
149
|
9237 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9238 Defining HAVE_TTY
|
|
|
9239 EOF
|
|
|
9240 cat >> confdefs.h <<\EOF
|
|
|
9241 #define HAVE_TTY 1
|
|
|
9242 EOF
|
|
|
9243 }
|
|
|
9244
|
|
151
|
9245 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
|
|
|
9246 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\""
|
|
|
9247 fi
|
|
149
|
9248
|
|
|
9249 if test -z "$with_ncurses"; then
|
|
70
|
9250
|
|
151
|
9251 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
|
|
243
|
9252 echo "configure:9253: checking for tgetent in -lncurses" >&5
|
|
151
|
9253 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
|
|
149
|
9254
|
|
|
9255 xe_check_libs=" -lncurses "
|
|
|
9256 cat > conftest.$ac_ext <<EOF
|
|
243
|
9257 #line 9258 "configure"
|
|
149
|
9258 #include "confdefs.h"
|
|
|
9259 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9260 /* We use char because int might match the return type of a gcc2
|
|
|
9261 builtin and then its argument prototype would still apply. */
|
|
151
|
9262 char tgetent();
|
|
149
|
9263
|
|
|
9264 int main() {
|
|
151
|
9265 tgetent()
|
|
149
|
9266 ; return 0; }
|
|
|
9267 EOF
|
|
243
|
9268 if { (eval echo configure:9269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9269 rm -rf conftest*
|
|
|
9270 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9271 else
|
|
|
9272 echo "configure: failed program was:" >&5
|
|
|
9273 cat conftest.$ac_ext >&5
|
|
|
9274 rm -rf conftest*
|
|
|
9275 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9276 fi
|
|
|
9277 rm -f conftest*
|
|
|
9278 xe_check_libs=""
|
|
|
9279
|
|
151
|
9280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
9281 echo "$ac_t""yes" 1>&6
|
|
|
9282 with_ncurses=yes
|
|
|
9283 else
|
|
|
9284 echo "$ac_t""no" 1>&6
|
|
|
9285 with_ncurses=no
|
|
|
9286 fi
|
|
|
9287
|
|
|
9288
|
|
|
9289 fi
|
|
|
9290 if test "$with_ncurses" = "yes"; then
|
|
|
9291 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9292 Defining HAVE_NCURSES
|
|
|
9293 EOF
|
|
|
9294 cat >> confdefs.h <<\EOF
|
|
|
9295 #define HAVE_NCURSES 1
|
|
|
9296 EOF
|
|
|
9297 }
|
|
|
9298
|
|
|
9299 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
|
9300 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
|
243
|
9301 echo "configure:9302: checking for ncurses/curses.h" >&5
|
|
|
9302
|
|
|
9303 cat > conftest.$ac_ext <<EOF
|
|
|
9304 #line 9305 "configure"
|
|
149
|
9305 #include "confdefs.h"
|
|
|
9306 #include <ncurses/curses.h>
|
|
|
9307 EOF
|
|
|
9308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
9309 { (eval echo configure:9310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
9310 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
9311 if test -z "$ac_err"; then
|
|
|
9312 rm -rf conftest*
|
|
|
9313 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9314 else
|
|
|
9315 echo "$ac_err" >&5
|
|
|
9316 echo "configure: failed program was:" >&5
|
|
|
9317 cat conftest.$ac_ext >&5
|
|
|
9318 rm -rf conftest*
|
|
|
9319 eval "ac_cv_header_$ac_safe=no"
|
|
|
9320 fi
|
|
|
9321 rm -f conftest*
|
|
|
9322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9323 echo "$ac_t""yes" 1>&6
|
|
|
9324 curses_h_path=ncurses/curses.h
|
|
|
9325 else
|
|
|
9326 echo "$ac_t""no" 1>&6
|
|
|
9327 fi
|
|
|
9328
|
|
|
9329 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
|
|
|
9330 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
|
|
243
|
9331 echo "configure:9332: checking for ncurses/term.h" >&5
|
|
|
9332
|
|
|
9333 cat > conftest.$ac_ext <<EOF
|
|
|
9334 #line 9335 "configure"
|
|
0
|
9335 #include "confdefs.h"
|
|
|
9336 #include <ncurses/term.h>
|
|
|
9337 EOF
|
|
149
|
9338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
9339 { (eval echo configure:9340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
9340 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
9341 if test -z "$ac_err"; then
|
|
|
9342 rm -rf conftest*
|
|
149
|
9343 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9344 else
|
|
|
9345 echo "$ac_err" >&5
|
|
|
9346 echo "configure: failed program was:" >&5
|
|
|
9347 cat conftest.$ac_ext >&5
|
|
|
9348 rm -rf conftest*
|
|
|
9349 eval "ac_cv_header_$ac_safe=no"
|
|
|
9350 fi
|
|
|
9351 rm -f conftest*
|
|
|
9352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9353 echo "$ac_t""yes" 1>&6
|
|
|
9354 term_h_path=ncurses/term.h
|
|
|
9355 else
|
|
|
9356 echo "$ac_t""no" 1>&6
|
|
|
9357 fi
|
|
|
9358
|
|
151
|
9359 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9360 echo " xemacs will be linked with \"terminfo.o\""
|
|
|
9361 fi
|
|
|
9362 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
|
|
149
|
9363
|
|
153
|
9364 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
|
|
149
|
9365 save_c_switch_site="$c_switch_site"
|
|
|
9366 c_switch_site="$c_switch_site -I/usr/include/ncurses"
|
|
|
9367 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
|
9368 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
|
243
|
9369 echo "configure:9370: checking for ncurses/curses.h" >&5
|
|
|
9370
|
|
|
9371 cat > conftest.$ac_ext <<EOF
|
|
|
9372 #line 9373 "configure"
|
|
0
|
9373 #include "confdefs.h"
|
|
|
9374 #include <ncurses/curses.h>
|
|
|
9375 EOF
|
|
149
|
9376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
9377 { (eval echo configure:9378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
9378 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
9379 if test -z "$ac_err"; then
|
|
|
9380 rm -rf conftest*
|
|
149
|
9381 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9382 else
|
|
|
9383 echo "$ac_err" >&5
|
|
|
9384 echo "configure: failed program was:" >&5
|
|
|
9385 cat conftest.$ac_ext >&5
|
|
|
9386 rm -rf conftest*
|
|
|
9387 eval "ac_cv_header_$ac_safe=no"
|
|
|
9388 fi
|
|
|
9389 rm -f conftest*
|
|
|
9390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9391 echo "$ac_t""yes" 1>&6
|
|
|
9392 curses_h_path=ncurses/curses.h
|
|
|
9393 else
|
|
|
9394 echo "$ac_t""no" 1>&6
|
|
|
9395 fi
|
|
|
9396
|
|
153
|
9397 if test "$ac_cv_header_ncurses_curses_h" = "yes"
|
|
149
|
9398 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
|
|
|
9399 else c_switch_site="$save_c_switch_site"
|
|
|
9400 fi
|
|
|
9401 fi
|
|
151
|
9402 else if test "$have_terminfo" = "yes"; then
|
|
|
9403 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9404 echo " xemacs will be linked with \"terminfo.o\""
|
|
|
9405 fi
|
|
|
9406 if test -n "$libs_termcap"; then
|
|
|
9407 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
|
9408 else
|
|
|
9409 for lib in curses termlib termcap; do
|
|
|
9410
|
|
|
9411 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
|
|
243
|
9412 echo "configure:9413: checking for tgetent in -l$lib" >&5
|
|
151
|
9413 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
|
|
|
9414
|
|
|
9415 xe_check_libs=" -l$lib "
|
|
|
9416 cat > conftest.$ac_ext <<EOF
|
|
243
|
9417 #line 9418 "configure"
|
|
149
|
9418 #include "confdefs.h"
|
|
|
9419 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9420 /* We use char because int might match the return type of a gcc2
|
|
|
9421 builtin and then its argument prototype would still apply. */
|
|
151
|
9422 char tgetent();
|
|
149
|
9423
|
|
|
9424 int main() {
|
|
151
|
9425 tgetent()
|
|
149
|
9426 ; return 0; }
|
|
|
9427 EOF
|
|
243
|
9428 if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9429 rm -rf conftest*
|
|
|
9430 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9431 else
|
|
|
9432 echo "configure: failed program was:" >&5
|
|
|
9433 cat conftest.$ac_ext >&5
|
|
|
9434 rm -rf conftest*
|
|
|
9435 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9436 fi
|
|
|
9437 rm -f conftest*
|
|
|
9438 xe_check_libs=""
|
|
|
9439
|
|
151
|
9440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
9441 echo "$ac_t""yes" 1>&6
|
|
|
9442 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
|
|
|
9443 else
|
|
|
9444 echo "$ac_t""no" 1>&6
|
|
|
9445 fi
|
|
|
9446
|
|
|
9447
|
|
|
9448 done
|
|
|
9449 fi
|
|
|
9450 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9451 echo " xemacs will be linked with \"tparam.o\""
|
|
|
9452 fi
|
|
|
9453 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
|
|
|
9454 if test -n "$libs_termcap"; then
|
|
|
9455 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
|
9456 else
|
|
|
9457
|
|
|
9458 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
|
|
243
|
9459 echo "configure:9460: checking for tgetent in -lcurses" >&5
|
|
151
|
9460 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
|
|
|
9461
|
|
|
9462 xe_check_libs=" -lcurses "
|
|
|
9463 cat > conftest.$ac_ext <<EOF
|
|
243
|
9464 #line 9465 "configure"
|
|
149
|
9465 #include "confdefs.h"
|
|
|
9466 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9467 /* We use char because int might match the return type of a gcc2
|
|
|
9468 builtin and then its argument prototype would still apply. */
|
|
151
|
9469 char tgetent();
|
|
149
|
9470
|
|
|
9471 int main() {
|
|
151
|
9472 tgetent()
|
|
149
|
9473 ; return 0; }
|
|
|
9474 EOF
|
|
243
|
9475 if { (eval echo configure:9476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9476 rm -rf conftest*
|
|
|
9477 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9478 else
|
|
|
9479 echo "configure: failed program was:" >&5
|
|
|
9480 cat conftest.$ac_ext >&5
|
|
|
9481 rm -rf conftest*
|
|
|
9482 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9483 fi
|
|
|
9484 rm -f conftest*
|
|
|
9485 xe_check_libs=""
|
|
|
9486
|
|
151
|
9487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
9488 echo "$ac_t""yes" 1>&6
|
|
|
9489 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
|
|
|
9490 else
|
|
|
9491 echo "$ac_t""no" 1>&6
|
|
|
9492 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
|
|
243
|
9493 echo "configure:9494: checking for tgetent in -ltermcap" >&5
|
|
151
|
9494 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
|
|
|
9495
|
|
|
9496 xe_check_libs=" -ltermcap "
|
|
|
9497 cat > conftest.$ac_ext <<EOF
|
|
243
|
9498 #line 9499 "configure"
|
|
149
|
9499 #include "confdefs.h"
|
|
|
9500 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9501 /* We use char because int might match the return type of a gcc2
|
|
|
9502 builtin and then its argument prototype would still apply. */
|
|
151
|
9503 char tgetent();
|
|
149
|
9504
|
|
|
9505 int main() {
|
|
151
|
9506 tgetent()
|
|
149
|
9507 ; return 0; }
|
|
|
9508 EOF
|
|
243
|
9509 if { (eval echo configure:9510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9510 rm -rf conftest*
|
|
|
9511 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9512 else
|
|
|
9513 echo "configure: failed program was:" >&5
|
|
|
9514 cat conftest.$ac_ext >&5
|
|
|
9515 rm -rf conftest*
|
|
|
9516 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9517 fi
|
|
|
9518 rm -f conftest*
|
|
|
9519 xe_check_libs=""
|
|
|
9520
|
|
151
|
9521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
9522 echo "$ac_t""yes" 1>&6
|
|
|
9523 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
|
|
|
9524 else
|
|
|
9525 echo "$ac_t""no" 1>&6
|
|
|
9526 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9527 echo " xemacs will be linked with \"termcap.o\""
|
|
|
9528 fi
|
|
|
9529 fi
|
|
|
9530
|
|
|
9531
|
|
|
9532 fi
|
|
|
9533
|
|
|
9534
|
|
0
|
9535 fi
|
|
|
9536 fi
|
|
149
|
9537 fi
|
|
|
9538 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
9539 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
|
|
|
9540 EOF
|
|
|
9541 cat >> confdefs.h <<EOF
|
|
|
9542 #define CURSES_H_PATH "${curses_h_path-curses.h}"
|
|
|
9543 EOF
|
|
|
9544 }
|
|
|
9545
|
|
|
9546 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
9547 Defining TERM_H_PATH = "${term_h_path-term.h}"
|
|
|
9548 EOF
|
|
|
9549 cat >> confdefs.h <<EOF
|
|
|
9550 #define TERM_H_PATH "${term_h_path-term.h}"
|
|
|
9551 EOF
|
|
|
9552 }
|
|
|
9553
|
|
155
|
9554
|
|
|
9555 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
|
|
|
9556 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
|
|
243
|
9557 echo "configure:9558: checking for gpm.h" >&5
|
|
|
9558
|
|
|
9559 cat > conftest.$ac_ext <<EOF
|
|
|
9560 #line 9561 "configure"
|
|
155
|
9561 #include "confdefs.h"
|
|
|
9562 #include <gpm.h>
|
|
|
9563 EOF
|
|
|
9564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
243
|
9565 { (eval echo configure:9566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
155
|
9566 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
9567 if test -z "$ac_err"; then
|
|
|
9568 rm -rf conftest*
|
|
|
9569 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9570 else
|
|
|
9571 echo "$ac_err" >&5
|
|
|
9572 echo "configure: failed program was:" >&5
|
|
|
9573 cat conftest.$ac_ext >&5
|
|
|
9574 rm -rf conftest*
|
|
|
9575 eval "ac_cv_header_$ac_safe=no"
|
|
|
9576 fi
|
|
|
9577 rm -f conftest*
|
|
|
9578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9579 echo "$ac_t""yes" 1>&6
|
|
|
9580 :
|
|
|
9581 else
|
|
|
9582 echo "$ac_t""no" 1>&6
|
|
|
9583 with_gpm=no
|
|
|
9584 fi
|
|
|
9585 }
|
|
|
9586 test -z "$with_gpm" && {
|
|
|
9587 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
|
|
243
|
9588 echo "configure:9589: checking for Gpm_Open in -lgpm" >&5
|
|
155
|
9589 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
|
|
|
9590
|
|
|
9591 xe_check_libs=" -lgpm "
|
|
|
9592 cat > conftest.$ac_ext <<EOF
|
|
243
|
9593 #line 9594 "configure"
|
|
155
|
9594 #include "confdefs.h"
|
|
|
9595 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9596 /* We use char because int might match the return type of a gcc2
|
|
|
9597 builtin and then its argument prototype would still apply. */
|
|
|
9598 char Gpm_Open();
|
|
|
9599
|
|
|
9600 int main() {
|
|
|
9601 Gpm_Open()
|
|
|
9602 ; return 0; }
|
|
|
9603 EOF
|
|
243
|
9604 if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
155
|
9605 rm -rf conftest*
|
|
|
9606 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9607 else
|
|
|
9608 echo "configure: failed program was:" >&5
|
|
|
9609 cat conftest.$ac_ext >&5
|
|
|
9610 rm -rf conftest*
|
|
|
9611 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9612 fi
|
|
|
9613 rm -f conftest*
|
|
|
9614 xe_check_libs=""
|
|
|
9615
|
|
|
9616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
9617 echo "$ac_t""yes" 1>&6
|
|
|
9618 with_gpm=yes
|
|
|
9619 else
|
|
|
9620 echo "$ac_t""no" 1>&6
|
|
|
9621 with_gpm=no
|
|
|
9622 fi
|
|
|
9623
|
|
|
9624 }
|
|
|
9625 if test "$with_gpm" = "yes"; then
|
|
|
9626 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9627 Defining HAVE_GPM
|
|
|
9628 EOF
|
|
|
9629 cat >> confdefs.h <<\EOF
|
|
|
9630 #define HAVE_GPM 1
|
|
|
9631 EOF
|
|
|
9632 }
|
|
|
9633
|
|
|
9634 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9635 echo " xemacs will be linked with \"gpmevent.o\""
|
|
|
9636 fi
|
|
|
9637 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
|
|
|
9638 fi
|
|
|
9639
|
|
151
|
9640 else for feature in ncurses gpm; do
|
|
149
|
9641 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
|
9642 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
|
|
|
9643 fi
|
|
|
9644 eval "with_${feature}=no"
|
|
|
9645 done
|
|
151
|
9646 fi
|
|
163
|
9647 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
|
|
|
9648 echo " xemacs will be linked with \"event-unixoid.o\""
|
|
|
9649 fi
|
|
|
9650
|
|
149
|
9651
|
|
|
9652 echo "checking for database support" 1>&6
|
|
243
|
9653 echo "configure:9654: checking for database support" >&5
|
|
151
|
9654
|
|
|
9655 if test "$with_database_gnudbm" != "no"; then
|
|
149
|
9656
|
|
|
9657 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
|
|
243
|
9658 echo "configure:9659: checking for dbm_open in -lgdbm" >&5
|
|
149
|
9659 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
|
9660
|
|
|
9661 xe_check_libs=" -lgdbm "
|
|
|
9662 cat > conftest.$ac_ext <<EOF
|
|
243
|
9663 #line 9664 "configure"
|
|
149
|
9664 #include "confdefs.h"
|
|
|
9665 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9666 /* We use char because int might match the return type of a gcc2
|
|
|
9667 builtin and then its argument prototype would still apply. */
|
|
|
9668 char dbm_open();
|
|
|
9669
|
|
|
9670 int main() {
|
|
|
9671 dbm_open()
|
|
|
9672 ; return 0; }
|
|
|
9673 EOF
|
|
243
|
9674 if { (eval echo configure:9675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9675 rm -rf conftest*
|
|
|
9676 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9677 else
|
|
|
9678 echo "configure: failed program was:" >&5
|
|
|
9679 cat conftest.$ac_ext >&5
|
|
|
9680 rm -rf conftest*
|
|
|
9681 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9682 fi
|
|
|
9683 rm -f conftest*
|
|
|
9684 xe_check_libs=""
|
|
|
9685
|
|
151
|
9686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
9687 echo "$ac_t""yes" 1>&6
|
|
|
9688 with_database_gnudbm=yes have_libgdbm=yes
|
|
|
9689 else
|
|
|
9690 echo "$ac_t""no" 1>&6
|
|
|
9691 fi
|
|
|
9692
|
|
|
9693
|
|
|
9694 if test "$with_database_gnudbm" != "yes"; then
|
|
|
9695 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
|
243
|
9696 echo "configure:9697: checking for dbm_open" >&5
|
|
|
9697
|
|
|
9698 cat > conftest.$ac_ext <<EOF
|
|
|
9699 #line 9700 "configure"
|
|
149
|
9700 #include "confdefs.h"
|
|
|
9701 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
9702 which can conflict with char dbm_open(); below. */
|
|
|
9703 #include <assert.h>
|
|
|
9704 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9705 /* We use char because int might match the return type of a gcc2
|
|
|
9706 builtin and then its argument prototype would still apply. */
|
|
|
9707 char dbm_open();
|
|
|
9708
|
|
|
9709 int main() {
|
|
|
9710
|
|
|
9711 /* The GNU C library defines this for functions which it implements
|
|
|
9712 to always fail with ENOSYS. Some functions are actually named
|
|
|
9713 something starting with __ and the normal name is an alias. */
|
|
|
9714 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
|
9715 choke me
|
|
|
9716 #else
|
|
|
9717 dbm_open();
|
|
|
9718 #endif
|
|
|
9719
|
|
|
9720 ; return 0; }
|
|
|
9721 EOF
|
|
243
|
9722 if { (eval echo configure:9723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9723 rm -rf conftest*
|
|
|
9724 eval "ac_cv_func_dbm_open=yes"
|
|
|
9725 else
|
|
|
9726 echo "configure: failed program was:" >&5
|
|
|
9727 cat conftest.$ac_ext >&5
|
|
|
9728 rm -rf conftest*
|
|
|
9729 eval "ac_cv_func_dbm_open=no"
|
|
|
9730 fi
|
|
|
9731 rm -f conftest*
|
|
|
9732
|
|
|
9733 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
|
9734 echo "$ac_t""yes" 1>&6
|
|
|
9735 with_database_gnudbm=yes
|
|
|
9736 else
|
|
|
9737 echo "$ac_t""no" 1>&6
|
|
|
9738 fi
|
|
|
9739
|
|
|
9740 fi
|
|
151
|
9741 if test "$with_database_gnudbm" = "yes"; then
|
|
149
|
9742 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9743 Defining HAVE_DBM
|
|
|
9744 EOF
|
|
|
9745 cat >> confdefs.h <<\EOF
|
|
|
9746 #define HAVE_DBM 1
|
|
|
9747 EOF
|
|
|
9748 }
|
|
|
9749
|
|
151
|
9750 test "$have_libgdbm" = "yes" && LIBS="-lgdbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdbm\" to \$LIBS"; fi
|
|
149
|
9751 with_database_dbm=no
|
|
|
9752 else with_database_gnudbm=no
|
|
|
9753 fi
|
|
|
9754 fi
|
|
|
9755
|
|
151
|
9756 if test "$with_database_dbm" != "no"; then
|
|
149
|
9757 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
|
243
|
9758 echo "configure:9759: checking for dbm_open" >&5
|
|
|
9759
|
|
|
9760 cat > conftest.$ac_ext <<EOF
|
|
|
9761 #line 9762 "configure"
|
|
149
|
9762 #include "confdefs.h"
|
|
|
9763 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
9764 which can conflict with char dbm_open(); below. */
|
|
|
9765 #include <assert.h>
|
|
|
9766 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9767 /* We use char because int might match the return type of a gcc2
|
|
|
9768 builtin and then its argument prototype would still apply. */
|
|
|
9769 char dbm_open();
|
|
|
9770
|
|
|
9771 int main() {
|
|
|
9772
|
|
|
9773 /* The GNU C library defines this for functions which it implements
|
|
|
9774 to always fail with ENOSYS. Some functions are actually named
|
|
|
9775 something starting with __ and the normal name is an alias. */
|
|
|
9776 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
|
9777 choke me
|
|
|
9778 #else
|
|
|
9779 dbm_open();
|
|
|
9780 #endif
|
|
|
9781
|
|
|
9782 ; return 0; }
|
|
|
9783 EOF
|
|
243
|
9784 if { (eval echo configure:9785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9785 rm -rf conftest*
|
|
|
9786 eval "ac_cv_func_dbm_open=yes"
|
|
|
9787 else
|
|
|
9788 echo "configure: failed program was:" >&5
|
|
|
9789 cat conftest.$ac_ext >&5
|
|
|
9790 rm -rf conftest*
|
|
|
9791 eval "ac_cv_func_dbm_open=no"
|
|
|
9792 fi
|
|
|
9793 rm -f conftest*
|
|
|
9794
|
|
|
9795 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
|
9796 echo "$ac_t""yes" 1>&6
|
|
|
9797 with_database_dbm=yes need_libdbm=no
|
|
|
9798 else
|
|
|
9799 echo "$ac_t""no" 1>&6
|
|
|
9800 fi
|
|
|
9801
|
|
|
9802 if test "$need_libdbm" != "no"; then
|
|
|
9803
|
|
|
9804 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
|
|
243
|
9805 echo "configure:9806: checking for dbm_open in -ldbm" >&5
|
|
149
|
9806 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
|
9807
|
|
|
9808 xe_check_libs=" -ldbm "
|
|
|
9809 cat > conftest.$ac_ext <<EOF
|
|
243
|
9810 #line 9811 "configure"
|
|
149
|
9811 #include "confdefs.h"
|
|
|
9812 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9813 /* We use char because int might match the return type of a gcc2
|
|
|
9814 builtin and then its argument prototype would still apply. */
|
|
|
9815 char dbm_open();
|
|
|
9816
|
|
|
9817 int main() {
|
|
|
9818 dbm_open()
|
|
|
9819 ; return 0; }
|
|
|
9820 EOF
|
|
243
|
9821 if { (eval echo configure:9822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9822 rm -rf conftest*
|
|
|
9823 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9824 else
|
|
|
9825 echo "configure: failed program was:" >&5
|
|
|
9826 cat conftest.$ac_ext >&5
|
|
|
9827 rm -rf conftest*
|
|
|
9828 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9829 fi
|
|
|
9830 rm -f conftest*
|
|
|
9831 xe_check_libs=""
|
|
|
9832
|
|
151
|
9833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
9834 echo "$ac_t""yes" 1>&6
|
|
|
9835 with_database_dbm=yes need_libdbm=yes
|
|
|
9836 else
|
|
|
9837 echo "$ac_t""no" 1>&6
|
|
|
9838 fi
|
|
|
9839
|
|
70
|
9840
|
|
0
|
9841 fi
|
|
151
|
9842 if test "$with_database_dbm" = "yes"; then
|
|
149
|
9843 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9844 Defining HAVE_DBM
|
|
|
9845 EOF
|
|
|
9846 cat >> confdefs.h <<\EOF
|
|
|
9847 #define HAVE_DBM 1
|
|
|
9848 EOF
|
|
|
9849 }
|
|
|
9850
|
|
151
|
9851 test "$need_libdbm" = "yes" && LIBS="-ldbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldbm\" to \$LIBS"; fi
|
|
149
|
9852 else with_database_dbm=no
|
|
|
9853 fi
|
|
|
9854 fi
|
|
|
9855
|
|
|
9856 if test "$with_database_berkdb" != "no"; then
|
|
|
9857 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
|
|
243
|
9858 echo "configure:9859: checking for dbopen" >&5
|
|
|
9859
|
|
|
9860 cat > conftest.$ac_ext <<EOF
|
|
|
9861 #line 9862 "configure"
|
|
149
|
9862 #include "confdefs.h"
|
|
|
9863 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
9864 which can conflict with char dbopen(); below. */
|
|
|
9865 #include <assert.h>
|
|
|
9866 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9867 /* We use char because int might match the return type of a gcc2
|
|
|
9868 builtin and then its argument prototype would still apply. */
|
|
|
9869 char dbopen();
|
|
|
9870
|
|
|
9871 int main() {
|
|
|
9872
|
|
0
|
9873 /* The GNU C library defines this for functions which it implements
|
|
|
9874 to always fail with ENOSYS. Some functions are actually named
|
|
|
9875 something starting with __ and the normal name is an alias. */
|
|
|
9876 #if defined (__stub_dbopen) || defined (__stub___dbopen)
|
|
|
9877 choke me
|
|
|
9878 #else
|
|
149
|
9879 dbopen();
|
|
0
|
9880 #endif
|
|
149
|
9881
|
|
0
|
9882 ; return 0; }
|
|
|
9883 EOF
|
|
243
|
9884 if { (eval echo configure:9885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9885 rm -rf conftest*
|
|
|
9886 eval "ac_cv_func_dbopen=yes"
|
|
|
9887 else
|
|
|
9888 echo "configure: failed program was:" >&5
|
|
|
9889 cat conftest.$ac_ext >&5
|
|
|
9890 rm -rf conftest*
|
|
|
9891 eval "ac_cv_func_dbopen=no"
|
|
|
9892 fi
|
|
|
9893 rm -f conftest*
|
|
|
9894
|
|
|
9895 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
|
|
|
9896 echo "$ac_t""yes" 1>&6
|
|
|
9897 with_database_berkdb=yes need_libdb=no
|
|
|
9898 else
|
|
|
9899 echo "$ac_t""no" 1>&6
|
|
|
9900 fi
|
|
|
9901
|
|
|
9902 if test "$need_libdb" != "no"; then
|
|
|
9903
|
|
|
9904 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
|
|
243
|
9905 echo "configure:9906: checking for dbopen in -ldb" >&5
|
|
149
|
9906 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
|
|
|
9907
|
|
|
9908 xe_check_libs=" -ldb "
|
|
|
9909 cat > conftest.$ac_ext <<EOF
|
|
243
|
9910 #line 9911 "configure"
|
|
149
|
9911 #include "confdefs.h"
|
|
0
|
9912 /* Override any gcc2 internal prototype to avoid an error. */
|
|
149
|
9913 /* We use char because int might match the return type of a gcc2
|
|
|
9914 builtin and then its argument prototype would still apply. */
|
|
|
9915 char dbopen();
|
|
|
9916
|
|
|
9917 int main() {
|
|
|
9918 dbopen()
|
|
0
|
9919 ; return 0; }
|
|
|
9920 EOF
|
|
243
|
9921 if { (eval echo configure:9922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9922 rm -rf conftest*
|
|
|
9923 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
9924 else
|
|
|
9925 echo "configure: failed program was:" >&5
|
|
|
9926 cat conftest.$ac_ext >&5
|
|
|
9927 rm -rf conftest*
|
|
|
9928 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
9929 fi
|
|
|
9930 rm -f conftest*
|
|
|
9931 xe_check_libs=""
|
|
|
9932
|
|
151
|
9933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
9934 echo "$ac_t""yes" 1>&6
|
|
|
9935 with_database_berkdb=yes need_libdb=yes
|
|
|
9936 else
|
|
|
9937 echo "$ac_t""no" 1>&6
|
|
|
9938 fi
|
|
|
9939
|
|
70
|
9940
|
|
0
|
9941 fi
|
|
149
|
9942 if test "$with_database_berkdb" = "yes"; then
|
|
|
9943 for path in "db/db.h" "db.h"; do
|
|
|
9944 cat > conftest.$ac_ext <<EOF
|
|
243
|
9945 #line 9946 "configure"
|
|
149
|
9946 #include "confdefs.h"
|
|
|
9947 #ifdef HAVE_INTTYPES_H
|
|
|
9948 #define __BIT_TYPES_DEFINED__
|
|
|
9949 #include <inttypes.h>
|
|
|
9950 typedef uint8_t u_int8_t;
|
|
|
9951 typedef uint16_t u_int16_t;
|
|
|
9952 typedef uint32_t u_int32_t;
|
|
|
9953 #ifdef WE_DONT_NEED_QUADS
|
|
|
9954 typedef uint64_t u_int64_t;
|
|
|
9955 #endif
|
|
|
9956 #endif
|
|
|
9957 #include <$path>
|
|
|
9958
|
|
|
9959 int main() {
|
|
|
9960
|
|
|
9961 ; return 0; }
|
|
|
9962 EOF
|
|
243
|
9963 if { (eval echo configure:9964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
9964 rm -rf conftest*
|
|
|
9965 db_h_path="$path"; break
|
|
|
9966 else
|
|
|
9967 echo "configure: failed program was:" >&5
|
|
|
9968 cat conftest.$ac_ext >&5
|
|
|
9969 fi
|
|
|
9970 rm -f conftest*
|
|
|
9971 done
|
|
|
9972 test -z "$db_h_path" && with_database_berkdb=no
|
|
0
|
9973 fi
|
|
149
|
9974 if test "$with_database_berkdb" = "yes"; then
|
|
|
9975 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
9976 Defining DB_H_PATH = "$db_h_path"
|
|
|
9977 EOF
|
|
|
9978 cat >> confdefs.h <<EOF
|
|
|
9979 #define DB_H_PATH "$db_h_path"
|
|
|
9980 EOF
|
|
|
9981 }
|
|
|
9982
|
|
|
9983 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9984 Defining HAVE_BERKELEY_DB
|
|
|
9985 EOF
|
|
|
9986 cat >> confdefs.h <<\EOF
|
|
|
9987 #define HAVE_BERKELEY_DB 1
|
|
|
9988 EOF
|
|
|
9989 }
|
|
|
9990
|
|
151
|
9991 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
|
|
149
|
9992 else with_database_berkdb=no
|
|
|
9993 fi
|
|
|
9994 fi
|
|
|
9995
|
|
|
9996 if test "$with_database_gnudbm" = "yes" -o \
|
|
|
9997 "$with_database_dbm" = "yes" -o \
|
|
|
9998 "$with_database_berkdb" = "yes"; then
|
|
|
9999 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10000 Defining HAVE_DATABASE
|
|
|
10001 EOF
|
|
|
10002 cat >> confdefs.h <<\EOF
|
|
|
10003 #define HAVE_DATABASE 1
|
|
|
10004 EOF
|
|
|
10005 }
|
|
|
10006
|
|
151
|
10007 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
|
|
|
10008 echo " xemacs will be linked with \"database.o\""
|
|
|
10009 fi
|
|
149
|
10010 fi
|
|
|
10011
|
|
|
10012 if test "$with_socks" = "yes"; then
|
|
|
10013
|
|
|
10014 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
|
|
243
|
10015 echo "configure:10016: checking for SOCKSinit in -lsocks" >&5
|
|
149
|
10016 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
|
|
|
10017
|
|
|
10018 xe_check_libs=" -lsocks "
|
|
|
10019 cat > conftest.$ac_ext <<EOF
|
|
243
|
10020 #line 10021 "configure"
|
|
149
|
10021 #include "confdefs.h"
|
|
|
10022 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
10023 /* We use char because int might match the return type of a gcc2
|
|
|
10024 builtin and then its argument prototype would still apply. */
|
|
|
10025 char SOCKSinit();
|
|
|
10026
|
|
|
10027 int main() {
|
|
|
10028 SOCKSinit()
|
|
|
10029 ; return 0; }
|
|
|
10030 EOF
|
|
243
|
10031 if { (eval echo configure:10032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
10032 rm -rf conftest*
|
|
|
10033 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
10034 else
|
|
|
10035 echo "configure: failed program was:" >&5
|
|
|
10036 cat conftest.$ac_ext >&5
|
|
|
10037 rm -rf conftest*
|
|
|
10038 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
10039 fi
|
|
|
10040 rm -f conftest*
|
|
|
10041 xe_check_libs=""
|
|
|
10042
|
|
151
|
10043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
10044 echo "$ac_t""yes" 1>&6
|
|
|
10045 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
10046 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
10047 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10048 Defining $ac_tr_lib
|
|
|
10049 EOF
|
|
|
10050 cat >> confdefs.h <<EOF
|
|
|
10051 #define $ac_tr_lib 1
|
|
|
10052 EOF
|
|
|
10053 }
|
|
|
10054
|
|
151
|
10055 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
|
|
149
|
10056
|
|
|
10057 else
|
|
|
10058 echo "$ac_t""no" 1>&6
|
|
|
10059 fi
|
|
|
10060
|
|
|
10061
|
|
|
10062 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10063 Defining HAVE_SOCKS
|
|
|
10064 EOF
|
|
|
10065 cat >> confdefs.h <<\EOF
|
|
|
10066 #define HAVE_SOCKS 1
|
|
|
10067 EOF
|
|
|
10068 }
|
|
|
10069
|
|
|
10070 fi
|
|
|
10071
|
|
|
10072 if test "$usage_tracking" = "yes"; then
|
|
|
10073 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10074 Defining USAGE_TRACKING
|
|
|
10075 EOF
|
|
|
10076 cat >> confdefs.h <<\EOF
|
|
|
10077 #define USAGE_TRACKING 1
|
|
|
10078 EOF
|
|
|
10079 }
|
|
|
10080
|
|
151
|
10081 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
|
|
149
|
10082 fi
|
|
|
10083
|
|
155
|
10084
|
|
|
10085
|
|
|
10086 T=""
|
|
175
|
10087 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
10088 CFLAGS="$T"
|
|
|
10089
|
|
|
10090
|
|
|
10091 T=""
|
|
155
|
10092 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
10093 extra_objs="$T"
|
|
|
10094
|
|
|
10095
|
|
|
10096 T=""
|
|
|
10097 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
|
|
|
10098 c_switch_general="$T"
|
|
|
10099
|
|
|
10100
|
|
|
10101 T=""
|
|
|
10102 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
10103 c_switch_window_system="$T"
|
|
|
10104
|
|
|
10105
|
|
|
10106 T=""
|
|
|
10107 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
10108 c_switch_all="$T"
|
|
|
10109
|
|
|
10110
|
|
|
10111 T=""
|
|
|
10112 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
|
|
|
10113 ld_switch_general="$T"
|
|
|
10114
|
|
|
10115
|
|
|
10116 T=""
|
|
|
10117 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
10118 ld_switch_window_system="$T"
|
|
|
10119
|
|
|
10120
|
|
|
10121 T=""
|
|
|
10122 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
10123 ld_switch_all="$T"
|
|
|
10124
|
|
|
10125
|
|
|
10126 T=""
|
|
|
10127 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
10128 ld_libs_general="$T"
|
|
|
10129
|
|
|
10130
|
|
|
10131 T=""
|
|
|
10132 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
|
|
|
10133 ld_libs_window_system="$T"
|
|
|
10134
|
|
|
10135
|
|
|
10136 T=""
|
|
|
10137 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
10138 ld_libs_all="$T"
|
|
|
10139
|
|
149
|
10140
|
|
151
|
10141
|
|
|
10142 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
|
|
149
|
10143 internal_makefile_list="Makefile"
|
|
|
10144 SUBDIR_MAKEFILES=''
|
|
151
|
10145 test -d lock || mkdir lock
|
|
149
|
10146 for dir in $MAKE_SUBDIR; do
|
|
167
|
10147 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
|
|
|
10148 test -d "$d" || mkdir "$d"; cd "$d"
|
|
|
10149 done ) ;;
|
|
|
10150 * ) test -d "$dir" || mkdir "$dir" ;;
|
|
|
10151 esac
|
|
155
|
10152
|
|
|
10153 T=""
|
|
|
10154 for W in $SUBDIR_MAKEFILES $dir/Makefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
10155 SUBDIR_MAKEFILES="$T"
|
|
|
10156
|
|
|
10157
|
|
|
10158 T=""
|
|
|
10159 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
10160 internal_makefile_list="$T"
|
|
|
10161
|
|
149
|
10162 done
|
|
|
10163
|
|
|
10164
|
|
|
10165
|
|
167
|
10166
|
|
157
|
10167 for dir in src/s src/m; do
|
|
|
10168 if test ! -d "$dir" ; then
|
|
|
10169 echo Making symbolic link to "$srcdir/$dir"
|
|
|
10170 ${LN_S} "$srcdir/$dir" "$dir"
|
|
|
10171 fi
|
|
|
10172 done
|
|
|
10173
|
|
149
|
10174 if test "$extra_verbose" = "yes"; then
|
|
151
|
10175 echo ""
|
|
163
|
10176 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
|
10177 echo ""
|
|
|
10178 fi
|
|
|
10179
|
|
151
|
10180 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
|
|
153
|
10181 echo "creating src/gdbinit"; echo ""
|
|
151
|
10182 echo "source $srcdir/src/gdbinit" > src/gdbinit
|
|
|
10183 fi
|
|
|
10184
|
|
157
|
10185 if test "$__sunpro_c" = "yes"; then
|
|
153
|
10186 echo "creating .sbinit"; echo ""
|
|
157
|
10187 ( echo "# For use with Sun WorkShop's Source browser."
|
|
|
10188 echo "# See sbquery(1) and sbinit(4) for more information"
|
|
|
10189 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
|
|
|
10190 ) > .sbinit
|
|
|
10191 fi
|
|
151
|
10192
|
|
|
10193 rm -f core
|
|
|
10194
|
|
149
|
10195
|
|
|
10196
|
|
|
10197
|
|
|
10198
|
|
|
10199
|
|
|
10200
|
|
|
10201
|
|
|
10202
|
|
|
10203
|
|
|
10204
|
|
|
10205
|
|
|
10206
|
|
|
10207
|
|
|
10208
|
|
|
10209
|
|
|
10210
|
|
|
10211
|
|
|
10212
|
|
|
10213
|
|
|
10214
|
|
|
10215
|
|
|
10216
|
|
|
10217
|
|
|
10218
|
|
|
10219
|
|
|
10220
|
|
|
10221
|
|
|
10222
|
|
|
10223
|
|
|
10224
|
|
|
10225
|
|
|
10226
|
|
|
10227
|
|
|
10228
|
|
|
10229
|
|
|
10230
|
|
|
10231
|
|
|
10232
|
|
|
10233
|
|
|
10234
|
|
|
10235
|
|
|
10236
|
|
|
10237
|
|
203
|
10238
|
|
207
|
10239
|
|
173
|
10240 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
|
|
|
10241
|
|
|
10242
|
|
|
10243
|
|
|
10244
|
|
|
10245
|
|
|
10246
|
|
|
10247
|
|
|
10248
|
|
187
|
10249 if test "${package_path}" = "NONE" ; then
|
|
|
10250 package_path="~/.xemacs:${prefix}/lib/xemacs/packages"
|
|
185
|
10251 fi
|
|
|
10252 package_path=`echo $package_path | sed 'y/ /:/'`
|
|
|
10253 { test "$extra_verbose" = "yes" && cat << EOF
|
|
173
|
10254 Defining PACKAGE_PATH = "$package_path"
|
|
|
10255 EOF
|
|
|
10256 cat >> confdefs.h <<EOF
|
|
|
10257 #define PACKAGE_PATH "$package_path"
|
|
|
10258 EOF
|
|
|
10259 }
|
|
|
10260
|
|
155
|
10261
|
|
207
|
10262
|
|
|
10263 T=""
|
|
|
10264 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
10265 ac_configure_args="$T"
|
|
|
10266
|
|
149
|
10267 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10268 Defining EMACS_CONFIGURATION = "$canonical"
|
|
|
10269 EOF
|
|
|
10270 cat >> confdefs.h <<EOF
|
|
|
10271 #define EMACS_CONFIGURATION "$canonical"
|
|
|
10272 EOF
|
|
|
10273 }
|
|
|
10274
|
|
|
10275 { test "$extra_verbose" = "yes" && cat << EOF
|
|
207
|
10276 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
|
|
173
|
10277 EOF
|
|
|
10278 cat >> confdefs.h <<EOF
|
|
207
|
10279 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
|
|
173
|
10280 EOF
|
|
|
10281 }
|
|
|
10282
|
|
|
10283 { test "$extra_verbose" = "yes" && cat << EOF
|
|
149
|
10284 Defining config_machfile = "$machfile"
|
|
|
10285 EOF
|
|
|
10286 cat >> confdefs.h <<EOF
|
|
|
10287 #define config_machfile "$machfile"
|
|
|
10288 EOF
|
|
|
10289 }
|
|
|
10290
|
|
|
10291 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10292 Defining config_opsysfile = "$opsysfile"
|
|
|
10293 EOF
|
|
|
10294 cat >> confdefs.h <<EOF
|
|
|
10295 #define config_opsysfile "$opsysfile"
|
|
|
10296 EOF
|
|
|
10297 }
|
|
|
10298
|
|
|
10299
|
|
|
10300
|
|
|
10301 null_string=""
|
|
|
10302 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10303 Defining LD_SWITCH_X_SITE = $null_string
|
|
|
10304 EOF
|
|
|
10305 cat >> confdefs.h <<EOF
|
|
|
10306 #define LD_SWITCH_X_SITE $null_string
|
|
|
10307 EOF
|
|
|
10308 }
|
|
|
10309
|
|
|
10310 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10311 Defining LD_SWITCH_X_SITE_AUX = $null_string
|
|
|
10312 EOF
|
|
|
10313 cat >> confdefs.h <<EOF
|
|
|
10314 #define LD_SWITCH_X_SITE_AUX $null_string
|
|
|
10315 EOF
|
|
|
10316 }
|
|
|
10317
|
|
|
10318 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10319 Defining C_SWITCH_X_SITE = $null_string
|
|
|
10320 EOF
|
|
|
10321 cat >> confdefs.h <<EOF
|
|
|
10322 #define C_SWITCH_X_SITE $null_string
|
|
|
10323 EOF
|
|
|
10324 }
|
|
|
10325
|
|
|
10326 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10327 Defining LD_SWITCH_SITE = $null_string
|
|
|
10328 EOF
|
|
|
10329 cat >> confdefs.h <<EOF
|
|
|
10330 #define LD_SWITCH_SITE $null_string
|
|
|
10331 EOF
|
|
|
10332 }
|
|
|
10333
|
|
|
10334 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10335 Defining C_SWITCH_SITE = $null_string
|
|
|
10336 EOF
|
|
|
10337 cat >> confdefs.h <<EOF
|
|
|
10338 #define C_SWITCH_SITE $null_string
|
|
|
10339 EOF
|
|
|
10340 }
|
|
|
10341
|
|
|
10342
|
|
|
10343
|
|
|
10344 test -n "$puresize" && { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10345 Defining RAW_PURESIZE = $puresize
|
|
|
10346 EOF
|
|
|
10347 cat >> confdefs.h <<EOF
|
|
|
10348 #define RAW_PURESIZE $puresize
|
|
|
10349 EOF
|
|
|
10350 }
|
|
|
10351
|
|
|
10352
|
|
181
|
10353 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
10354 Defining GNU_MALLOC
|
|
|
10355 EOF
|
|
|
10356 cat >> confdefs.h <<\EOF
|
|
|
10357 #define GNU_MALLOC 1
|
|
|
10358 EOF
|
|
|
10359 }
|
|
|
10360
|
|
181
|
10361 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
10362 Defining USE_SYSTEM_MALLOC
|
|
|
10363 EOF
|
|
|
10364 cat >> confdefs.h <<\EOF
|
|
|
10365 #define USE_SYSTEM_MALLOC 1
|
|
|
10366 EOF
|
|
|
10367 }
|
|
|
10368
|
|
181
|
10369 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
177
|
10370 Defining USE_DEBUG_MALLOC
|
|
|
10371 EOF
|
|
|
10372 cat >> confdefs.h <<\EOF
|
|
|
10373 #define USE_DEBUG_MALLOC 1
|
|
|
10374 EOF
|
|
|
10375 }
|
|
|
10376
|
|
181
|
10377 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
177
|
10378 Defining USE_SYSTEM_MALLOC
|
|
|
10379 EOF
|
|
|
10380 cat >> confdefs.h <<\EOF
|
|
|
10381 #define USE_SYSTEM_MALLOC 1
|
|
|
10382 EOF
|
|
|
10383 }
|
|
|
10384
|
|
149
|
10385 fi
|
|
|
10386 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10387 Defining I18N3
|
|
|
10388 EOF
|
|
|
10389 cat >> confdefs.h <<\EOF
|
|
|
10390 #define I18N3 1
|
|
|
10391 EOF
|
|
|
10392 }
|
|
|
10393
|
|
169
|
10394 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
10395 Defining USE_GCC
|
|
|
10396 EOF
|
|
|
10397 cat >> confdefs.h <<\EOF
|
|
|
10398 #define USE_GCC 1
|
|
|
10399 EOF
|
|
|
10400 }
|
|
|
10401
|
|
|
10402 test "$with_term" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10403 Defining HAVE_TERM
|
|
|
10404 EOF
|
|
|
10405 cat >> confdefs.h <<\EOF
|
|
|
10406 #define HAVE_TERM 1
|
|
|
10407 EOF
|
|
|
10408 }
|
|
|
10409
|
|
|
10410 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10411 Defining EXTERNAL_WIDGET
|
|
|
10412 EOF
|
|
|
10413 cat >> confdefs.h <<\EOF
|
|
|
10414 #define EXTERNAL_WIDGET 1
|
|
|
10415 EOF
|
|
|
10416 }
|
|
|
10417
|
|
|
10418 test "$with_gnu_make" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10419 Defining USE_GNU_MAKE
|
|
|
10420 EOF
|
|
|
10421 cat >> confdefs.h <<\EOF
|
|
|
10422 #define USE_GNU_MAKE 1
|
|
|
10423 EOF
|
|
|
10424 }
|
|
|
10425
|
|
|
10426 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10427 Defining NO_DOC_FILE
|
|
|
10428 EOF
|
|
|
10429 cat >> confdefs.h <<\EOF
|
|
|
10430 #define NO_DOC_FILE 1
|
|
|
10431 EOF
|
|
|
10432 }
|
|
|
10433
|
|
|
10434 test "$const_is_losing" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10435 Defining CONST_IS_LOSING
|
|
|
10436 EOF
|
|
|
10437 cat >> confdefs.h <<\EOF
|
|
|
10438 #define CONST_IS_LOSING 1
|
|
|
10439 EOF
|
|
|
10440 }
|
|
|
10441
|
|
|
10442 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10443 Defining QUANTIFY
|
|
|
10444 EOF
|
|
|
10445 cat >> confdefs.h <<\EOF
|
|
|
10446 #define QUANTIFY 1
|
|
|
10447 EOF
|
|
|
10448 }
|
|
|
10449
|
|
|
10450 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10451 Defining MAIL_USE_POP
|
|
|
10452 EOF
|
|
|
10453 cat >> confdefs.h <<\EOF
|
|
|
10454 #define MAIL_USE_POP 1
|
|
|
10455 EOF
|
|
|
10456 }
|
|
|
10457
|
|
|
10458 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10459 Defining KERBEROS
|
|
|
10460 EOF
|
|
|
10461 cat >> confdefs.h <<\EOF
|
|
|
10462 #define KERBEROS 1
|
|
|
10463 EOF
|
|
|
10464 }
|
|
|
10465
|
|
|
10466 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10467 Defining HESIOD
|
|
|
10468 EOF
|
|
|
10469 cat >> confdefs.h <<\EOF
|
|
|
10470 #define HESIOD 1
|
|
|
10471 EOF
|
|
|
10472 }
|
|
|
10473
|
|
|
10474 test "$use_union_type" != yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10475 Defining NO_UNION_TYPE
|
|
|
10476 EOF
|
|
|
10477 cat >> confdefs.h <<\EOF
|
|
|
10478 #define NO_UNION_TYPE 1
|
|
|
10479 EOF
|
|
0
|
10480 }
|
|
70
|
10481
|
|
|
10482
|
|
0
|
10483
|
|
118
|
10484 (
|
|
149
|
10485 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
|
|
|
10486 else
|
|
|
10487 echo "uname -a: `uname -a`"
|
|
|
10488 fi
|
|
|
10489 echo ""
|
|
|
10490 echo "$0 $quoted_arguments"
|
|
118
|
10491 ) >> Installation
|
|
149
|
10492
|
|
116
|
10493 (
|
|
0
|
10494 echo "
|
|
|
10495
|
|
149
|
10496 Configured for \`$canonical'.
|
|
|
10497
|
|
|
10498 Where should the build process find the source code? $srcdir
|
|
|
10499 What installation prefix should install use? $prefix
|
|
183
|
10500 Where should XEmacs look for packages? $package_path
|
|
0
|
10501 What operating system and machine description files should XEmacs use?
|
|
149
|
10502 \`$opsysfile' and \`$machfile'
|
|
|
10503 What compiler should XEmacs be built with? $CC $CFLAGS
|
|
0
|
10504 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
|
|
149
|
10505 Should XEmacs use the relocating allocator for buffers? $rel_alloc
|
|
|
10506 What window system should XEmacs use? ${window_system}"
|
|
|
10507 if test "$with_x11" = "yes"; then
|
|
|
10508 echo " Where do we find X Windows header files? $x_includes"
|
|
|
10509 echo " Where do we find X Windows libraries? $x_libraries"
|
|
|
10510 fi
|
|
70
|
10511 if test -n "$site_includes"; then
|
|
149
|
10512 echo " Additional header files: $site_includes"
|
|
|
10513 fi
|
|
|
10514 if test -n "$site_libraries"; then
|
|
|
10515 echo " Additional libraries: $site_libraries"
|
|
|
10516 fi
|
|
209
|
10517 if test -n "$site_prefixes"; then
|
|
|
10518 echo " Additional prefixes: $site_prefixes"
|
|
|
10519 fi
|
|
149
|
10520 if test -n "$runpath"; then
|
|
|
10521 echo " Runtime library search path: $runpath"
|
|
0
|
10522 fi
|
|
136
|
10523 test "$with_dnet" = yes && echo " Compiling in support for DNET."
|
|
116
|
10524 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
|
10525 test "$with_term" = yes && echo " Compiling in support for TERM."
|
|
|
10526 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
|
|
149
|
10527 if test "$with_xmu" != yes -a "$with_x11" = yes; then
|
|
116
|
10528 echo " No Xmu; substituting equivalent routines."
|
|
|
10529 fi
|
|
149
|
10530
|
|
153
|
10531 if test "$with_xpm" = yes; then
|
|
151
|
10532 echo " Compiling in support for XPM images."
|
|
175
|
10533 elif test "$with_x11" = yes; then
|
|
151
|
10534 echo " --------------------------------------------------------------------"
|
|
|
10535 echo " WARNING: Compiling without XPM support."
|
|
|
10536 echo " WARNING: You should strongly considering installing XPM."
|
|
|
10537 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
|
|
|
10538 echo " --------------------------------------------------------------------"
|
|
|
10539 fi
|
|
149
|
10540 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
|
|
207
|
10541 test "$with_imagick" = yes && echo " Compiling in support for ImageMagick image conversion."
|
|
225
|
10542 test "$with_imagick" = yes && echo " Using $imagick_libs for graphics libraries."
|
|
149
|
10543 case "$with_sound" in
|
|
|
10544 nas ) echo " Compiling in network sound (NAS) support." ;;
|
|
|
10545 native ) echo " Compiling in native sound support." ;;
|
|
|
10546 both ) echo " Compiling in both network and native sound support." ;;
|
|
|
10547 esac
|
|
|
10548 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously"
|
|
116
|
10549
|
|
|
10550 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
|
|
|
10551 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
|
209
|
10552 test "$with_database_gnudbm" = yes && echo " Compiling in support for DBM."
|
|
116
|
10553
|
|
149
|
10554 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
|
10555 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
|
|
116
|
10556
|
|
|
10557 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
|
|
|
10558 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
|
|
|
10559 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
|
|
|
10560 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
|
|
177
|
10561 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
|
|
116
|
10562 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
|
120
|
10563 if test "$with_wnn" = yes; then
|
|
|
10564 echo " Compiling in support for the WNN input method on Mule."
|
|
151
|
10565 test "$with_wnn6" = yes && echo " Using WNN version 6."
|
|
120
|
10566 fi
|
|
116
|
10567 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
|
|
|
10568
|
|
|
10569 test "$with_cde" = yes && echo " Compiling in support for CDE."
|
|
|
10570 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
|
|
10571 test "$with_offix" = yes && echo " Compiling in support for OffiX."
|
|
149
|
10572 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
|
|
219
|
10573 test "$with_session" = yes && echo " Compiling in support for proper session-management."
|
|
203
|
10574 case "$with_menubars" in
|
|
157
|
10575 lucid ) echo " Using Lucid menubars." ;;
|
|
|
10576 motif ) echo " Using Motif menubars."
|
|
|
10577 echo " *WARNING* The Motif menubar implementation is currently buggy."
|
|
149
|
10578 echo " We recommend using the Lucid menubar instead."
|
|
|
10579 echo " Re-run configure with --with-menubars='lucid'." ;;
|
|
|
10580 esac
|
|
|
10581 case "$with_scrollbars" in
|
|
157
|
10582 lucid ) echo " Using Lucid scrollbars." ;;
|
|
|
10583 motif ) echo " Using Motif scrollbars." ;;
|
|
|
10584 athena ) echo " Using Athena scrollbars." ;;
|
|
|
10585 athena3d ) echo " Using Athena-3d scrollbars." ;;
|
|
149
|
10586 esac
|
|
|
10587 case "$with_dialogs" in
|
|
157
|
10588 motif ) echo " Using Motif dialog boxes." ;;
|
|
|
10589 athena ) echo " Using Athena dialog boxes." ;;
|
|
|
10590 athena3d ) echo " Using Athena-3d dialog boxes." ;;
|
|
149
|
10591 esac
|
|
203
|
10592 test "$with_clash_detection" = yes && \
|
|
|
10593 echo " Clash detection will use \"$lockdir\" for locking files."
|
|
157
|
10594 echo " movemail will use \"$mail_locking\" for locking mail spool files."
|
|
126
|
10595 test "$with_pop" = yes && echo " Using POP for mail access"
|
|
|
10596 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication"
|
|
|
10597 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host"
|
|
203
|
10598 echo " The \`Info-default-directory-list' will be initialized from:"
|
|
207
|
10599 echo " INFOPATH=\"$infopath\""
|
|
149
|
10600 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
|
|
|
10601 test "$debug" = yes && echo " Compiling in extra code for debugging."
|
|
|
10602 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage."
|
|
|
10603 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
|
|
151
|
10604 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
|
|
|
10605 != "no no no no no"; then
|
|
|
10606 echo " WARNING: ---------------------------------------------------------"
|
|
|
10607 echo " WARNING: Compiling in support for runtime error checking."
|
|
|
10608 echo " WARNING: XEmacs will run noticeably more slowly as a result."
|
|
|
10609 echo " WARNING: Error checking is on by default for XEmacs beta releases."
|
|
|
10610 echo " WARNING: ---------------------------------------------------------"
|
|
|
10611 fi
|
|
118
|
10612 echo ""
|
|
116
|
10613 ) | tee -a Installation
|
|
151
|
10614 echo "The above configure report is appended to \"Installation\" file."
|
|
118
|
10615 echo ""
|
|
|
10616
|
|
70
|
10617
|
|
120
|
10618
|
|
0
|
10619 # Remove any trailing slashes in these variables.
|
|
149
|
10620 test -n "$prefix" &&
|
|
159
|
10621 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
|
149
|
10622 test -n "$exec_prefix" &&
|
|
159
|
10623 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
|
149
|
10624
|
|
|
10625
|
|
|
10626 trap '' 1 2 15
|
|
|
10627
|
|
|
10628 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
10629
|
|
|
10630 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
|
10631 # Let make expand exec_prefix.
|
|
|
10632 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
0
|
10633
|
|
|
10634 # Any assignment to VPATH causes Sun make to only execute
|
|
|
10635 # the first set of double-colon rules, so remove it if not needed.
|
|
|
10636 # If there is a colon in the path, we need to keep it.
|
|
|
10637 if test "x$srcdir" = x.; then
|
|
|
10638 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
|
10639 fi
|
|
|
10640
|
|
149
|
10641 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
|
10642
|
|
|
10643 DEFS=-DHAVE_CONFIG_H
|
|
|
10644
|
|
|
10645 # Without the "./", some shells look in PATH for config.status.
|
|
|
10646 : ${CONFIG_STATUS=./config.status}
|
|
|
10647
|
|
|
10648 echo creating $CONFIG_STATUS
|
|
|
10649 rm -f $CONFIG_STATUS
|
|
|
10650 cat > $CONFIG_STATUS <<EOF
|
|
|
10651 #! /bin/sh
|
|
0
|
10652 # Generated automatically by configure.
|
|
|
10653 # Run this file to recreate the current configuration.
|
|
|
10654 # This directory was configured as follows,
|
|
|
10655 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
10656 #
|
|
149
|
10657 # $0 $ac_configure_args
|
|
|
10658 #
|
|
|
10659 # Compiler output produced by configure, useful for debugging
|
|
|
10660 # configure, is in ./config.log if it exists.
|
|
|
10661
|
|
|
10662 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|
0
|
10663 for ac_option
|
|
|
10664 do
|
|
|
10665 case "\$ac_option" in
|
|
|
10666 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
149
|
10667 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
|
10668 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|
0
|
10669 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|
149
|
10670 echo "$CONFIG_STATUS generated by autoconf version 2.12"
|
|
0
|
10671 exit 0 ;;
|
|
|
10672 -help | --help | --hel | --he | --h)
|
|
|
10673 echo "\$ac_cs_usage"; exit 0 ;;
|
|
|
10674 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
|
10675 esac
|
|
|
10676 done
|
|
|
10677
|
|
|
10678 ac_given_srcdir=$srcdir
|
|
149
|
10679 ac_given_INSTALL="$INSTALL"
|
|
|
10680
|
|
181
|
10681 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
|
10682 EOF
|
|
|
10683 cat >> $CONFIG_STATUS <<EOF
|
|
|
10684
|
|
|
10685 # Protect against being on the right side of a sed subst in config.status.
|
|
|
10686 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
|
10687 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|
0
|
10688 $ac_vpsub
|
|
|
10689 $extrasub
|
|
149
|
10690 s%@CFLAGS@%$CFLAGS%g
|
|
|
10691 s%@CPPFLAGS@%$CPPFLAGS%g
|
|
|
10692 s%@CXXFLAGS@%$CXXFLAGS%g
|
|
|
10693 s%@DEFS@%$DEFS%g
|
|
|
10694 s%@LDFLAGS@%$LDFLAGS%g
|
|
|
10695 s%@LIBS@%$LIBS%g
|
|
|
10696 s%@exec_prefix@%$exec_prefix%g
|
|
|
10697 s%@prefix@%$prefix%g
|
|
|
10698 s%@program_transform_name@%$program_transform_name%g
|
|
|
10699 s%@bindir@%$bindir%g
|
|
|
10700 s%@sbindir@%$sbindir%g
|
|
|
10701 s%@libexecdir@%$libexecdir%g
|
|
|
10702 s%@datadir@%$datadir%g
|
|
|
10703 s%@sysconfdir@%$sysconfdir%g
|
|
|
10704 s%@sharedstatedir@%$sharedstatedir%g
|
|
|
10705 s%@localstatedir@%$localstatedir%g
|
|
|
10706 s%@libdir@%$libdir%g
|
|
|
10707 s%@includedir@%$includedir%g
|
|
|
10708 s%@oldincludedir@%$oldincludedir%g
|
|
|
10709 s%@infodir@%$infodir%g
|
|
|
10710 s%@mandir@%$mandir%g
|
|
0
|
10711 s%@LN_S@%$LN_S%g
|
|
181
|
10712 s%@blddir@%$blddir%g
|
|
0
|
10713 s%@CC@%$CC%g
|
|
|
10714 s%@CPP@%$CPP%g
|
|
207
|
10715 s%@start_flags@%$start_flags%g
|
|
163
|
10716 s%@ld_switch_shared@%$ld_switch_shared%g
|
|
|
10717 s%@start_files@%$start_files%g
|
|
|
10718 s%@ld@%$ld%g
|
|
|
10719 s%@lib_gcc@%$lib_gcc%g
|
|
0
|
10720 s%@RANLIB@%$RANLIB%g
|
|
|
10721 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|
|
10722 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
|
10723 s%@YACC@%$YACC%g
|
|
|
10724 s%@SET_MAKE@%$SET_MAKE%g
|
|
149
|
10725 s%@X_CFLAGS@%$X_CFLAGS%g
|
|
|
10726 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
|
|
10727 s%@X_LIBS@%$X_LIBS%g
|
|
|
10728 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
|
159
|
10729 s%@libs_xauth@%$libs_xauth%g
|
|
197
|
10730 s%@OFFIX_O@%$OFFIX_O%g
|
|
157
|
10731 s%@lwlib_objs@%$lwlib_objs%g
|
|
0
|
10732 s%@ALLOCA@%$ALLOCA%g
|
|
151
|
10733 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
|
|
167
|
10734 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
|
|
149
|
10735 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
|
|
|
10736 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
|
|
0
|
10737 s%@version@%$version%g
|
|
|
10738 s%@configuration@%$configuration%g
|
|
|
10739 s%@canonical@%$canonical%g
|
|
|
10740 s%@srcdir@%$srcdir%g
|
|
155
|
10741 s%@pkgdir@%$pkgdir%g
|
|
0
|
10742 s%@statedir@%$statedir%g
|
|
|
10743 s%@infodir_user_defined@%$infodir_user_defined%g
|
|
203
|
10744 s%@infopath@%$infopath%g
|
|
207
|
10745 s%@infopath_user_defined@%$infopath_user_defined%g
|
|
0
|
10746 s%@lispdir@%$lispdir%g
|
|
|
10747 s%@lispdir_user_defined@%$lispdir_user_defined%g
|
|
|
10748 s%@sitelispdir@%$sitelispdir%g
|
|
|
10749 s%@etcdir@%$etcdir%g
|
|
|
10750 s%@etcdir_user_defined@%$etcdir_user_defined%g
|
|
|
10751 s%@lockdir@%$lockdir%g
|
|
|
10752 s%@lockdir_user_defined@%$lockdir_user_defined%g
|
|
|
10753 s%@archlibdir@%$archlibdir%g
|
|
|
10754 s%@archlibdir_user_defined@%$archlibdir_user_defined%g
|
|
|
10755 s%@docdir@%$docdir%g
|
|
|
10756 s%@bitmapdir@%$bitmapdir%g
|
|
149
|
10757 s%@extra_objs@%$extra_objs%g
|
|
0
|
10758 s%@machfile@%$machfile%g
|
|
|
10759 s%@opsysfile@%$opsysfile%g
|
|
149
|
10760 s%@c_switch_general@%$c_switch_general%g
|
|
|
10761 s%@c_switch_window_system@%$c_switch_window_system%g
|
|
|
10762 s%@c_switch_all@%$c_switch_all%g
|
|
|
10763 s%@ld_switch_general@%$ld_switch_general%g
|
|
|
10764 s%@ld_switch_window_system@%$ld_switch_window_system%g
|
|
|
10765 s%@ld_switch_all@%$ld_switch_all%g
|
|
|
10766 s%@ld_libs_general@%$ld_libs_general%g
|
|
|
10767 s%@ld_libs_window_system@%$ld_libs_window_system%g
|
|
|
10768 s%@ld_libs_all@%$ld_libs_all%g
|
|
173
|
10769 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
|
|
149
|
10770 s%@native_sound_lib@%$native_sound_lib%g
|
|
|
10771 s%@sound_cflags@%$sound_cflags%g
|
|
0
|
10772 s%@dynodump_arch@%$dynodump_arch%g
|
|
|
10773 s%@internal_makefile_list@%$internal_makefile_list%g
|
|
149
|
10774
|
|
|
10775 CEOF
|
|
|
10776 EOF
|
|
|
10777
|
|
|
10778 cat >> $CONFIG_STATUS <<\EOF
|
|
|
10779
|
|
|
10780 # Split the substitutions into bite-sized pieces for seds with
|
|
|
10781 # small command number limits, like on Digital OSF/1 and HP-UX.
|
|
|
10782 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
|
10783 ac_file=1 # Number of current file.
|
|
|
10784 ac_beg=1 # First line for current file.
|
|
|
10785 ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
|
10786 ac_more_lines=:
|
|
|
10787 ac_sed_cmds=""
|
|
|
10788 while $ac_more_lines; do
|
|
|
10789 if test $ac_beg -gt 1; then
|
|
|
10790 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
|
10791 else
|
|
|
10792 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
|
10793 fi
|
|
|
10794 if test ! -s conftest.s$ac_file; then
|
|
|
10795 ac_more_lines=false
|
|
|
10796 rm -f conftest.s$ac_file
|
|
|
10797 else
|
|
|
10798 if test -z "$ac_sed_cmds"; then
|
|
|
10799 ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
|
10800 else
|
|
|
10801 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
|
10802 fi
|
|
|
10803 ac_file=`expr $ac_file + 1`
|
|
|
10804 ac_beg=$ac_end
|
|
|
10805 ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
|
10806 fi
|
|
|
10807 done
|
|
|
10808 if test -z "$ac_sed_cmds"; then
|
|
|
10809 ac_sed_cmds=cat
|
|
|
10810 fi
|
|
|
10811 EOF
|
|
|
10812
|
|
|
10813 cat >> $CONFIG_STATUS <<EOF
|
|
|
10814
|
|
181
|
10815 CONFIG_FILES=\${CONFIG_FILES-"$internal_makefile_list lib-src/config.values"}
|
|
149
|
10816 EOF
|
|
|
10817 cat >> $CONFIG_STATUS <<\EOF
|
|
|
10818 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
|
10819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
|
10820 case "$ac_file" in
|
|
|
10821 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
|
10822 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
|
10823 *) ac_file_in="${ac_file}.in" ;;
|
|
|
10824 esac
|
|
|
10825
|
|
|
10826 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
|
10827
|
|
|
10828 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
|
10829 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
|
10830 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
|
10831 # The file is in a subdirectory.
|
|
|
10832 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
|
10833 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
|
10834 # A "../" for each directory in $ac_dir_suffix.
|
|
|
10835 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
|
10836 else
|
|
|
10837 ac_dir_suffix= ac_dots=
|
|
|
10838 fi
|
|
|
10839
|
|
|
10840 case "$ac_given_srcdir" in
|
|
|
10841 .) srcdir=.
|
|
|
10842 if test -z "$ac_dots"; then top_srcdir=.
|
|
|
10843 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
|
10844 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
|
10845 *) # Relative path.
|
|
|
10846 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
|
10847 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
|
10848 esac
|
|
|
10849
|
|
|
10850 case "$ac_given_INSTALL" in
|
|
|
10851 [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
|
10852 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
|
10853 esac
|
|
|
10854
|
|
|
10855 echo creating "$ac_file"
|
|
|
10856 rm -f "$ac_file"
|
|
|
10857 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
|
10858 case "$ac_file" in
|
|
|
10859 *Makefile*) ac_comsub="1i\\
|
|
|
10860 # $configure_input" ;;
|
|
|
10861 *) ac_comsub= ;;
|
|
|
10862 esac
|
|
|
10863
|
|
|
10864 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
|
10865 sed -e "$ac_comsub
|
|
|
10866 s%@configure_input@%$configure_input%g
|
|
|
10867 s%@srcdir@%$srcdir%g
|
|
0
|
10868 s%@top_srcdir@%$top_srcdir%g
|
|
149
|
10869 s%@INSTALL@%$INSTALL%g
|
|
|
10870 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|
0
|
10871 fi; done
|
|
149
|
10872 rm -f conftest.s*
|
|
|
10873
|
|
|
10874 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
|
10875 # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|
0
|
10876 #
|
|
|
10877 # ac_d sets the value in "#define NAME VALUE" lines.
|
|
149
|
10878 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
|
10879 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|
0
|
10880 ac_dC='\3'
|
|
149
|
10881 ac_dD='%g'
|
|
0
|
10882 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|
149
|
10883 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
|
10884 ac_uB='\([ ]\)%\1#\2define\3'
|
|
0
|
10885 ac_uC=' '
|
|
149
|
10886 ac_uD='\4%g'
|
|
0
|
10887 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|
149
|
10888 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
|
10889 ac_eB='$%\1#\2define\3'
|
|
0
|
10890 ac_eC=' '
|
|
149
|
10891 ac_eD='%g'
|
|
|
10892
|
|
|
10893 if test "${CONFIG_HEADERS+set}" != set; then
|
|
|
10894 EOF
|
|
|
10895 cat >> $CONFIG_STATUS <<EOF
|
|
|
10896 CONFIG_HEADERS="src/config.h lwlib/config.h"
|
|
|
10897 EOF
|
|
|
10898 cat >> $CONFIG_STATUS <<\EOF
|
|
|
10899 fi
|
|
|
10900 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
|
10901 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
|
10902 case "$ac_file" in
|
|
|
10903 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
|
10904 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
|
10905 *) ac_file_in="${ac_file}.in" ;;
|
|
|
10906 esac
|
|
|
10907
|
|
|
10908 echo creating $ac_file
|
|
|
10909
|
|
|
10910 rm -f conftest.frag conftest.in conftest.out
|
|
|
10911 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
|
10912 cat $ac_file_inputs > conftest.in
|
|
|
10913
|
|
|
10914 EOF
|
|
|
10915
|
|
|
10916 # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
|
10917 # the proper values into config.h.in to produce config.h. And first:
|
|
|
10918 # Protect against being on the right side of a sed subst in config.status.
|
|
|
10919 # Protect against being in an unquoted here document in config.status.
|
|
|
10920 rm -f conftest.vals
|
|
|
10921 cat > conftest.hdr <<\EOF
|
|
|
10922 s/[\\&%]/\\&/g
|
|
|
10923 s%[\\$`]%\\&%g
|
|
|
10924 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
|
10925 s%ac_d%ac_u%gp
|
|
|
10926 s%ac_u%ac_e%gp
|
|
|
10927 EOF
|
|
|
10928 sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
|
10929 rm -f conftest.hdr
|
|
|
10930
|
|
|
10931 # This sed command replaces #undef with comments. This is necessary, for
|
|
|
10932 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
|
10933 # on some systems where configure will not decide to define it.
|
|
|
10934 cat >> conftest.vals <<\EOF
|
|
|
10935 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
|
10936 EOF
|
|
|
10937
|
|
|
10938 # Break up conftest.vals because some shells have a limit on
|
|
|
10939 # the size of here documents, and old seds have small limits too.
|
|
|
10940
|
|
|
10941 rm -f conftest.tail
|
|
0
|
10942 while :
|
|
|
10943 do
|
|
149
|
10944 ac_lines=`grep -c . conftest.vals`
|
|
|
10945 # grep -c gives empty output for an empty file on some AIX systems.
|
|
0
|
10946 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
149
|
10947 # Write a limited-size here document to conftest.frag.
|
|
|
10948 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
|
10949 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
|
10950 echo 'CEOF
|
|
|
10951 sed -f conftest.frag conftest.in > conftest.out
|
|
|
10952 rm -f conftest.in
|
|
|
10953 mv conftest.out conftest.in
|
|
|
10954 ' >> $CONFIG_STATUS
|
|
|
10955 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
|
10956 rm -f conftest.vals
|
|
|
10957 mv conftest.tail conftest.vals
|
|
0
|
10958 done
|
|
149
|
10959 rm -f conftest.vals
|
|
|
10960
|
|
|
10961 cat >> $CONFIG_STATUS <<\EOF
|
|
|
10962 rm -f conftest.frag conftest.h
|
|
0
|
10963 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|
149
|
10964 cat conftest.in >> conftest.h
|
|
|
10965 rm -f conftest.in
|
|
0
|
10966 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
|
10967 echo "$ac_file is unchanged"
|
|
|
10968 rm -f conftest.h
|
|
|
10969 else
|
|
149
|
10970 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
|
10971 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
|
10972 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
|
10973 # The file is in a subdirectory.
|
|
|
10974 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
|
10975 fi
|
|
0
|
10976 rm -f $ac_file
|
|
|
10977 mv conftest.h $ac_file
|
|
|
10978 fi
|
|
|
10979 fi; done
|
|
149
|
10980
|
|
|
10981 EOF
|
|
|
10982 cat >> $CONFIG_STATUS <<EOF
|
|
|
10983 CPP="$CPP"
|
|
|
10984 CPPFLAGS="$CPPFLAGS"
|
|
|
10985 top_srcdir="$srcdir"
|
|
|
10986 MAKE_SUBDIR="$MAKE_SUBDIR"
|
|
|
10987
|
|
|
10988 EOF
|
|
|
10989 cat >> $CONFIG_STATUS <<\EOF
|
|
|
10990
|
|
|
10991 for dir in $MAKE_SUBDIR; do
|
|
|
10992 echo creating $dir/Makefile
|
|
151
|
10993 (
|
|
149
|
10994 cd $dir
|
|
|
10995 rm -f junk.c
|
|
163
|
10996 < Makefile.in \
|
|
165
|
10997 sed -e '/^# Generated/d' \
|
|
163
|
10998 -e 's%/\*\*/#.*%%' \
|
|
165
|
10999 -e 's/^ *# */#/' \
|
|
163
|
11000 -e '/^##/d' \
|
|
|
11001 -e '/^#/ {
|
|
|
11002 p
|
|
|
11003 d
|
|
|
11004 }' -e '/./ {
|
|
|
11005 s/\([\"]\)/\\\1/g
|
|
|
11006 s/^/"/
|
|
|
11007 s/$/"/
|
|
|
11008 }' > junk.c;
|
|
149
|
11009 $CPP -I. -I${top_srcdir}/src $CPPFLAGS junk.c > junk.cpp;
|
|
|
11010 < junk.cpp \
|
|
|
11011 sed -e 's/^#.*//' \
|
|
165
|
11012 -e 's/^[ ][ ]*$//' \
|
|
|
11013 -e 's/^ / /' \
|
|
149
|
11014 | sed -n -e '/^..*$/p' \
|
|
163
|
11015 | sed '/^"/ {
|
|
|
11016 s/\\\([\"]\)/\1/g
|
|
|
11017 s/^"//
|
|
|
11018 s/"$//
|
|
|
11019 }' > Makefile.new
|
|
149
|
11020 chmod 444 Makefile.new
|
|
|
11021 mv -f Makefile.new Makefile
|
|
|
11022 rm -f junk.c junk.cpp
|
|
165
|
11023 )
|
|
149
|
11024 done
|
|
0
|
11025
|
|
181
|
11026 sed < config.status >> lib-src/config.values \
|
|
|
11027 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
|
|
|
11028 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
|
|
|
11029 -e 's/^\([^ ]*\) $/\1 ""/' \
|
|
|
11030 -e 's/ 1$/ t/'
|
|
175
|
11031
|
|
|
11032
|
|
0
|
11033 exit 0
|
|
|
11034 EOF
|
|
149
|
11035 chmod +x $CONFIG_STATUS
|
|
|
11036 rm -fr confdefs* $ac_clean_files
|
|
|
11037 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|
|
11038
|