149
|
1 #! /bin/sh
|
|
2
|
|
3 #### Configuration script for XEmacs. Largely divergent from FSF.
|
|
4 #### Guess values for system-dependent variables and create Makefiles.
|
420
|
5 #### Generated automatically using autoconf version 2.13
|
460
|
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 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.
|
771
|
9 #### Copyright (C) 1995, 1996, 2002 Ben Wing.
|
460
|
10 #### Copyright (C) 2000, 2001 Martin Buchholz.
|
388
|
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
|
0
|
12
|
|
13 ### Don't edit this script!
|
|
14 ### This script was automatically generated by the `autoconf' program
|
|
15 ### from the file `./configure.in'.
|
|
16 ### To rebuild it, execute the command
|
|
17 ### autoconf
|
442
|
18 ### in the this directory. You must have autoconf version 2.13 or later.
|
724
|
19 ### Note: this script has not yet been ported to autoconf version 2.5x.
|
0
|
20
|
|
21 ### This file is part of XEmacs.
|
|
22
|
|
23 ### XEmacs is free software; you can redistribute it and/or modify it
|
|
24 ### under the terms of the GNU General Public License as published by
|
|
25 ### the Free Software Foundation; either version 2, or (at your
|
|
26 ### option) any later version.
|
|
27
|
|
28 ### XEmacs is distributed in the hope that it will be useful, but
|
|
29 ### WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
30 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
31 ### General Public License for more details.
|
|
32
|
|
33 ### You should have received a copy of the GNU General Public License
|
|
34 ### along with XEmacs; see the file COPYING. If not, write to the Free
|
|
35 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
36 ### 02111-1307, USA.
|
|
37
|
149
|
38 ### For usage, run `./configure --help'
|
|
39 ### For more detailed information on building and installing XEmacs,
|
|
40 ### read the file `INSTALL'.
|
0
|
41 ###
|
|
42 ### If configure succeeds, it leaves its status in config.status.
|
149
|
43 ### A log of configuration tests can be found in config.log.
|
0
|
44 ### If configure fails after disturbing the status quo,
|
|
45 ### config.status is removed.
|
|
46
|
149
|
47 ac_help="$ac_help
|
|
48 --with-x use the X Window System"
|
|
49
|
284
|
50
|
|
51
|
|
52 if test -n "$ZSH_VERSION"; then
|
|
53 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
|
|
54 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
|
|
55 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
|
|
56 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
|
|
57 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
|
|
58 elif test -n "$BASH_VERSION"; then
|
|
59 set -o posix
|
|
60 unset CDPATH
|
|
61 else
|
|
62 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
|
|
63 fi
|
|
64
|
149
|
65 exec_prefix=NONE
|
|
66 host=NONE
|
|
67 no_create=
|
|
68 nonopt=NONE
|
|
69 no_recursion=
|
|
70 prefix=NONE
|
|
71 program_prefix=NONE
|
|
72 program_suffix=NONE
|
|
73 program_transform_name=s,x,x,
|
|
74 silent=
|
|
75 site=
|
|
76 srcdir=
|
|
77 target=NONE
|
|
78 verbose=
|
|
79 x_includes=NONE
|
|
80 x_libraries=NONE
|
153
|
81
|
149
|
82 subdirs=
|
|
83 MFLAGS= MAKEFLAGS=
|
442
|
84 SHELL=${CONFIG_SHELL-/bin/sh}
|
149
|
85 ac_max_here_lines=12
|
|
86
|
|
87 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
88
|
|
89 # File descriptor usage:
|
|
90 # 0 standard input
|
|
91 # 1 file creation
|
|
92 # 2 errors and warnings
|
|
93 # 3 some systems may open it to /dev/tty
|
|
94 # 4 used on the Kubota Titan
|
|
95 # 6 checking for... messages and results
|
|
96 # 5 compiler messages saved in config.log
|
|
97 if test "$silent" = yes; then
|
|
98 exec 6>/dev/null
|
|
99 else
|
|
100 exec 6>&1
|
|
101 fi
|
|
102 exec 5>./config.log
|
|
103
|
|
104 echo "\
|
|
105 This file contains any messages produced by compilers while
|
|
106 running configure, to aid debugging if configure makes a mistake.
|
|
107 " 1>&5
|
|
108
|
|
109 # Strip out --no-create and --no-recursion so they do not pile up.
|
|
110 # Also quote any args containing shell metacharacters.
|
|
111 ac_configure_args=
|
|
112 for ac_arg
|
|
113 do
|
|
114 case "$ac_arg" in
|
|
115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
116 | --no-cr | --no-c) ;;
|
|
117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|
120 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
121 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
122 esac
|
|
123 done
|
|
124
|
|
125 # NLS nuisances.
|
|
126 # Only set these to C if already set. These must not be set unconditionally
|
|
127 # because not all systems understand e.g. LANG=C (notably SCO).
|
|
128 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|
129 # Non-C LC_CTYPE values break the ctype check.
|
|
130 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|
131 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|
132 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|
133 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|
134
|
|
135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
136 rm -rf conftest* confdefs.h
|
|
137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
138 echo > confdefs.h
|
|
139
|
|
140 # A filename unique to this package, relative to the directory that
|
|
141 # configure is in, which we can look for to find out if srcdir is correct.
|
|
142 ac_unique_file=src/lisp.h
|
|
143
|
|
144 # Find the source files, if location was not specified.
|
|
145 if test -z "$srcdir"; then
|
|
146 ac_srcdir_defaulted=yes
|
|
147 # Try the directory containing this script, then its parent.
|
|
148 ac_prog=$0
|
|
149 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
150 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
151 srcdir=$ac_confdir
|
|
152 if test ! -r $srcdir/$ac_unique_file; then
|
|
153 srcdir=..
|
|
154 fi
|
|
155 else
|
|
156 ac_srcdir_defaulted=no
|
|
157 fi
|
|
158 if test ! -r $srcdir/$ac_unique_file; then
|
|
159 if test "$ac_srcdir_defaulted" = yes; then
|
|
160 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|
161 else
|
|
162 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|
163 fi
|
|
164 fi
|
|
165 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|
166
|
|
167 # Prefer explicitly selected file to automatically selected ones.
|
|
168 if test -z "$CONFIG_SITE"; then
|
|
169 if test "x$prefix" != xNONE; then
|
|
170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|
171 else
|
|
172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|
173 fi
|
|
174 fi
|
|
175 for ac_site_file in $CONFIG_SITE; do
|
|
176 if test -r "$ac_site_file"; then
|
|
177 echo "loading site script $ac_site_file"
|
|
178 . "$ac_site_file"
|
|
179 fi
|
|
180 done
|
|
181
|
|
182
|
|
183 ac_ext=c
|
151
|
184 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
185 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
186 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
149
|
187 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
188 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
189 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
190 cross_compiling=no
|
|
191
|
420
|
192 ac_exeext=
|
|
193 ac_objext=o
|
149
|
194 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|
195 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|
196 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|
197 ac_n= ac_c='
|
|
198 ' ac_t=' '
|
|
199 else
|
|
200 ac_n=-n ac_c= ac_t=
|
|
201 fi
|
|
202 else
|
|
203 ac_n= ac_c='\c' ac_t=
|
|
204 fi
|
|
205
|
|
206
|
0
|
207 progname="`echo $0 | sed 's:^\./\./:\./:'`"
|
|
208
|
149
|
209
|
151
|
210 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
|
167
|
211 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
|
212
|
0
|
213 prefix='/usr/local'
|
|
214 exec_prefix='${prefix}'
|
|
215 bindir='${exec_prefix}/bin'
|
|
216 datadir='${prefix}/lib'
|
|
217 statedir='${prefix}/lib'
|
|
218 libdir='${exec_prefix}/lib'
|
|
219 mandir='${prefix}/man/man1'
|
422
|
220 inststaticdir='${PROGNAME}'
|
|
221 instvardir='${PROGNAME}-${version}'
|
|
222 infodir='${datadir}/${instvardir}/info'
|
274
|
223 infopath=''
|
276
|
224 install_pp=''
|
422
|
225 lispdir='${datadir}/${instvardir}/lisp'
|
670
|
226 moduledir='${libdir}/${instvardir}/${configuration}/modules'
|
422
|
227 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
|
670
|
228 sitemoduledir='${libdir}/${inststaticdir}/site-modules'
|
422
|
229 pkgdir='${datadir}/${instvardir}/lisp'
|
274
|
230 package_path=''
|
422
|
231 etcdir='${datadir}/${instvardir}/etc'
|
670
|
232 archlibdir='${libdir}/${instvardir}/${configuration}'
|
420
|
233 docdir='${archlibdir}'
|
462
|
234 with_netinstall="no"
|
420
|
235 with_prefix='yes'
|
269
|
236 with_site_lisp='no'
|
388
|
237 with_site_modules='yes'
|
0
|
238 with_menubars=''
|
|
239 with_scrollbars=''
|
420
|
240 with_widgets=''
|
0
|
241 with_dialogs=''
|
272
|
242 cpp='' cppflags='' libs='' ldflags=''
|
452
|
243 extra_includes=''
|
0
|
244 dynamic=''
|
|
245 with_x11=''
|
263
|
246 with_msw=''
|
0
|
247 rel_alloc='default'
|
181
|
248 with_system_malloc='default'
|
261
|
249 with_dlmalloc='default'
|
0
|
250 native_sound_lib=''
|
462
|
251 with_gtk='no'
|
|
252 with_gnome='no'
|
153
|
253 use_assertions="yes"
|
|
254 with_toolbars=""
|
157
|
255 with_tty=""
|
153
|
256 use_union_type="no"
|
|
257 with_dnet=""
|
424
|
258 pdump="no"
|
771
|
259 with_dragndrop_default="no"
|
708
|
260 with_ipv6_cname="no"
|
0
|
261
|
149
|
262
|
|
263
|
|
264
|
0
|
265 arguments="$@"
|
|
266
|
120
|
267 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
|
0
|
268 quoted_arguments=
|
|
269 for i in "$@"; do
|
120
|
270 case "$i" in
|
|
271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
272 | --no-cr | --no-c) ;;
|
153
|
273 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
274 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
120
|
275 *)
|
159
|
276 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
|
120
|
277 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
|
|
278 esac
|
0
|
279 done
|
|
280
|
70
|
281 while test $# != 0; do
|
0
|
282 arg="$1"; shift
|
149
|
283 case "$arg" in
|
157
|
284 --no-create|--no-recursion) ;;
|
149
|
285 -* )
|
|
286 case "$arg" in
|
0
|
287 -*=*)
|
149
|
288 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
|
|
289 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
|
0
|
290 valomitted=no
|
|
291 ;;
|
149
|
292 -*)
|
|
293 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
|
243
|
294 val="yes" valomitted=yes
|
0
|
295 ;;
|
|
296 esac
|
|
297
|
274
|
298 optname="$opt"
|
|
299 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
|
|
300
|
243
|
301 case "${valomitted}-${opt}" in yes-without_* )
|
|
302 opt=`echo $opt | sed 's/without/with/'`
|
|
303 valomitted="no" val="no" ;;
|
|
304 esac
|
|
305
|
149
|
306 case "$opt" in
|
|
307
|
380
|
308 with_site_lisp | \
|
420
|
309 with_prefix | \
|
|
310 with_site_modules | \
|
70
|
311 with_x | \
|
|
312 with_x11 | \
|
462
|
313 with_gtk | \
|
|
314 with_gnome | \
|
263
|
315 with_msw | \
|
70
|
316 with_gcc | \
|
|
317 dynamic | \
|
149
|
318 with_ncurses | \
|
|
319 with_dnet | \
|
|
320 with_socks | \
|
282
|
321 with_dragndrop | \
|
70
|
322 with_cde | \
|
|
323 with_offix | \
|
149
|
324 with_gpm | \
|
|
325 with_xpm | \
|
|
326 with_xface | \
|
251
|
327 with_gif | \
|
|
328 with_jpeg | \
|
|
329 with_png | \
|
|
330 with_tiff | \
|
771
|
331 with_zlib | \
|
414
|
332 with_wmcommand | \
|
70
|
333 with_xmu | \
|
380
|
334 with_purify | \
|
149
|
335 with_quantify | \
|
70
|
336 with_toolbars | \
|
|
337 with_tty | \
|
215
|
338 with_xfs | \
|
70
|
339 with_mule | \
|
771
|
340 with_default_eol_detection | \
|
70
|
341 with_canna | \
|
|
342 with_wnn | \
|
98
|
343 with_wnn6 | \
|
149
|
344 with_workshop | \
|
70
|
345 with_sparcworks | \
|
380
|
346 with_tooltalk | \
|
259
|
347 with_ldap | \
|
442
|
348 with_postgresql | \
|
118
|
349 with_pop | \
|
|
350 with_kerberos | \
|
|
351 with_hesiod | \
|
136
|
352 with_dnet | \
|
280
|
353 with_infodock | \
|
724
|
354 with_netinstall | \
|
|
355 with_ipv6_cname | \
|
70
|
356 external_widget | \
|
120
|
357 verbose | \
|
|
358 extra_verbose | \
|
380
|
359 usage_tracking | \
|
|
360 use_union_type | \
|
424
|
361 pdump | \
|
70
|
362 debug | \
|
|
363 use_assertions | \
|
|
364 memory_usage_stats | \
|
173
|
365 with_clash_detection | \
|
422
|
366 with_modules | \
|
442
|
367 quick_build )
|
149
|
368 case "$val" in
|
0
|
369 y | ye | yes ) val=yes ;;
|
380
|
370 n | no ) val=no ;;
|
149
|
371 * ) (echo "$progname: Usage error:"
|
|
372 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
|
|
373 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
374 esac
|
380
|
375 eval "$opt=\"$val\"" ;;
|
149
|
376
|
|
377
|
153
|
378 srcdir | \
|
70
|
379 compiler | \
|
596
|
380 xemacs_compiler | \
|
157
|
381 cflags | \
|
272
|
382 cpp | \
|
|
383 cppflags | \
|
|
384 libs | \
|
|
385 ldflags | \
|
153
|
386 cache_file | \
|
380
|
387 native_sound_lib| \
|
267
|
388 site_lisp | \
|
70
|
389 x_includes | \
|
|
390 x_libraries | \
|
|
391 site_includes | \
|
|
392 site_libraries | \
|
209
|
393 site_prefixes | \
|
149
|
394 site_runtime_libraries )
|
|
395 if test "$valomitted" = "yes" ; then
|
|
396 if test "$#" = 0 ; then
|
|
397 (echo "$progname: Usage error:"
|
|
398 echo " " "The \`--$optname' option requires a value."
|
|
399 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
0
|
400 fi
|
|
401 val="$1"; shift
|
|
402 fi
|
149
|
403 eval "$opt=\"$val\""
|
0
|
404 ;;
|
|
405
|
149
|
406 rel_alloc | \
|
261
|
407 with_dlmalloc | \
|
181
|
408 with_debug_malloc | use_debug_malloc | \
|
|
409 with_system_malloc | use_system_malloc )
|
149
|
410 case "$val" in
|
0
|
411 y | ye | yes ) val=yes ;;
|
|
412 n | no ) val=no ;;
|
181
|
413 d | de | def | defa | defau | defaul | default ) val=default ;;
|
149
|
414 * ) (echo "$progname: Usage error:"
|
|
415 echo " " "The \`--$optname' option requires one of these values:
|
120
|
416 \`yes', \`no', or \`default'."
|
149
|
417 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
418 esac
|
265
|
419 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
|
149
|
420 eval "$opt=\"$val\""
|
0
|
421 ;;
|
|
422
|
149
|
423 "with_database" )
|
120
|
424 with_database_berkdb=no
|
|
425 with_database_dbm=no
|
426
|
426 with_database_gdbm=no
|
300
|
427 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
149
|
428 case "$x" in
|
426
|
429 no ) ;;
|
|
430 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
|
|
431 d | db | dbm ) with_database_dbm=yes ;;
|
|
432 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
|
|
433 * ) (echo "$progname: Usage error:"
|
149
|
434 echo " " "The \`--$optname' option value
|
120
|
435 must be either \`no' or a comma-separated list
|
380
|
436 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
|
149
|
437 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
120
|
438 esac
|
|
439 done
|
426
|
440 if test "$with_database_dbm" = "yes" -a \
|
|
441 "$with_database_gdbm" = "yes"; then
|
149
|
442 (echo "$progname: Usage error:"
|
120
|
443 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
|
149
|
444 with the \`--$optname' option."
|
|
445 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
0
|
446 fi
|
70
|
447 ;;
|
0
|
448
|
149
|
449 "with_sound" )
|
426
|
450 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
|
451 case "$x" in
|
|
452 n | no | non | none ) new_sdefault=no ;;
|
|
453 a | al | all | both ) new_sdefault=yes ;;
|
|
454
|
|
455 native ) with_native_sound=yes ;;
|
|
456 nonative ) with_native_sound=no ;;
|
|
457
|
|
458 nas ) with_nas_sound=yes ;;
|
|
459 nonas ) with_nas_sound=no ;;
|
|
460
|
432
|
461 esd ) with_esd_sound=yes ;;
|
|
462 noesd ) with_esd_sound=no ;;
|
426
|
463
|
|
464 * ) bogus_sound=yes ;;
|
|
465 esac
|
|
466 if test "$bogus_sound" -o \
|
|
467 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
|
|
468 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
|
|
469 (echo "$progname: Usage error:"
|
|
470 echo " " "Valid types for the \`--$optname' option are:
|
|
471 $types.
|
724
|
472 Option \`all' or \`none' must be first in the list.
|
|
473 The default is to autodetect native and NAS sound support."
|
426
|
474 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
475 elif test -n "$new_sdefault" ; then
|
|
476 with_native_sound=$new_sdefault
|
|
477 with_nas_sound=$new_sdefault
|
432
|
478 with_esd_sound=$new_sdefault
|
426
|
479 new_sdefault= # reset this
|
|
480 fi
|
|
481 sound_notfirst=true
|
|
482 done
|
0
|
483 ;;
|
|
484
|
434
|
485 "with_athena" )
|
|
486 case "$val" in
|
|
487 xa | xaw ) val=xaw ;;
|
|
488 3 | 3d | xaw3d ) val=3d ;;
|
|
489 ne | nex | next | naxtaw) val=next ;;
|
|
490 9 | 95 | xaw95 ) val=95 ;;
|
|
491 xp | xpm | xawxpm ) val=xpm ;;
|
|
492 * ) (echo "$progname: Usage error:"
|
|
493 echo " " "The \`--$optname' option must have one of these values:
|
|
494 \`xaw', \`3d', \`next', \`95', or \`xpm'."
|
|
495 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
496 esac
|
|
497 eval "$opt=\"$val\""
|
|
498 ;;
|
|
499
|
149
|
500 "with_xim" )
|
|
501 case "$val" in
|
|
502 y | ye | yes ) val=yes ;;
|
|
503 n | no | non | none ) val=no ;;
|
|
504 x | xl | xli | xlib ) val=xlib ;;
|
|
505 m | mo | mot | moti | motif ) val=motif ;;
|
|
506 * ) (echo "$progname: Usage error:"
|
|
507 echo " " "The \`--$optname' option must have one of these values:
|
|
508 \`motif', \`xlib', \`yes', or \`no'."
|
|
509 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
510 esac
|
149
|
511 eval "$opt=\"$val\""
|
0
|
512 ;;
|
|
513
|
149
|
514 "mail_locking" )
|
|
515 case "$val" in
|
|
516 lockf ) val=lockf ;;
|
|
517 flock ) val=flock ;;
|
438
|
518 file | dot ) val=file ;;
|
|
519 locking ) val=locking ;;
|
149
|
520 * ) (echo "$progname: Usage error:"
|
|
521 echo " " "The \`--$optname' option must have one of these values:
|
438
|
522 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
|
149
|
523 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
524 esac
|
|
525 eval "$opt=\"$val\""
|
|
526 ;;
|
|
527
|
|
528 "error_checking" )
|
|
529
|
267
|
530 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
149
|
531 case "$x" in
|
|
532 n | no | non | none ) new_default=no ;;
|
0
|
533 a | al | all ) new_default=yes ;;
|
|
534
|
|
535 extents ) error_check_extents=yes ;;
|
|
536 noextents ) error_check_extents=no ;;
|
|
537
|
800
|
538 types ) error_check_types=yes ;;
|
|
539 notypes ) error_check_types=no ;;
|
|
540
|
|
541 text ) error_check_text=yes ;;
|
|
542 notext ) error_check_text=no ;;
|
0
|
543
|
|
544 gc ) error_check_gc=yes ;;
|
|
545 nogc ) error_check_gc=no ;;
|
|
546
|
|
547 malloc ) error_check_malloc=yes ;;
|
|
548 nomalloc ) error_check_malloc=no ;;
|
149
|
549
|
414
|
550 byte_code ) error_check_byte_code=yes ;;
|
|
551 nobyte_code ) error_check_byte_code=no ;;
|
|
552
|
800
|
553 glyphs ) error_check_glyphs=yes ;;
|
|
554 noglyphs ) error_check_glyphs=no ;;
|
|
555
|
|
556 display ) error_check_display=yes ;;
|
|
557 nodisplay ) error_check_display=no ;;
|
|
558
|
|
559 structures ) error_check_structures=yes ;;
|
|
560 nostructures ) error_check_structures=no ;;
|
442
|
561
|
0
|
562 * ) bogus_error_check=yes ;;
|
|
563 esac
|
70
|
564 if test "$bogus_error_check" -o \
|
|
565 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
|
267
|
566 if test "$error_check_default" = yes ; then
|
800
|
567 types="\`all' (default), \`none', \`noextents', \`notypes', \`notext', \`nogc', \`nomalloc', \`noglyphs', \`nobyte-code', \`nodisplay', \`nostructures'."
|
0
|
568 else
|
800
|
569 types="\`all', \`none' (default), \`extents', \`types', \`text', \`gc', \`malloc', \`glyphs', \`byte-code', \`display', \`structures'."
|
0
|
570 fi
|
149
|
571 (echo "$progname: Usage error:"
|
|
572 echo " " "Valid types for the \`--$optname' option are:
|
120
|
573 $types."
|
149
|
574 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
151
|
575 elif test -n "$new_default" ; then
|
0
|
576 error_check_extents=$new_default
|
800
|
577 error_check_types=$new_default
|
|
578 error_check_text=$new_default
|
0
|
579 error_check_gc=$new_default
|
|
580 error_check_malloc=$new_default
|
414
|
581 error_check_byte_code=$new_default
|
442
|
582 error_check_glyphs=$new_default
|
800
|
583 error_check_display=$new_default
|
|
584 error_check_structures=$new_default
|
0
|
585 new_default= # reset this
|
|
586 fi
|
|
587 echeck_notfirst=true
|
|
588 done
|
|
589 ;;
|
|
590
|
149
|
591
|
|
592 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
442
|
593 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
|
380
|
594 archlibdir | docdir | package_path )
|
151
|
595 if test "$valomitted" = "yes"; then
|
|
596 if test "$#" = 0; then
|
149
|
597 (echo "$progname: Usage error:"
|
|
598 echo " " "The \`--$optname' option requires a value."
|
|
599 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
120
|
600 fi
|
|
601 val="$1"; shift
|
0
|
602 fi
|
149
|
603 eval "$opt=\"$val\""
|
|
604
|
278
|
605 case "$opt" in
|
420
|
606 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
607 Defining EXEC_PREFIX_USER_DEFINED
|
|
608 EOF
|
|
609 cat >> confdefs.h <<\EOF
|
|
610 #define EXEC_PREFIX_USER_DEFINED 1
|
|
611 EOF
|
|
612 }
|
|
613 ;;
|
274
|
614 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
615 Defining LISPDIR_USER_DEFINED
|
|
616 EOF
|
|
617 cat >> confdefs.h <<\EOF
|
|
618 #define LISPDIR_USER_DEFINED 1
|
|
619 EOF
|
|
620 }
|
|
621 ;;
|
388
|
622 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
623 Defining SITELISPDIR_USER_DEFINED
|
|
624 EOF
|
|
625 cat >> confdefs.h <<\EOF
|
|
626 #define SITELISPDIR_USER_DEFINED 1
|
|
627 EOF
|
|
628 }
|
|
629 ;;
|
|
630 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
631 Defining MODULEDIR_USER_DEFINED
|
|
632 EOF
|
|
633 cat >> confdefs.h <<\EOF
|
|
634 #define MODULEDIR_USER_DEFINED 1
|
|
635 EOF
|
|
636 }
|
|
637 ;;
|
274
|
638 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
639 Defining ETCDIR_USER_DEFINED
|
|
640 EOF
|
|
641 cat >> confdefs.h <<\EOF
|
|
642 #define ETCDIR_USER_DEFINED 1
|
|
643 EOF
|
|
644 }
|
|
645 ;;
|
|
646 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
647 Defining INFODIR_USER_DEFINED
|
|
648 EOF
|
|
649 cat >> confdefs.h <<\EOF
|
|
650 #define INFODIR_USER_DEFINED 1
|
|
651 EOF
|
|
652 }
|
|
653 ;;
|
|
654 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
655 Defining INFOPATH_USER_DEFINED
|
|
656 EOF
|
|
657 cat >> confdefs.h <<\EOF
|
|
658 #define INFOPATH_USER_DEFINED 1
|
|
659 EOF
|
|
660 }
|
|
661 ;;
|
|
662 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
663 Defining PACKAGE_PATH_USER_DEFINED
|
|
664 EOF
|
|
665 cat >> confdefs.h <<\EOF
|
|
666 #define PACKAGE_PATH_USER_DEFINED 1
|
|
667 EOF
|
|
668 }
|
|
669 ;;
|
278
|
670 datadir )
|
462
|
671 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
672 Defining INFODIR_USER_DEFINED
|
|
673 EOF
|
|
674 cat >> confdefs.h <<\EOF
|
|
675 #define INFODIR_USER_DEFINED 1
|
|
676 EOF
|
|
677 }
|
|
678
|
462
|
679 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
680 Defining LISPDIR_USER_DEFINED
|
|
681 EOF
|
|
682 cat >> confdefs.h <<\EOF
|
|
683 #define LISPDIR_USER_DEFINED 1
|
|
684 EOF
|
|
685 }
|
|
686
|
462
|
687 { test "$extra_verbose" = "yes" && cat << \EOF
|
388
|
688 Defining MODULEDIR_USER_DEFINED
|
|
689 EOF
|
|
690 cat >> confdefs.h <<\EOF
|
|
691 #define MODULEDIR_USER_DEFINED 1
|
|
692 EOF
|
|
693 }
|
|
694
|
278
|
695 { test "$extra_verbose" = "yes" && cat << \EOF
|
274
|
696 Defining ETCDIR_USER_DEFINED
|
|
697 EOF
|
|
698 cat >> confdefs.h <<\EOF
|
|
699 #define ETCDIR_USER_DEFINED 1
|
|
700 EOF
|
|
701 }
|
458
|
702
|
|
703 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
704 Defining DOCDIR_USER_DEFINED
|
|
705 EOF
|
|
706 cat >> confdefs.h <<\EOF
|
|
707 #define DOCDIR_USER_DEFINED 1
|
|
708 EOF
|
|
709 }
|
|
710
|
|
711 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
712 Defining ARCHLIBDIR_USER_DEFINED
|
|
713 EOF
|
|
714 cat >> confdefs.h <<\EOF
|
|
715 #define ARCHLIBDIR_USER_DEFINED 1
|
|
716 EOF
|
|
717 }
|
274
|
718 ;;
|
420
|
719 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
720 Defining DOCDIR_USER_DEFINED
|
|
721 EOF
|
|
722 cat >> confdefs.h <<\EOF
|
|
723 #define DOCDIR_USER_DEFINED 1
|
|
724 EOF
|
|
725 }
|
|
726 ;;
|
274
|
727 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
728 Defining ARCHLIBDIR_USER_DEFINED
|
|
729 EOF
|
|
730 cat >> confdefs.h <<\EOF
|
|
731 #define ARCHLIBDIR_USER_DEFINED 1
|
|
732 EOF
|
|
733 }
|
|
734 ;;
|
149
|
735 esac
|
0
|
736 ;;
|
|
737
|
149
|
738 "no_create" ) ;;
|
|
739
|
215
|
740 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
|
149
|
741
|
380
|
742 "with_menubars" | \
|
|
743 "with_scrollbars" | \
|
442
|
744 "with_dialogs" | \
|
420
|
745 "with_widgets" )
|
149
|
746 case "$val" in
|
0
|
747 l | lu | luc | luci | lucid ) val=lucid ;;
|
724
|
748 mo | mot | moti | motif ) val=motif ;;
|
0
|
749 a | at | ath | athe | athen | athena ) val=athena ;;
|
442
|
750 n | no | non | none ) val=no ;;
|
|
751 y | ye | yes ) val=yes ;;
|
726
|
752 "") val=yes ;;
|
462
|
753 g | gt | gtk ) val=gtk ;;
|
724
|
754 ms | msw ) val=msw ;;
|
149
|
755 * ) (echo "$progname: Usage error:"
|
|
756 echo " " "The \`--$optname' option must have one of these values:
|
585
|
757 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
|
149
|
758 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
759 esac
|
149
|
760 eval "$opt=\"$val\""
|
0
|
761 ;;
|
|
762
|
424
|
763 "use_minimal_tagbits" | \
|
|
764 "use_indexed_lrecord_implementation" | \
|
|
765 "run_in_place" | \
|
442
|
766 "const_is_losing" | \
|
380
|
767 "with_gnu_make" )
|
|
768 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
|
|
769 ;;
|
|
770
|
149
|
771 * ) (echo "$progname: Usage error:"
|
|
772 echo " " "Unrecognized option: $arg"
|
|
773 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
774
|
|
775 esac
|
|
776 ;;
|
|
777
|
243
|
778 *-*-*) configuration="$arg" ;;
|
|
779
|
|
780 *) (echo "$progname: Usage error:"
|
|
781 echo " " "Unrecognized argument: $arg"
|
|
782 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
783
|
|
784 esac
|
|
785 done
|
|
786
|
149
|
787
|
272
|
788 test -n "$cpp" && CPP="$cpp"
|
|
789 test -n "$cppflags" && CPPFLAGS="$cppflags"
|
|
790 test -n "$libs" && LIBS="$libs"
|
|
791 test -n "$ldflags" && LDFLAGS="$ldflags"
|
|
792
|
0
|
793 eval set x "$quoted_arguments"; shift
|
|
794
|
149
|
795 test "$extra_verbose" = "yes" && verbose=yes
|
|
796
|
|
797 test -n "$with_x" && with_x11="$with_x"
|
|
798
|
380
|
799 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
|
|
800 test "$with_system_malloc" = "default" && with_system_malloc=yes
|
|
801 fi
|
272
|
802
|
284
|
803
|
|
804
|
|
805 if test "$with_cde $with_tooltalk" = "yes no"; then
|
|
806 (echo "$progname: Usage error:"
|
|
807 echo " " "--with-cde requires --with-tooltalk"
|
|
808 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
809 elif test "$with_tooltalk" = "no" ; then with_cde=no
|
|
810 elif test "$with_cde" = "yes"; then with_tooltalk=yes
|
|
811 fi
|
|
812
|
|
813
|
149
|
814 case "$srcdir" in
|
|
815
|
|
816 "" )
|
70
|
817 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
|
120
|
818 if test -f "$dir/src/lisp.h" -a \
|
|
819 -f "$dir/lisp/version.el" ; then
|
149
|
820 srcdir="$dir"
|
70
|
821 break
|
|
822 fi
|
|
823 done
|
149
|
824 if test -z "$srcdir" ; then
|
|
825 (echo "$progname: Usage error:"
|
120
|
826 echo " " "Neither the current directory nor its parent seem to
|
|
827 contain the XEmacs sources. If you do not want to build XEmacs in its
|
149
|
828 source tree, you should run \`$progname' in the directory in which
|
120
|
829 you wish to build XEmacs, using the \`--srcdir' option to say where the
|
|
830 sources may be found."
|
149
|
831 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
120
|
832 fi
|
0
|
833 ;;
|
|
834
|
149
|
835 * )
|
243
|
836 if test ! -f "$srcdir/src/lisp.h" -o \
|
149
|
837 ! -f "$srcdir/lisp/version.el" ; then
|
|
838 (echo "$progname: Usage error:"
|
120
|
839 echo " " "The directory specified with the \`--srcdir' option,
|
149
|
840 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
|
|
841 either run the \`$progname' script at the top of the XEmacs source
|
120
|
842 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
|
149
|
843 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
0
|
844 fi
|
|
845 ;;
|
|
846 esac
|
|
847
|
243
|
848 if test -z "$configuration"; then
|
380
|
849 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
|
|
850 if test -z "$configuration"; then
|
243
|
851 (echo "$progname: Usage error:"
|
|
852 echo " " "XEmacs has not been ported to this host type.
|
|
853 Try explicitly specifying the CONFIGURATION when rerunning configure."
|
|
854 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
855 fi
|
|
856 fi
|
|
857
|
149
|
858 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
800
|
859 echo "configure:860: checking whether ln -s works" >&5
|
149
|
860
|
0
|
861 rm -f conftestdata
|
|
862 if ln -s X conftestdata 2>/dev/null
|
|
863 then
|
|
864 rm -f conftestdata
|
149
|
865 ac_cv_prog_LN_S="ln -s"
|
|
866 else
|
|
867 ac_cv_prog_LN_S=ln
|
|
868 fi
|
|
869 LN_S="$ac_cv_prog_LN_S"
|
|
870 if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|
871 echo "$ac_t""yes" 1>&6
|
|
872 else
|
|
873 echo "$ac_t""no" 1>&6
|
|
874 fi
|
|
875
|
|
876
|
438
|
877 for dir in lisp etc man info tests; do
|
149
|
878 if test ! -d "$dir" ; then
|
|
879 echo Making symbolic link to "$srcdir/$dir"
|
157
|
880 ${LN_S} "$srcdir/$dir" "$dir"
|
0
|
881 fi
|
|
882 done
|
|
883
|
392
|
884
|
181
|
885 absolute_pwd="`pwd`";
|
187
|
886 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
|
181
|
887 then blddir="$PWD"
|
392
|
888 else blddir="$absolute_pwd"; if test -d "/net"; then
|
|
889 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
|
|
890 blddir=`echo "$blddir" | \
|
|
891 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
|
|
892 fi
|
181
|
893 fi
|
|
894
|
|
895
|
149
|
896 case "$srcdir" in
|
0
|
897 /* ) ;;
|
181
|
898 . ) srcdir="$blddir" ;;
|
392
|
899 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
|
|
900 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
|
|
901 srcdir=`echo "$srcdir" | \
|
|
902 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
|
|
903 fi ;;
|
0
|
904 esac
|
|
905
|
149
|
906 if test `pwd` != `sh -c cd $srcdir && pwd` \
|
|
907 && test -f "$srcdir/src/config.h"; then
|
|
908 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
|
0
|
909 echo " as a build directory right now; it has been configured in its own"
|
|
910 echo " right. To configure in another directory as well, you MUST"
|
|
911 echo " use GNU make. If you do not have GNU make, then you must"
|
149
|
912 echo " now do \`make distclean' in $srcdir,"
|
|
913 echo " and then run $progname again.") >&2
|
0
|
914 extrasub='/^VPATH[ ]*=/c\
|
|
915 vpath %.c $(srcdir)\
|
|
916 vpath %.h $(srcdir)\
|
|
917 vpath %.y $(srcdir)\
|
|
918 vpath %.l $(srcdir)\
|
|
919 vpath %.s $(srcdir)\
|
|
920 vpath %.in $(srcdir)'
|
|
921 fi
|
|
922
|
171
|
923 . "$srcdir/version.sh" || exit 1;
|
414
|
924 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
|
173
|
925 : "${extra_verbose=$beta}"
|
171
|
926 version="${emacs_major_version}.${emacs_minor_version}"
|
|
927 { test "$extra_verbose" = "yes" && cat << EOF
|
|
928 Defining EMACS_MAJOR_VERSION = $emacs_major_version
|
|
929 EOF
|
|
930 cat >> confdefs.h <<EOF
|
|
931 #define EMACS_MAJOR_VERSION $emacs_major_version
|
|
932 EOF
|
|
933 }
|
|
934
|
|
935 { test "$extra_verbose" = "yes" && cat << EOF
|
|
936 Defining EMACS_MINOR_VERSION = $emacs_minor_version
|
|
937 EOF
|
|
938 cat >> confdefs.h <<EOF
|
|
939 #define EMACS_MINOR_VERSION $emacs_minor_version
|
|
940 EOF
|
|
941 }
|
|
942
|
414
|
943 if test -n "$emacs_beta_version" ; then
|
|
944 if test "$beta" = "yes"; then
|
|
945 version="${version}-b${emacs_beta_version}"
|
|
946 { test "$extra_verbose" = "yes" && cat << EOF
|
171
|
947 Defining EMACS_BETA_VERSION = $emacs_beta_version
|
|
948 EOF
|
|
949 cat >> confdefs.h <<EOF
|
|
950 #define EMACS_BETA_VERSION $emacs_beta_version
|
|
951 EOF
|
|
952 }
|
|
953
|
414
|
954 else
|
|
955 version="${version}.${emacs_beta_version}"
|
|
956 { test "$extra_verbose" = "yes" && cat << EOF
|
|
957 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
|
|
958 EOF
|
|
959 cat >> confdefs.h <<EOF
|
|
960 #define EMACS_PATCH_LEVEL $emacs_beta_version
|
|
961 EOF
|
|
962 }
|
|
963
|
|
964 fi
|
171
|
965 fi
|
|
966 { test "$extra_verbose" = "yes" && cat << EOF
|
|
967 Defining XEMACS_CODENAME = "$xemacs_codename"
|
|
968 EOF
|
|
969 cat >> confdefs.h <<EOF
|
|
970 #define XEMACS_CODENAME "$xemacs_codename"
|
|
971 EOF
|
|
972 }
|
|
973
|
|
974 { test "$extra_verbose" = "yes" && cat << EOF
|
|
975 Defining EMACS_VERSION = "$version"
|
|
976 EOF
|
|
977 cat >> confdefs.h <<EOF
|
|
978 #define EMACS_VERSION "$version"
|
|
979 EOF
|
|
980 }
|
|
981
|
|
982
|
280
|
983 if test "$with_infodock" = "yes"; then
|
420
|
984 if test ! -f ../../ID-INSTALL; then
|
280
|
985 echo "Cannot build InfoDock without InfoDock sources"
|
|
986 with_infodock=no
|
|
987 fi
|
|
988 fi
|
|
989
|
|
990 if test "$with_infodock" = "yes"; then
|
|
991 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
992 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
|
|
993 EOF
|
|
994 cat >> confdefs.h <<EOF
|
|
995 #define INFODOCK_MAJOR_VERSION $infodock_major_version
|
|
996 EOF
|
|
997 }
|
|
998
|
280
|
999 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
1000 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
|
|
1001 EOF
|
|
1002 cat >> confdefs.h <<EOF
|
|
1003 #define INFODOCK_MINOR_VERSION $infodock_minor_version
|
|
1004 EOF
|
|
1005 }
|
|
1006
|
280
|
1007 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
1008 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
|
|
1009 EOF
|
|
1010 cat >> confdefs.h <<EOF
|
|
1011 #define INFODOCK_BUILD_VERSION $infodock_build_version
|
|
1012 EOF
|
|
1013 }
|
|
1014
|
280
|
1015 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
|
|
1016 PROGNAME=infodock
|
|
1017 CPPFLAGS="$CPPFLAGS -DINFODOCK"
|
|
1018 else
|
|
1019 PROGNAME=xemacs
|
|
1020 fi
|
278
|
1021
|
442
|
1022 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1023 Defining EMACS_PROGNAME = "$PROGNAME"
|
|
1024 EOF
|
|
1025 cat >> confdefs.h <<EOF
|
|
1026 #define EMACS_PROGNAME "$PROGNAME"
|
|
1027 EOF
|
|
1028 }
|
|
1029
|
|
1030
|
414
|
1031 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
|
800
|
1032 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
171
|
1033 Defining ERROR_CHECK_EXTENTS
|
|
1034 EOF
|
|
1035 cat >> confdefs.h <<\EOF
|
|
1036 #define ERROR_CHECK_EXTENTS 1
|
|
1037 EOF
|
|
1038 }
|
|
1039
|
800
|
1040 test "${error_check_types=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1041 Defining ERROR_CHECK_TYPES
|
|
1042 EOF
|
|
1043 cat >> confdefs.h <<\EOF
|
|
1044 #define ERROR_CHECK_TYPES 1
|
|
1045 EOF
|
|
1046 }
|
|
1047
|
|
1048 test "${error_check_text=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1049 Defining ERROR_CHECK_TEXT
|
|
1050 EOF
|
|
1051 cat >> confdefs.h <<\EOF
|
|
1052 #define ERROR_CHECK_TEXT 1
|
|
1053 EOF
|
|
1054 }
|
|
1055
|
|
1056 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
171
|
1057 Defining ERROR_CHECK_GC
|
|
1058 EOF
|
|
1059 cat >> confdefs.h <<\EOF
|
|
1060 #define ERROR_CHECK_GC 1
|
|
1061 EOF
|
|
1062 }
|
|
1063
|
800
|
1064 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
171
|
1065 Defining ERROR_CHECK_MALLOC
|
|
1066 EOF
|
|
1067 cat >> confdefs.h <<\EOF
|
|
1068 #define ERROR_CHECK_MALLOC 1
|
|
1069 EOF
|
|
1070 }
|
|
1071
|
800
|
1072 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
414
|
1073 Defining ERROR_CHECK_BYTE_CODE
|
|
1074 EOF
|
|
1075 cat >> confdefs.h <<\EOF
|
|
1076 #define ERROR_CHECK_BYTE_CODE 1
|
|
1077 EOF
|
|
1078 }
|
|
1079
|
800
|
1080 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
442
|
1081 Defining ERROR_CHECK_GLYPHS
|
|
1082 EOF
|
|
1083 cat >> confdefs.h <<\EOF
|
|
1084 #define ERROR_CHECK_GLYPHS 1
|
|
1085 EOF
|
|
1086 }
|
|
1087
|
800
|
1088 test "${error_check_display=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1089 Defining ERROR_CHECK_DISPLAY
|
|
1090 EOF
|
|
1091 cat >> confdefs.h <<\EOF
|
|
1092 #define ERROR_CHECK_DISPLAY 1
|
|
1093 EOF
|
|
1094 }
|
|
1095
|
|
1096 test "${error_check_structures=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1097 Defining ERROR_CHECK_STRUCTURES
|
|
1098 EOF
|
|
1099 cat >> confdefs.h <<\EOF
|
|
1100 #define ERROR_CHECK_STRUCTURES 1
|
|
1101 EOF
|
|
1102 }
|
|
1103
|
272
|
1104 if test "${debug:=$beta}" = "yes"; then
|
771
|
1105 use_assertions=yes
|
|
1106 memory_usage_stats=yes
|
171
|
1107 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1108 Defining DEBUG_XEMACS
|
|
1109 EOF
|
|
1110 cat >> confdefs.h <<\EOF
|
|
1111 #define DEBUG_XEMACS 1
|
|
1112 EOF
|
|
1113 }
|
|
1114
|
|
1115 fi
|
|
1116 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1117 Defining USE_ASSERTIONS
|
|
1118 EOF
|
|
1119 cat >> confdefs.h <<\EOF
|
|
1120 #define USE_ASSERTIONS 1
|
|
1121 EOF
|
|
1122 }
|
|
1123
|
|
1124 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1125 Defining MEMORY_USAGE_STATS
|
|
1126 EOF
|
|
1127 cat >> confdefs.h <<\EOF
|
|
1128 #define MEMORY_USAGE_STATS 1
|
|
1129 EOF
|
|
1130 }
|
|
1131
|
|
1132
|
149
|
1133
|
380
|
1134 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
|
800
|
1135 echo "configure:1136: checking "host system type"" >&5
|
217
|
1136 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
|
380
|
1137 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
|
|
1138 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
|
|
1139 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
|
|
1140 echo "$ac_t""$configuration" 1>&6
|
0
|
1141
|
149
|
1142
|
|
1143
|
|
1144
|
|
1145
|
151
|
1146 machine='' opsys=''
|
149
|
1147
|
|
1148 case "$canonical" in
|
|
1149 sparc-*-* ) machine=sparc ;;
|
373
|
1150 alpha*-*-* ) machine=alpha ;;
|
149
|
1151 vax-*-* ) machine=vax ;;
|
|
1152 mips-dec-* ) machine=pmax ;;
|
440
|
1153 mips-sgi-irix6* ) machine=iris6d ;;
|
149
|
1154 mips-sgi-* ) machine=iris4d ;;
|
424
|
1155 mips*-linux ) machine=mips ;;
|
149
|
1156 romp-ibm-* ) machine=ibmrt ;;
|
|
1157 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
|
|
1158 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
|
163
|
1159 powerpc*-* ) machine=powerpc ;;
|
149
|
1160 hppa-*-* ) machine=hp800 ;;
|
|
1161 m88k-dg-* ) machine=aviion ;;
|
|
1162 m68*-sony-* ) machine=news ;;
|
|
1163 mips-sony-* ) machine=news-risc ;;
|
|
1164 clipper-* ) machine=clipper ;;
|
442
|
1165 arm* ) machine=arm ;;
|
380
|
1166 ns32k-* ) machine=ns32000 ;;
|
149
|
1167 esac
|
|
1168
|
|
1169 case "$canonical" in
|
|
1170 *-*-linux* ) opsys=linux ;;
|
|
1171 *-*-netbsd* ) opsys=netbsd ;;
|
286
|
1172 *-*-openbsd* ) opsys=openbsd ;;
|
149
|
1173 *-*-nextstep* ) opsys=nextstep ;;
|
|
1174 *-*-vms ) opsys=vms ;;
|
|
1175
|
|
1176 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
|
|
1177 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
|
|
1178 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
|
|
1179 *-dec-osf3* ) opsys=decosf3-1 ;;
|
444
|
1180 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
|
149
|
1181
|
|
1182 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
1183 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
|
|
1184 *-*-ultrix* ) opsys=ultrix4-3 ;;
|
|
1185
|
|
1186 *-*-aix3.1* ) opsys=aix3-1 ;;
|
|
1187 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
|
|
1188 *-*-aix3* ) opsys=aix3-2 ;;
|
373
|
1189 *-*-aix4.0* ) opsys=aix4 ;;
|
149
|
1190 *-*-aix4.1* ) opsys=aix4-1 ;;
|
373
|
1191 *-*-aix4* ) opsys=aix4-2 ;;
|
149
|
1192
|
|
1193 *-gnu* ) opsys=gnu ;;
|
|
1194 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
1195 *-*-bsd4.2 ) opsys=bsd4-2 ;;
|
|
1196 *-*-bsd4.3 ) opsys=bsd4-3 ;;
|
|
1197 *-*-aos4.2 ) opsys=bsd4-2 ;;
|
|
1198 *-*-aos* ) opsys=bsd4-3 ;;
|
|
1199 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
|
|
1200 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
|
|
1201 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
1202 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
|
|
1203 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1204 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
|
1205 if test -z "$NON_GNU_CPP" ; then
|
151
|
1206 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
|
|
1207 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
|
|
1208 done
|
149
|
1209 fi
|
|
1210 opsys=usg5-4-2 ;;
|
|
1211 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
1212 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
|
|
1213 esac
|
|
1214
|
|
1215 case "$canonical" in
|
|
1216
|
|
1217 *-*-netbsd* )
|
|
1218 case "$canonical" in
|
0
|
1219 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
1220 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
149
|
1221 machine=hp9000s300 ;;
|
70
|
1222 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
1223 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
0
|
1224 esac
|
|
1225 ;;
|
|
1226
|
286
|
1227 *-*-openbsd* )
|
|
1228 case "${canonical}" in
|
|
1229 i386-*-openbsd*) machine=intel386 ;;
|
|
1230 m68k-*-openbsd*) machine=hp9000s300 ;;
|
|
1231 mipsel-*-openbsd*) machine=pmax ;;
|
|
1232 esac
|
|
1233 ;;
|
|
1234
|
149
|
1235 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
|
70
|
1236 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
|
0
|
1237
|
149
|
1238 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
|
70
|
1239 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
|
0
|
1240
|
149
|
1241 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
|
|
1242
|
|
1243 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
|
|
1244
|
|
1245 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
|
|
1246
|
|
1247 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
|
|
1248
|
|
1249 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
|
|
1250
|
|
1251 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
|
74
|
1252 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
|
|
1253 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
|
0
|
1254
|
149
|
1255
|
|
1256 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
|
|
1257
|
|
1258 *-convex-bsd* | *-convex-convexos* )
|
0
|
1259 machine=convex opsys=bsd4-3
|
|
1260 NON_GNU_CPP="cc -E -P"
|
|
1261 ;;
|
|
1262
|
149
|
1263 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
|
|
1264
|
|
1265 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
|
|
1266 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
|
|
1267 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
|
|
1268 m88k-dg-dgux* ) opsys=dgux ;;
|
|
1269
|
|
1270 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
|
0
|
1271 m88k-motorola-sysv4* )
|
149
|
1272 machine=delta88k opsys=usg5-4-2
|
0
|
1273 ;;
|
70
|
1274 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
|
0
|
1275
|
149
|
1276 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
|
70
|
1277 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
|
0
|
1278
|
149
|
1279 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
|
|
1280
|
|
1281 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
|
70
|
1282 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
|
|
1283 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
|
0
|
1284
|
149
|
1285 m88k-harris-cxux* )
|
|
1286 case "`uname -r`" in
|
74
|
1287 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
70
|
1288 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
0
|
1289 esac
|
|
1290 NON_GNU_CPP="/lib/cpp"
|
|
1291 ;;
|
149
|
1292 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
|
|
1293 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
|
|
1294
|
|
1295 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
|
|
1296
|
|
1297 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
|
|
1298
|
|
1299 *-hp-hpux* )
|
|
1300 case "$canonical" in
|
70
|
1301 m68* ) machine=hp9000s300 ;;
|
|
1302 hppa* ) machine=hp800 ;;
|
|
1303 esac
|
|
1304
|
149
|
1305 case "$canonical" in
|
|
1306 *-hp-hpux7* ) opsys=hpux ;;
|
|
1307 *-hp-hpux8* ) opsys=hpux8 ;;
|
|
1308 *-hp-hpux9* ) opsys=hpux9 ;;
|
|
1309 *-hp-hpux10* ) opsys=hpux10 ;;
|
269
|
1310 *-hp-hpux11* ) opsys=hpux11 ;;
|
151
|
1311 * ) opsys=hpux ;;
|
0
|
1312 esac
|
72
|
1313
|
151
|
1314 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
|
|
1315 echo " xemacs will be linked with \"strcat.o\""
|
|
1316 fi ;; esac
|
149
|
1317
|
269
|
1318 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
|
|
1319 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
|
149
|
1320 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
|
|
1321
|
|
1322 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
|
0
|
1323 ;;
|
|
1324
|
149
|
1325 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
|
70
|
1326 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
|
0
|
1327
|
149
|
1328 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
|
70
|
1329 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
|
|
1330 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
|
149
|
1331 romp-ibm-aos* ) opsys=bsd4-3 ;;
|
|
1332 romp-ibm-bsd* ) opsys=bsd4-3 ;;
|
|
1333 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
|
|
1334
|
|
1335 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
|
70
|
1336 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
|
0
|
1337
|
149
|
1338 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
|
|
1339
|
|
1340 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
|
|
1341
|
|
1342 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
|
|
1343
|
|
1344 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
|
|
1345
|
|
1346 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
|
|
1347
|
|
1348 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
|
|
1349
|
|
1350 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
|
|
1351
|
|
1352 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
|
|
1353
|
|
1354 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
|
|
1355
|
|
1356 mips-mips-usg* ) machine=mips4 ;;
|
70
|
1357 mips-mips-riscos4 )
|
|
1358 machine=mips4
|
0
|
1359 NON_GNU_CC="cc -systype bsd43"
|
|
1360 NON_GNU_CPP="cc -systype bsd43 -E"
|
149
|
1361 case "$canonical" in
|
70
|
1362 mips-mips-riscos4* ) opsys=bsd4-3 ;;
|
|
1363 mips-mips-riscos5* ) opsys=riscos5 ;;
|
|
1364 esac
|
0
|
1365 ;;
|
70
|
1366 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
|
|
1367 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
|
0
|
1368
|
149
|
1369 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
|
|
1370
|
|
1371 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
|
|
1372
|
|
1373 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
|
70
|
1374 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
|
0
|
1375
|
149
|
1376 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
|
|
1377
|
|
1378 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
|
|
1379
|
|
1380 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
|
|
1381
|
|
1382 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
|
|
1383
|
|
1384 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
|
70
|
1385 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
|
0
|
1386
|
149
|
1387 mips-siemens-sysv* | mips-sni-sysv*)
|
0
|
1388 machine=mips-siemens opsys=usg5-4
|
|
1389 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1390 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1391 ;;
|
|
1392
|
377
|
1393 mips-nec-sysv*)
|
|
1394 machine=mips-nec
|
|
1395 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1396 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1397 ;;
|
|
1398
|
149
|
1399 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
|
70
|
1400 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
|
149
|
1401 mips-sgi-irix3.* ) opsys=irix3-3 ;;
|
|
1402 mips-sgi-irix4.* ) opsys=irix4-0 ;;
|
207
|
1403 mips-sgi-irix6* ) opsys=irix6-0 ;;
|
149
|
1404 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
|
|
1405 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
|
|
1406 mips-sgi-irix5.* ) opsys=irix5-3 ;;
|
|
1407 mips-sgi-irix* ) opsys=irix5-0 ;;
|
|
1408
|
|
1409 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
|
|
1410 *-sony-news* ) opsys=newsos5 ;;
|
|
1411
|
|
1412 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
|
|
1413
|
|
1414 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
1415 case "$canonical" in
|
0
|
1416 m68*-sunos1* ) machine=sun1 ;;
|
|
1417 m68*-sunos2* ) machine=sun2 ;;
|
|
1418 m68* ) machine=sun3 ;;
|
163
|
1419 i*86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
1420 i*86-*-* ) machine=intel386 ;;
|
0
|
1421 rs6000* ) machine=rs6000 ;;
|
|
1422 esac
|
149
|
1423
|
|
1424 case "$canonical" in *-sunos5*)
|
163
|
1425 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
|
0
|
1426 esac
|
|
1427
|
149
|
1428 case "$canonical" in
|
0
|
1429 *-sunos4* )
|
157
|
1430 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1431 : ;;
|
70
|
1432 *-solaris2* )
|
157
|
1433 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1434 RANLIB=':' ;;
|
151
|
1435 esac
|
149
|
1436
|
|
1437 case "$canonical" in
|
163
|
1438 *-solaris* )
|
|
1439 opsys=sol2
|
|
1440 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
|
|
1441 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1442 Defining OS_RELEASE = $os_release
|
|
1443 EOF
|
|
1444 cat >> confdefs.h <<EOF
|
|
1445 #define OS_RELEASE $os_release
|
|
1446 EOF
|
|
1447 }
|
|
1448 ;;
|
|
1449
|
|
1450 i*86-*-sunos4* ) opsys=sunos4-0 ;;
|
74
|
1451 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
1452 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
110
|
1453 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
120
|
1454 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
74
|
1455 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
1456 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1457 * ) opsys=bsd4-2 ;;
|
0
|
1458 esac
|
70
|
1459
|
149
|
1460 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
|
|
1461
|
163
|
1462 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
|
0
|
1463 ;;
|
70
|
1464
|
149
|
1465 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
|
|
1466
|
|
1467 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
|
70
|
1468 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
|
0
|
1469
|
149
|
1470 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
|
|
1471
|
|
1472 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
|
|
1473
|
|
1474 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
|
|
1475 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
|
|
1476
|
|
1477 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
|
|
1478
|
|
1479 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
|
|
1480
|
|
1481 vax-dec-* )
|
|
1482 case "$canonical" in
|
|
1483 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
1484 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
1485 *-mach* ) opsys=mach-bsd4-3 ;;
|
0
|
1486 esac
|
|
1487 ;;
|
|
1488
|
149
|
1489 ns16k-whitechapel-* ) machine=mg1 ;;
|
|
1490
|
|
1491 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
|
|
1492
|
|
1493 i[3-9]86-*-* )
|
0
|
1494 machine=intel386
|
149
|
1495 case "$canonical" in
|
120
|
1496 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
0
|
1497 *-isc2.2* ) opsys=isc2-2 ;;
|
|
1498 *-isc4.0* ) opsys=isc4-0 ;;
|
|
1499 *-isc4.* ) opsys=isc4-1
|
|
1500 GCC_TEST_OPTIONS=-posix
|
|
1501 NON_GCC_TEST_OPTIONS=-Xp
|
|
1502 ;;
|
|
1503 *-isc* ) opsys=isc3-0 ;;
|
149
|
1504 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
|
0
|
1505 *-esix* ) opsys=esix ;;
|
|
1506 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1507 *-xenix* ) opsys=xenix ;;
|
149
|
1508 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
|
0
|
1509 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
392
|
1510 *-bsdi4* ) opsys=bsdos4 ;;
|
110
|
1511 *-bsdi3* ) opsys=bsdos3 ;;
|
0
|
1512 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
1513 *-bsdi2* ) opsys=bsdos2 ;;
|
460
|
1514 *-sco3.2v5* ) opsys=sco5 ;;
|
422
|
1515 *-sysv5* ) opsys=sco7 ;;
|
70
|
1516 *-386bsd* ) opsys=386bsd ;;
|
|
1517 *-freebsd* ) opsys=freebsd ;;
|
0
|
1518 *-nextstep* ) opsys=nextstep ;;
|
398
|
1519 *-pc-cygwin* ) opsys=cygwin32 ;;
|
|
1520 *-pc-mingw* ) opsys=mingw32 ;
|
|
1521 test -z "$with_tty" && with_tty="no";;
|
149
|
1522 esac
|
0
|
1523 ;;
|
|
1524
|
149
|
1525 m68k-*-linux* ) machine=m68k opsys=linux ;;
|
|
1526
|
0
|
1527 esac
|
|
1528
|
442
|
1529 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
|
505
|
1530
|
|
1531 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
442
|
1532
|
|
1533 if test -r "${srcdir}/src/m/${machine}.h"; then
|
|
1534 machfile="m/${machine}.h"
|
|
1535 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1536 Defining config_machfile = "$machfile"
|
|
1537 EOF
|
|
1538 cat >> confdefs.h <<EOF
|
|
1539 #define config_machfile "$machfile"
|
|
1540 EOF
|
|
1541 }
|
|
1542
|
|
1543 else
|
|
1544 echo "XEmacs has no builtin knowledge of \`$machine' machines."
|
|
1545 echo "Using configure-time autodetection only."
|
|
1546 fi
|
|
1547
|
|
1548 if test -r "${srcdir}/src/s/${opsys}.h"; then
|
|
1549 opsysfile="s/${opsys}.h"
|
|
1550 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1551 Defining config_opsysfile = "$opsysfile"
|
|
1552 EOF
|
|
1553 cat >> confdefs.h <<EOF
|
|
1554 #define config_opsysfile "$opsysfile"
|
|
1555 EOF
|
|
1556 }
|
|
1557
|
|
1558 else
|
|
1559 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
|
|
1560 echo "Using configure-time autodetection only."
|
|
1561 fi
|
|
1562
|
0
|
1563
|
173
|
1564 if test -z "$dynamic"; then
|
|
1565 case "$opsys" in
|
388
|
1566 hpux* | sunos4* ) dynamic=no ;;
|
173
|
1567 *) dynamic=yes ;;
|
|
1568 esac
|
|
1569 fi
|
|
1570 if test "$dynamic" = "yes"; then
|
149
|
1571 case "$opsys" in
|
72
|
1572 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
|
173
|
1573 decosf* ) ld_call_shared="-call_shared" ;;
|
0
|
1574 esac
|
173
|
1575 else case "$opsys" in
|
187
|
1576 sol2 )
|
173
|
1577 echo "Static linking is not supported on Solaris 2."
|
|
1578 echo "Rerun configure without specifying --dynamic=no."
|
|
1579 exit 1 ;;
|
|
1580 linux ) ld_call_shared="-Bstatic" ;;
|
|
1581 decosf* ) ld_call_shared="-non_shared" ;;
|
0
|
1582 esac
|
|
1583 fi
|
|
1584
|
207
|
1585 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
|
|
1586
|
280
|
1587 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
|
173
|
1588 { test "$extra_verbose" = "yes" && cat << EOF
|
177
|
1589 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
|
173
|
1590 EOF
|
|
1591 cat >> confdefs.h <<EOF
|
177
|
1592 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
|
173
|
1593 EOF
|
|
1594 }
|
|
1595
|
|
1596
|
0
|
1597
|
151
|
1598 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
|
284
|
1599 if test "$with_workshop $with_tooltalk" = "yes no"; then
|
|
1600 (echo "$progname: Usage error:"
|
|
1601 echo " " "--with-workshop requires --with-tooltalk"
|
|
1602 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
1603 elif test "$with_tooltalk" = "no" ; then with_workshop=no
|
|
1604 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
|
|
1605 fi
|
|
1606
|
151
|
1607 if test "$with_workshop" = "yes"; then
|
|
1608 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1609 Defining SUNPRO
|
|
1610 EOF
|
|
1611 cat >> confdefs.h <<\EOF
|
|
1612 #define SUNPRO 1
|
|
1613 EOF
|
|
1614 }
|
|
1615
|
|
1616 fi
|
|
1617
|
442
|
1618 if test "$with_clash_detection" != "no"; then
|
175
|
1619 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1620 Defining CLASH_DETECTION
|
|
1621 EOF
|
|
1622 cat >> confdefs.h <<\EOF
|
|
1623 #define CLASH_DETECTION 1
|
|
1624 EOF
|
|
1625 }
|
|
1626
|
|
1627 fi
|
|
1628
|
169
|
1629 test -n "$compiler" && CC="$compiler"
|
|
1630 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
|
|
1631 fi
|
149
|
1632
|
272
|
1633 test "${cflags-unset}" != unset && CFLAGS="$cflags"
|
|
1634 if test "${CFLAGS-unset}" != unset
|
|
1635 then cflags_specified=yes;
|
|
1636 else cflags_specified=no;
|
|
1637 fi
|
|
1638
|
157
|
1639 xe_save_CFLAGS="$CFLAGS"
|
|
1640
|
149
|
1641 # Extract the first word of "gcc", so it can be a program name with args.
|
|
1642 set dummy gcc; ac_word=$2
|
|
1643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
800
|
1644 echo "configure:1645: checking for $ac_word" >&5
|
149
|
1645
|
|
1646 if test -n "$CC"; then
|
|
1647 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1648 else
|
420
|
1649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1650 ac_dummy="$PATH"
|
|
1651 for ac_dir in $ac_dummy; do
|
149
|
1652 test -z "$ac_dir" && ac_dir=.
|
|
1653 if test -f $ac_dir/$ac_word; then
|
|
1654 ac_cv_prog_CC="gcc"
|
|
1655 break
|
|
1656 fi
|
|
1657 done
|
|
1658 IFS="$ac_save_ifs"
|
|
1659 fi
|
|
1660 CC="$ac_cv_prog_CC"
|
|
1661 if test -n "$CC"; then
|
|
1662 echo "$ac_t""$CC" 1>&6
|
|
1663 else
|
|
1664 echo "$ac_t""no" 1>&6
|
|
1665 fi
|
|
1666
|
|
1667 if test -z "$CC"; then
|
|
1668 # Extract the first word of "cc", so it can be a program name with args.
|
|
1669 set dummy cc; ac_word=$2
|
|
1670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
800
|
1671 echo "configure:1672: checking for $ac_word" >&5
|
149
|
1672
|
|
1673 if test -n "$CC"; then
|
|
1674 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1675 else
|
420
|
1676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
149
|
1677 ac_prog_rejected=no
|
420
|
1678 ac_dummy="$PATH"
|
|
1679 for ac_dir in $ac_dummy; do
|
149
|
1680 test -z "$ac_dir" && ac_dir=.
|
|
1681 if test -f $ac_dir/$ac_word; then
|
|
1682 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
1683 ac_prog_rejected=yes
|
|
1684 continue
|
|
1685 fi
|
|
1686 ac_cv_prog_CC="cc"
|
|
1687 break
|
|
1688 fi
|
|
1689 done
|
|
1690 IFS="$ac_save_ifs"
|
|
1691 if test $ac_prog_rejected = yes; then
|
|
1692 # We found a bogon in the path, so make sure we never use it.
|
|
1693 set dummy $ac_cv_prog_CC
|
|
1694 shift
|
|
1695 if test $# -gt 0; then
|
|
1696 # We chose a different compiler from the bogus one.
|
|
1697 # However, it has the same basename, so the bogon will be chosen
|
|
1698 # first if we set CC to just the basename; use the full file name.
|
|
1699 shift
|
|
1700 set dummy "$ac_dir/$ac_word" "$@"
|
|
1701 shift
|
|
1702 ac_cv_prog_CC="$@"
|
|
1703 fi
|
|
1704 fi
|
|
1705 fi
|
|
1706 CC="$ac_cv_prog_CC"
|
|
1707 if test -n "$CC"; then
|
|
1708 echo "$ac_t""$CC" 1>&6
|
|
1709 else
|
|
1710 echo "$ac_t""no" 1>&6
|
|
1711 fi
|
|
1712
|
420
|
1713 if test -z "$CC"; then
|
|
1714 case "`uname -s`" in
|
|
1715 *win32* | *WIN32*)
|
|
1716 # Extract the first word of "cl", so it can be a program name with args.
|
|
1717 set dummy cl; ac_word=$2
|
|
1718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
800
|
1719 echo "configure:1720: checking for $ac_word" >&5
|
420
|
1720
|
|
1721 if test -n "$CC"; then
|
|
1722 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1723 else
|
|
1724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1725 ac_dummy="$PATH"
|
|
1726 for ac_dir in $ac_dummy; do
|
|
1727 test -z "$ac_dir" && ac_dir=.
|
|
1728 if test -f $ac_dir/$ac_word; then
|
|
1729 ac_cv_prog_CC="cl"
|
|
1730 break
|
|
1731 fi
|
|
1732 done
|
|
1733 IFS="$ac_save_ifs"
|
|
1734 fi
|
|
1735 CC="$ac_cv_prog_CC"
|
|
1736 if test -n "$CC"; then
|
|
1737 echo "$ac_t""$CC" 1>&6
|
|
1738 else
|
|
1739 echo "$ac_t""no" 1>&6
|
|
1740 fi
|
|
1741 ;;
|
|
1742 esac
|
|
1743 fi
|
149
|
1744 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
1745 fi
|
|
1746
|
|
1747 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
800
|
1748 echo "configure:1749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
70
|
1749
|
0
|
1750 ac_ext=c
|
151
|
1751 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1752 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1753 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
149
|
1754 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
1755 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1756 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
1757 cross_compiling=no
|
|
1758
|
420
|
1759 cat > conftest.$ac_ext << EOF
|
|
1760
|
800
|
1761 #line 1762 "configure"
|
420
|
1762 #include "confdefs.h"
|
|
1763
|
149
|
1764 main(){return(0);}
|
|
1765 EOF
|
800
|
1766 if { (eval echo configure:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
1767 ac_cv_prog_cc_works=yes
|
|
1768 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
1769 if (./conftest; exit) 2>/dev/null; then
|
|
1770 ac_cv_prog_cc_cross=no
|
|
1771 else
|
|
1772 ac_cv_prog_cc_cross=yes
|
0
|
1773 fi
|
149
|
1774 else
|
|
1775 echo "configure: failed program was:" >&5
|
|
1776 cat conftest.$ac_ext >&5
|
|
1777 ac_cv_prog_cc_works=no
|
|
1778 fi
|
|
1779 rm -fr conftest*
|
420
|
1780 ac_ext=c
|
|
1781 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1782 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1783 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
420
|
1784 ac_cpp='$CPP '"$xe_cppflags"
|
|
1785 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1786 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
1787 cross_compiling=no
|
149
|
1788
|
|
1789 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
1790 if test $ac_cv_prog_cc_works = no; then
|
|
1791 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
1792 fi
|
|
1793 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
800
|
1794 echo "configure:1795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
149
|
1795 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
1796 cross_compiling=$ac_cv_prog_cc_cross
|
|
1797
|
|
1798 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
800
|
1799 echo "configure:1800: checking whether we are using GNU C" >&5
|
149
|
1800
|
|
1801 cat > conftest.c <<EOF
|
|
1802 #ifdef __GNUC__
|
|
1803 yes;
|
|
1804 #endif
|
|
1805 EOF
|
800
|
1806 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
149
|
1807 ac_cv_prog_gcc=yes
|
|
1808 else
|
|
1809 ac_cv_prog_gcc=no
|
|
1810 fi
|
|
1811
|
|
1812 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
1813
|
|
1814 if test $ac_cv_prog_gcc = yes; then
|
|
1815 GCC=yes
|
420
|
1816 else
|
|
1817 GCC=
|
|
1818 fi
|
|
1819
|
|
1820 ac_test_CFLAGS="${CFLAGS+set}"
|
|
1821 ac_save_CFLAGS="$CFLAGS"
|
|
1822 CFLAGS=
|
|
1823 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
800
|
1824 echo "configure:1825: checking whether ${CC-cc} accepts -g" >&5
|
149
|
1825
|
|
1826 echo 'void f(){}' > conftest.c
|
|
1827 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
1828 ac_cv_prog_cc_g=yes
|
|
1829 else
|
|
1830 ac_cv_prog_cc_g=no
|
|
1831 fi
|
|
1832 rm -f conftest*
|
|
1833
|
|
1834
|
|
1835 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
1836 if test "$ac_test_CFLAGS" = set; then
|
|
1837 CFLAGS="$ac_save_CFLAGS"
|
|
1838 elif test $ac_cv_prog_cc_g = yes; then
|
|
1839 if test "$GCC" = yes; then
|
149
|
1840 CFLAGS="-g -O2"
|
0
|
1841 else
|
420
|
1842 CFLAGS="-g"
|
|
1843 fi
|
|
1844 else
|
|
1845 if test "$GCC" = yes; then
|
149
|
1846 CFLAGS="-O2"
|
420
|
1847 else
|
|
1848 CFLAGS=
|
|
1849 fi
|
149
|
1850 fi
|
169
|
1851
|
|
1852 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
|
149
|
1853 CC=${NON_GNU_CC-cc}
|
|
1854 # Extract the first word of "gcc", so it can be a program name with args.
|
|
1855 set dummy gcc; ac_word=$2
|
|
1856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
800
|
1857 echo "configure:1858: checking for $ac_word" >&5
|
149
|
1858
|
|
1859 if test -n "$CC"; then
|
|
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1861 else
|
420
|
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1863 ac_dummy="$PATH"
|
|
1864 for ac_dir in $ac_dummy; do
|
0
|
1865 test -z "$ac_dir" && ac_dir=.
|
|
1866 if test -f $ac_dir/$ac_word; then
|
149
|
1867 ac_cv_prog_CC="gcc"
|
|
1868 break
|
|
1869 fi
|
|
1870 done
|
|
1871 IFS="$ac_save_ifs"
|
|
1872 fi
|
|
1873 CC="$ac_cv_prog_CC"
|
|
1874 if test -n "$CC"; then
|
|
1875 echo "$ac_t""$CC" 1>&6
|
|
1876 else
|
|
1877 echo "$ac_t""no" 1>&6
|
|
1878 fi
|
|
1879
|
|
1880 if test -z "$CC"; then
|
|
1881 # Extract the first word of "cc", so it can be a program name with args.
|
|
1882 set dummy cc; ac_word=$2
|
|
1883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
800
|
1884 echo "configure:1885: checking for $ac_word" >&5
|
157
|
1885
|
|
1886 if test -n "$CC"; then
|
|
1887 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1888 else
|
420
|
1889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
157
|
1890 ac_prog_rejected=no
|
420
|
1891 ac_dummy="$PATH"
|
|
1892 for ac_dir in $ac_dummy; do
|
157
|
1893 test -z "$ac_dir" && ac_dir=.
|
|
1894 if test -f $ac_dir/$ac_word; then
|
|
1895 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
1896 ac_prog_rejected=yes
|
|
1897 continue
|
|
1898 fi
|
|
1899 ac_cv_prog_CC="cc"
|
|
1900 break
|
|
1901 fi
|
|
1902 done
|
|
1903 IFS="$ac_save_ifs"
|
|
1904 if test $ac_prog_rejected = yes; then
|
|
1905 # We found a bogon in the path, so make sure we never use it.
|
|
1906 set dummy $ac_cv_prog_CC
|
|
1907 shift
|
|
1908 if test $# -gt 0; then
|
|
1909 # We chose a different compiler from the bogus one.
|
|
1910 # However, it has the same basename, so the bogon will be chosen
|
|
1911 # first if we set CC to just the basename; use the full file name.
|
|
1912 shift
|
|
1913 set dummy "$ac_dir/$ac_word" "$@"
|
|
1914 shift
|
|
1915 ac_cv_prog_CC="$@"
|
|
1916 fi
|
|
1917 fi
|
|
1918 fi
|
|
1919 CC="$ac_cv_prog_CC"
|
|
1920 if test -n "$CC"; then
|
|
1921 echo "$ac_t""$CC" 1>&6
|
|
1922 else
|
|
1923 echo "$ac_t""no" 1>&6
|
|
1924 fi
|
|
1925
|
420
|
1926 if test -z "$CC"; then
|
|
1927 case "`uname -s`" in
|
|
1928 *win32* | *WIN32*)
|
|
1929 # Extract the first word of "cl", so it can be a program name with args.
|
|
1930 set dummy cl; ac_word=$2
|
|
1931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
800
|
1932 echo "configure:1933: checking for $ac_word" >&5
|
420
|
1933
|
|
1934 if test -n "$CC"; then
|
|
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1936 else
|
|
1937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1938 ac_dummy="$PATH"
|
|
1939 for ac_dir in $ac_dummy; do
|
|
1940 test -z "$ac_dir" && ac_dir=.
|
|
1941 if test -f $ac_dir/$ac_word; then
|
|
1942 ac_cv_prog_CC="cl"
|
|
1943 break
|
|
1944 fi
|
|
1945 done
|
|
1946 IFS="$ac_save_ifs"
|
|
1947 fi
|
|
1948 CC="$ac_cv_prog_CC"
|
|
1949 if test -n "$CC"; then
|
|
1950 echo "$ac_t""$CC" 1>&6
|
|
1951 else
|
|
1952 echo "$ac_t""no" 1>&6
|
|
1953 fi
|
|
1954 ;;
|
|
1955 esac
|
|
1956 fi
|
157
|
1957 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
1958 fi
|
|
1959
|
|
1960 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
800
|
1961 echo "configure:1962: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
157
|
1962
|
|
1963 ac_ext=c
|
|
1964 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1965 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1966 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
157
|
1967 ac_cpp='$CPP '"$xe_cppflags"
|
|
1968 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1969 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
1970 cross_compiling=no
|
|
1971
|
420
|
1972 cat > conftest.$ac_ext << EOF
|
|
1973
|
800
|
1974 #line 1975 "configure"
|
420
|
1975 #include "confdefs.h"
|
|
1976
|
157
|
1977 main(){return(0);}
|
|
1978 EOF
|
800
|
1979 if { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
157
|
1980 ac_cv_prog_cc_works=yes
|
|
1981 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
1982 if (./conftest; exit) 2>/dev/null; then
|
|
1983 ac_cv_prog_cc_cross=no
|
|
1984 else
|
|
1985 ac_cv_prog_cc_cross=yes
|
|
1986 fi
|
|
1987 else
|
|
1988 echo "configure: failed program was:" >&5
|
|
1989 cat conftest.$ac_ext >&5
|
|
1990 ac_cv_prog_cc_works=no
|
|
1991 fi
|
|
1992 rm -fr conftest*
|
420
|
1993 ac_ext=c
|
|
1994 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1995 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1996 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
420
|
1997 ac_cpp='$CPP '"$xe_cppflags"
|
|
1998 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1999 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
2000 cross_compiling=no
|
157
|
2001
|
|
2002 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
2003 if test $ac_cv_prog_cc_works = no; then
|
|
2004 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
2005 fi
|
|
2006 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
800
|
2007 echo "configure:2008: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
157
|
2008 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
2009 cross_compiling=$ac_cv_prog_cc_cross
|
|
2010
|
|
2011 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
800
|
2012 echo "configure:2013: checking whether we are using GNU C" >&5
|
157
|
2013
|
|
2014 cat > conftest.c <<EOF
|
|
2015 #ifdef __GNUC__
|
|
2016 yes;
|
|
2017 #endif
|
|
2018 EOF
|
800
|
2019 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
157
|
2020 ac_cv_prog_gcc=yes
|
|
2021 else
|
|
2022 ac_cv_prog_gcc=no
|
|
2023 fi
|
|
2024
|
|
2025 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
2026
|
|
2027 if test $ac_cv_prog_gcc = yes; then
|
|
2028 GCC=yes
|
420
|
2029 else
|
|
2030 GCC=
|
|
2031 fi
|
|
2032
|
|
2033 ac_test_CFLAGS="${CFLAGS+set}"
|
|
2034 ac_save_CFLAGS="$CFLAGS"
|
|
2035 CFLAGS=
|
|
2036 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
800
|
2037 echo "configure:2038: checking whether ${CC-cc} accepts -g" >&5
|
157
|
2038
|
|
2039 echo 'void f(){}' > conftest.c
|
|
2040 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
2041 ac_cv_prog_cc_g=yes
|
|
2042 else
|
|
2043 ac_cv_prog_cc_g=no
|
|
2044 fi
|
|
2045 rm -f conftest*
|
|
2046
|
|
2047
|
|
2048 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
2049 if test "$ac_test_CFLAGS" = set; then
|
|
2050 CFLAGS="$ac_save_CFLAGS"
|
|
2051 elif test $ac_cv_prog_cc_g = yes; then
|
|
2052 if test "$GCC" = yes; then
|
157
|
2053 CFLAGS="-g -O2"
|
|
2054 else
|
420
|
2055 CFLAGS="-g"
|
|
2056 fi
|
|
2057 else
|
|
2058 if test "$GCC" = yes; then
|
157
|
2059 CFLAGS="-O2"
|
420
|
2060 else
|
|
2061 CFLAGS=
|
|
2062 fi
|
157
|
2063 fi
|
|
2064
|
169
|
2065 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
|
157
|
2066 CC=gcc
|
|
2067 # Extract the first word of "gcc", so it can be a program name with args.
|
|
2068 set dummy gcc; ac_word=$2
|
|
2069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
800
|
2070 echo "configure:2071: checking for $ac_word" >&5
|
157
|
2071
|
|
2072 if test -n "$CC"; then
|
|
2073 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2074 else
|
420
|
2075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2076 ac_dummy="$PATH"
|
|
2077 for ac_dir in $ac_dummy; do
|
157
|
2078 test -z "$ac_dir" && ac_dir=.
|
|
2079 if test -f $ac_dir/$ac_word; then
|
|
2080 ac_cv_prog_CC="gcc"
|
|
2081 break
|
|
2082 fi
|
|
2083 done
|
|
2084 IFS="$ac_save_ifs"
|
|
2085 fi
|
|
2086 CC="$ac_cv_prog_CC"
|
|
2087 if test -n "$CC"; then
|
|
2088 echo "$ac_t""$CC" 1>&6
|
|
2089 else
|
|
2090 echo "$ac_t""no" 1>&6
|
|
2091 fi
|
|
2092
|
|
2093 if test -z "$CC"; then
|
|
2094 # Extract the first word of "cc", so it can be a program name with args.
|
|
2095 set dummy cc; ac_word=$2
|
|
2096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
800
|
2097 echo "configure:2098: checking for $ac_word" >&5
|
149
|
2098
|
|
2099 if test -n "$CC"; then
|
|
2100 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2101 else
|
420
|
2102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
149
|
2103 ac_prog_rejected=no
|
420
|
2104 ac_dummy="$PATH"
|
|
2105 for ac_dir in $ac_dummy; do
|
149
|
2106 test -z "$ac_dir" && ac_dir=.
|
|
2107 if test -f $ac_dir/$ac_word; then
|
|
2108 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
2109 ac_prog_rejected=yes
|
|
2110 continue
|
|
2111 fi
|
|
2112 ac_cv_prog_CC="cc"
|
|
2113 break
|
|
2114 fi
|
|
2115 done
|
|
2116 IFS="$ac_save_ifs"
|
|
2117 if test $ac_prog_rejected = yes; then
|
|
2118 # We found a bogon in the path, so make sure we never use it.
|
|
2119 set dummy $ac_cv_prog_CC
|
|
2120 shift
|
|
2121 if test $# -gt 0; then
|
|
2122 # We chose a different compiler from the bogus one.
|
|
2123 # However, it has the same basename, so the bogon will be chosen
|
|
2124 # first if we set CC to just the basename; use the full file name.
|
|
2125 shift
|
|
2126 set dummy "$ac_dir/$ac_word" "$@"
|
|
2127 shift
|
|
2128 ac_cv_prog_CC="$@"
|
|
2129 fi
|
|
2130 fi
|
|
2131 fi
|
|
2132 CC="$ac_cv_prog_CC"
|
|
2133 if test -n "$CC"; then
|
|
2134 echo "$ac_t""$CC" 1>&6
|
|
2135 else
|
|
2136 echo "$ac_t""no" 1>&6
|
|
2137 fi
|
|
2138
|
420
|
2139 if test -z "$CC"; then
|
|
2140 case "`uname -s`" in
|
|
2141 *win32* | *WIN32*)
|
|
2142 # Extract the first word of "cl", so it can be a program name with args.
|
|
2143 set dummy cl; ac_word=$2
|
|
2144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
800
|
2145 echo "configure:2146: checking for $ac_word" >&5
|
420
|
2146
|
|
2147 if test -n "$CC"; then
|
|
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2149 else
|
|
2150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2151 ac_dummy="$PATH"
|
|
2152 for ac_dir in $ac_dummy; do
|
|
2153 test -z "$ac_dir" && ac_dir=.
|
|
2154 if test -f $ac_dir/$ac_word; then
|
|
2155 ac_cv_prog_CC="cl"
|
|
2156 break
|
|
2157 fi
|
|
2158 done
|
|
2159 IFS="$ac_save_ifs"
|
|
2160 fi
|
|
2161 CC="$ac_cv_prog_CC"
|
|
2162 if test -n "$CC"; then
|
|
2163 echo "$ac_t""$CC" 1>&6
|
|
2164 else
|
|
2165 echo "$ac_t""no" 1>&6
|
|
2166 fi
|
|
2167 ;;
|
|
2168 esac
|
|
2169 fi
|
149
|
2170 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
2171 fi
|
|
2172
|
|
2173 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
800
|
2174 echo "configure:2175: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
149
|
2175
|
|
2176 ac_ext=c
|
151
|
2177 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2178 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2179 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
149
|
2180 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
2181 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2182 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
2183 cross_compiling=no
|
|
2184
|
420
|
2185 cat > conftest.$ac_ext << EOF
|
|
2186
|
800
|
2187 #line 2188 "configure"
|
420
|
2188 #include "confdefs.h"
|
|
2189
|
149
|
2190 main(){return(0);}
|
|
2191 EOF
|
800
|
2192 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
2193 ac_cv_prog_cc_works=yes
|
|
2194 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
2195 if (./conftest; exit) 2>/dev/null; then
|
|
2196 ac_cv_prog_cc_cross=no
|
|
2197 else
|
|
2198 ac_cv_prog_cc_cross=yes
|
|
2199 fi
|
|
2200 else
|
|
2201 echo "configure: failed program was:" >&5
|
|
2202 cat conftest.$ac_ext >&5
|
|
2203 ac_cv_prog_cc_works=no
|
|
2204 fi
|
|
2205 rm -fr conftest*
|
420
|
2206 ac_ext=c
|
|
2207 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2208 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2209 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
420
|
2210 ac_cpp='$CPP '"$xe_cppflags"
|
|
2211 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2212 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
2213 cross_compiling=no
|
149
|
2214
|
|
2215 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
2216 if test $ac_cv_prog_cc_works = no; then
|
|
2217 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
2218 fi
|
|
2219 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
800
|
2220 echo "configure:2221: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
149
|
2221 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
2222 cross_compiling=$ac_cv_prog_cc_cross
|
|
2223
|
|
2224 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
800
|
2225 echo "configure:2226: checking whether we are using GNU C" >&5
|
149
|
2226
|
|
2227 cat > conftest.c <<EOF
|
|
2228 #ifdef __GNUC__
|
|
2229 yes;
|
|
2230 #endif
|
|
2231 EOF
|
800
|
2232 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
149
|
2233 ac_cv_prog_gcc=yes
|
|
2234 else
|
|
2235 ac_cv_prog_gcc=no
|
|
2236 fi
|
|
2237
|
|
2238 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
2239
|
|
2240 if test $ac_cv_prog_gcc = yes; then
|
|
2241 GCC=yes
|
420
|
2242 else
|
|
2243 GCC=
|
|
2244 fi
|
|
2245
|
|
2246 ac_test_CFLAGS="${CFLAGS+set}"
|
|
2247 ac_save_CFLAGS="$CFLAGS"
|
|
2248 CFLAGS=
|
|
2249 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
800
|
2250 echo "configure:2251: checking whether ${CC-cc} accepts -g" >&5
|
149
|
2251
|
|
2252 echo 'void f(){}' > conftest.c
|
|
2253 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
2254 ac_cv_prog_cc_g=yes
|
|
2255 else
|
|
2256 ac_cv_prog_cc_g=no
|
|
2257 fi
|
|
2258 rm -f conftest*
|
|
2259
|
|
2260
|
|
2261 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
2262 if test "$ac_test_CFLAGS" = set; then
|
|
2263 CFLAGS="$ac_save_CFLAGS"
|
|
2264 elif test $ac_cv_prog_cc_g = yes; then
|
|
2265 if test "$GCC" = yes; then
|
149
|
2266 CFLAGS="-g -O2"
|
|
2267 else
|
420
|
2268 CFLAGS="-g"
|
|
2269 fi
|
|
2270 else
|
|
2271 if test "$GCC" = yes; then
|
149
|
2272 CFLAGS="-O2"
|
420
|
2273 else
|
|
2274 CFLAGS=
|
|
2275 fi
|
149
|
2276 fi
|
|
2277
|
157
|
2278 fi
|
|
2279 CFLAGS="$xe_save_CFLAGS"
|
149
|
2280
|
171
|
2281
|
|
2282 test -n "$CPP" -a -d "$CPP" && CPP=
|
|
2283
|
169
|
2284 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
|
149
|
2285
|
|
2286 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
800
|
2287 echo "configure:2288: checking how to run the C preprocessor" >&5
|
149
|
2288 # On Suns, sometimes $CPP names a directory.
|
|
2289 if test -n "$CPP" && test -d "$CPP"; then
|
|
2290 CPP=
|
|
2291 fi
|
0
|
2292 if test -z "$CPP"; then
|
149
|
2293
|
0
|
2294 # This must be in double quotes, not single quotes, because CPP may get
|
149
|
2295 # substituted into the Makefile and "${CC-cc}" will confuse make.
|
0
|
2296 CPP="${CC-cc} -E"
|
149
|
2297 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
2298 # not just through cpp.
|
|
2299 cat > conftest.$ac_ext <<EOF
|
800
|
2300 #line 2301 "configure"
|
149
|
2301 #include "confdefs.h"
|
|
2302 #include <assert.h>
|
0
|
2303 Syntax Error
|
|
2304 EOF
|
149
|
2305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
800
|
2306 { (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
2308 if test -z "$ac_err"; then
|
|
2309 :
|
|
2310 else
|
|
2311 echo "$ac_err" >&5
|
|
2312 echo "configure: failed program was:" >&5
|
|
2313 cat conftest.$ac_ext >&5
|
|
2314 rm -rf conftest*
|
|
2315 CPP="${CC-cc} -E -traditional-cpp"
|
|
2316 cat > conftest.$ac_ext <<EOF
|
800
|
2317 #line 2318 "configure"
|
149
|
2318 #include "confdefs.h"
|
|
2319 #include <assert.h>
|
|
2320 Syntax Error
|
|
2321 EOF
|
|
2322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
800
|
2323 { (eval echo configure:2324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
2325 if test -z "$ac_err"; then
|
|
2326 :
|
|
2327 else
|
|
2328 echo "$ac_err" >&5
|
|
2329 echo "configure: failed program was:" >&5
|
|
2330 cat conftest.$ac_ext >&5
|
|
2331 rm -rf conftest*
|
|
2332 CPP="${CC-cc} -nologo -E"
|
|
2333 cat > conftest.$ac_ext <<EOF
|
800
|
2334 #line 2335 "configure"
|
420
|
2335 #include "confdefs.h"
|
|
2336 #include <assert.h>
|
|
2337 Syntax Error
|
|
2338 EOF
|
|
2339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
800
|
2340 { (eval echo configure:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
2342 if test -z "$ac_err"; then
|
|
2343 :
|
|
2344 else
|
149
|
2345 echo "$ac_err" >&5
|
|
2346 echo "configure: failed program was:" >&5
|
|
2347 cat conftest.$ac_ext >&5
|
0
|
2348 rm -rf conftest*
|
|
2349 CPP=/lib/cpp
|
|
2350 fi
|
|
2351 rm -f conftest*
|
|
2352 fi
|
|
2353 rm -f conftest*
|
420
|
2354 fi
|
|
2355 rm -f conftest*
|
149
|
2356 ac_cv_prog_CPP="$CPP"
|
|
2357 CPP="$ac_cv_prog_CPP"
|
|
2358 else
|
|
2359 ac_cv_prog_CPP="$CPP"
|
|
2360 fi
|
|
2361 echo "$ac_t""$CPP" 1>&6
|
|
2362
|
|
2363
|
442
|
2364
|
157
|
2365 echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
800
|
2366 echo "configure:2367: checking for AIX" >&5
|
|
2367 cat > conftest.$ac_ext <<EOF
|
|
2368 #line 2369 "configure"
|
157
|
2369 #include "confdefs.h"
|
|
2370 #ifdef _AIX
|
|
2371 yes
|
|
2372 #endif
|
|
2373
|
|
2374 EOF
|
|
2375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
2376 egrep "yes" >/dev/null 2>&1; then
|
|
2377 rm -rf conftest*
|
|
2378 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2379 Defining _ALL_SOURCE
|
|
2380 EOF
|
|
2381 cat >> confdefs.h <<\EOF
|
|
2382 #define _ALL_SOURCE 1
|
|
2383 EOF
|
|
2384 }
|
|
2385
|
|
2386 else
|
|
2387 rm -rf conftest*
|
|
2388 echo "$ac_t""no" 1>&6
|
|
2389 fi
|
|
2390 rm -f conftest*
|
|
2391
|
442
|
2392
|
410
|
2393
|
|
2394 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
|
800
|
2395 echo "configure:2396: checking for GNU libc" >&5
|
|
2396 cat > conftest.$ac_ext <<EOF
|
|
2397 #line 2398 "configure"
|
406
|
2398 #include "confdefs.h"
|
243
|
2399 #include <features.h>
|
|
2400 int main() {
|
|
2401
|
|
2402 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
|
|
2403 #error Not a GNU libc system :-(
|
|
2404 ******* ======= ******** &&&&&&&&
|
|
2405 #endif
|
|
2406
|
|
2407 ; return 0; }
|
|
2408 EOF
|
800
|
2409 if { (eval echo configure:2410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
243
|
2410 rm -rf conftest*
|
|
2411 have_glibc=yes
|
|
2412 else
|
|
2413 echo "configure: failed program was:" >&5
|
|
2414 cat conftest.$ac_ext >&5
|
|
2415 rm -rf conftest*
|
|
2416 have_glibc=no
|
|
2417 fi
|
|
2418 rm -f conftest*
|
|
2419 echo "$ac_t""$have_glibc" 1>&6
|
272
|
2420 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2421 Defining _GNU_SOURCE
|
|
2422 EOF
|
|
2423 cat >> confdefs.h <<\EOF
|
|
2424 #define _GNU_SOURCE 1
|
|
2425 EOF
|
|
2426 }
|
|
2427
|
243
|
2428
|
442
|
2429 case "$opsys" in
|
|
2430 sol2)
|
|
2431 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2432 Defining __EXTENSIONS__
|
|
2433 EOF
|
|
2434 cat >> confdefs.h <<\EOF
|
|
2435 #define __EXTENSIONS__ 1
|
|
2436 EOF
|
|
2437 }
|
|
2438
|
|
2439 if test "$os_release" -ge 55; then
|
|
2440 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2441 Defining _XOPEN_SOURCE = 500
|
|
2442 EOF
|
|
2443 cat >> confdefs.h <<\EOF
|
|
2444 #define _XOPEN_SOURCE 500
|
|
2445 EOF
|
|
2446 }
|
|
2447
|
|
2448 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2449 Defining _XOPEN_SOURCE_EXTENDED
|
|
2450 EOF
|
|
2451 cat >> confdefs.h <<\EOF
|
|
2452 #define _XOPEN_SOURCE_EXTENDED 1
|
|
2453 EOF
|
|
2454 }
|
|
2455
|
|
2456 fi ;;
|
|
2457 linux)
|
|
2458 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2459 Defining _POSIX_C_SOURCE = 199506L
|
|
2460 EOF
|
|
2461 cat >> confdefs.h <<\EOF
|
|
2462 #define _POSIX_C_SOURCE 199506L
|
|
2463 EOF
|
|
2464 }
|
|
2465
|
|
2466 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2467 Defining _XOPEN_SOURCE = 500
|
|
2468 EOF
|
|
2469 cat >> confdefs.h <<\EOF
|
|
2470 #define _XOPEN_SOURCE 500
|
|
2471 EOF
|
|
2472 }
|
|
2473
|
|
2474 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2475 Defining _XOPEN_SOURCE_EXTENDED
|
|
2476 EOF
|
|
2477 cat >> confdefs.h <<\EOF
|
|
2478 #define _XOPEN_SOURCE_EXTENDED 1
|
|
2479 EOF
|
|
2480 }
|
|
2481
|
|
2482 ;;
|
|
2483 esac
|
|
2484
|
|
2485 cat > conftest.$ac_ext <<EOF
|
800
|
2486 #line 2487 "configure"
|
373
|
2487 #include "confdefs.h"
|
|
2488 int main () {
|
|
2489 #if defined __SUNPRO_C
|
|
2490 return 11;
|
|
2491 #elif defined __DECC
|
|
2492 return 12;
|
442
|
2493 #elif defined __USLC__ && defined __SCO_VERSION__
|
|
2494 return 13;
|
373
|
2495 #else
|
|
2496 return 0;
|
|
2497 #endif
|
|
2498 }
|
|
2499 EOF
|
800
|
2500 if { (eval echo configure:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
373
|
2501 then
|
|
2502 :
|
|
2503 else
|
|
2504 conftest_rc="$?"
|
|
2505 echo "configure: failed program was:" >&5
|
|
2506 cat conftest.$ac_ext >&5
|
|
2507 rm -fr conftest*
|
|
2508 case "$conftest_rc" in
|
|
2509 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
|
|
2510 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
|
442
|
2511 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
|
373
|
2512 esac
|
|
2513 fi
|
|
2514 rm -fr conftest*
|
|
2515
|
157
|
2516
|
0
|
2517
|
149
|
2518
|
|
2519 echo "Extracting information from the machine- and system-dependent headers..."
|
|
2520
|
|
2521 tempcname="conftest.c"
|
|
2522
|
|
2523
|
|
2524
|
442
|
2525 cat > $tempcname < confdefs.h
|
|
2526 cat >> $tempcname <<EOF
|
149
|
2527 #define NOT_C_CODE
|
|
2528 #define C_SWITCH_SITE
|
|
2529 #define C_SWITCH_X_SITE
|
|
2530 #define LD_SWITCH_SITE
|
|
2531 #define LD_SWITCH_X_SITE
|
|
2532 #define LD_SWITCH_X_SITE_AUX
|
284
|
2533 #define OS_RELEASE $os_release
|
442
|
2534
|
|
2535 #ifdef config_opsysfile
|
284
|
2536 #include "$srcdir/src/$opsysfile"
|
442
|
2537 #endif
|
|
2538
|
|
2539 #ifdef config_machfile
|
284
|
2540 #include "$srcdir/src/$machfile"
|
442
|
2541 #endif
|
149
|
2542
|
|
2543 #ifndef LIBS_MACHINE
|
151
|
2544 #define LIBS_MACHINE
|
149
|
2545 #endif
|
|
2546 configure___ libs_machine=LIBS_MACHINE
|
|
2547
|
|
2548 #ifndef LIBS_SYSTEM
|
151
|
2549 #define LIBS_SYSTEM
|
149
|
2550 #endif
|
|
2551 configure___ libs_system=LIBS_SYSTEM
|
|
2552
|
|
2553 #ifndef LIBS_TERMCAP
|
151
|
2554 #define LIBS_TERMCAP
|
149
|
2555 #endif
|
|
2556 configure___ libs_termcap=LIBS_TERMCAP
|
|
2557
|
|
2558 #ifndef LIB_STANDARD
|
151
|
2559 #define LIB_STANDARD
|
149
|
2560 #endif
|
|
2561 configure___ libs_standard=LIB_STANDARD
|
|
2562
|
|
2563
|
163
|
2564 #ifndef OBJECTS_MACHINE
|
|
2565 #define OBJECTS_MACHINE
|
|
2566 #endif
|
|
2567 configure___ objects_machine=OBJECTS_MACHINE
|
|
2568
|
|
2569 #ifndef OBJECTS_SYSTEM
|
|
2570 #define OBJECTS_SYSTEM
|
|
2571 #endif
|
|
2572 configure___ objects_system=OBJECTS_SYSTEM
|
|
2573
|
|
2574
|
149
|
2575 #ifndef C_SWITCH_MACHINE
|
151
|
2576 #define C_SWITCH_MACHINE
|
149
|
2577 #endif
|
|
2578 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
2579
|
157
|
2580 #ifndef C_SWITCH_SYSTEM
|
|
2581 #define C_SWITCH_SYSTEM
|
|
2582 #endif
|
|
2583 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
2584
|
|
2585
|
|
2586 #ifndef LD_SWITCH_MACHINE
|
|
2587 #define LD_SWITCH_MACHINE
|
|
2588 #endif
|
|
2589 configure___ ld_switch_machine=LD_SWITCH_MACHINE
|
|
2590
|
|
2591 #ifndef LD_SWITCH_SYSTEM
|
|
2592 #define LD_SWITCH_SYSTEM
|
|
2593 #endif
|
|
2594 configure___ ld_switch_system=LD_SWITCH_SYSTEM
|
|
2595
|
149
|
2596
|
|
2597 #ifndef UNEXEC
|
561
|
2598 #define UNEXEC
|
149
|
2599 #endif
|
|
2600 configure___ unexec=UNEXEC
|
|
2601
|
|
2602
|
561
|
2603 #ifndef SYSTEM_TYPE
|
|
2604 #define SYSTEM_TYPE
|
|
2605 #endif
|
|
2606 configure___ system_type=SYSTEM_TYPE
|
|
2607
|
|
2608
|
163
|
2609 #ifndef LD_SWITCH_SHARED
|
|
2610 #define LD_SWITCH_SHARED "-c"
|
|
2611 #endif
|
|
2612 configure___ ld_switch_shared=LD_SWITCH_SHARED
|
|
2613
|
|
2614
|
442
|
2615 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
|
|
2616 configure___ ordinary_ld=ORDINARY_LD
|
|
2617
|
163
|
2618 #ifdef ORDINARY_LINK
|
442
|
2619 #define LD ORDINARY_LD
|
163
|
2620 #else /* no ORDINARY LINK */
|
|
2621 #ifdef COFF_ENCAPSULATE
|
284
|
2622 #define LD "\$(CC) -nostdlib"
|
163
|
2623 #else /* not COFF_ENCAPSULATE */
|
|
2624 #ifdef LINKER
|
|
2625 #define LD LINKER
|
|
2626 #else /* ! defined (LINKER) */
|
|
2627 #define LD "ld"
|
|
2628 #endif /* ! defined (LINKER) */
|
|
2629 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
2630 #endif /* not ORDINARY_LINK */
|
|
2631 configure___ ld=LD
|
|
2632
|
|
2633 #ifndef LIB_GCC
|
|
2634 #define LIB_GCC
|
|
2635 #endif
|
|
2636 configure___ lib_gcc=LIB_GCC
|
|
2637
|
|
2638 #ifndef LD_TEXT_START_ADDR
|
|
2639 #define LD_TEXT_START_ADDR
|
|
2640 #endif
|
|
2641 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
|
|
2642
|
|
2643
|
|
2644 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
|
|
2645 #ifdef NO_REMAP
|
|
2646 #ifdef COFF_ENCAPSULATE
|
|
2647 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
|
|
2648 #else /* ! defined (COFF_ENCAPSULATE) */
|
|
2649 #define START_FILES "pre-crt0.o /lib/crt0.o"
|
|
2650 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
2651 #else /* ! defined (NO_REMAP) */
|
|
2652 #define START_FILES "ecrt0.o"
|
|
2653 #endif /* ! defined (NO_REMAP) */
|
|
2654 #endif /* no ORDINARY_LINK */
|
|
2655 #ifndef START_FILES
|
|
2656 #define START_FILES
|
|
2657 #endif
|
|
2658 configure___ start_files=START_FILES
|
|
2659
|
153
|
2660 #ifdef ORDINARY_LINK
|
|
2661 configure___ ordinary_link=yes
|
|
2662 #else
|
|
2663 configure___ ordinary_link=no
|
|
2664 #endif
|
|
2665
|
149
|
2666 #ifdef SYSTEM_MALLOC
|
|
2667 configure___ system_malloc=yes
|
|
2668 #else
|
|
2669 configure___ system_malloc=no
|
|
2670 #endif
|
|
2671
|
|
2672 #ifdef TERMINFO
|
|
2673 configure___ have_terminfo=yes
|
|
2674 #else
|
|
2675 configure___ have_terminfo=no
|
|
2676 #endif
|
|
2677
|
|
2678 #ifdef MAIL_USE_FLOCK
|
|
2679 configure___ mail_use_flock=yes
|
|
2680 #else
|
|
2681 configure___ mail_use_flock=no
|
|
2682 #endif
|
|
2683
|
|
2684 #ifdef MAIL_USE_LOCKF
|
|
2685 configure___ mail_use_lockf=yes
|
|
2686 #else
|
|
2687 configure___ mail_use_lockf=no
|
|
2688 #endif
|
|
2689
|
438
|
2690 #ifdef MAIL_USE_LOCKING
|
|
2691 configure___ mail_use_locking=yes
|
|
2692 #else
|
|
2693 configure___ mail_use_locking=no
|
|
2694 #endif
|
|
2695
|
398
|
2696 #ifdef HAVE_WIN32_PROCESSES
|
|
2697 configure___ win32_processes=yes
|
|
2698 #else
|
|
2699 configure___ win32_processes=no
|
|
2700 #endif
|
|
2701
|
284
|
2702 EOF
|
|
2703
|
380
|
2704 CPP=`eval "echo $CPP $CPPFLAGS"`
|
149
|
2705 eval `$CPP -Isrc $tempcname \
|
165
|
2706 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
|
153
|
2707
|
149
|
2708 rm $tempcname
|
|
2709
|
561
|
2710 test -z "$system_type" && \
|
|
2711 { test "$extra_verbose" = "yes" && cat << EOF
|
|
2712 Defining SYSTEM_TYPE = "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
|
|
2713 EOF
|
|
2714 cat >> confdefs.h <<EOF
|
|
2715 #define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
|
|
2716 EOF
|
|
2717 }
|
|
2718
|
|
2719
|
|
2720 test -z "$unexec" && pdump=yes
|
|
2721
|
442
|
2722 if test "$pdump" = "yes"; then
|
|
2723 ordinary_link="yes"
|
|
2724 ld="${ordinary_ld}"
|
|
2725 start_files=
|
|
2726 libs_standard=
|
|
2727 unexec=
|
|
2728 lib_gcc=
|
|
2729 fi
|
|
2730
|
163
|
2731 test "$extra_verbose" = "yes" && \
|
201
|
2732 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
|
2733
|
458
|
2734 case "$opsys" in mingw* | cygwin*)
|
452
|
2735 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
|
|
2736 cygwin_include=`eval "dirname $cygwin_include"` ;
|
|
2737 cygwin_include="-I$cygwin_include/../include" ;
|
462
|
2738 extra_includes="$cygwin_include/mingw $cygwin_include" ;
|
458
|
2739 case "$opsys" in mingw*)
|
452
|
2740 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
|
|
2741 esac
|
458
|
2742 ;;
|
438
|
2743 esac
|
|
2744
|
153
|
2745 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
|
|
2746
|
442
|
2747
|
|
2748 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
|
|
2749
|
|
2750 if test "$__USLC__" = yes; then
|
|
2751 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
|
800
|
2752 echo "configure:2753: checking for whether the -Kalloca compiler flag is needed" >&5
|
442
|
2753 need_kalloca=no
|
|
2754 cat > conftest.$ac_ext <<EOF
|
800
|
2755 #line 2756 "configure"
|
442
|
2756 #include "confdefs.h"
|
|
2757
|
|
2758 int main() {
|
|
2759 void *x = alloca(4);
|
|
2760 ; return 0; }
|
|
2761 EOF
|
800
|
2762 if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
2763 rm -rf conftest*
|
|
2764 :
|
|
2765 else
|
|
2766 echo "configure: failed program was:" >&5
|
|
2767 cat conftest.$ac_ext >&5
|
|
2768 rm -rf conftest*
|
|
2769
|
|
2770 xe_save_c_switch_system="$c_switch_system"
|
|
2771 c_switch_system="$c_switch_system -Kalloca"
|
|
2772 cat > conftest.$ac_ext <<EOF
|
800
|
2773 #line 2774 "configure"
|
442
|
2774 #include "confdefs.h"
|
|
2775
|
|
2776 int main() {
|
|
2777 void *x = alloca(4);
|
|
2778 ; return 0; }
|
|
2779 EOF
|
800
|
2780 if { (eval echo configure:2781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
2781 rm -rf conftest*
|
|
2782 need_kalloca=yes
|
|
2783 else
|
|
2784 echo "configure: failed program was:" >&5
|
|
2785 cat conftest.$ac_ext >&5
|
|
2786 fi
|
|
2787 rm -f conftest*
|
|
2788 c_switch_system="$xe_save_c_switch_system"
|
|
2789 fi
|
|
2790 rm -f conftest*
|
|
2791 echo "$ac_t""$need_kalloca" 1>&6
|
|
2792 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
|
|
2793 fi
|
373
|
2794
|
272
|
2795 if test "$cflags_specified" = "no"; then
|
157
|
2796 if test "$GCC" = "yes"; then
|
664
|
2797 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes"
|
464
|
2798 CFLAGS="$CFLAGS -Wsign-compare"
|
771
|
2799 if test "$xemacs_compiler" != "g++"; then
|
664
|
2800 CFLAGS="$CFLAGS -Wshadow"
|
|
2801 fi
|
458
|
2802 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
|
398
|
2803 elif test "$__SUNPRO_C" = "yes"; then
|
157
|
2804 case "$opsys" in
|
163
|
2805 sol2 ) CFLAGS="-v -xO4" ;;
|
|
2806 sunos4* ) CFLAGS="-xO2";;
|
157
|
2807 esac
|
373
|
2808 elif test "$__DECC" = "yes"; then
|
|
2809 CFLAGS="-O3"
|
207
|
2810 elif test "$CC" = "xlc"; then
|
373
|
2811 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
|
|
2812 else
|
|
2813 CFLAGS="-O" ; fi
|
272
|
2814 fi
|
|
2815
|
442
|
2816 if test "$GCC" = "yes"; then
|
|
2817 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
|
800
|
2818 echo "configure:2819: checking for buggy gcc versions" >&5
|
442
|
2819 GCC_VERSION=`$CC --version`
|
|
2820 case `uname -s`:`uname -m`:$GCC_VERSION in
|
|
2821 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
|
|
2822 case "$CFLAGS" in
|
|
2823 *-O2*|*-O3*)
|
|
2824 case "$CFLAGS" in
|
|
2825 *-fno-schedule-insns*) ;;
|
|
2826 *)
|
|
2827 echo "$ac_t""yes" 1>&6
|
|
2828 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
|
|
2829 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
|
|
2830 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2831 ;;
|
|
2832 esac
|
|
2833 ;;
|
|
2834 esac
|
|
2835 ;;
|
|
2836 Linux:alpha:egcs-2.91.*)
|
|
2837 echo "$ac_t""yes" 1>&6
|
|
2838 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
|
|
2839 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
|
|
2840 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2841 ;;
|
|
2842 *:i*86*:2.7.2*)
|
448
|
2843 case "$CFLAGS" in
|
|
2844 *-O2*|*-O3*)
|
|
2845 case "$GCC_VERSION" in
|
|
2846 2.7.2)
|
442
|
2847 case "$CFLAGS" in
|
|
2848 *-fno-strength-reduce*) ;;
|
|
2849 *)
|
|
2850 echo "$ac_t""yes" 1>&6
|
|
2851 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
|
|
2852 echo "configure: warning: -fno-strength-reduce." 1>&2
|
|
2853 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2854 ;;
|
|
2855 esac
|
|
2856 ;;
|
|
2857 esac
|
448
|
2858 case "$CFLAGS" in
|
|
2859 *-fno-caller-saves*) ;;
|
|
2860 *)
|
|
2861 echo "$ac_t""yes" 1>&6
|
|
2862 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
|
|
2863 echo "configure: warning: -fno-caller-saves." 1>&2
|
|
2864 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2865 ;;
|
|
2866 esac
|
442
|
2867 ;;
|
|
2868 esac
|
|
2869 ;;
|
|
2870 esac
|
|
2871 echo "$ac_t""no" 1>&6
|
|
2872 fi
|
|
2873
|
853
|
2874 if test "$pdump" != "yes"; then
|
|
2875 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
|
|
2876 echo "configure:2877: checking for \"-z nocombreloc\" linker flag" >&5
|
|
2877 case "`ld --help 2>&1`" in
|
|
2878 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
|
|
2879 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
|
|
2880 *) echo "$ac_t""no" 1>&6 ;;
|
|
2881 esac
|
|
2882 fi
|
|
2883
|
|
2884
|
272
|
2885
|
|
2886 if test "$GCC" = "yes"; then
|
|
2887 set x $ld_switch_system; shift; ld_switch_system=""
|
|
2888 while test -n "$1"; do
|
|
2889 case $1 in
|
380
|
2890 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
|
|
2891 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
|
272
|
2892 -Xlinker* ) ;;
|
|
2893 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
|
|
2894 esac
|
|
2895 shift
|
|
2896 done
|
157
|
2897 fi
|
151
|
2898
|
163
|
2899 if test "$GCC" = "yes"; then
|
272
|
2900 set x $ld_switch_machine; shift; ld_switch_machine=""
|
|
2901 while test -n "$1"; do
|
|
2902 case $1 in
|
380
|
2903 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
|
|
2904 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
|
163
|
2905 -Xlinker* ) ;;
|
272
|
2906 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
|
163
|
2907 esac
|
272
|
2908 shift
|
163
|
2909 done
|
272
|
2910 fi
|
|
2911
|
|
2912 if test "$GCC" = "yes"; then
|
853
|
2913 set x $ld_switch_site; shift; ld_switch_site=""
|
|
2914 while test -n "$1"; do
|
|
2915 case $1 in
|
|
2916 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;;
|
|
2917 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;;
|
|
2918 -Xlinker* ) ;;
|
|
2919 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;;
|
|
2920 esac
|
|
2921 shift
|
|
2922 done
|
|
2923 fi
|
|
2924
|
|
2925 if test "$GCC" = "yes"; then
|
272
|
2926 set x $LDFLAGS; shift; LDFLAGS=""
|
|
2927 while test -n "$1"; do
|
|
2928 case $1 in
|
380
|
2929 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
|
|
2930 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
|
163
|
2931 -Xlinker* ) ;;
|
272
|
2932 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
|
163
|
2933 esac
|
272
|
2934 shift
|
163
|
2935 done
|
272
|
2936 fi
|
|
2937
|
|
2938 if test "$GCC" = "yes"; then
|
|
2939 set x $ld_call_shared; shift; ld_call_shared=""
|
|
2940 while test -n "$1"; do
|
|
2941 case $1 in
|
380
|
2942 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
|
|
2943 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
|
173
|
2944 -Xlinker* ) ;;
|
272
|
2945 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
|
173
|
2946 esac
|
272
|
2947 shift
|
173
|
2948 done
|
163
|
2949 fi
|
|
2950
|
|
2951 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
|
|
2952 echo " xemacs will be linked with \"$objects_machine\""
|
|
2953 fi
|
|
2954 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
|
|
2955 echo " xemacs will be linked with \"$objects_system\""
|
|
2956 fi
|
442
|
2957 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
|
151
|
2958 echo " xemacs will be linked with \"$unexec\""
|
|
2959 fi
|
442
|
2960 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
|
|
2961 echo " xemacs will be linked with \"dumper.o\""
|
|
2962 fi
|
151
|
2963
|
163
|
2964 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
|
853
|
2965 echo "configure:2966: checking for dynodump" >&5
|
163
|
2966 if test "$unexec" != "unexsol2.o"; then
|
|
2967 echo "$ac_t""no" 1>&6
|
|
2968 else
|
|
2969 echo "$ac_t""yes" 1>&6
|
|
2970 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2971 Defining DYNODUMP
|
|
2972 EOF
|
|
2973 cat >> confdefs.h <<\EOF
|
|
2974 #define DYNODUMP 1
|
|
2975 EOF
|
|
2976 }
|
|
2977
|
|
2978 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
|
175
|
2979 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
|
163
|
2980 case "$machine" in
|
|
2981 sparc ) dynodump_arch=sparc ;;
|
|
2982 *86* ) dynodump_arch=i386 ;;
|
|
2983 powerpc ) dynodump_arch=ppc ;;
|
|
2984 esac
|
|
2985 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
|
|
2986 fi
|
|
2987
|
|
2988
|
274
|
2989 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
|
272
|
2990
|
207
|
2991 if test "$unexec" = "unexaix.o"; then
|
219
|
2992 if test "$dynamic" = "no"; then
|
207
|
2993 start_flags="-Wl,-bnso,-bnodelcsect"
|
209
|
2994 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
|
272
|
2995 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
|
207
|
2996 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
|
|
2997 done
|
|
2998 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
|
|
2999 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
|
|
3000 done
|
294
|
3001
|
|
3002 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
|
853
|
3003 echo "configure:3004: checking for terminateAndUnload in -lC" >&5
|
294
|
3004 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
|
|
3005
|
|
3006 xe_check_libs=" -lC "
|
|
3007 cat > conftest.$ac_ext <<EOF
|
853
|
3008 #line 3009 "configure"
|
294
|
3009 #include "confdefs.h"
|
|
3010 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3011 /* We use char because int might match the return type of a gcc2
|
|
3012 builtin and then its argument prototype would still apply. */
|
|
3013 char terminateAndUnload();
|
|
3014
|
|
3015 int main() {
|
|
3016 terminateAndUnload()
|
|
3017 ; return 0; }
|
|
3018 EOF
|
853
|
3019 if { (eval echo configure:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
294
|
3020 rm -rf conftest*
|
|
3021 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3022 else
|
|
3023 echo "configure: failed program was:" >&5
|
|
3024 cat conftest.$ac_ext >&5
|
|
3025 rm -rf conftest*
|
|
3026 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3027 fi
|
|
3028 rm -f conftest*
|
|
3029 xe_check_libs=""
|
|
3030
|
|
3031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
3032 echo "$ac_t""yes" 1>&6
|
|
3033 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
|
|
3034 else
|
|
3035 echo "$ac_t""no" 1>&6
|
|
3036 fi
|
|
3037
|
|
3038
|
272
|
3039 fi
|
207
|
3040 elif test -n "$ld_text_start_addr"; then
|
|
3041 start_flags="-T $ld_text_start_addr -e __start"
|
|
3042 fi
|
|
3043
|
|
3044
|
|
3045
|
163
|
3046
|
|
3047 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
|
|
3048 test -z "$linker" && linker='$(CC) -nostdlib'
|
175
|
3049 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
|
163
|
3050 fi
|
|
3051 test "$GCC" != "yes" && lib_gcc=
|
|
3052
|
|
3053
|
|
3054
|
151
|
3055
|
209
|
3056
|
380
|
3057 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
151
|
3058 if test -n "$site_libraries"; then
|
|
3059 for arg in $site_libraries; do
|
380
|
3060 case "$arg" in
|
|
3061 -* ) ;;
|
|
3062 * ) test -d "$arg" || \
|
384
|
3063 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
|
380
|
3064 arg="-L${arg}" ;;
|
|
3065 esac
|
151
|
3066 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
|
|
3067 done
|
|
3068 fi
|
|
3069
|
380
|
3070 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
272
|
3071 if test -n "$site_includes"; then
|
151
|
3072 for arg in $site_includes; do
|
380
|
3073 case "$arg" in
|
|
3074 -* ) ;;
|
|
3075 * ) test -d "$arg" || \
|
384
|
3076 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
|
380
|
3077 arg="-I${arg}" ;;
|
|
3078 esac
|
151
|
3079 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
|
|
3080 done
|
|
3081 fi
|
|
3082
|
380
|
3083 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
3084 if test -n "$site_prefixes"; then
|
|
3085 for dir in $site_prefixes; do
|
398
|
3086 lib_dir="${dir}/lib"
|
416
|
3087 inc_dir="${dir}/include"
|
380
|
3088 if test ! -d "$dir"; then
|
384
|
3089 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
|
380
|
3090 elif test ! -d "$lib_dir"; then
|
384
|
3091 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
|
380
|
3092 else
|
414
|
3093 if test -d "$inc_dir"; then
|
|
3094 c_switch_site="$c_switch_site "-I$inc_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-I$inc_dir"\" to \$c_switch_site"; fi
|
|
3095 fi
|
380
|
3096 ld_switch_site="$ld_switch_site "-L$lib_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-L$lib_dir"\" to \$ld_switch_site"; fi
|
|
3097 fi
|
|
3098 done
|
|
3099 fi
|
|
3100
|
157
|
3101
|
151
|
3102 for dir in "/usr/ccs/lib"; do
|
440
|
3103 test -d "$dir" && ld_switch_system="$ld_switch_system -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_system"; fi
|
151
|
3104 done
|
|
3105
|
380
|
3106 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
272
|
3107 if test -n "$site_runtime_libraries"; then
|
165
|
3108 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
|
151
|
3109 export LD_RUN_PATH
|
|
3110 fi
|
|
3111
|
|
3112
|
440
|
3113
|
|
3114
|
|
3115
|
|
3116 if test -n "$add_runtime_path"; then :;
|
|
3117 elif test "$dynamic" = "no"; then add_runtime_path=no
|
151
|
3118 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
|
163
|
3119 else case "$opsys" in
|
373
|
3120 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
|
151
|
3121 * ) add_runtime_path=no ;;
|
|
3122 esac
|
|
3123 fi
|
|
3124
|
|
3125 if test "$add_runtime_path" = "yes"; then
|
|
3126 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
|
853
|
3127 echo "configure:3128: checking "for runtime libraries flag"" >&5
|
373
|
3128 case "$opsys" in
|
377
|
3129 sol2 ) dash_r="-R" ;;
|
392
|
3130 decosf* | linux* | irix*) dash_r="-rpath " ;;
|
373
|
3131 *)
|
|
3132 dash_r=""
|
|
3133 for try_dash_r in "-R" "-R " "-rpath "; do
|
|
3134 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
|
|
3135
|
272
|
3136 if test "$GCC" = "yes"; then
|
|
3137 set x $xe_check_libs; shift; xe_check_libs=""
|
|
3138 while test -n "$1"; do
|
|
3139 case $1 in
|
380
|
3140 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
|
|
3141 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
|
272
|
3142 -Xlinker* ) ;;
|
|
3143 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
|
|
3144 esac
|
|
3145 shift
|
|
3146 done
|
|
3147 fi
|
373
|
3148 cat > conftest.$ac_ext <<EOF
|
853
|
3149 #line 3150 "configure"
|
|
3150 #include "confdefs.h"
|
|
3151
|
|
3152 int main() {
|
|
3153
|
|
3154 ; return 0; }
|
|
3155 EOF
|
|
3156 if { (eval echo configure:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
3157 rm -rf conftest*
|
|
3158 dash_r="$try_dash_r"
|
|
3159 else
|
|
3160 echo "configure: failed program was:" >&5
|
|
3161 cat conftest.$ac_ext >&5
|
|
3162 fi
|
|
3163 rm -f conftest*
|
373
|
3164 xe_check_libs=""
|
|
3165 test -n "$dash_r" && break
|
|
3166 done ;;
|
|
3167 esac
|
151
|
3168 if test -n "$dash_r";
|
|
3169 then echo "$ac_t"""\"${dash_r}\""" 1>&6
|
|
3170 else echo "$ac_t""NONE" 1>&6
|
|
3171 fi
|
|
3172 fi
|
|
3173
|
163
|
3174 xe_add_unique_runpath_dir='
|
|
3175 xe_add_p=yes
|
|
3176 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
|
|
3177 done
|
|
3178 if test "$xe_add_p" = "yes"; then
|
|
3179 test -n "$runpath" && runpath="${runpath}:"
|
|
3180 runpath="${runpath}${xe_runpath_dir}"
|
|
3181 runpath_dirs="$runpath_dirs $xe_runpath_dir"
|
|
3182 fi'
|
|
3183
|
|
3184
|
151
|
3185
|
155
|
3186
|
151
|
3187 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
3188 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
3189 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
3190
|
163
|
3191 runpath="" runpath_dirs=""
|
155
|
3192 if test -n "$LD_RUN_PATH"; then
|
151
|
3193 runpath="$LD_RUN_PATH"
|
155
|
3194 elif test "$GCC" = "yes"; then
|
163
|
3195 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
3196 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
3197 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
3198 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
3199 case "$arg" in P,* | -L* | -R* )
|
159
|
3200 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
3201 {
|
155
|
3202 xe_runpath_dir="$dir"
|
163
|
3203 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
3204 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
3205 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
3206 eval "$xe_add_unique_runpath_dir"
|
|
3207 }
|
155
|
3208 done ;;
|
|
3209 esac
|
|
3210 done
|
163
|
3211 ld_switch_run="$ld_switch_run_save"
|
155
|
3212 rm -f conftest*
|
151
|
3213 else
|
155
|
3214 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
3215 case "$arg" in -L*) {
|
159
|
3216 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
3217 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
3218 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
3219 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
3220 eval "$xe_add_unique_runpath_dir"
|
|
3221 };; esac
|
151
|
3222 done
|
163
|
3223 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
3224 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
3225 eval "$xe_add_unique_runpath_dir";
|
|
3226 fi
|
155
|
3227 fi
|
151
|
3228 if test -n "$runpath"; then
|
|
3229 ld_switch_run="${dash_r}${runpath}"
|
272
|
3230
|
|
3231 if test "$GCC" = "yes"; then
|
|
3232 set x $ld_switch_run; shift; ld_switch_run=""
|
|
3233 while test -n "$1"; do
|
|
3234 case $1 in
|
380
|
3235 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
3236 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
3237 -Xlinker* ) ;;
|
|
3238 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
3239 esac
|
|
3240 shift
|
|
3241 done
|
|
3242 fi
|
151
|
3243 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
3244 fi
|
|
3245 fi
|
|
3246
|
|
3247
|
149
|
3248
|
|
3249 GNU_MALLOC=yes
|
261
|
3250 if test "$with_dlmalloc" != "no"; then
|
|
3251 doug_lea_malloc=yes
|
|
3252 else
|
|
3253 doug_lea_malloc=no
|
|
3254 fi
|
259
|
3255 after_morecore_hook_exists=yes
|
255
|
3256 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
|
853
|
3257 echo "configure:3258: checking for malloc_set_state" >&5
|
|
3258
|
|
3259 cat > conftest.$ac_ext <<EOF
|
|
3260 #line 3261 "configure"
|
255
|
3261 #include "confdefs.h"
|
|
3262 /* System header to define __stub macros and hopefully few prototypes,
|
|
3263 which can conflict with char malloc_set_state(); below. */
|
|
3264 #include <assert.h>
|
|
3265 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3266 /* We use char because int might match the return type of a gcc2
|
|
3267 builtin and then its argument prototype would still apply. */
|
|
3268 char malloc_set_state();
|
|
3269
|
|
3270 int main() {
|
|
3271
|
|
3272 /* The GNU C library defines this for functions which it implements
|
|
3273 to always fail with ENOSYS. Some functions are actually named
|
|
3274 something starting with __ and the normal name is an alias. */
|
|
3275 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
|
|
3276 choke me
|
|
3277 #else
|
|
3278 malloc_set_state();
|
|
3279 #endif
|
|
3280
|
|
3281 ; return 0; }
|
|
3282 EOF
|
853
|
3283 if { (eval echo configure:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
255
|
3284 rm -rf conftest*
|
|
3285 eval "ac_cv_func_malloc_set_state=yes"
|
|
3286 else
|
|
3287 echo "configure: failed program was:" >&5
|
|
3288 cat conftest.$ac_ext >&5
|
|
3289 rm -rf conftest*
|
|
3290 eval "ac_cv_func_malloc_set_state=no"
|
|
3291 fi
|
|
3292 rm -f conftest*
|
|
3293
|
|
3294 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
|
|
3295 echo "$ac_t""yes" 1>&6
|
|
3296 :
|
|
3297 else
|
|
3298 echo "$ac_t""no" 1>&6
|
|
3299 doug_lea_malloc=no
|
|
3300 fi
|
|
3301
|
|
3302 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
|
853
|
3303 echo "configure:3304: checking whether __after_morecore_hook exists" >&5
|
|
3304 cat > conftest.$ac_ext <<EOF
|
|
3305 #line 3306 "configure"
|
255
|
3306 #include "confdefs.h"
|
|
3307 extern void (* __after_morecore_hook)();
|
|
3308 int main() {
|
|
3309 __after_morecore_hook = 0
|
|
3310 ; return 0; }
|
|
3311 EOF
|
853
|
3312 if { (eval echo configure:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
3313 rm -rf conftest*
|
|
3314 echo "$ac_t""yes" 1>&6
|
|
3315 else
|
|
3316 echo "configure: failed program was:" >&5
|
|
3317 cat conftest.$ac_ext >&5
|
|
3318 rm -rf conftest*
|
|
3319 echo "$ac_t""no" 1>&6
|
|
3320 after_morecore_hook_exists=no
|
255
|
3321 fi
|
|
3322 rm -f conftest*
|
149
|
3323 if test "$system_malloc" = "yes" ; then
|
|
3324 GNU_MALLOC=no
|
|
3325 GNU_MALLOC_reason="
|
442
|
3326 - The GNU allocators don't work with this system configuration."
|
181
|
3327 elif test "$with_system_malloc" = "yes" ; then
|
149
|
3328 GNU_MALLOC=no
|
|
3329 GNU_MALLOC_reason="
|
442
|
3330 - User chose not to use GNU allocators."
|
181
|
3331 elif test "$with_debug_malloc" = "yes" ; then
|
177
|
3332 GNU_MALLOC=no
|
|
3333 GNU_MALLOC_reason="
|
442
|
3334 - User chose to use Debugging Malloc."
|
|
3335 fi
|
|
3336
|
|
3337 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
|
|
3338 GNU_MALLOC_reason="
|
|
3339 - Using Doug Lea's new malloc from the GNU C Library."
|
255
|
3340 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3341 Defining DOUG_LEA_MALLOC
|
|
3342 EOF
|
|
3343 cat >> confdefs.h <<\EOF
|
|
3344 #define DOUG_LEA_MALLOC 1
|
|
3345 EOF
|
|
3346 }
|
|
3347
|
259
|
3348 if test "$after_morecore_hook_exists" = "no" ; then
|
|
3349 GNU_MALLOC_reason="
|
442
|
3350 - Using Doug Lea's new malloc from the Linux C Library."
|
259
|
3351 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3352 Defining _NO_MALLOC_WARNING_
|
|
3353 EOF
|
|
3354 cat >> confdefs.h <<\EOF
|
|
3355 #define _NO_MALLOC_WARNING_ 1
|
|
3356 EOF
|
|
3357 }
|
|
3358
|
|
3359 fi
|
255
|
3360 fi
|
|
3361
|
149
|
3362
|
267
|
3363
|
|
3364
|
149
|
3365 # Extract the first word of "ranlib", so it can be a program name with args.
|
|
3366 set dummy ranlib; ac_word=$2
|
|
3367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
853
|
3368 echo "configure:3369: checking for $ac_word" >&5
|
149
|
3369
|
|
3370 if test -n "$RANLIB"; then
|
|
3371 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
3372 else
|
420
|
3373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
3374 ac_dummy="$PATH"
|
|
3375 for ac_dir in $ac_dummy; do
|
0
|
3376 test -z "$ac_dir" && ac_dir=.
|
|
3377 if test -f $ac_dir/$ac_word; then
|
149
|
3378 ac_cv_prog_RANLIB="ranlib"
|
0
|
3379 break
|
|
3380 fi
|
|
3381 done
|
|
3382 IFS="$ac_save_ifs"
|
149
|
3383 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
3384 fi
|
|
3385 RANLIB="$ac_cv_prog_RANLIB"
|
|
3386 if test -n "$RANLIB"; then
|
|
3387 echo "$ac_t""$RANLIB" 1>&6
|
|
3388 else
|
|
3389 echo "$ac_t""no" 1>&6
|
|
3390 fi
|
|
3391
|
|
3392 ac_aux_dir=
|
|
3393 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|
3394 if test -f $ac_dir/install-sh; then
|
|
3395 ac_aux_dir=$ac_dir
|
|
3396 ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
3397 break
|
|
3398 elif test -f $ac_dir/install.sh; then
|
|
3399 ac_aux_dir=$ac_dir
|
|
3400 ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
3401 break
|
|
3402 fi
|
|
3403 done
|
|
3404 if test -z "$ac_aux_dir"; then
|
|
3405 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|
3406 fi
|
|
3407 ac_config_guess=$ac_aux_dir/config.guess
|
|
3408 ac_config_sub=$ac_aux_dir/config.sub
|
|
3409 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|
3410
|
|
3411 # Find a good install program. We prefer a C program (faster),
|
|
3412 # so one script is as good as another. But avoid the broken or
|
|
3413 # incompatible versions:
|
|
3414 # SysV /etc/install, /usr/sbin/install
|
|
3415 # SunOS /usr/etc/install
|
|
3416 # IRIX /sbin/install
|
|
3417 # AIX /bin/install
|
420
|
3418 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
149
|
3419 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
3420 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
3421 # ./install, which can be erroneously created by make from ./install.sh.
|
|
3422 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
853
|
3423 echo "configure:3424: checking for a BSD compatible install" >&5
|
149
|
3424 if test -z "$INSTALL"; then
|
|
3425
|
420
|
3426 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
0
|
3427 for ac_dir in $PATH; do
|
149
|
3428 # Account for people who put trailing slashes in PATH elements.
|
|
3429 case "$ac_dir/" in
|
|
3430 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
0
|
3431 *)
|
|
3432 # OSF1 and SCO ODT 3.0 have their own names for install.
|
420
|
3433 # Don't use installbsd from OSF since it installs stuff as root
|
|
3434 # by default.
|
|
3435 for ac_prog in ginstall scoinst install; do
|
0
|
3436 if test -f $ac_dir/$ac_prog; then
|
|
3437 if test $ac_prog = install &&
|
|
3438 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
3439 # AIX install. It has an incompatible calling convention.
|
|
3440 :
|
|
3441 else
|
149
|
3442 ac_cv_path_install="$ac_dir/$ac_prog -c"
|
0
|
3443 break 2
|
|
3444 fi
|
|
3445 fi
|
|
3446 done
|
|
3447 ;;
|
|
3448 esac
|
|
3449 done
|
149
|
3450 IFS="$ac_save_IFS"
|
|
3451
|
|
3452 if test "${ac_cv_path_install+set}" = set; then
|
|
3453 INSTALL="$ac_cv_path_install"
|
|
3454 else
|
|
3455 # As a last resort, use the slow shell script. We don't cache a
|
|
3456 # path for INSTALL within a source directory, because that will
|
|
3457 # break other packages using the cache if that directory is
|
|
3458 # removed, or if the path is relative.
|
|
3459 INSTALL="$ac_install_sh"
|
|
3460 fi
|
|
3461 fi
|
|
3462 echo "$ac_t""$INSTALL" 1>&6
|
|
3463
|
|
3464 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
0
|
3465 # It thinks the first close brace ends the variable substitution.
|
|
3466 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
3467
|
420
|
3468 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|
3469
|
0
|
3470 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
3471
|
|
3472 for ac_prog in 'bison -y' byacc
|
|
3473 do
|
149
|
3474 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
3475 set dummy $ac_prog; ac_word=$2
|
|
3476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
853
|
3477 echo "configure:3478: checking for $ac_word" >&5
|
149
|
3478
|
|
3479 if test -n "$YACC"; then
|
|
3480 ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
|
3481 else
|
420
|
3482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
3483 ac_dummy="$PATH"
|
|
3484 for ac_dir in $ac_dummy; do
|
0
|
3485 test -z "$ac_dir" && ac_dir=.
|
|
3486 if test -f $ac_dir/$ac_word; then
|
149
|
3487 ac_cv_prog_YACC="$ac_prog"
|
0
|
3488 break
|
|
3489 fi
|
|
3490 done
|
|
3491 IFS="$ac_save_ifs"
|
|
3492 fi
|
149
|
3493 YACC="$ac_cv_prog_YACC"
|
|
3494 if test -n "$YACC"; then
|
|
3495 echo "$ac_t""$YACC" 1>&6
|
|
3496 else
|
|
3497 echo "$ac_t""no" 1>&6
|
|
3498 fi
|
0
|
3499
|
|
3500 test -n "$YACC" && break
|
|
3501 done
|
|
3502 test -n "$YACC" || YACC="yacc"
|
|
3503
|
|
3504
|
777
|
3505 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/times.h sys/un.h ulimit.h unistd.h
|
120
|
3506 do
|
149
|
3507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
3508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
853
|
3509 echo "configure:3510: checking for $ac_hdr" >&5
|
|
3510
|
|
3511 cat > conftest.$ac_ext <<EOF
|
|
3512 #line 3513 "configure"
|
149
|
3513 #include "confdefs.h"
|
|
3514 #include <$ac_hdr>
|
|
3515 EOF
|
|
3516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
3517 { (eval echo configure:3518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
3518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
3519 if test -z "$ac_err"; then
|
|
3520 rm -rf conftest*
|
149
|
3521 eval "ac_cv_header_$ac_safe=yes"
|
|
3522 else
|
|
3523 echo "$ac_err" >&5
|
|
3524 echo "configure: failed program was:" >&5
|
|
3525 cat conftest.$ac_ext >&5
|
|
3526 rm -rf conftest*
|
|
3527 eval "ac_cv_header_$ac_safe=no"
|
|
3528 fi
|
|
3529 rm -f conftest*
|
|
3530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
3531 echo "$ac_t""yes" 1>&6
|
|
3532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
3533 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3534 Defining $ac_tr_hdr
|
|
3535 EOF
|
|
3536 cat >> confdefs.h <<EOF
|
|
3537 #define $ac_tr_hdr 1
|
|
3538 EOF
|
|
3539 }
|
|
3540
|
|
3541 else
|
|
3542 echo "$ac_t""no" 1>&6
|
|
3543 fi
|
0
|
3544 done
|
|
3545
|
155
|
3546 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
853
|
3547 echo "configure:3548: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
3548
|
|
3549 cat > conftest.$ac_ext <<EOF
|
|
3550 #line 3551 "configure"
|
155
|
3551 #include "confdefs.h"
|
|
3552 #include <sys/types.h>
|
|
3553 #include <sys/wait.h>
|
|
3554 #ifndef WEXITSTATUS
|
|
3555 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|
3556 #endif
|
|
3557 #ifndef WIFEXITED
|
|
3558 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|
3559 #endif
|
|
3560 int main() {
|
|
3561 int s;
|
|
3562 wait (&s);
|
|
3563 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
3564 ; return 0; }
|
|
3565 EOF
|
853
|
3566 if { (eval echo configure:3567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
155
|
3567 rm -rf conftest*
|
|
3568 ac_cv_header_sys_wait_h=yes
|
|
3569 else
|
|
3570 echo "configure: failed program was:" >&5
|
|
3571 cat conftest.$ac_ext >&5
|
|
3572 rm -rf conftest*
|
|
3573 ac_cv_header_sys_wait_h=no
|
|
3574 fi
|
|
3575 rm -f conftest*
|
|
3576
|
|
3577 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
3578 if test $ac_cv_header_sys_wait_h = yes; then
|
|
3579 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3580 Defining HAVE_SYS_WAIT_H
|
|
3581 EOF
|
|
3582 cat >> confdefs.h <<\EOF
|
|
3583 #define HAVE_SYS_WAIT_H 1
|
|
3584 EOF
|
|
3585 }
|
|
3586
|
|
3587 fi
|
|
3588
|
149
|
3589 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
853
|
3590 echo "configure:3591: checking for ANSI C header files" >&5
|
|
3591
|
|
3592 cat > conftest.$ac_ext <<EOF
|
|
3593 #line 3594 "configure"
|
0
|
3594 #include "confdefs.h"
|
|
3595 #include <stdlib.h>
|
|
3596 #include <stdarg.h>
|
|
3597 #include <string.h>
|
|
3598 #include <float.h>
|
|
3599 EOF
|
149
|
3600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
3601 { (eval echo configure:3602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
3602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
3603 if test -z "$ac_err"; then
|
|
3604 rm -rf conftest*
|
149
|
3605 ac_cv_header_stdc=yes
|
|
3606 else
|
|
3607 echo "$ac_err" >&5
|
|
3608 echo "configure: failed program was:" >&5
|
|
3609 cat conftest.$ac_ext >&5
|
|
3610 rm -rf conftest*
|
|
3611 ac_cv_header_stdc=no
|
|
3612 fi
|
|
3613 rm -f conftest*
|
|
3614
|
|
3615 if test $ac_cv_header_stdc = yes; then
|
0
|
3616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
149
|
3617 cat > conftest.$ac_ext <<EOF
|
853
|
3618 #line 3619 "configure"
|
149
|
3619 #include "confdefs.h"
|
|
3620 #include <string.h>
|
|
3621 EOF
|
|
3622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3623 egrep "memchr" >/dev/null 2>&1; then
|
|
3624 :
|
|
3625 else
|
|
3626 rm -rf conftest*
|
|
3627 ac_cv_header_stdc=no
|
|
3628 fi
|
|
3629 rm -f conftest*
|
|
3630
|
|
3631 fi
|
|
3632
|
|
3633 if test $ac_cv_header_stdc = yes; then
|
|
3634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
3635 cat > conftest.$ac_ext <<EOF
|
853
|
3636 #line 3637 "configure"
|
149
|
3637 #include "confdefs.h"
|
|
3638 #include <stdlib.h>
|
|
3639 EOF
|
|
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3641 egrep "free" >/dev/null 2>&1; then
|
|
3642 :
|
|
3643 else
|
|
3644 rm -rf conftest*
|
|
3645 ac_cv_header_stdc=no
|
|
3646 fi
|
|
3647 rm -f conftest*
|
|
3648
|
|
3649 fi
|
|
3650
|
|
3651 if test $ac_cv_header_stdc = yes; then
|
|
3652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
3653 cat > conftest.$ac_ext <<EOF
|
853
|
3654 #line 3655 "configure"
|
0
|
3655 #include "confdefs.h"
|
|
3656 #include <ctype.h>
|
|
3657 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
3658 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
149
|
3659 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
0
|
3660 int main () { int i; for (i = 0; i < 256; i++)
|
|
3661 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
3662 exit (0); }
|
|
3663
|
|
3664 EOF
|
853
|
3665 if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
3666 then
|
|
3667 :
|
|
3668 else
|
373
|
3669 conftest_rc="$?"
|
149
|
3670 echo "configure: failed program was:" >&5
|
|
3671 cat conftest.$ac_ext >&5
|
|
3672 rm -fr conftest*
|
|
3673 ac_cv_header_stdc=no
|
0
|
3674 fi
|
|
3675 rm -fr conftest*
|
149
|
3676 fi
|
|
3677
|
|
3678 echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
3679 if test $ac_cv_header_stdc = yes; then
|
|
3680 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3681 Defining STDC_HEADERS
|
|
3682 EOF
|
|
3683 cat >> confdefs.h <<\EOF
|
|
3684 #define STDC_HEADERS 1
|
|
3685 EOF
|
|
3686 }
|
|
3687
|
|
3688 fi
|
|
3689
|
|
3690 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
853
|
3691 echo "configure:3692: checking whether time.h and sys/time.h may both be included" >&5
|
|
3692
|
|
3693 cat > conftest.$ac_ext <<EOF
|
|
3694 #line 3695 "configure"
|
0
|
3695 #include "confdefs.h"
|
|
3696 #include <sys/types.h>
|
|
3697 #include <sys/time.h>
|
|
3698 #include <time.h>
|
149
|
3699 int main() {
|
|
3700 struct tm *tp;
|
|
3701 ; return 0; }
|
|
3702 EOF
|
853
|
3703 if { (eval echo configure:3704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3704 rm -rf conftest*
|
|
3705 ac_cv_header_time=yes
|
|
3706 else
|
|
3707 echo "configure: failed program was:" >&5
|
|
3708 cat conftest.$ac_ext >&5
|
|
3709 rm -rf conftest*
|
|
3710 ac_cv_header_time=no
|
|
3711 fi
|
|
3712 rm -f conftest*
|
|
3713
|
|
3714 echo "$ac_t""$ac_cv_header_time" 1>&6
|
|
3715 if test $ac_cv_header_time = yes; then
|
|
3716 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3717 Defining TIME_WITH_SYS_TIME
|
|
3718 EOF
|
|
3719 cat >> confdefs.h <<\EOF
|
|
3720 #define TIME_WITH_SYS_TIME 1
|
|
3721 EOF
|
|
3722 }
|
|
3723
|
|
3724 fi
|
|
3725
|
|
3726 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
|
853
|
3727 echo "configure:3728: checking for sys_siglist declaration in signal.h or unistd.h" >&5
|
|
3728
|
|
3729 cat > conftest.$ac_ext <<EOF
|
|
3730 #line 3731 "configure"
|
149
|
3731 #include "confdefs.h"
|
|
3732 #include <sys/types.h>
|
0
|
3733 #include <signal.h>
|
149
|
3734 /* NetBSD declares sys_siglist in unistd.h. */
|
0
|
3735 #ifdef HAVE_UNISTD_H
|
|
3736 #include <unistd.h>
|
|
3737 #endif
|
149
|
3738 int main() {
|
|
3739 char *msg = *(sys_siglist + 1);
|
|
3740 ; return 0; }
|
|
3741 EOF
|
853
|
3742 if { (eval echo configure:3743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3743 rm -rf conftest*
|
|
3744 ac_cv_decl_sys_siglist=yes
|
|
3745 else
|
|
3746 echo "configure: failed program was:" >&5
|
|
3747 cat conftest.$ac_ext >&5
|
|
3748 rm -rf conftest*
|
|
3749 ac_cv_decl_sys_siglist=no
|
|
3750 fi
|
|
3751 rm -f conftest*
|
|
3752
|
|
3753 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
|
|
3754 if test $ac_cv_decl_sys_siglist = yes; then
|
|
3755 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3756 Defining SYS_SIGLIST_DECLARED
|
|
3757 EOF
|
|
3758 cat >> confdefs.h <<\EOF
|
|
3759 #define SYS_SIGLIST_DECLARED 1
|
|
3760 EOF
|
|
3761 }
|
|
3762
|
|
3763 fi
|
|
3764
|
|
3765
|
460
|
3766
|
|
3767 echo $ac_n "checking for utime""... $ac_c" 1>&6
|
853
|
3768 echo "configure:3769: checking for utime" >&5
|
|
3769 cat > conftest.$ac_ext <<EOF
|
|
3770 #line 3771 "configure"
|
460
|
3771 #include "confdefs.h"
|
|
3772 #include <sys/types.h>
|
0
|
3773 #include <utime.h>
|
460
|
3774 int main() {
|
|
3775 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
|
|
3776 ; return 0; }
|
|
3777 EOF
|
853
|
3778 if { (eval echo configure:3779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3779 rm -rf conftest*
|
|
3780 echo "$ac_t""yes" 1>&6
|
|
3781 { test "$extra_verbose" = "yes" && cat << \EOF
|
460
|
3782 Defining HAVE_UTIME
|
|
3783 EOF
|
|
3784 cat >> confdefs.h <<\EOF
|
|
3785 #define HAVE_UTIME 1
|
|
3786 EOF
|
|
3787 }
|
|
3788
|
|
3789 else
|
|
3790 echo "configure: failed program was:" >&5
|
|
3791 cat conftest.$ac_ext >&5
|
|
3792 rm -rf conftest*
|
|
3793 echo "$ac_t""no" 1>&6
|
|
3794 for ac_func in utimes
|
|
3795 do
|
|
3796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
3797 echo "configure:3798: checking for $ac_func" >&5
|
|
3798
|
|
3799 cat > conftest.$ac_ext <<EOF
|
|
3800 #line 3801 "configure"
|
460
|
3801 #include "confdefs.h"
|
|
3802 /* System header to define __stub macros and hopefully few prototypes,
|
|
3803 which can conflict with char $ac_func(); below. */
|
|
3804 #include <assert.h>
|
|
3805 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3806 /* We use char because int might match the return type of a gcc2
|
|
3807 builtin and then its argument prototype would still apply. */
|
|
3808 char $ac_func();
|
|
3809
|
|
3810 int main() {
|
|
3811
|
|
3812 /* The GNU C library defines this for functions which it implements
|
|
3813 to always fail with ENOSYS. Some functions are actually named
|
|
3814 something starting with __ and the normal name is an alias. */
|
|
3815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
3816 choke me
|
|
3817 #else
|
|
3818 $ac_func();
|
|
3819 #endif
|
|
3820
|
|
3821 ; return 0; }
|
|
3822 EOF
|
853
|
3823 if { (eval echo configure:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
460
|
3824 rm -rf conftest*
|
|
3825 eval "ac_cv_func_$ac_func=yes"
|
|
3826 else
|
|
3827 echo "configure: failed program was:" >&5
|
|
3828 cat conftest.$ac_ext >&5
|
|
3829 rm -rf conftest*
|
|
3830 eval "ac_cv_func_$ac_func=no"
|
|
3831 fi
|
|
3832 rm -f conftest*
|
|
3833
|
|
3834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
3835 echo "$ac_t""yes" 1>&6
|
|
3836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
3837 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3838 Defining $ac_tr_func
|
|
3839 EOF
|
|
3840 cat >> confdefs.h <<EOF
|
|
3841 #define $ac_tr_func 1
|
|
3842 EOF
|
|
3843 }
|
|
3844
|
|
3845 else
|
|
3846 echo "$ac_t""no" 1>&6
|
|
3847 fi
|
|
3848 done
|
|
3849
|
|
3850 fi
|
|
3851 rm -f conftest*
|
|
3852
|
149
|
3853
|
|
3854 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
853
|
3855 echo "configure:3856: checking return type of signal handlers" >&5
|
|
3856
|
|
3857 cat > conftest.$ac_ext <<EOF
|
|
3858 #line 3859 "configure"
|
0
|
3859 #include "confdefs.h"
|
|
3860 #include <sys/types.h>
|
|
3861 #include <signal.h>
|
|
3862 #ifdef signal
|
|
3863 #undef signal
|
|
3864 #endif
|
149
|
3865 #ifdef __cplusplus
|
|
3866 extern "C" void (*signal (int, void (*)(int)))(int);
|
|
3867 #else
|
|
3868 void (*signal ()) ();
|
|
3869 #endif
|
|
3870
|
|
3871 int main() {
|
|
3872 int i;
|
|
3873 ; return 0; }
|
|
3874 EOF
|
853
|
3875 if { (eval echo configure:3876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3876 rm -rf conftest*
|
|
3877 ac_cv_type_signal=void
|
|
3878 else
|
|
3879 echo "configure: failed program was:" >&5
|
|
3880 cat conftest.$ac_ext >&5
|
|
3881 rm -rf conftest*
|
|
3882 ac_cv_type_signal=int
|
|
3883 fi
|
|
3884 rm -f conftest*
|
|
3885
|
|
3886 echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
3887 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3888 Defining RETSIGTYPE = $ac_cv_type_signal
|
|
3889 EOF
|
|
3890 cat >> confdefs.h <<EOF
|
|
3891 #define RETSIGTYPE $ac_cv_type_signal
|
|
3892 EOF
|
|
3893 }
|
|
3894
|
|
3895
|
163
|
3896 echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
853
|
3897 echo "configure:3898: checking for size_t" >&5
|
|
3898
|
|
3899 cat > conftest.$ac_ext <<EOF
|
|
3900 #line 3901 "configure"
|
163
|
3901 #include "confdefs.h"
|
|
3902 #include <sys/types.h>
|
|
3903 #if STDC_HEADERS
|
|
3904 #include <stdlib.h>
|
|
3905 #include <stddef.h>
|
|
3906 #endif
|
|
3907 EOF
|
|
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
3909 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
3910 rm -rf conftest*
|
|
3911 ac_cv_type_size_t=yes
|
|
3912 else
|
|
3913 rm -rf conftest*
|
|
3914 ac_cv_type_size_t=no
|
|
3915 fi
|
|
3916 rm -f conftest*
|
|
3917
|
|
3918 echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
3919 if test $ac_cv_type_size_t = no; then
|
|
3920 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3921 Defining size_t = unsigned
|
|
3922 EOF
|
|
3923 cat >> confdefs.h <<\EOF
|
|
3924 #define size_t unsigned
|
|
3925 EOF
|
|
3926 }
|
|
3927
|
|
3928 fi
|
|
3929
|
|
3930 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
853
|
3931 echo "configure:3932: checking for pid_t" >&5
|
|
3932
|
|
3933 cat > conftest.$ac_ext <<EOF
|
|
3934 #line 3935 "configure"
|
163
|
3935 #include "confdefs.h"
|
|
3936 #include <sys/types.h>
|
|
3937 #if STDC_HEADERS
|
|
3938 #include <stdlib.h>
|
|
3939 #include <stddef.h>
|
|
3940 #endif
|
|
3941 EOF
|
|
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
3943 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
3944 rm -rf conftest*
|
|
3945 ac_cv_type_pid_t=yes
|
|
3946 else
|
|
3947 rm -rf conftest*
|
|
3948 ac_cv_type_pid_t=no
|
|
3949 fi
|
|
3950 rm -f conftest*
|
|
3951
|
|
3952 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|
3953 if test $ac_cv_type_pid_t = no; then
|
|
3954 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3955 Defining pid_t = int
|
|
3956 EOF
|
|
3957 cat >> confdefs.h <<\EOF
|
|
3958 #define pid_t int
|
|
3959 EOF
|
|
3960 }
|
|
3961
|
|
3962 fi
|
|
3963
|
|
3964 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
|
853
|
3965 echo "configure:3966: checking for uid_t in sys/types.h" >&5
|
|
3966
|
|
3967 cat > conftest.$ac_ext <<EOF
|
|
3968 #line 3969 "configure"
|
163
|
3969 #include "confdefs.h"
|
|
3970 #include <sys/types.h>
|
|
3971 EOF
|
|
3972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3973 egrep "uid_t" >/dev/null 2>&1; then
|
|
3974 rm -rf conftest*
|
|
3975 ac_cv_type_uid_t=yes
|
|
3976 else
|
|
3977 rm -rf conftest*
|
|
3978 ac_cv_type_uid_t=no
|
|
3979 fi
|
|
3980 rm -f conftest*
|
|
3981
|
|
3982
|
|
3983 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
|
|
3984 if test $ac_cv_type_uid_t = no; then
|
|
3985 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3986 Defining uid_t = int
|
|
3987 EOF
|
|
3988 cat >> confdefs.h <<\EOF
|
|
3989 #define uid_t int
|
|
3990 EOF
|
|
3991 }
|
|
3992
|
|
3993 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3994 Defining gid_t = int
|
|
3995 EOF
|
|
3996 cat >> confdefs.h <<\EOF
|
|
3997 #define gid_t int
|
|
3998 EOF
|
|
3999 }
|
|
4000
|
|
4001 fi
|
|
4002
|
|
4003 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
853
|
4004 echo "configure:4005: checking for mode_t" >&5
|
|
4005
|
|
4006 cat > conftest.$ac_ext <<EOF
|
|
4007 #line 4008 "configure"
|
163
|
4008 #include "confdefs.h"
|
|
4009 #include <sys/types.h>
|
|
4010 #if STDC_HEADERS
|
|
4011 #include <stdlib.h>
|
|
4012 #include <stddef.h>
|
|
4013 #endif
|
|
4014 EOF
|
|
4015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4016 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4017 rm -rf conftest*
|
|
4018 ac_cv_type_mode_t=yes
|
|
4019 else
|
|
4020 rm -rf conftest*
|
|
4021 ac_cv_type_mode_t=no
|
|
4022 fi
|
|
4023 rm -f conftest*
|
|
4024
|
|
4025 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
|
4026 if test $ac_cv_type_mode_t = no; then
|
|
4027 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4028 Defining mode_t = int
|
|
4029 EOF
|
|
4030 cat >> confdefs.h <<\EOF
|
|
4031 #define mode_t int
|
|
4032 EOF
|
|
4033 }
|
|
4034
|
|
4035 fi
|
|
4036
|
|
4037 echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
853
|
4038 echo "configure:4039: checking for off_t" >&5
|
|
4039
|
|
4040 cat > conftest.$ac_ext <<EOF
|
|
4041 #line 4042 "configure"
|
163
|
4042 #include "confdefs.h"
|
|
4043 #include <sys/types.h>
|
|
4044 #if STDC_HEADERS
|
|
4045 #include <stdlib.h>
|
|
4046 #include <stddef.h>
|
|
4047 #endif
|
|
4048 EOF
|
|
4049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4050 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4051 rm -rf conftest*
|
|
4052 ac_cv_type_off_t=yes
|
|
4053 else
|
|
4054 rm -rf conftest*
|
|
4055 ac_cv_type_off_t=no
|
|
4056 fi
|
|
4057 rm -f conftest*
|
|
4058
|
|
4059 echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|
4060 if test $ac_cv_type_off_t = no; then
|
|
4061 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4062 Defining off_t = long
|
|
4063 EOF
|
|
4064 cat >> confdefs.h <<\EOF
|
|
4065 #define off_t long
|
|
4066 EOF
|
|
4067 }
|
|
4068
|
|
4069 fi
|
|
4070
|
426
|
4071 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
|
853
|
4072 echo "configure:4073: checking for ssize_t" >&5
|
|
4073
|
|
4074 cat > conftest.$ac_ext <<EOF
|
|
4075 #line 4076 "configure"
|
426
|
4076 #include "confdefs.h"
|
|
4077 #include <sys/types.h>
|
|
4078 #if STDC_HEADERS
|
|
4079 #include <stdlib.h>
|
|
4080 #include <stddef.h>
|
|
4081 #endif
|
|
4082 EOF
|
|
4083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
4084 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
4085 rm -rf conftest*
|
|
4086 ac_cv_type_ssize_t=yes
|
|
4087 else
|
|
4088 rm -rf conftest*
|
|
4089 ac_cv_type_ssize_t=no
|
|
4090 fi
|
|
4091 rm -f conftest*
|
|
4092
|
|
4093 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
|
|
4094 if test $ac_cv_type_ssize_t = no; then
|
|
4095 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4096 Defining ssize_t = int
|
|
4097 EOF
|
|
4098 cat >> confdefs.h <<\EOF
|
|
4099 #define ssize_t int
|
|
4100 EOF
|
|
4101 }
|
|
4102
|
|
4103 fi
|
|
4104
|
410
|
4105
|
442
|
4106 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
|
853
|
4107 echo "configure:4108: checking for socklen_t" >&5
|
|
4108 cat > conftest.$ac_ext <<EOF
|
|
4109 #line 4110 "configure"
|
442
|
4110 #include "confdefs.h"
|
|
4111 #include <sys/socket.h>
|
|
4112 socklen_t x;
|
|
4113
|
|
4114 int main() {
|
|
4115
|
|
4116 ; return 0; }
|
|
4117 EOF
|
853
|
4118 if { (eval echo configure:4119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
4119 rm -rf conftest*
|
|
4120 echo "$ac_t""yes" 1>&6
|
|
4121 else
|
|
4122 echo "configure: failed program was:" >&5
|
|
4123 cat conftest.$ac_ext >&5
|
|
4124 rm -rf conftest*
|
|
4125
|
|
4126 cat > conftest.$ac_ext <<EOF
|
853
|
4127 #line 4128 "configure"
|
442
|
4128 #include "confdefs.h"
|
|
4129 #include <sys/socket.h>
|
|
4130 int accept (int, struct sockaddr *, size_t *);
|
|
4131
|
|
4132 int main() {
|
|
4133
|
|
4134 ; return 0; }
|
|
4135 EOF
|
853
|
4136 if { (eval echo configure:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
4137 rm -rf conftest*
|
|
4138
|
|
4139 echo "$ac_t""size_t" 1>&6
|
|
4140 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4141 Defining socklen_t = size_t
|
|
4142 EOF
|
|
4143 cat >> confdefs.h <<\EOF
|
|
4144 #define socklen_t size_t
|
|
4145 EOF
|
|
4146 }
|
|
4147
|
|
4148 else
|
|
4149 echo "configure: failed program was:" >&5
|
|
4150 cat conftest.$ac_ext >&5
|
|
4151 rm -rf conftest*
|
|
4152
|
|
4153 echo "$ac_t""int" 1>&6
|
|
4154 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4155 Defining socklen_t = int
|
|
4156 EOF
|
|
4157 cat >> confdefs.h <<\EOF
|
|
4158 #define socklen_t int
|
|
4159 EOF
|
|
4160 }
|
|
4161
|
|
4162 fi
|
|
4163 rm -f conftest*
|
|
4164 fi
|
|
4165 rm -f conftest*
|
|
4166
|
149
|
4167 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
|
853
|
4168 echo "configure:4169: checking for struct timeval" >&5
|
|
4169 cat > conftest.$ac_ext <<EOF
|
|
4170 #line 4171 "configure"
|
0
|
4171 #include "confdefs.h"
|
|
4172 #ifdef TIME_WITH_SYS_TIME
|
|
4173 #include <sys/time.h>
|
|
4174 #include <time.h>
|
|
4175 #else
|
|
4176 #ifdef HAVE_SYS_TIME_H
|
|
4177 #include <sys/time.h>
|
|
4178 #else
|
|
4179 #include <time.h>
|
|
4180 #endif
|
|
4181 #endif
|
149
|
4182 int main() {
|
|
4183 static struct timeval x; x.tv_sec = x.tv_usec;
|
|
4184 ; return 0; }
|
|
4185 EOF
|
853
|
4186 if { (eval echo configure:4187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4187 rm -rf conftest*
|
|
4188 echo "$ac_t""yes" 1>&6
|
0
|
4189 HAVE_TIMEVAL=yes
|
149
|
4190 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4191 Defining HAVE_TIMEVAL
|
|
4192 EOF
|
|
4193 cat >> confdefs.h <<\EOF
|
|
4194 #define HAVE_TIMEVAL 1
|
|
4195 EOF
|
|
4196 }
|
|
4197
|
|
4198 else
|
|
4199 echo "configure: failed program was:" >&5
|
|
4200 cat conftest.$ac_ext >&5
|
|
4201 rm -rf conftest*
|
|
4202 echo "$ac_t""no" 1>&6
|
|
4203 HAVE_TIMEVAL=no
|
|
4204 fi
|
|
4205 rm -f conftest*
|
|
4206
|
|
4207 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
853
|
4208 echo "configure:4209: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
4209
|
|
4210 cat > conftest.$ac_ext <<EOF
|
|
4211 #line 4212 "configure"
|
0
|
4212 #include "confdefs.h"
|
|
4213 #include <sys/types.h>
|
|
4214 #include <time.h>
|
149
|
4215 int main() {
|
|
4216 struct tm *tp; tp->tm_sec;
|
|
4217 ; return 0; }
|
|
4218 EOF
|
853
|
4219 if { (eval echo configure:4220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4220 rm -rf conftest*
|
|
4221 ac_cv_struct_tm=time.h
|
|
4222 else
|
|
4223 echo "configure: failed program was:" >&5
|
|
4224 cat conftest.$ac_ext >&5
|
|
4225 rm -rf conftest*
|
|
4226 ac_cv_struct_tm=sys/time.h
|
|
4227 fi
|
|
4228 rm -f conftest*
|
|
4229
|
|
4230 echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|
4231 if test $ac_cv_struct_tm = sys/time.h; then
|
|
4232 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4233 Defining TM_IN_SYS_TIME
|
|
4234 EOF
|
|
4235 cat >> confdefs.h <<\EOF
|
|
4236 #define TM_IN_SYS_TIME 1
|
|
4237 EOF
|
|
4238 }
|
|
4239
|
|
4240 fi
|
|
4241
|
|
4242 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
853
|
4243 echo "configure:4244: checking for tm_zone in struct tm" >&5
|
|
4244
|
|
4245 cat > conftest.$ac_ext <<EOF
|
|
4246 #line 4247 "configure"
|
149
|
4247 #include "confdefs.h"
|
|
4248 #include <sys/types.h>
|
|
4249 #include <$ac_cv_struct_tm>
|
|
4250 int main() {
|
|
4251 struct tm tm; tm.tm_zone;
|
|
4252 ; return 0; }
|
|
4253 EOF
|
853
|
4254 if { (eval echo configure:4255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4255 rm -rf conftest*
|
|
4256 ac_cv_struct_tm_zone=yes
|
|
4257 else
|
|
4258 echo "configure: failed program was:" >&5
|
|
4259 cat conftest.$ac_ext >&5
|
|
4260 rm -rf conftest*
|
|
4261 ac_cv_struct_tm_zone=no
|
|
4262 fi
|
|
4263 rm -f conftest*
|
|
4264
|
|
4265 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
|
|
4266 if test "$ac_cv_struct_tm_zone" = yes; then
|
|
4267 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4268 Defining HAVE_TM_ZONE
|
|
4269 EOF
|
|
4270 cat >> confdefs.h <<\EOF
|
|
4271 #define HAVE_TM_ZONE 1
|
|
4272 EOF
|
|
4273 }
|
|
4274
|
|
4275 else
|
|
4276 echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
853
|
4277 echo "configure:4278: checking for tzname" >&5
|
|
4278
|
|
4279 cat > conftest.$ac_ext <<EOF
|
|
4280 #line 4281 "configure"
|
0
|
4281 #include "confdefs.h"
|
|
4282 #include <time.h>
|
|
4283 #ifndef tzname /* For SGI. */
|
149
|
4284 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
0
|
4285 #endif
|
149
|
4286 int main() {
|
|
4287 atoi(*tzname);
|
|
4288 ; return 0; }
|
|
4289 EOF
|
853
|
4290 if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
4291 rm -rf conftest*
|
|
4292 ac_cv_var_tzname=yes
|
|
4293 else
|
|
4294 echo "configure: failed program was:" >&5
|
|
4295 cat conftest.$ac_ext >&5
|
|
4296 rm -rf conftest*
|
|
4297 ac_cv_var_tzname=no
|
|
4298 fi
|
|
4299 rm -f conftest*
|
|
4300
|
|
4301 echo "$ac_t""$ac_cv_var_tzname" 1>&6
|
|
4302 if test $ac_cv_var_tzname = yes; then
|
|
4303 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4304 Defining HAVE_TZNAME
|
|
4305 EOF
|
|
4306 cat >> confdefs.h <<\EOF
|
|
4307 #define HAVE_TZNAME 1
|
|
4308 EOF
|
|
4309 }
|
|
4310
|
|
4311 fi
|
|
4312 fi
|
|
4313
|
|
4314
|
|
4315 echo $ac_n "checking for working const""... $ac_c" 1>&6
|
853
|
4316 echo "configure:4317: checking for working const" >&5
|
|
4317
|
|
4318 cat > conftest.$ac_ext <<EOF
|
|
4319 #line 4320 "configure"
|
149
|
4320 #include "confdefs.h"
|
|
4321
|
|
4322 int main() {
|
|
4323
|
|
4324 /* Ultrix mips cc rejects this. */
|
744
|
4325 typedef int charset[2]; const charset x;
|
0
|
4326 /* SunOS 4.1.1 cc rejects this. */
|
|
4327 char const *const *ccp;
|
|
4328 char **p;
|
149
|
4329 /* NEC SVR4.0.2 mips cc rejects this. */
|
|
4330 struct point {int x, y;};
|
|
4331 static struct point const zero = {0,0};
|
0
|
4332 /* AIX XL C 1.02.0.0 rejects this.
|
|
4333 It does not let you subtract one const X* pointer from another in an arm
|
|
4334 of an if-expression whose if-part is not a constant expression */
|
|
4335 const char *g = "string";
|
|
4336 ccp = &g + (g ? g-g : 0);
|
|
4337 /* HPUX 7.0 cc rejects these. */
|
|
4338 ++ccp;
|
|
4339 p = (char**) ccp;
|
|
4340 ccp = (char const *const *) p;
|
|
4341 { /* SCO 3.2v4 cc rejects this. */
|
|
4342 char *t;
|
|
4343 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
4344
|
|
4345 *t++ = 0;
|
|
4346 }
|
|
4347 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
149
|
4348 int x[] = {25, 17};
|
0
|
4349 const int *foo = &x[0];
|
|
4350 ++foo;
|
|
4351 }
|
|
4352 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
4353 typedef const int *iptr;
|
|
4354 iptr p = 0;
|
|
4355 ++p;
|
|
4356 }
|
|
4357 { /* AIX XL C 1.02.0.0 rejects this saying
|
|
4358 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
4359 struct s { int j; const int *ap[3]; };
|
|
4360 struct s *b; b->j = 5;
|
|
4361 }
|
|
4362 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
4363 const int foo = 10;
|
149
|
4364 }
|
|
4365
|
|
4366 ; return 0; }
|
|
4367 EOF
|
853
|
4368 if { (eval echo configure:4369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4369 rm -rf conftest*
|
|
4370 ac_cv_c_const=yes
|
|
4371 else
|
|
4372 echo "configure: failed program was:" >&5
|
|
4373 cat conftest.$ac_ext >&5
|
|
4374 rm -rf conftest*
|
|
4375 ac_cv_c_const=no
|
|
4376 fi
|
|
4377 rm -f conftest*
|
|
4378
|
|
4379 echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
4380 if test $ac_cv_c_const = no; then
|
|
4381 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4382 Defining const =
|
|
4383 EOF
|
|
4384 cat >> confdefs.h <<\EOF
|
|
4385 #define const
|
|
4386 EOF
|
|
4387 }
|
|
4388
|
|
4389 fi
|
|
4390
|
|
4391
|
|
4392 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
853
|
4393 echo "configure:4394: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
149
|
4394 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
4395
|
|
4396 cat > conftestmake <<\EOF
|
0
|
4397 all:
|
|
4398 @echo 'ac_maketemp="${MAKE}"'
|
|
4399 EOF
|
|
4400 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
4401 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
149
|
4402 if test -n "$ac_maketemp"; then
|
|
4403 eval ac_cv_prog_make_${ac_make}_set=yes
|
|
4404 else
|
|
4405 eval ac_cv_prog_make_${ac_make}_set=no
|
|
4406 fi
|
0
|
4407 rm -f conftestmake
|
149
|
4408 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
4409 echo "$ac_t""yes" 1>&6
|
|
4410 SET_MAKE=
|
|
4411 else
|
|
4412 echo "$ac_t""no" 1>&6
|
|
4413 SET_MAKE="MAKE=${MAKE-make}"
|
|
4414 fi
|
|
4415
|
|
4416
|
|
4417 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
853
|
4418 echo "configure:4419: checking whether byte ordering is bigendian" >&5
|
149
|
4419
|
|
4420 ac_cv_c_bigendian=unknown
|
|
4421 # See if sys/param.h defines the BYTE_ORDER macro.
|
|
4422 cat > conftest.$ac_ext <<EOF
|
853
|
4423 #line 4424 "configure"
|
149
|
4424 #include "confdefs.h"
|
|
4425 #include <sys/types.h>
|
|
4426 #include <sys/param.h>
|
|
4427 int main() {
|
|
4428
|
|
4429 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|
4430 bogus endian macros
|
|
4431 #endif
|
|
4432 ; return 0; }
|
|
4433 EOF
|
853
|
4434 if { (eval echo configure:4435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4435 rm -rf conftest*
|
|
4436 # It does; now see whether it defined to BIG_ENDIAN or not.
|
|
4437 cat > conftest.$ac_ext <<EOF
|
853
|
4438 #line 4439 "configure"
|
149
|
4439 #include "confdefs.h"
|
|
4440 #include <sys/types.h>
|
|
4441 #include <sys/param.h>
|
|
4442 int main() {
|
|
4443
|
|
4444 #if BYTE_ORDER != BIG_ENDIAN
|
|
4445 not big endian
|
|
4446 #endif
|
|
4447 ; return 0; }
|
|
4448 EOF
|
853
|
4449 if { (eval echo configure:4450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4450 rm -rf conftest*
|
|
4451 ac_cv_c_bigendian=yes
|
|
4452 else
|
|
4453 echo "configure: failed program was:" >&5
|
|
4454 cat conftest.$ac_ext >&5
|
|
4455 rm -rf conftest*
|
|
4456 ac_cv_c_bigendian=no
|
|
4457 fi
|
|
4458 rm -f conftest*
|
|
4459 else
|
|
4460 echo "configure: failed program was:" >&5
|
|
4461 cat conftest.$ac_ext >&5
|
|
4462 fi
|
|
4463 rm -f conftest*
|
|
4464 if test $ac_cv_c_bigendian = unknown; then
|
|
4465 cat > conftest.$ac_ext <<EOF
|
853
|
4466 #line 4467 "configure"
|
0
|
4467 #include "confdefs.h"
|
|
4468 main () {
|
|
4469 /* Are we little or big endian? From Harbison&Steele. */
|
|
4470 union
|
|
4471 {
|
|
4472 long l;
|
|
4473 char c[sizeof (long)];
|
|
4474 } u;
|
|
4475 u.l = 1;
|
|
4476 exit (u.c[sizeof (long) - 1] == 1);
|
|
4477 }
|
|
4478 EOF
|
853
|
4479 if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
4480 then
|
|
4481 ac_cv_c_bigendian=no
|
|
4482 else
|
373
|
4483 conftest_rc="$?"
|
149
|
4484 echo "configure: failed program was:" >&5
|
|
4485 cat conftest.$ac_ext >&5
|
|
4486 rm -fr conftest*
|
|
4487 ac_cv_c_bigendian=yes
|
0
|
4488 fi
|
|
4489 rm -fr conftest*
|
149
|
4490 fi
|
|
4491
|
|
4492 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|
4493 if test $ac_cv_c_bigendian = yes; then
|
|
4494 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4495 Defining WORDS_BIGENDIAN
|
|
4496 EOF
|
|
4497 cat >> confdefs.h <<\EOF
|
|
4498 #define WORDS_BIGENDIAN 1
|
|
4499 EOF
|
|
4500 }
|
|
4501
|
|
4502 fi
|
|
4503
|
|
4504
|
151
|
4505 echo $ac_n "checking size of short""... $ac_c" 1>&6
|
853
|
4506 echo "configure:4507: checking size of short" >&5
|
|
4507
|
|
4508 cat > conftest.$ac_ext <<EOF
|
|
4509 #line 4510 "configure"
|
151
|
4510 #include "confdefs.h"
|
|
4511 #include <stdio.h>
|
|
4512 main()
|
|
4513 {
|
|
4514 FILE *f=fopen("conftestval", "w");
|
|
4515 if (!f) exit(1);
|
|
4516 fprintf(f, "%d\n", sizeof(short));
|
|
4517 exit(0);
|
|
4518 }
|
|
4519 EOF
|
853
|
4520 if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4521 then
|
|
4522 ac_cv_sizeof_short=`cat conftestval`
|
|
4523 else
|
373
|
4524 conftest_rc="$?"
|
151
|
4525 echo "configure: failed program was:" >&5
|
|
4526 cat conftest.$ac_ext >&5
|
|
4527 rm -fr conftest*
|
|
4528 ac_cv_sizeof_short=0
|
|
4529 fi
|
|
4530 rm -fr conftest*
|
|
4531 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|
4532 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4533 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
|
|
4534 EOF
|
|
4535 cat >> confdefs.h <<EOF
|
|
4536 #define SIZEOF_SHORT $ac_cv_sizeof_short
|
|
4537 EOF
|
|
4538 }
|
|
4539
|
|
4540
|
163
|
4541 if test "$ac_cv_sizeof_short" = 0; then
|
|
4542 echo ""
|
|
4543 echo "*** PANIC *** Configure tests are not working - compiler is broken."
|
|
4544 echo "*** PANIC *** Please examine config.log for compilation errors."
|
|
4545 exit 1
|
|
4546 fi
|
151
|
4547 echo $ac_n "checking size of int""... $ac_c" 1>&6
|
853
|
4548 echo "configure:4549: checking size of int" >&5
|
|
4549
|
|
4550 cat > conftest.$ac_ext <<EOF
|
|
4551 #line 4552 "configure"
|
151
|
4552 #include "confdefs.h"
|
|
4553 #include <stdio.h>
|
|
4554 main()
|
|
4555 {
|
|
4556 FILE *f=fopen("conftestval", "w");
|
|
4557 if (!f) exit(1);
|
|
4558 fprintf(f, "%d\n", sizeof(int));
|
|
4559 exit(0);
|
|
4560 }
|
|
4561 EOF
|
853
|
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4563 then
|
|
4564 ac_cv_sizeof_int=`cat conftestval`
|
|
4565 else
|
373
|
4566 conftest_rc="$?"
|
151
|
4567 echo "configure: failed program was:" >&5
|
|
4568 cat conftest.$ac_ext >&5
|
|
4569 rm -fr conftest*
|
|
4570 ac_cv_sizeof_int=0
|
|
4571 fi
|
|
4572 rm -fr conftest*
|
|
4573 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
4574 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4575 Defining SIZEOF_INT = $ac_cv_sizeof_int
|
|
4576 EOF
|
|
4577 cat >> confdefs.h <<EOF
|
|
4578 #define SIZEOF_INT $ac_cv_sizeof_int
|
|
4579 EOF
|
|
4580 }
|
|
4581
|
|
4582
|
|
4583 echo $ac_n "checking size of long""... $ac_c" 1>&6
|
853
|
4584 echo "configure:4585: checking size of long" >&5
|
|
4585
|
|
4586 cat > conftest.$ac_ext <<EOF
|
|
4587 #line 4588 "configure"
|
151
|
4588 #include "confdefs.h"
|
|
4589 #include <stdio.h>
|
|
4590 main()
|
|
4591 {
|
|
4592 FILE *f=fopen("conftestval", "w");
|
|
4593 if (!f) exit(1);
|
|
4594 fprintf(f, "%d\n", sizeof(long));
|
|
4595 exit(0);
|
|
4596 }
|
|
4597 EOF
|
853
|
4598 if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4599 then
|
|
4600 ac_cv_sizeof_long=`cat conftestval`
|
|
4601 else
|
373
|
4602 conftest_rc="$?"
|
151
|
4603 echo "configure: failed program was:" >&5
|
|
4604 cat conftest.$ac_ext >&5
|
|
4605 rm -fr conftest*
|
|
4606 ac_cv_sizeof_long=0
|
|
4607 fi
|
|
4608 rm -fr conftest*
|
|
4609 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|
4610 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4611 Defining SIZEOF_LONG = $ac_cv_sizeof_long
|
|
4612 EOF
|
|
4613 cat >> confdefs.h <<EOF
|
|
4614 #define SIZEOF_LONG $ac_cv_sizeof_long
|
|
4615 EOF
|
|
4616 }
|
|
4617
|
|
4618
|
163
|
4619 echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
853
|
4620 echo "configure:4621: checking size of long long" >&5
|
|
4621
|
|
4622 cat > conftest.$ac_ext <<EOF
|
|
4623 #line 4624 "configure"
|
163
|
4624 #include "confdefs.h"
|
|
4625 #include <stdio.h>
|
|
4626 main()
|
|
4627 {
|
|
4628 FILE *f=fopen("conftestval", "w");
|
|
4629 if (!f) exit(1);
|
|
4630 fprintf(f, "%d\n", sizeof(long long));
|
|
4631 exit(0);
|
|
4632 }
|
|
4633 EOF
|
853
|
4634 if { (eval echo configure:4635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
4635 then
|
|
4636 ac_cv_sizeof_long_long=`cat conftestval`
|
|
4637 else
|
373
|
4638 conftest_rc="$?"
|
163
|
4639 echo "configure: failed program was:" >&5
|
|
4640 cat conftest.$ac_ext >&5
|
|
4641 rm -fr conftest*
|
|
4642 ac_cv_sizeof_long_long=0
|
|
4643 fi
|
|
4644 rm -fr conftest*
|
|
4645 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
|
4646 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4647 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
|
|
4648 EOF
|
|
4649 cat >> confdefs.h <<EOF
|
|
4650 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|
4651 EOF
|
|
4652 }
|
|
4653
|
|
4654
|
|
4655 echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
853
|
4656 echo "configure:4657: checking size of void *" >&5
|
|
4657
|
|
4658 cat > conftest.$ac_ext <<EOF
|
|
4659 #line 4660 "configure"
|
163
|
4660 #include "confdefs.h"
|
|
4661 #include <stdio.h>
|
|
4662 main()
|
|
4663 {
|
|
4664 FILE *f=fopen("conftestval", "w");
|
|
4665 if (!f) exit(1);
|
|
4666 fprintf(f, "%d\n", sizeof(void *));
|
|
4667 exit(0);
|
|
4668 }
|
|
4669 EOF
|
853
|
4670 if { (eval echo configure:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
4671 then
|
|
4672 ac_cv_sizeof_void_p=`cat conftestval`
|
|
4673 else
|
373
|
4674 conftest_rc="$?"
|
163
|
4675 echo "configure: failed program was:" >&5
|
|
4676 cat conftest.$ac_ext >&5
|
|
4677 rm -fr conftest*
|
|
4678 ac_cv_sizeof_void_p=0
|
|
4679 fi
|
|
4680 rm -fr conftest*
|
|
4681 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
|
4682 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4683 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
|
|
4684 EOF
|
|
4685 cat >> confdefs.h <<EOF
|
|
4686 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
4687 EOF
|
|
4688 }
|
|
4689
|
|
4690
|
151
|
4691
|
149
|
4692 echo $ac_n "checking for long file names""... $ac_c" 1>&6
|
853
|
4693 echo "configure:4694: checking for long file names" >&5
|
149
|
4694
|
|
4695 ac_cv_sys_long_file_names=yes
|
0
|
4696 # Test for long file names in all the places we know might matter:
|
|
4697 # . the current directory, where building will happen
|
149
|
4698 # $prefix/lib where we will be installing things
|
|
4699 # $exec_prefix/lib likewise
|
|
4700 # eval it to expand exec_prefix.
|
|
4701 # $TMPDIR if set, where it might want to write temporary files
|
|
4702 # if $TMPDIR is not set:
|
0
|
4703 # /tmp where it might want to write temporary files
|
|
4704 # /var/tmp likewise
|
|
4705 # /usr/tmp likewise
|
149
|
4706 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
|
|
4707 ac_tmpdirs="$TMPDIR"
|
|
4708 else
|
|
4709 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
|
|
4710 fi
|
|
4711 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
|
0
|
4712 test -d $ac_dir || continue
|
149
|
4713 test -w $ac_dir || continue # It is less confusing to not echo anything here.
|
0
|
4714 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
|
|
4715 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
|
|
4716 val=`cat $ac_dir/conftest9012345 2>/dev/null`
|
149
|
4717 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
|
|
4718 ac_cv_sys_long_file_names=no
|
|
4719 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
4720 break
|
0
|
4721 fi
|
149
|
4722 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
4723 done
|
|
4724
|
|
4725 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
|
|
4726 if test $ac_cv_sys_long_file_names = yes; then
|
|
4727 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4728 Defining HAVE_LONG_FILE_NAMES
|
|
4729 EOF
|
|
4730 cat >> confdefs.h <<\EOF
|
|
4731 #define HAVE_LONG_FILE_NAMES 1
|
|
4732 EOF
|
|
4733 }
|
|
4734
|
|
4735 fi
|
|
4736
|
|
4737
|
398
|
4738 echo $ac_n "checking for sin""... $ac_c" 1>&6
|
853
|
4739 echo "configure:4740: checking for sin" >&5
|
|
4740
|
|
4741 cat > conftest.$ac_ext <<EOF
|
|
4742 #line 4743 "configure"
|
398
|
4743 #include "confdefs.h"
|
|
4744 /* System header to define __stub macros and hopefully few prototypes,
|
|
4745 which can conflict with char sin(); below. */
|
|
4746 #include <assert.h>
|
|
4747 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4748 /* We use char because int might match the return type of a gcc2
|
|
4749 builtin and then its argument prototype would still apply. */
|
|
4750 char sin();
|
|
4751
|
|
4752 int main() {
|
|
4753
|
|
4754 /* The GNU C library defines this for functions which it implements
|
|
4755 to always fail with ENOSYS. Some functions are actually named
|
|
4756 something starting with __ and the normal name is an alias. */
|
|
4757 #if defined (__stub_sin) || defined (__stub___sin)
|
|
4758 choke me
|
|
4759 #else
|
|
4760 sin();
|
|
4761 #endif
|
|
4762
|
|
4763 ; return 0; }
|
|
4764 EOF
|
853
|
4765 if { (eval echo configure:4766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
4766 rm -rf conftest*
|
|
4767 eval "ac_cv_func_sin=yes"
|
|
4768 else
|
|
4769 echo "configure: failed program was:" >&5
|
|
4770 cat conftest.$ac_ext >&5
|
|
4771 rm -rf conftest*
|
|
4772 eval "ac_cv_func_sin=no"
|
|
4773 fi
|
|
4774 rm -f conftest*
|
|
4775
|
|
4776 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
|
|
4777 echo "$ac_t""yes" 1>&6
|
|
4778 :
|
|
4779 else
|
|
4780 echo "$ac_t""no" 1>&6
|
149
|
4781
|
207
|
4782 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
853
|
4783 echo "configure:4784: checking for sin in -lm" >&5
|
207
|
4784 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
149
|
4785
|
|
4786 xe_check_libs=" -lm "
|
|
4787 cat > conftest.$ac_ext <<EOF
|
853
|
4788 #line 4789 "configure"
|
149
|
4789 #include "confdefs.h"
|
|
4790 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4791 /* We use char because int might match the return type of a gcc2
|
|
4792 builtin and then its argument prototype would still apply. */
|
207
|
4793 char sin();
|
149
|
4794
|
|
4795 int main() {
|
207
|
4796 sin()
|
149
|
4797 ; return 0; }
|
|
4798 EOF
|
853
|
4799 if { (eval echo configure:4800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
4800 rm -rf conftest*
|
|
4801 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4802 else
|
|
4803 echo "configure: failed program was:" >&5
|
|
4804 cat conftest.$ac_ext >&5
|
|
4805 rm -rf conftest*
|
|
4806 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4807 fi
|
|
4808 rm -f conftest*
|
|
4809 xe_check_libs=""
|
|
4810
|
151
|
4811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
4812 echo "$ac_t""yes" 1>&6
|
398
|
4813 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
|
149
|
4814 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
4815 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4816 Defining $ac_tr_lib
|
|
4817 EOF
|
|
4818 cat >> confdefs.h <<EOF
|
|
4819 #define $ac_tr_lib 1
|
|
4820 EOF
|
|
4821 }
|
|
4822
|
151
|
4823 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
|
|
4824
|
|
4825 else
|
|
4826 echo "$ac_t""no" 1>&6
|
|
4827 fi
|
|
4828
|
|
4829
|
398
|
4830 fi
|
|
4831
|
151
|
4832
|
|
4833 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4834 Defining LISP_FLOAT_TYPE
|
|
4835 EOF
|
|
4836 cat >> confdefs.h <<\EOF
|
|
4837 #define LISP_FLOAT_TYPE 1
|
|
4838 EOF
|
|
4839 }
|
149
|
4840
|
|
4841
|
243
|
4842 cat > conftest.$ac_ext <<EOF
|
853
|
4843 #line 4844 "configure"
|
243
|
4844 #include "confdefs.h"
|
|
4845 #include <math.h>
|
|
4846 int main() {
|
|
4847 return atanh(1.0) + asinh(1.0) + acosh(1.0);
|
|
4848 ; return 0; }
|
|
4849 EOF
|
853
|
4850 if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
243
|
4851 rm -rf conftest*
|
|
4852 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4853 Defining HAVE_INVERSE_HYPERBOLIC
|
|
4854 EOF
|
|
4855 cat >> confdefs.h <<\EOF
|
|
4856 #define HAVE_INVERSE_HYPERBOLIC 1
|
|
4857 EOF
|
|
4858 }
|
|
4859
|
|
4860 else
|
|
4861 echo "configure: failed program was:" >&5
|
|
4862 cat conftest.$ac_ext >&5
|
|
4863 fi
|
|
4864 rm -f conftest*
|
|
4865
|
567
|
4866 for ac_func in mkstemp
|
438
|
4867 do
|
|
4868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
4869 echo "configure:4870: checking for $ac_func" >&5
|
|
4870
|
|
4871 cat > conftest.$ac_ext <<EOF
|
|
4872 #line 4873 "configure"
|
438
|
4873 #include "confdefs.h"
|
|
4874 /* System header to define __stub macros and hopefully few prototypes,
|
|
4875 which can conflict with char $ac_func(); below. */
|
|
4876 #include <assert.h>
|
|
4877 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4878 /* We use char because int might match the return type of a gcc2
|
|
4879 builtin and then its argument prototype would still apply. */
|
|
4880 char $ac_func();
|
|
4881
|
|
4882 int main() {
|
|
4883
|
|
4884 /* The GNU C library defines this for functions which it implements
|
|
4885 to always fail with ENOSYS. Some functions are actually named
|
|
4886 something starting with __ and the normal name is an alias. */
|
|
4887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
4888 choke me
|
|
4889 #else
|
|
4890 $ac_func();
|
|
4891 #endif
|
|
4892
|
|
4893 ; return 0; }
|
|
4894 EOF
|
853
|
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
567
|
4896 rm -rf conftest*
|
|
4897 eval "ac_cv_func_$ac_func=yes"
|
|
4898 else
|
|
4899 echo "configure: failed program was:" >&5
|
|
4900 cat conftest.$ac_ext >&5
|
|
4901 rm -rf conftest*
|
|
4902 eval "ac_cv_func_$ac_func=no"
|
|
4903 fi
|
|
4904 rm -f conftest*
|
|
4905
|
|
4906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
4907 echo "$ac_t""yes" 1>&6
|
|
4908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
4909 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4910 Defining $ac_tr_func
|
|
4911 EOF
|
|
4912 cat >> confdefs.h <<EOF
|
|
4913 #define $ac_tr_func 1
|
|
4914 EOF
|
|
4915 }
|
|
4916
|
|
4917 else
|
|
4918 echo "$ac_t""no" 1>&6
|
|
4919 fi
|
|
4920 done
|
|
4921
|
|
4922
|
|
4923 echo "checking type of mail spool file locking" 1>&6
|
853
|
4924 echo "configure:4925: checking type of mail spool file locking" >&5
|
567
|
4925 for ac_func in lockf flock
|
|
4926 do
|
|
4927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
4928 echo "configure:4929: checking for $ac_func" >&5
|
|
4929
|
|
4930 cat > conftest.$ac_ext <<EOF
|
|
4931 #line 4932 "configure"
|
567
|
4932 #include "confdefs.h"
|
|
4933 /* System header to define __stub macros and hopefully few prototypes,
|
|
4934 which can conflict with char $ac_func(); below. */
|
|
4935 #include <assert.h>
|
|
4936 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4937 /* We use char because int might match the return type of a gcc2
|
|
4938 builtin and then its argument prototype would still apply. */
|
|
4939 char $ac_func();
|
|
4940
|
|
4941 int main() {
|
|
4942
|
|
4943 /* The GNU C library defines this for functions which it implements
|
|
4944 to always fail with ENOSYS. Some functions are actually named
|
|
4945 something starting with __ and the normal name is an alias. */
|
|
4946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
4947 choke me
|
|
4948 #else
|
|
4949 $ac_func();
|
|
4950 #endif
|
|
4951
|
|
4952 ; return 0; }
|
|
4953 EOF
|
853
|
4954 if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
438
|
4955 rm -rf conftest*
|
|
4956 eval "ac_cv_func_$ac_func=yes"
|
|
4957 else
|
|
4958 echo "configure: failed program was:" >&5
|
|
4959 cat conftest.$ac_ext >&5
|
|
4960 rm -rf conftest*
|
|
4961 eval "ac_cv_func_$ac_func=no"
|
|
4962 fi
|
|
4963 rm -f conftest*
|
|
4964
|
|
4965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
4966 echo "$ac_t""yes" 1>&6
|
|
4967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
4968 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4969 Defining $ac_tr_func
|
|
4970 EOF
|
|
4971 cat >> confdefs.h <<EOF
|
|
4972 #define $ac_tr_func 1
|
|
4973 EOF
|
|
4974 }
|
|
4975
|
|
4976 else
|
|
4977 echo "$ac_t""no" 1>&6
|
|
4978 fi
|
|
4979 done
|
|
4980
|
149
|
4981 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
|
|
4982 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
|
438
|
4983 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
|
442
|
4984 if test -z "$mail_locking"; then
|
|
4985 case "$opsys" in cygwin* | mingw*)
|
|
4986 mail_locking=pop ;;
|
|
4987 esac
|
|
4988 fi
|
|
4989
|
149
|
4990 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
438
|
4991 Defining MAIL_LOCK_LOCKF
|
|
4992 EOF
|
|
4993 cat >> confdefs.h <<\EOF
|
|
4994 #define MAIL_LOCK_LOCKF 1
|
149
|
4995 EOF
|
|
4996 }
|
|
4997
|
|
4998 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
438
|
4999 Defining MAIL_LOCK_FLOCK
|
|
5000 EOF
|
|
5001 cat >> confdefs.h <<\EOF
|
|
5002 #define MAIL_LOCK_FLOCK 1
|
|
5003 EOF
|
|
5004 }
|
|
5005
|
|
5006 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5007 Defining MAIL_LOCK_LOCKING
|
|
5008 EOF
|
|
5009 cat >> confdefs.h <<\EOF
|
|
5010 #define MAIL_LOCK_LOCKING 1
|
|
5011 EOF
|
|
5012 }
|
|
5013
|
442
|
5014 elif test "$mail_locking" = "pop"; then
|
|
5015 with_pop=yes
|
|
5016 mail_locking=
|
438
|
5017 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5018 Defining MAIL_LOCK_DOT
|
|
5019 EOF
|
|
5020 cat >> confdefs.h <<\EOF
|
|
5021 #define MAIL_LOCK_DOT 1
|
|
5022 EOF
|
|
5023 }
|
|
5024
|
|
5025 fi
|
|
5026 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
|
|
5027 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
|
|
5028 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
|
|
5029 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
|
|
5030 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
|
|
5031 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
|
151
|
5032
|
278
|
5033 case "$opsys" in decosf*)
|
|
5034
|
151
|
5035 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
|
853
|
5036 echo "configure:5037: checking for cma_open in -lpthreads" >&5
|
151
|
5037 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
|
|
5038
|
|
5039 xe_check_libs=" -lpthreads "
|
|
5040 cat > conftest.$ac_ext <<EOF
|
853
|
5041 #line 5042 "configure"
|
151
|
5042 #include "confdefs.h"
|
|
5043 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5044 /* We use char because int might match the return type of a gcc2
|
|
5045 builtin and then its argument prototype would still apply. */
|
|
5046 char cma_open();
|
|
5047
|
|
5048 int main() {
|
|
5049 cma_open()
|
|
5050 ; return 0; }
|
|
5051 EOF
|
853
|
5052 if { (eval echo configure:5053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
5053 rm -rf conftest*
|
|
5054 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5055 else
|
|
5056 echo "configure: failed program was:" >&5
|
|
5057 cat conftest.$ac_ext >&5
|
|
5058 rm -rf conftest*
|
|
5059 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5060 fi
|
|
5061 rm -f conftest*
|
|
5062 xe_check_libs=""
|
|
5063
|
|
5064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5065 echo "$ac_t""yes" 1>&6
|
|
5066 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
5067 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
5068 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5069 Defining $ac_tr_lib
|
|
5070 EOF
|
|
5071 cat >> confdefs.h <<EOF
|
|
5072 #define $ac_tr_lib 1
|
|
5073 EOF
|
|
5074 }
|
|
5075
|
|
5076 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
|
|
5077
|
|
5078 else
|
|
5079 echo "$ac_t""no" 1>&6
|
|
5080 fi
|
|
5081
|
|
5082
|
278
|
5083 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
|
|
5084 c_switch_site="$c_switch_site -threads" ;;
|
|
5085 esac
|
151
|
5086
|
708
|
5087
|
151
|
5088 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
|
853
|
5089 echo "configure:5090: checking whether the -xildoff compiler flag is required" >&5
|
151
|
5090 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
5091 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
|
|
5092 then echo "$ac_t""no" 1>&6;
|
|
5093 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
|
|
5094 fi
|
|
5095 else echo "$ac_t""no" 1>&6
|
|
5096 fi
|
|
5097
|
442
|
5098 if test "$opsys" = "sol2"; then
|
|
5099 if test "$os_release" -ge 56; then
|
|
5100 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
|
853
|
5101 echo "configure:5102: checking for \"-z ignore\" linker flag" >&5
|
442
|
5102 case "`ld -h 2>&1`" in
|
|
5103 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
|
|
5104 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
|
|
5105 *) echo "$ac_t""no" 1>&6 ;;
|
|
5106 esac
|
|
5107 fi
|
163
|
5108 fi
|
155
|
5109
|
149
|
5110
|
|
5111 echo "checking "for specified window system"" 1>&6
|
853
|
5112 echo "configure:5113: checking "for specified window system"" >&5
|
462
|
5113
|
|
5114
|
|
5115 GNOME_CONFIG=no
|
|
5116 GTK_CONFIG=no
|
|
5117
|
|
5118 if test "$with_gnome" != "no"; then
|
|
5119 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
|
853
|
5120 echo "configure:5121: checking for GNOME configuration script" >&5
|
462
|
5121 for possible in gnome-config
|
|
5122 do
|
|
5123 possible_version=`${possible} --version 2> /dev/null`
|
|
5124 if test "x${possible_version}" != "x"; then
|
|
5125 GNOME_CONFIG="${possible}"
|
|
5126 with_gnome=yes
|
|
5127 with_gtk=yes
|
|
5128 break
|
|
5129 fi
|
|
5130 done
|
|
5131 echo "$ac_t""${GNOME_CONFIG}" 1>&6
|
|
5132 fi
|
|
5133
|
|
5134 if test "${GNOME_CONFIG}" != "no"; then
|
|
5135 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
|
|
5136 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
|
|
5137 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5138 Defining HAVE_GNOME
|
|
5139 EOF
|
|
5140 cat >> confdefs.h <<\EOF
|
|
5141 #define HAVE_GNOME 1
|
|
5142 EOF
|
|
5143 }
|
|
5144
|
|
5145 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
|
|
5146 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
|
|
5147 fi
|
|
5148
|
|
5149 if test "$with_gtk" != "no";then
|
|
5150 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
|
853
|
5151 echo "configure:5152: checking for GTK configuration script" >&5
|
462
|
5152 for possible in gtk12-config gtk14-config gtk-config
|
|
5153 do
|
|
5154 possible_version=`${possible} --version 2> /dev/null`
|
|
5155 if test "x${possible_version}" != "x"; then
|
|
5156 GTK_CONFIG="${possible}"
|
527
|
5157 case "${possible_version}" in
|
|
5158 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
|
|
5159 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
|
|
5160 1.2.*)
|
|
5161 with_gtk=yes
|
|
5162 break
|
|
5163 ;;
|
|
5164 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
|
|
5165 esac
|
462
|
5166 fi
|
|
5167 done
|
|
5168 echo "$ac_t""${GTK_CONFIG}" 1>&6
|
|
5169 fi
|
|
5170
|
|
5171 if test "${GTK_CONFIG}" != "no"; then
|
|
5172 echo $ac_n "checking gtk version""... $ac_c" 1>&6
|
853
|
5173 echo "configure:5174: checking gtk version" >&5
|
462
|
5174 GTK_VERSION=`${GTK_CONFIG} --version`
|
|
5175 echo "$ac_t""${GTK_VERSION}" 1>&6
|
|
5176
|
|
5177 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
|
853
|
5178 echo "configure:5179: checking gtk libs" >&5
|
462
|
5179 GTK_LIBS=`${GTK_CONFIG} --libs`
|
|
5180 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
|
|
5181 echo "$ac_t""${GTK_LIBS}" 1>&6
|
|
5182
|
|
5183 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
|
853
|
5184 echo "configure:5185: checking gtk cflags" >&5
|
462
|
5185 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
|
720
|
5186 if test "$GCC" = "yes"; then
|
|
5187 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
|
|
5188 fi
|
462
|
5189 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
|
|
5190 echo "$ac_t""${GTK_CFLAGS}" 1>&6
|
|
5191
|
|
5192
|
|
5193 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
|
853
|
5194 echo "configure:5195: checking for main in -lgdk_imlib" >&5
|
462
|
5195 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
|
|
5196
|
|
5197 xe_check_libs=" -lgdk_imlib "
|
|
5198 cat > conftest.$ac_ext <<EOF
|
853
|
5199 #line 5200 "configure"
|
462
|
5200 #include "confdefs.h"
|
|
5201
|
|
5202 int main() {
|
|
5203 main()
|
|
5204 ; return 0; }
|
|
5205 EOF
|
853
|
5206 if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5207 rm -rf conftest*
|
|
5208 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5209 else
|
|
5210 echo "configure: failed program was:" >&5
|
|
5211 cat conftest.$ac_ext >&5
|
|
5212 rm -rf conftest*
|
|
5213 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5214 fi
|
|
5215 rm -f conftest*
|
|
5216 xe_check_libs=""
|
|
5217
|
|
5218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5219 echo "$ac_t""yes" 1>&6
|
|
5220 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
|
|
5221 else
|
|
5222 echo "$ac_t""no" 1>&6
|
|
5223 fi
|
|
5224
|
|
5225
|
|
5226
|
|
5227 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
|
853
|
5228 echo "configure:5229: checking for Imlib_init in -lImlib" >&5
|
462
|
5229 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
|
|
5230
|
|
5231 xe_check_libs=" -lImlib "
|
|
5232 cat > conftest.$ac_ext <<EOF
|
853
|
5233 #line 5234 "configure"
|
462
|
5234 #include "confdefs.h"
|
|
5235 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5236 /* We use char because int might match the return type of a gcc2
|
|
5237 builtin and then its argument prototype would still apply. */
|
|
5238 char Imlib_init();
|
|
5239
|
|
5240 int main() {
|
|
5241 Imlib_init()
|
|
5242 ; return 0; }
|
|
5243 EOF
|
853
|
5244 if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5245 rm -rf conftest*
|
|
5246 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5247 else
|
|
5248 echo "configure: failed program was:" >&5
|
|
5249 cat conftest.$ac_ext >&5
|
|
5250 rm -rf conftest*
|
|
5251 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5252 fi
|
|
5253 rm -f conftest*
|
|
5254 xe_check_libs=""
|
|
5255
|
|
5256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5257 echo "$ac_t""yes" 1>&6
|
|
5258 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
|
|
5259 else
|
|
5260 echo "$ac_t""no" 1>&6
|
|
5261 fi
|
|
5262
|
|
5263
|
|
5264 for ac_func in gdk_imlib_init
|
|
5265 do
|
|
5266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
5267 echo "configure:5268: checking for $ac_func" >&5
|
|
5268
|
|
5269 cat > conftest.$ac_ext <<EOF
|
|
5270 #line 5271 "configure"
|
462
|
5271 #include "confdefs.h"
|
|
5272 /* System header to define __stub macros and hopefully few prototypes,
|
|
5273 which can conflict with char $ac_func(); below. */
|
|
5274 #include <assert.h>
|
|
5275 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5276 /* We use char because int might match the return type of a gcc2
|
|
5277 builtin and then its argument prototype would still apply. */
|
|
5278 char $ac_func();
|
|
5279
|
|
5280 int main() {
|
|
5281
|
|
5282 /* The GNU C library defines this for functions which it implements
|
|
5283 to always fail with ENOSYS. Some functions are actually named
|
|
5284 something starting with __ and the normal name is an alias. */
|
|
5285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5286 choke me
|
|
5287 #else
|
|
5288 $ac_func();
|
|
5289 #endif
|
|
5290
|
|
5291 ; return 0; }
|
|
5292 EOF
|
853
|
5293 if { (eval echo configure:5294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5294 rm -rf conftest*
|
|
5295 eval "ac_cv_func_$ac_func=yes"
|
|
5296 else
|
|
5297 echo "configure: failed program was:" >&5
|
|
5298 cat conftest.$ac_ext >&5
|
|
5299 rm -rf conftest*
|
|
5300 eval "ac_cv_func_$ac_func=no"
|
|
5301 fi
|
|
5302 rm -f conftest*
|
|
5303
|
|
5304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
5305 echo "$ac_t""yes" 1>&6
|
|
5306 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
5307 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5308 Defining $ac_tr_func
|
|
5309 EOF
|
|
5310 cat >> confdefs.h <<EOF
|
|
5311 #define $ac_tr_func 1
|
|
5312 EOF
|
|
5313 }
|
|
5314
|
|
5315 else
|
|
5316 echo "$ac_t""no" 1>&6
|
|
5317 fi
|
|
5318 done
|
|
5319
|
|
5320
|
|
5321 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5322 Defining HAVE_XPM
|
|
5323 EOF
|
|
5324 cat >> confdefs.h <<\EOF
|
|
5325 #define HAVE_XPM 1
|
|
5326 EOF
|
|
5327 }
|
|
5328
|
|
5329 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5330 Defining HAVE_GTK
|
|
5331 EOF
|
|
5332 cat >> confdefs.h <<\EOF
|
|
5333 #define HAVE_GTK 1
|
|
5334 EOF
|
|
5335 }
|
|
5336
|
|
5337
|
|
5338
|
|
5339 window_system=gtk
|
|
5340 with_gtk=yes
|
|
5341 with_x11=no
|
|
5342
|
|
5343 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
|
|
5344 test "${with_toolbars}" != no && with_toolbars=gtk
|
|
5345 test "${with_menubars}" != "no" && with_menubars=gtk
|
|
5346 test "${with_dialogs}" != "no" && with_dialogs=gtk
|
|
5347 test "${with_widgets}" != "no" && with_widgets=gtk
|
|
5348
|
|
5349 OLD_CFLAGS="${CFLAGS}"
|
724
|
5350 OLD_CPPFLAGS="${CPPFLAGS}"
|
462
|
5351 OLD_LDFLAGS="${LDFLAGS}"
|
|
5352 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
|
724
|
5353 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}"
|
462
|
5354 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
|
|
5355 for ac_hdr in glade/glade.h glade.h
|
|
5356 do
|
|
5357 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
5358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
853
|
5359 echo "configure:5360: checking for $ac_hdr" >&5
|
|
5360
|
|
5361 cat > conftest.$ac_ext <<EOF
|
|
5362 #line 5363 "configure"
|
462
|
5363 #include "confdefs.h"
|
|
5364 #include <$ac_hdr>
|
|
5365 EOF
|
|
5366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
5367 { (eval echo configure:5368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
462
|
5368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
5369 if test -z "$ac_err"; then
|
|
5370 rm -rf conftest*
|
|
5371 eval "ac_cv_header_$ac_safe=yes"
|
|
5372 else
|
|
5373 echo "$ac_err" >&5
|
|
5374 echo "configure: failed program was:" >&5
|
|
5375 cat conftest.$ac_ext >&5
|
|
5376 rm -rf conftest*
|
|
5377 eval "ac_cv_header_$ac_safe=no"
|
|
5378 fi
|
|
5379 rm -f conftest*
|
|
5380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5381 echo "$ac_t""yes" 1>&6
|
|
5382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
5383 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5384 Defining $ac_tr_hdr
|
|
5385 EOF
|
|
5386 cat >> confdefs.h <<EOF
|
|
5387 #define $ac_tr_hdr 1
|
|
5388 EOF
|
|
5389 }
|
|
5390
|
|
5391 else
|
|
5392 echo "$ac_t""no" 1>&6
|
|
5393 fi
|
|
5394 done
|
|
5395
|
|
5396
|
|
5397 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
|
853
|
5398 echo "configure:5399: checking for main in -lxml" >&5
|
462
|
5399 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
|
|
5400
|
|
5401 xe_check_libs=" -lxml "
|
|
5402 cat > conftest.$ac_ext <<EOF
|
853
|
5403 #line 5404 "configure"
|
462
|
5404 #include "confdefs.h"
|
|
5405
|
|
5406 int main() {
|
|
5407 main()
|
|
5408 ; return 0; }
|
|
5409 EOF
|
853
|
5410 if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5411 rm -rf conftest*
|
|
5412 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5413 else
|
|
5414 echo "configure: failed program was:" >&5
|
|
5415 cat conftest.$ac_ext >&5
|
|
5416 rm -rf conftest*
|
|
5417 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5418 fi
|
|
5419 rm -f conftest*
|
|
5420 xe_check_libs=""
|
|
5421
|
|
5422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5423 echo "$ac_t""yes" 1>&6
|
|
5424 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
|
|
5425 else
|
|
5426 echo "$ac_t""no" 1>&6
|
|
5427 fi
|
|
5428
|
|
5429
|
|
5430
|
|
5431 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
|
853
|
5432 echo "configure:5433: checking for main in -lglade" >&5
|
462
|
5433 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
|
|
5434
|
|
5435 xe_check_libs=" -lglade "
|
|
5436 cat > conftest.$ac_ext <<EOF
|
853
|
5437 #line 5438 "configure"
|
462
|
5438 #include "confdefs.h"
|
|
5439
|
|
5440 int main() {
|
|
5441 main()
|
|
5442 ; return 0; }
|
|
5443 EOF
|
853
|
5444 if { (eval echo configure:5445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5445 rm -rf conftest*
|
|
5446 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5447 else
|
|
5448 echo "configure: failed program was:" >&5
|
|
5449 cat conftest.$ac_ext >&5
|
|
5450 rm -rf conftest*
|
|
5451 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5452 fi
|
|
5453 rm -f conftest*
|
|
5454 xe_check_libs=""
|
|
5455
|
|
5456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5457 echo "$ac_t""yes" 1>&6
|
|
5458 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
|
|
5459 else
|
|
5460 echo "$ac_t""no" 1>&6
|
|
5461 fi
|
|
5462
|
|
5463
|
|
5464
|
|
5465 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
|
853
|
5466 echo "configure:5467: checking for main in -lglade-gnome" >&5
|
462
|
5467 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
|
|
5468
|
|
5469 xe_check_libs=" -lglade-gnome "
|
|
5470 cat > conftest.$ac_ext <<EOF
|
853
|
5471 #line 5472 "configure"
|
462
|
5472 #include "confdefs.h"
|
|
5473
|
|
5474 int main() {
|
|
5475 main()
|
|
5476 ; return 0; }
|
|
5477 EOF
|
853
|
5478 if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5479 rm -rf conftest*
|
|
5480 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5481 else
|
|
5482 echo "configure: failed program was:" >&5
|
|
5483 cat conftest.$ac_ext >&5
|
|
5484 rm -rf conftest*
|
|
5485 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5486 fi
|
|
5487 rm -f conftest*
|
|
5488 xe_check_libs=""
|
|
5489
|
|
5490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5491 echo "$ac_t""yes" 1>&6
|
|
5492 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
|
|
5493 else
|
|
5494 echo "$ac_t""no" 1>&6
|
|
5495 fi
|
|
5496
|
|
5497
|
|
5498 cat > conftest.$ac_ext <<EOF
|
853
|
5499 #line 5500 "configure"
|
462
|
5500 #include "confdefs.h"
|
|
5501 #include <glade/glade-xml.h>
|
|
5502 EOF
|
|
5503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5504 egrep "char \*txtdomain;" >/dev/null 2>&1; then
|
|
5505 rm -rf conftest*
|
|
5506 echo "$ac_t""yes" 1>&6
|
|
5507 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5508 Defining LIBGLADE_XML_TXTDOMAIN = 1
|
|
5509 EOF
|
|
5510 cat >> confdefs.h <<\EOF
|
|
5511 #define LIBGLADE_XML_TXTDOMAIN 1
|
|
5512 EOF
|
|
5513 }
|
|
5514
|
|
5515 else
|
|
5516 rm -rf conftest*
|
|
5517 echo "$ac_t""no" 1>&6
|
|
5518 fi
|
|
5519 rm -f conftest*
|
|
5520
|
|
5521 CFLAGS="${OLD_CFLAGS}"
|
724
|
5522 CPPFLAGS="${OLD_CPPFLAGS}"
|
462
|
5523 LDFLAGS="${OLD_LDFLAGS}"
|
|
5524 fi
|
|
5525
|
149
|
5526
|
187
|
5527 if test "$with_x11" != "no"; then
|
|
5528 test "$x_includes $x_libraries" != "NONE NONE" && \
|
|
5529 window_system=x11 with_x11=yes
|
|
5530
|
272
|
5531
|
|
5532 if test "$x_includes $x_libraries" = "NONE NONE" \
|
|
5533 -a -n "$OPENWINHOME" \
|
|
5534 -a "$OPENWINHOME" != "/usr/openwin" \
|
|
5535 -a -d "$OPENWINHOME"; then
|
187
|
5536 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
|
|
5537 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
|
|
5538 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
|
272
|
5539 fi
|
|
5540
|
|
5541 if test "$x_includes" = "NONE"; then
|
|
5542 for dir in "/usr/X11" "/usr/X11R6"; do
|
|
5543 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
|
|
5544 done
|
|
5545 fi
|
|
5546
|
|
5547 if test "$x_libraries" = "NONE"; then
|
|
5548 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
|
|
5549 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
|
|
5550 done
|
149
|
5551 fi
|
187
|
5552
|
149
|
5553 # If we find X, set shell vars x_includes and x_libraries to the
|
|
5554 # paths, otherwise set no_x=yes.
|
|
5555 # Uses ac_ vars as temps to allow command line to override cache and checks.
|
|
5556 # --without-x overrides everything else, but does not touch the cache.
|
|
5557 echo $ac_n "checking for X""... $ac_c" 1>&6
|
853
|
5558 echo "configure:5559: checking for X" >&5
|
149
|
5559
|
|
5560 # Check whether --with-x or --without-x was given.
|
|
5561 if test "${with_x+set}" = set; then
|
|
5562 withval="$with_x"
|
|
5563 :
|
|
5564 fi
|
|
5565
|
|
5566 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|
5567 if test "x$with_x" = xno; then
|
|
5568 # The user explicitly disabled X.
|
|
5569 have_x=disabled
|
|
5570 else
|
|
5571 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
|
5572 # Both variables are already set.
|
|
5573 have_x=yes
|
|
5574 else
|
|
5575
|
|
5576 # One or both of the vars are not set, and there is no cached value.
|
|
5577 ac_x_includes=NO ac_x_libraries=NO
|
0
|
5578 rm -fr conftestdir
|
|
5579 if mkdir conftestdir; then
|
|
5580 cd conftestdir
|
|
5581 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
5582 cat > Imakefile <<'EOF'
|
|
5583 acfindx:
|
|
5584 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
5585 EOF
|
|
5586 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
5587 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
149
|
5588 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
0
|
5589 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
149
|
5590 for ac_extension in a so sl; do
|
|
5591 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
|
5592 test -f $ac_im_libdir/libX11.$ac_extension; then
|
|
5593 ac_im_usrlibdir=$ac_im_libdir; break
|
|
5594 fi
|
|
5595 done
|
|
5596 # Screen out bogus values from the imake configuration. They are
|
|
5597 # bogus both because they are the default anyway, and because
|
|
5598 # using them would break gcc on systems where it needs fixed includes.
|
0
|
5599 case "$ac_im_incroot" in
|
|
5600 /usr/include) ;;
|
149
|
5601 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
0
|
5602 esac
|
|
5603 case "$ac_im_usrlibdir" in
|
|
5604 /usr/lib | /lib) ;;
|
149
|
5605 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
0
|
5606 esac
|
|
5607 fi
|
|
5608 cd ..
|
|
5609 rm -fr conftestdir
|
|
5610 fi
|
|
5611
|
149
|
5612 if test "$ac_x_includes" = NO; then
|
|
5613 # Guess where to find include files, by looking for this one X11 .h file.
|
|
5614 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
|
5615
|
|
5616 # First, try using that file with no special directory specified.
|
|
5617 cat > conftest.$ac_ext <<EOF
|
853
|
5618 #line 5619 "configure"
|
0
|
5619 #include "confdefs.h"
|
|
5620 #include <$x_direct_test_include>
|
|
5621 EOF
|
149
|
5622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
5623 { (eval echo configure:5624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
5624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
5625 if test -z "$ac_err"; then
|
|
5626 rm -rf conftest*
|
149
|
5627 # We can compile using X headers with no special include directory.
|
|
5628 ac_x_includes=
|
|
5629 else
|
|
5630 echo "$ac_err" >&5
|
|
5631 echo "configure: failed program was:" >&5
|
|
5632 cat conftest.$ac_ext >&5
|
|
5633 rm -rf conftest*
|
|
5634 # Look for the header file in a standard set of common directories.
|
|
5635 # Check X11 before X11Rn because it is often a symlink to the current release.
|
0
|
5636 for ac_dir in \
|
149
|
5637 /usr/X11/include \
|
0
|
5638 /usr/X11R6/include \
|
|
5639 /usr/X11R5/include \
|
|
5640 /usr/X11R4/include \
|
|
5641 \
|
149
|
5642 /usr/include/X11 \
|
0
|
5643 /usr/include/X11R6 \
|
|
5644 /usr/include/X11R5 \
|
|
5645 /usr/include/X11R4 \
|
|
5646 \
|
149
|
5647 /usr/local/X11/include \
|
0
|
5648 /usr/local/X11R6/include \
|
|
5649 /usr/local/X11R5/include \
|
|
5650 /usr/local/X11R4/include \
|
|
5651 \
|
149
|
5652 /usr/local/include/X11 \
|
0
|
5653 /usr/local/include/X11R6 \
|
|
5654 /usr/local/include/X11R5 \
|
|
5655 /usr/local/include/X11R4 \
|
|
5656 \
|
|
5657 /usr/X386/include \
|
|
5658 /usr/x386/include \
|
|
5659 /usr/XFree86/include/X11 \
|
|
5660 \
|
|
5661 /usr/include \
|
|
5662 /usr/local/include \
|
|
5663 /usr/unsupported/include \
|
|
5664 /usr/athena/include \
|
|
5665 /usr/local/x11r5/include \
|
|
5666 /usr/lpp/Xamples/include \
|
|
5667 \
|
|
5668 /usr/openwin/include \
|
|
5669 /usr/openwin/share/include \
|
|
5670 ; \
|
|
5671 do
|
|
5672 if test -r "$ac_dir/$x_direct_test_include"; then
|
149
|
5673 ac_x_includes=$ac_dir
|
0
|
5674 break
|
|
5675 fi
|
|
5676 done
|
|
5677 fi
|
|
5678 rm -f conftest*
|
149
|
5679 fi # $ac_x_includes = NO
|
|
5680
|
|
5681 if test "$ac_x_libraries" = NO; then
|
|
5682 # Check for the libraries.
|
|
5683
|
|
5684 test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
|
5685 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
|
5686
|
|
5687 # See if we find them without any special options.
|
|
5688 # Don't add to $LIBS permanently.
|
|
5689 ac_save_LIBS="$LIBS"
|
|
5690 LIBS="-l$x_direct_test_library $LIBS"
|
|
5691 cat > conftest.$ac_ext <<EOF
|
853
|
5692 #line 5693 "configure"
|
149
|
5693 #include "confdefs.h"
|
|
5694
|
|
5695 int main() {
|
|
5696 ${x_direct_test_function}()
|
|
5697 ; return 0; }
|
|
5698 EOF
|
853
|
5699 if { (eval echo configure:5700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5700 rm -rf conftest*
|
|
5701 LIBS="$ac_save_LIBS"
|
|
5702 # We can link X programs with no special library path.
|
|
5703 ac_x_libraries=
|
|
5704 else
|
|
5705 echo "configure: failed program was:" >&5
|
|
5706 cat conftest.$ac_ext >&5
|
|
5707 rm -rf conftest*
|
|
5708 LIBS="$ac_save_LIBS"
|
|
5709 # First see if replacing the include by lib works.
|
|
5710 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
5711 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
|
5712 /usr/X11/lib \
|
0
|
5713 /usr/X11R6/lib \
|
|
5714 /usr/X11R5/lib \
|
|
5715 /usr/X11R4/lib \
|
|
5716 \
|
149
|
5717 /usr/lib/X11 \
|
0
|
5718 /usr/lib/X11R6 \
|
|
5719 /usr/lib/X11R5 \
|
|
5720 /usr/lib/X11R4 \
|
|
5721 \
|
149
|
5722 /usr/local/X11/lib \
|
0
|
5723 /usr/local/X11R6/lib \
|
|
5724 /usr/local/X11R5/lib \
|
|
5725 /usr/local/X11R4/lib \
|
|
5726 \
|
149
|
5727 /usr/local/lib/X11 \
|
0
|
5728 /usr/local/lib/X11R6 \
|
|
5729 /usr/local/lib/X11R5 \
|
|
5730 /usr/local/lib/X11R4 \
|
|
5731 \
|
|
5732 /usr/X386/lib \
|
|
5733 /usr/x386/lib \
|
|
5734 /usr/XFree86/lib/X11 \
|
|
5735 \
|
|
5736 /usr/lib \
|
|
5737 /usr/local/lib \
|
|
5738 /usr/unsupported/lib \
|
|
5739 /usr/athena/lib \
|
|
5740 /usr/local/x11r5/lib \
|
|
5741 /usr/lpp/Xamples/lib \
|
149
|
5742 /lib/usr/lib/X11 \
|
0
|
5743 \
|
|
5744 /usr/openwin/lib \
|
|
5745 /usr/openwin/share/lib \
|
|
5746 ; \
|
|
5747 do
|
|
5748 for ac_extension in a so sl; do
|
|
5749 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
149
|
5750 ac_x_libraries=$ac_dir
|
0
|
5751 break 2
|
|
5752 fi
|
|
5753 done
|
|
5754 done
|
|
5755 fi
|
149
|
5756 rm -f conftest*
|
|
5757 fi # $ac_x_libraries = NO
|
|
5758
|
|
5759 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
|
5760 # Didn't find X anywhere. Cache the known absence of X.
|
|
5761 ac_cv_have_x="have_x=no"
|
|
5762 else
|
|
5763 # Record where we found X for the cache.
|
|
5764 ac_cv_have_x="have_x=yes \
|
|
5765 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
|
5766 fi
|
|
5767 fi
|
|
5768 eval "$ac_cv_have_x"
|
|
5769 fi # $with_x != no
|
|
5770
|
|
5771 if test "$have_x" != yes; then
|
|
5772 echo "$ac_t""$have_x" 1>&6
|
|
5773 no_x=yes
|
|
5774 else
|
|
5775 # If each of the values was on the command line, it overrides each guess.
|
|
5776 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
|
5777 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
|
5778 # Update the cache value to reflect the command line values.
|
|
5779 ac_cv_have_x="have_x=yes \
|
|
5780 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
|
5781 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
|
5782 fi
|
|
5783
|
|
5784 if test "$no_x" = yes; then
|
|
5785 # Not all programs may use this symbol, but it does not hurt to define it.
|
|
5786 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5787 Defining X_DISPLAY_MISSING
|
|
5788 EOF
|
|
5789 cat >> confdefs.h <<\EOF
|
|
5790 #define X_DISPLAY_MISSING 1
|
|
5791 EOF
|
|
5792 }
|
|
5793
|
|
5794 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
|
5795 else
|
|
5796 if test -n "$x_includes"; then
|
|
5797 X_CFLAGS="$X_CFLAGS -I$x_includes"
|
|
5798 fi
|
|
5799
|
|
5800 # It would also be nice to do this for all -L options, not just this one.
|
|
5801 if test -n "$x_libraries"; then
|
|
5802 X_LIBS="$X_LIBS -L$x_libraries"
|
|
5803 # For Solaris; some versions of Sun CC require a space after -R and
|
|
5804 # others require no space. Words are not sufficient . . . .
|
|
5805 case "`(uname -sr) 2>/dev/null`" in
|
|
5806 "SunOS 5"*)
|
|
5807 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
853
|
5808 echo "configure:5809: checking whether -R must be followed by a space" >&5
|
149
|
5809 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
|
5810 cat > conftest.$ac_ext <<EOF
|
853
|
5811 #line 5812 "configure"
|
|
5812 #include "confdefs.h"
|
|
5813
|
|
5814 int main() {
|
|
5815
|
|
5816 ; return 0; }
|
|
5817 EOF
|
|
5818 if { (eval echo configure:5819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5819 rm -rf conftest*
|
|
5820 ac_R_nospace=yes
|
|
5821 else
|
|
5822 echo "configure: failed program was:" >&5
|
|
5823 cat conftest.$ac_ext >&5
|
|
5824 rm -rf conftest*
|
|
5825 ac_R_nospace=no
|
|
5826 fi
|
|
5827 rm -f conftest*
|
|
5828 if test $ac_R_nospace = yes; then
|
|
5829 echo "$ac_t""no" 1>&6
|
|
5830 X_LIBS="$X_LIBS -R$x_libraries"
|
|
5831 else
|
|
5832 LIBS="$ac_xsave_LIBS -R $x_libraries"
|
|
5833 cat > conftest.$ac_ext <<EOF
|
853
|
5834 #line 5835 "configure"
|
|
5835 #include "confdefs.h"
|
|
5836
|
|
5837 int main() {
|
|
5838
|
|
5839 ; return 0; }
|
|
5840 EOF
|
|
5841 if { (eval echo configure:5842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5842 rm -rf conftest*
|
|
5843 ac_R_space=yes
|
|
5844 else
|
|
5845 echo "configure: failed program was:" >&5
|
|
5846 cat conftest.$ac_ext >&5
|
|
5847 rm -rf conftest*
|
|
5848 ac_R_space=no
|
|
5849 fi
|
|
5850 rm -f conftest*
|
|
5851 if test $ac_R_space = yes; then
|
|
5852 echo "$ac_t""yes" 1>&6
|
|
5853 X_LIBS="$X_LIBS -R $x_libraries"
|
|
5854 else
|
|
5855 echo "$ac_t""neither works" 1>&6
|
|
5856 fi
|
|
5857 fi
|
|
5858 LIBS="$ac_xsave_LIBS"
|
|
5859 esac
|
|
5860 fi
|
|
5861
|
|
5862 # Check for system-dependent libraries X programs must link with.
|
|
5863 # Do this before checking for the system-independent R6 libraries
|
|
5864 # (-lICE), since we may need -lsocket or whatever for X linking.
|
|
5865
|
|
5866 if test "$ISC" = yes; then
|
|
5867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
|
5868 else
|
|
5869 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
|
5870 # libraries were built with DECnet support. And karl@cs.umb.edu says
|
|
5871 # the Alpha needs dnet_stub (dnet does not exist).
|
151
|
5872 if test "$with_dnet" = "no" ; then
|
149
|
5873 ac_cv_lib_dnet_dnet_ntoa=no
|
|
5874 else
|
|
5875
|
|
5876 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
853
|
5877 echo "configure:5878: checking for dnet_ntoa in -ldnet" >&5
|
149
|
5878 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
5879
|
|
5880 xe_check_libs=" -ldnet "
|
|
5881 cat > conftest.$ac_ext <<EOF
|
853
|
5882 #line 5883 "configure"
|
149
|
5883 #include "confdefs.h"
|
|
5884 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5885 /* We use char because int might match the return type of a gcc2
|
|
5886 builtin and then its argument prototype would still apply. */
|
|
5887 char dnet_ntoa();
|
|
5888
|
|
5889 int main() {
|
|
5890 dnet_ntoa()
|
|
5891 ; return 0; }
|
|
5892 EOF
|
853
|
5893 if { (eval echo configure:5894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5894 rm -rf conftest*
|
|
5895 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5896 else
|
|
5897 echo "configure: failed program was:" >&5
|
|
5898 cat conftest.$ac_ext >&5
|
|
5899 rm -rf conftest*
|
|
5900 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5901 fi
|
|
5902 rm -f conftest*
|
|
5903 xe_check_libs=""
|
|
5904
|
151
|
5905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
5906 echo "$ac_t""yes" 1>&6
|
|
5907 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
|
5908 else
|
|
5909 echo "$ac_t""no" 1>&6
|
|
5910 fi
|
|
5911
|
|
5912 fi
|
|
5913
|
|
5914 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
|
5915
|
|
5916 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
853
|
5917 echo "configure:5918: checking for dnet_ntoa in -ldnet_stub" >&5
|
149
|
5918 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
5919
|
|
5920 xe_check_libs=" -ldnet_stub "
|
|
5921 cat > conftest.$ac_ext <<EOF
|
853
|
5922 #line 5923 "configure"
|
149
|
5923 #include "confdefs.h"
|
|
5924 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5925 /* We use char because int might match the return type of a gcc2
|
|
5926 builtin and then its argument prototype would still apply. */
|
|
5927 char dnet_ntoa();
|
|
5928
|
|
5929 int main() {
|
|
5930 dnet_ntoa()
|
|
5931 ; return 0; }
|
|
5932 EOF
|
853
|
5933 if { (eval echo configure:5934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5934 rm -rf conftest*
|
|
5935 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5936 else
|
|
5937 echo "configure: failed program was:" >&5
|
|
5938 cat conftest.$ac_ext >&5
|
|
5939 rm -rf conftest*
|
|
5940 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5941 fi
|
|
5942 rm -f conftest*
|
|
5943 xe_check_libs=""
|
|
5944
|
151
|
5945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
5946 echo "$ac_t""yes" 1>&6
|
|
5947 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
|
5948 else
|
|
5949 echo "$ac_t""no" 1>&6
|
|
5950 fi
|
|
5951
|
|
5952
|
|
5953 fi
|
|
5954
|
|
5955 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
|
5956 # to get the SysV transport functions.
|
|
5957 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
|
5958 # needs -lnsl.
|
|
5959 # The nsl library prevents programs from opening the X display
|
|
5960 # on Irix 5.2, according to dickey@clark.net.
|
|
5961 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
853
|
5962 echo "configure:5963: checking for gethostbyname" >&5
|
|
5963
|
|
5964 cat > conftest.$ac_ext <<EOF
|
|
5965 #line 5966 "configure"
|
149
|
5966 #include "confdefs.h"
|
|
5967 /* System header to define __stub macros and hopefully few prototypes,
|
|
5968 which can conflict with char gethostbyname(); below. */
|
|
5969 #include <assert.h>
|
|
5970 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5971 /* We use char because int might match the return type of a gcc2
|
|
5972 builtin and then its argument prototype would still apply. */
|
|
5973 char gethostbyname();
|
|
5974
|
|
5975 int main() {
|
|
5976
|
|
5977 /* The GNU C library defines this for functions which it implements
|
|
5978 to always fail with ENOSYS. Some functions are actually named
|
|
5979 something starting with __ and the normal name is an alias. */
|
|
5980 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
|
5981 choke me
|
|
5982 #else
|
|
5983 gethostbyname();
|
|
5984 #endif
|
|
5985
|
|
5986 ; return 0; }
|
|
5987 EOF
|
853
|
5988 if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5989 rm -rf conftest*
|
|
5990 eval "ac_cv_func_gethostbyname=yes"
|
|
5991 else
|
|
5992 echo "configure: failed program was:" >&5
|
|
5993 cat conftest.$ac_ext >&5
|
|
5994 rm -rf conftest*
|
|
5995 eval "ac_cv_func_gethostbyname=no"
|
|
5996 fi
|
|
5997 rm -f conftest*
|
|
5998
|
|
5999 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
|
6000 echo "$ac_t""yes" 1>&6
|
|
6001 :
|
|
6002 else
|
|
6003 echo "$ac_t""no" 1>&6
|
|
6004 fi
|
|
6005
|
|
6006 if test $ac_cv_func_gethostbyname = no; then
|
|
6007
|
|
6008 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
853
|
6009 echo "configure:6010: checking for gethostbyname in -lnsl" >&5
|
149
|
6010 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|
6011
|
|
6012 xe_check_libs=" -lnsl "
|
|
6013 cat > conftest.$ac_ext <<EOF
|
853
|
6014 #line 6015 "configure"
|
149
|
6015 #include "confdefs.h"
|
|
6016 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6017 /* We use char because int might match the return type of a gcc2
|
|
6018 builtin and then its argument prototype would still apply. */
|
|
6019 char gethostbyname();
|
|
6020
|
|
6021 int main() {
|
|
6022 gethostbyname()
|
|
6023 ; return 0; }
|
|
6024 EOF
|
853
|
6025 if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6026 rm -rf conftest*
|
|
6027 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6028 else
|
|
6029 echo "configure: failed program was:" >&5
|
|
6030 cat conftest.$ac_ext >&5
|
|
6031 rm -rf conftest*
|
|
6032 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6033 fi
|
|
6034 rm -f conftest*
|
|
6035 xe_check_libs=""
|
|
6036
|
151
|
6037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6038 echo "$ac_t""yes" 1>&6
|
|
6039 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
|
6040 else
|
|
6041 echo "$ac_t""no" 1>&6
|
|
6042 fi
|
|
6043
|
|
6044
|
|
6045 fi
|
|
6046
|
|
6047 # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
|
6048 # socket/setsockopt and other routines are undefined under SCO ODT
|
|
6049 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
|
6050 # on later versions), says simon@lia.di.epfl.ch: it contains
|
|
6051 # gethostby* variants that don't use the nameserver (or something).
|
|
6052 # -lsocket must be given before -lnsl if both are needed.
|
|
6053 # We assume that if connect needs -lnsl, so does gethostbyname.
|
|
6054 echo $ac_n "checking for connect""... $ac_c" 1>&6
|
853
|
6055 echo "configure:6056: checking for connect" >&5
|
|
6056
|
|
6057 cat > conftest.$ac_ext <<EOF
|
|
6058 #line 6059 "configure"
|
149
|
6059 #include "confdefs.h"
|
|
6060 /* System header to define __stub macros and hopefully few prototypes,
|
|
6061 which can conflict with char connect(); below. */
|
|
6062 #include <assert.h>
|
|
6063 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6064 /* We use char because int might match the return type of a gcc2
|
|
6065 builtin and then its argument prototype would still apply. */
|
|
6066 char connect();
|
|
6067
|
|
6068 int main() {
|
|
6069
|
|
6070 /* The GNU C library defines this for functions which it implements
|
|
6071 to always fail with ENOSYS. Some functions are actually named
|
|
6072 something starting with __ and the normal name is an alias. */
|
|
6073 #if defined (__stub_connect) || defined (__stub___connect)
|
|
6074 choke me
|
|
6075 #else
|
|
6076 connect();
|
|
6077 #endif
|
|
6078
|
|
6079 ; return 0; }
|
|
6080 EOF
|
853
|
6081 if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6082 rm -rf conftest*
|
|
6083 eval "ac_cv_func_connect=yes"
|
|
6084 else
|
|
6085 echo "configure: failed program was:" >&5
|
|
6086 cat conftest.$ac_ext >&5
|
|
6087 rm -rf conftest*
|
|
6088 eval "ac_cv_func_connect=no"
|
|
6089 fi
|
|
6090 rm -f conftest*
|
|
6091
|
|
6092 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
|
6093 echo "$ac_t""yes" 1>&6
|
|
6094 :
|
|
6095 else
|
|
6096 echo "$ac_t""no" 1>&6
|
|
6097 fi
|
|
6098
|
|
6099 if test $ac_cv_func_connect = no; then
|
|
6100
|
|
6101 xe_msg_checking="for connect in -lsocket"
|
|
6102 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
6103 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
853
|
6104 echo "configure:6105: checking "$xe_msg_checking"" >&5
|
149
|
6105 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
|
6106
|
|
6107 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
|
|
6108 cat > conftest.$ac_ext <<EOF
|
853
|
6109 #line 6110 "configure"
|
149
|
6110 #include "confdefs.h"
|
|
6111 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6112 /* We use char because int might match the return type of a gcc2
|
|
6113 builtin and then its argument prototype would still apply. */
|
|
6114 char connect();
|
|
6115
|
|
6116 int main() {
|
|
6117 connect()
|
|
6118 ; return 0; }
|
|
6119 EOF
|
853
|
6120 if { (eval echo configure:6121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6121 rm -rf conftest*
|
|
6122 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6123 else
|
|
6124 echo "configure: failed program was:" >&5
|
|
6125 cat conftest.$ac_ext >&5
|
|
6126 rm -rf conftest*
|
|
6127 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6128 fi
|
|
6129 rm -f conftest*
|
|
6130 xe_check_libs=""
|
|
6131
|
151
|
6132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6133 echo "$ac_t""yes" 1>&6
|
|
6134 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
|
6135 else
|
|
6136 echo "$ac_t""no" 1>&6
|
|
6137 fi
|
|
6138
|
|
6139
|
|
6140 fi
|
|
6141
|
|
6142 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
|
6143 echo $ac_n "checking for remove""... $ac_c" 1>&6
|
853
|
6144 echo "configure:6145: checking for remove" >&5
|
|
6145
|
|
6146 cat > conftest.$ac_ext <<EOF
|
|
6147 #line 6148 "configure"
|
149
|
6148 #include "confdefs.h"
|
|
6149 /* System header to define __stub macros and hopefully few prototypes,
|
|
6150 which can conflict with char remove(); below. */
|
|
6151 #include <assert.h>
|
|
6152 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6153 /* We use char because int might match the return type of a gcc2
|
|
6154 builtin and then its argument prototype would still apply. */
|
|
6155 char remove();
|
|
6156
|
|
6157 int main() {
|
|
6158
|
|
6159 /* The GNU C library defines this for functions which it implements
|
|
6160 to always fail with ENOSYS. Some functions are actually named
|
|
6161 something starting with __ and the normal name is an alias. */
|
|
6162 #if defined (__stub_remove) || defined (__stub___remove)
|
|
6163 choke me
|
|
6164 #else
|
|
6165 remove();
|
|
6166 #endif
|
|
6167
|
|
6168 ; return 0; }
|
|
6169 EOF
|
853
|
6170 if { (eval echo configure:6171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6171 rm -rf conftest*
|
|
6172 eval "ac_cv_func_remove=yes"
|
|
6173 else
|
|
6174 echo "configure: failed program was:" >&5
|
|
6175 cat conftest.$ac_ext >&5
|
|
6176 rm -rf conftest*
|
|
6177 eval "ac_cv_func_remove=no"
|
|
6178 fi
|
|
6179 rm -f conftest*
|
|
6180
|
|
6181 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
|
6182 echo "$ac_t""yes" 1>&6
|
|
6183 :
|
|
6184 else
|
|
6185 echo "$ac_t""no" 1>&6
|
|
6186 fi
|
|
6187
|
|
6188 if test $ac_cv_func_remove = no; then
|
|
6189
|
|
6190 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
853
|
6191 echo "configure:6192: checking for remove in -lposix" >&5
|
149
|
6192 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
|
6193
|
|
6194 xe_check_libs=" -lposix "
|
|
6195 cat > conftest.$ac_ext <<EOF
|
853
|
6196 #line 6197 "configure"
|
149
|
6197 #include "confdefs.h"
|
|
6198 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6199 /* We use char because int might match the return type of a gcc2
|
|
6200 builtin and then its argument prototype would still apply. */
|
|
6201 char remove();
|
|
6202
|
|
6203 int main() {
|
|
6204 remove()
|
|
6205 ; return 0; }
|
|
6206 EOF
|
853
|
6207 if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6208 rm -rf conftest*
|
|
6209 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6210 else
|
|
6211 echo "configure: failed program was:" >&5
|
|
6212 cat conftest.$ac_ext >&5
|
|
6213 rm -rf conftest*
|
|
6214 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6215 fi
|
|
6216 rm -f conftest*
|
|
6217 xe_check_libs=""
|
|
6218
|
151
|
6219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6220 echo "$ac_t""yes" 1>&6
|
|
6221 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
|
6222 else
|
|
6223 echo "$ac_t""no" 1>&6
|
|
6224 fi
|
|
6225
|
|
6226
|
|
6227 fi
|
|
6228
|
|
6229 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
|
6230 echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
853
|
6231 echo "configure:6232: checking for shmat" >&5
|
|
6232
|
|
6233 cat > conftest.$ac_ext <<EOF
|
|
6234 #line 6235 "configure"
|
149
|
6235 #include "confdefs.h"
|
|
6236 /* System header to define __stub macros and hopefully few prototypes,
|
|
6237 which can conflict with char shmat(); below. */
|
|
6238 #include <assert.h>
|
|
6239 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6240 /* We use char because int might match the return type of a gcc2
|
|
6241 builtin and then its argument prototype would still apply. */
|
|
6242 char shmat();
|
|
6243
|
|
6244 int main() {
|
|
6245
|
|
6246 /* The GNU C library defines this for functions which it implements
|
|
6247 to always fail with ENOSYS. Some functions are actually named
|
|
6248 something starting with __ and the normal name is an alias. */
|
|
6249 #if defined (__stub_shmat) || defined (__stub___shmat)
|
|
6250 choke me
|
|
6251 #else
|
|
6252 shmat();
|
|
6253 #endif
|
|
6254
|
|
6255 ; return 0; }
|
|
6256 EOF
|
853
|
6257 if { (eval echo configure:6258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6258 rm -rf conftest*
|
|
6259 eval "ac_cv_func_shmat=yes"
|
|
6260 else
|
|
6261 echo "configure: failed program was:" >&5
|
|
6262 cat conftest.$ac_ext >&5
|
|
6263 rm -rf conftest*
|
|
6264 eval "ac_cv_func_shmat=no"
|
|
6265 fi
|
|
6266 rm -f conftest*
|
|
6267
|
|
6268 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
|
6269 echo "$ac_t""yes" 1>&6
|
|
6270 :
|
|
6271 else
|
|
6272 echo "$ac_t""no" 1>&6
|
|
6273 fi
|
|
6274
|
|
6275 if test $ac_cv_func_shmat = no; then
|
|
6276
|
|
6277 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
853
|
6278 echo "configure:6279: checking for shmat in -lipc" >&5
|
149
|
6279 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
|
6280
|
|
6281 xe_check_libs=" -lipc "
|
|
6282 cat > conftest.$ac_ext <<EOF
|
853
|
6283 #line 6284 "configure"
|
149
|
6284 #include "confdefs.h"
|
|
6285 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6286 /* We use char because int might match the return type of a gcc2
|
|
6287 builtin and then its argument prototype would still apply. */
|
|
6288 char shmat();
|
|
6289
|
|
6290 int main() {
|
|
6291 shmat()
|
|
6292 ; return 0; }
|
|
6293 EOF
|
853
|
6294 if { (eval echo configure:6295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6295 rm -rf conftest*
|
|
6296 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6297 else
|
|
6298 echo "configure: failed program was:" >&5
|
|
6299 cat conftest.$ac_ext >&5
|
|
6300 rm -rf conftest*
|
|
6301 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6302 fi
|
|
6303 rm -f conftest*
|
|
6304 xe_check_libs=""
|
|
6305
|
151
|
6306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6307 echo "$ac_t""yes" 1>&6
|
|
6308 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
|
6309 else
|
|
6310 echo "$ac_t""no" 1>&6
|
|
6311 fi
|
|
6312
|
0
|
6313
|
|
6314 fi
|
149
|
6315 fi
|
|
6316
|
|
6317 # Check for libraries that X11R6 Xt/Xaw programs need.
|
|
6318 ac_save_LDFLAGS="$LDFLAGS"
|
|
6319 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
|
6320 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
|
6321 # check for ICE first), but we must link in the order -lSM -lICE or
|
|
6322 # we get undefined symbols. So assume we have SM if we have ICE.
|
|
6323 # These have to be linked with before -lX11, unlike the other
|
|
6324 # libraries we check for below, so use a different variable.
|
|
6325 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
|
6326
|
420
|
6327 xe_msg_checking="for IceConnectionNumber in -lICE"
|
|
6328 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
6329 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
853
|
6330 echo "configure:6331: checking "$xe_msg_checking"" >&5
|
149
|
6331 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
|
6332
|
420
|
6333 xe_check_libs=" -lICE $X_EXTRA_LIBS"
|
|
6334 cat > conftest.$ac_ext <<EOF
|
853
|
6335 #line 6336 "configure"
|
149
|
6336 #include "confdefs.h"
|
|
6337 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6338 /* We use char because int might match the return type of a gcc2
|
|
6339 builtin and then its argument prototype would still apply. */
|
|
6340 char IceConnectionNumber();
|
|
6341
|
|
6342 int main() {
|
|
6343 IceConnectionNumber()
|
|
6344 ; return 0; }
|
|
6345 EOF
|
853
|
6346 if { (eval echo configure:6347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6347 rm -rf conftest*
|
|
6348 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6349 else
|
|
6350 echo "configure: failed program was:" >&5
|
|
6351 cat conftest.$ac_ext >&5
|
|
6352 rm -rf conftest*
|
|
6353 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6354 fi
|
|
6355 rm -f conftest*
|
|
6356 xe_check_libs=""
|
|
6357
|
151
|
6358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6359 echo "$ac_t""yes" 1>&6
|
|
6360 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
|
6361 else
|
|
6362 echo "$ac_t""no" 1>&6
|
|
6363 fi
|
|
6364
|
|
6365
|
|
6366 LDFLAGS="$ac_save_LDFLAGS"
|
|
6367
|
|
6368 fi
|
|
6369 # Autoconf claims to find X library and include dirs for us.
|
|
6370 if test "$no_x" = "yes"
|
|
6371 then with_x11=no window_system=none HAVE_X_WINDOWS=no
|
|
6372 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
|
|
6373 fi
|
|
6374 fi
|
|
6375
|
0
|
6376
|
149
|
6377 if test "$with_x11" = "yes"; then
|
|
6378 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6379 Defining HAVE_X_WINDOWS
|
|
6380 EOF
|
|
6381 cat >> confdefs.h <<\EOF
|
|
6382 #define HAVE_X_WINDOWS 1
|
|
6383 EOF
|
|
6384 }
|
|
6385
|
151
|
6386 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
|
175
|
6387 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
|
149
|
6388
|
278
|
6389 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
|
159
|
6390 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
|
149
|
6391 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
151
|
6392 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
6393 x_libraries="$lib_dir $x_libraries"
|
|
6394 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
|
149
|
6395 esac
|
151
|
6396 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
6397 x_includes="$inc_dir $x_includes"
|
|
6398 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
|
149
|
6399 esac
|
|
6400 break; fi
|
|
6401 done
|
|
6402
|
|
6403 for rel in "X11R6" "X11R5" "X11R4"; do
|
|
6404 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
|
|
6405 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
151
|
6406 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
6407 x_libraries="$x_libraries $lib_dir"
|
|
6408 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
|
149
|
6409 esac
|
151
|
6410 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
6411 x_includes="$x_includes $inc_dir"
|
|
6412 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
|
149
|
6413 esac
|
|
6414 break; fi
|
|
6415 done
|
|
6416
|
442
|
6417 case "$opsys" in
|
|
6418 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi ;;
|
|
6419 esac
|
373
|
6420
|
149
|
6421 ld_switch_x_site="$X_LIBS"
|
|
6422
|
151
|
6423
|
|
6424 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
6425 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
6426 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
6427
|
163
|
6428 runpath="" runpath_dirs=""
|
155
|
6429 if test -n "$LD_RUN_PATH"; then
|
151
|
6430 runpath="$LD_RUN_PATH"
|
155
|
6431 elif test "$GCC" = "yes"; then
|
163
|
6432 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
6433 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
6434 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
6435 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
6436 case "$arg" in P,* | -L* | -R* )
|
159
|
6437 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
6438 {
|
155
|
6439 xe_runpath_dir="$dir"
|
163
|
6440 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
6441 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
6442 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
6443 eval "$xe_add_unique_runpath_dir"
|
|
6444 }
|
155
|
6445 done ;;
|
|
6446 esac
|
|
6447 done
|
163
|
6448 ld_switch_run="$ld_switch_run_save"
|
155
|
6449 rm -f conftest*
|
151
|
6450 else
|
155
|
6451 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
6452 case "$arg" in -L*) {
|
159
|
6453 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
6454 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
6455 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
6456 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
6457 eval "$xe_add_unique_runpath_dir"
|
|
6458 };; esac
|
151
|
6459 done
|
163
|
6460 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
6461 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
6462 eval "$xe_add_unique_runpath_dir";
|
|
6463 fi
|
155
|
6464 fi
|
151
|
6465 if test -n "$runpath"; then
|
|
6466 ld_switch_run="${dash_r}${runpath}"
|
272
|
6467
|
|
6468 if test "$GCC" = "yes"; then
|
|
6469 set x $ld_switch_run; shift; ld_switch_run=""
|
|
6470 while test -n "$1"; do
|
|
6471 case $1 in
|
380
|
6472 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
6473 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
6474 -Xlinker* ) ;;
|
|
6475 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
6476 esac
|
|
6477 shift
|
|
6478 done
|
|
6479 fi
|
151
|
6480 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
6481 fi
|
|
6482 fi
|
|
6483
|
|
6484
|
149
|
6485 if test "$extra_verbose" = "yes"; then
|
|
6486 echo; echo "X11 compilation variables:"
|
163
|
6487 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
|
149
|
6488 echo
|
|
6489 fi
|
|
6490
|
265
|
6491 bitmapdirs=
|
|
6492 if test "$x_includes" != NONE; then
|
|
6493 for i in $x_includes; do
|
|
6494 if test -d "$i/bitmaps"; then
|
|
6495 bitmapdirs="$i/bitmaps:$bitmapdirs"
|
|
6496 fi
|
|
6497 if test -d "$i/X11/bitmaps"; then
|
|
6498 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
|
|
6499 fi
|
|
6500 done
|
|
6501 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
|
|
6502 fi
|
|
6503 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
|
|
6504 Defining BITMAPDIR = "$bitmapdirs"
|
|
6505 EOF
|
|
6506 cat >> confdefs.h <<EOF
|
|
6507 #define BITMAPDIR "$bitmapdirs"
|
|
6508 EOF
|
|
6509 }
|
|
6510
|
|
6511
|
163
|
6512 echo "checking for X defines extracted by xmkmf" 1>&6
|
853
|
6513 echo "configure:6514: checking for X defines extracted by xmkmf" >&5
|
163
|
6514 rm -fr conftestdir
|
|
6515 if mkdir conftestdir; then
|
|
6516 cd conftestdir
|
|
6517 cat > Imakefile <<'EOF'
|
|
6518 xetest:
|
|
6519 @echo ${PROTO_DEFINES} ${STD_DEFINES}
|
|
6520 EOF
|
|
6521 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
6522 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
6523 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
|
|
6524 fi
|
|
6525 cd ..
|
|
6526 rm -fr conftestdir
|
|
6527 for word in $xmkmf_defines; do
|
535
|
6528 case "$word" in
|
473
|
6529 -D__STDC__*) ;;
|
|
6530 -D* )
|
442
|
6531 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
|
|
6532 case "$word" in
|
|
6533 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
|
|
6534 * ) val=1 ;;
|
|
6535 esac
|
|
6536 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
|
|
6537 if test "$val" = "1"
|
|
6538 then { test "$extra_verbose" = "yes" && cat << EOF
|
|
6539 Defining $sym
|
|
6540 EOF
|
|
6541 cat >> confdefs.h <<EOF
|
|
6542 #define $sym 1
|
|
6543 EOF
|
|
6544 }
|
|
6545
|
|
6546 else { test "$extra_verbose" = "yes" && cat << EOF
|
|
6547 Defining $sym = $val
|
|
6548 EOF
|
|
6549 cat >> confdefs.h <<EOF
|
|
6550 #define $sym $val
|
|
6551 EOF
|
|
6552 }
|
|
6553
|
|
6554 fi
|
|
6555 fi ;;
|
163
|
6556 esac
|
|
6557 done
|
|
6558 fi
|
|
6559
|
149
|
6560 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
|
|
6561 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
|
853
|
6562 echo "configure:6563: checking for X11/Intrinsic.h" >&5
|
|
6563
|
|
6564 cat > conftest.$ac_ext <<EOF
|
|
6565 #line 6566 "configure"
|
149
|
6566 #include "confdefs.h"
|
|
6567 #include <X11/Intrinsic.h>
|
|
6568 EOF
|
|
6569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
6570 { (eval echo configure:6571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
6571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
6572 if test -z "$ac_err"; then
|
|
6573 rm -rf conftest*
|
|
6574 eval "ac_cv_header_$ac_safe=yes"
|
|
6575 else
|
|
6576 echo "$ac_err" >&5
|
|
6577 echo "configure: failed program was:" >&5
|
|
6578 cat conftest.$ac_ext >&5
|
|
6579 rm -rf conftest*
|
|
6580 eval "ac_cv_header_$ac_safe=no"
|
|
6581 fi
|
|
6582 rm -f conftest*
|
|
6583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6584 echo "$ac_t""yes" 1>&6
|
|
6585 :
|
|
6586 else
|
|
6587 echo "$ac_t""no" 1>&6
|
561
|
6588 { echo "configure: error: Unable to find X11 header files." 1>&2; exit 1; }
|
149
|
6589 fi
|
|
6590
|
|
6591
|
|
6592
|
|
6593 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
|
853
|
6594 echo "configure:6595: checking for XOpenDisplay in -lX11" >&5
|
149
|
6595 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
|
|
6596
|
|
6597 xe_check_libs=" -lX11 "
|
|
6598 cat > conftest.$ac_ext <<EOF
|
853
|
6599 #line 6600 "configure"
|
149
|
6600 #include "confdefs.h"
|
|
6601 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6602 /* We use char because int might match the return type of a gcc2
|
|
6603 builtin and then its argument prototype would still apply. */
|
|
6604 char XOpenDisplay();
|
|
6605
|
|
6606 int main() {
|
|
6607 XOpenDisplay()
|
|
6608 ; return 0; }
|
|
6609 EOF
|
853
|
6610 if { (eval echo configure:6611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6611 rm -rf conftest*
|
|
6612 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6613 else
|
|
6614 echo "configure: failed program was:" >&5
|
|
6615 cat conftest.$ac_ext >&5
|
|
6616 rm -rf conftest*
|
|
6617 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6618 fi
|
|
6619 rm -f conftest*
|
|
6620 xe_check_libs=""
|
|
6621
|
151
|
6622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6623 echo "$ac_t""yes" 1>&6
|
|
6624 have_lib_x11=yes
|
|
6625 else
|
|
6626 echo "$ac_t""no" 1>&6
|
|
6627 fi
|
|
6628
|
|
6629
|
|
6630 if test "$have_lib_x11" != "yes"; then
|
|
6631
|
|
6632 xe_msg_checking="for XGetFontProperty in -lX11"
|
|
6633 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
|
|
6634 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
853
|
6635 echo "configure:6636: checking "$xe_msg_checking"" >&5
|
149
|
6636 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
|
|
6637
|
|
6638 xe_check_libs=" -lX11 -b i486-linuxaout"
|
|
6639 cat > conftest.$ac_ext <<EOF
|
853
|
6640 #line 6641 "configure"
|
149
|
6641 #include "confdefs.h"
|
|
6642 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6643 /* We use char because int might match the return type of a gcc2
|
|
6644 builtin and then its argument prototype would still apply. */
|
|
6645 char XGetFontProperty();
|
|
6646
|
|
6647 int main() {
|
|
6648 XGetFontProperty()
|
|
6649 ; return 0; }
|
|
6650 EOF
|
853
|
6651 if { (eval echo configure:6652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6652 rm -rf conftest*
|
|
6653 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6654 else
|
|
6655 echo "configure: failed program was:" >&5
|
|
6656 cat conftest.$ac_ext >&5
|
|
6657 rm -rf conftest*
|
|
6658 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6659 fi
|
|
6660 rm -f conftest*
|
|
6661 xe_check_libs=""
|
|
6662
|
151
|
6663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6664 echo "$ac_t""yes" 1>&6
|
|
6665 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
|
|
6666 else
|
|
6667 echo "$ac_t""no" 1>&6
|
561
|
6668 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
|
149
|
6669 fi
|
|
6670
|
|
6671
|
0
|
6672 fi
|
149
|
6673 libs_x="-lX11"
|
151
|
6674 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
|
149
|
6675
|
153
|
6676
|
|
6677 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
|
853
|
6678 echo "configure:6679: checking for XShapeSelectInput in -lXext" >&5
|
153
|
6679 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
|
|
6680
|
|
6681 xe_check_libs=" -lXext "
|
|
6682 cat > conftest.$ac_ext <<EOF
|
853
|
6683 #line 6684 "configure"
|
153
|
6684 #include "confdefs.h"
|
|
6685 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6686 /* We use char because int might match the return type of a gcc2
|
|
6687 builtin and then its argument prototype would still apply. */
|
|
6688 char XShapeSelectInput();
|
|
6689
|
|
6690 int main() {
|
|
6691 XShapeSelectInput()
|
|
6692 ; return 0; }
|
|
6693 EOF
|
853
|
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
153
|
6695 rm -rf conftest*
|
|
6696 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6697 else
|
|
6698 echo "configure: failed program was:" >&5
|
|
6699 cat conftest.$ac_ext >&5
|
|
6700 rm -rf conftest*
|
|
6701 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6702 fi
|
|
6703 rm -f conftest*
|
|
6704 xe_check_libs=""
|
|
6705
|
|
6706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6707 echo "$ac_t""yes" 1>&6
|
|
6708 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
|
|
6709 else
|
|
6710 echo "$ac_t""no" 1>&6
|
|
6711 fi
|
|
6712
|
|
6713
|
|
6714
|
169
|
6715
|
149
|
6716 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
|
853
|
6717 echo "configure:6718: checking for XtOpenDisplay in -lXt" >&5
|
149
|
6718 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
|
|
6719
|
|
6720 xe_check_libs=" -lXt "
|
|
6721 cat > conftest.$ac_ext <<EOF
|
853
|
6722 #line 6723 "configure"
|
149
|
6723 #include "confdefs.h"
|
|
6724 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6725 /* We use char because int might match the return type of a gcc2
|
|
6726 builtin and then its argument prototype would still apply. */
|
|
6727 char XtOpenDisplay();
|
|
6728
|
|
6729 int main() {
|
|
6730 XtOpenDisplay()
|
|
6731 ; return 0; }
|
|
6732 EOF
|
853
|
6733 if { (eval echo configure:6734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6734 rm -rf conftest*
|
|
6735 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6736 else
|
|
6737 echo "configure: failed program was:" >&5
|
|
6738 cat conftest.$ac_ext >&5
|
|
6739 rm -rf conftest*
|
|
6740 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6741 fi
|
|
6742 rm -f conftest*
|
|
6743 xe_check_libs=""
|
|
6744
|
151
|
6745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6746 echo "$ac_t""yes" 1>&6
|
|
6747 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
|
149
|
6748 else
|
|
6749 echo "$ac_t""no" 1>&6
|
561
|
6750 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
|
149
|
6751 fi
|
|
6752
|
169
|
6753
|
149
|
6754
|
|
6755 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
|
853
|
6756 echo "configure:6757: checking the version of X11 being used" >&5
|
149
|
6757 cat > conftest.$ac_ext <<EOF
|
853
|
6758 #line 6759 "configure"
|
149
|
6759 #include "confdefs.h"
|
|
6760 #include <X11/Intrinsic.h>
|
272
|
6761 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
|
|
6762 EOF
|
853
|
6763 if { (eval echo configure:6764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
6764 then
|
151
|
6765 ./conftest foobar; x11_release=$?
|
149
|
6766 else
|
373
|
6767 conftest_rc="$?"
|
149
|
6768 echo "configure: failed program was:" >&5
|
|
6769 cat conftest.$ac_ext >&5
|
|
6770 rm -fr conftest*
|
151
|
6771 x11_release=4
|
149
|
6772 fi
|
|
6773 rm -fr conftest*
|
151
|
6774 echo "$ac_t""R${x11_release}" 1>&6
|
149
|
6775 { test "$extra_verbose" = "yes" && cat << EOF
|
151
|
6776 Defining THIS_IS_X11R${x11_release}
|
149
|
6777 EOF
|
|
6778 cat >> confdefs.h <<EOF
|
151
|
6779 #define THIS_IS_X11R${x11_release} 1
|
149
|
6780 EOF
|
|
6781 }
|
|
6782
|
|
6783
|
442
|
6784 if test "${x11_release}" = "4"; then
|
|
6785 case "$with_widgets" in
|
|
6786 "" | "no") with_widgets=no ;;
|
|
6787 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
|
|
6788 esac
|
|
6789 fi
|
|
6790
|
|
6791 for ac_func in XConvertCase
|
|
6792 do
|
|
6793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
6794 echo "configure:6795: checking for $ac_func" >&5
|
|
6795
|
|
6796 cat > conftest.$ac_ext <<EOF
|
|
6797 #line 6798 "configure"
|
442
|
6798 #include "confdefs.h"
|
|
6799 /* System header to define __stub macros and hopefully few prototypes,
|
|
6800 which can conflict with char $ac_func(); below. */
|
|
6801 #include <assert.h>
|
|
6802 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6803 /* We use char because int might match the return type of a gcc2
|
|
6804 builtin and then its argument prototype would still apply. */
|
|
6805 char $ac_func();
|
|
6806
|
|
6807 int main() {
|
|
6808
|
|
6809 /* The GNU C library defines this for functions which it implements
|
|
6810 to always fail with ENOSYS. Some functions are actually named
|
|
6811 something starting with __ and the normal name is an alias. */
|
|
6812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
6813 choke me
|
|
6814 #else
|
|
6815 $ac_func();
|
|
6816 #endif
|
|
6817
|
|
6818 ; return 0; }
|
|
6819 EOF
|
853
|
6820 if { (eval echo configure:6821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
6821 rm -rf conftest*
|
|
6822 eval "ac_cv_func_$ac_func=yes"
|
|
6823 else
|
|
6824 echo "configure: failed program was:" >&5
|
|
6825 cat conftest.$ac_ext >&5
|
|
6826 rm -rf conftest*
|
|
6827 eval "ac_cv_func_$ac_func=no"
|
|
6828 fi
|
|
6829 rm -f conftest*
|
|
6830
|
|
6831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
6832 echo "$ac_t""yes" 1>&6
|
|
6833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
6834 { test "$extra_verbose" = "yes" && cat << EOF
|
|
6835 Defining $ac_tr_func
|
|
6836 EOF
|
|
6837 cat >> confdefs.h <<EOF
|
|
6838 #define $ac_tr_func 1
|
|
6839 EOF
|
|
6840 }
|
|
6841
|
|
6842 else
|
|
6843 echo "$ac_t""no" 1>&6
|
|
6844 fi
|
|
6845 done
|
|
6846
|
|
6847
|
149
|
6848 for ac_hdr in X11/Xlocale.h
|
|
6849 do
|
|
6850 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
6851 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
853
|
6852 echo "configure:6853: checking for $ac_hdr" >&5
|
|
6853
|
|
6854 cat > conftest.$ac_ext <<EOF
|
|
6855 #line 6856 "configure"
|
149
|
6856 #include "confdefs.h"
|
|
6857 #include <$ac_hdr>
|
|
6858 EOF
|
|
6859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
6860 { (eval echo configure:6861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
6861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
6862 if test -z "$ac_err"; then
|
|
6863 rm -rf conftest*
|
|
6864 eval "ac_cv_header_$ac_safe=yes"
|
|
6865 else
|
|
6866 echo "$ac_err" >&5
|
|
6867 echo "configure: failed program was:" >&5
|
|
6868 cat conftest.$ac_ext >&5
|
|
6869 rm -rf conftest*
|
|
6870 eval "ac_cv_header_$ac_safe=no"
|
|
6871 fi
|
|
6872 rm -f conftest*
|
|
6873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6874 echo "$ac_t""yes" 1>&6
|
|
6875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
6876 { test "$extra_verbose" = "yes" && cat << EOF
|
|
6877 Defining $ac_tr_hdr
|
|
6878 EOF
|
|
6879 cat >> confdefs.h <<EOF
|
|
6880 #define $ac_tr_hdr 1
|
|
6881 EOF
|
|
6882 }
|
|
6883
|
|
6884 else
|
|
6885 echo "$ac_t""no" 1>&6
|
|
6886 fi
|
|
6887 done
|
|
6888
|
|
6889
|
444
|
6890 for ac_func in XRegisterIMInstantiateCallback
|
|
6891 do
|
|
6892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
6893 echo "configure:6894: checking for $ac_func" >&5
|
|
6894
|
|
6895 cat > conftest.$ac_ext <<EOF
|
|
6896 #line 6897 "configure"
|
444
|
6897 #include "confdefs.h"
|
|
6898 /* System header to define __stub macros and hopefully few prototypes,
|
|
6899 which can conflict with char $ac_func(); below. */
|
|
6900 #include <assert.h>
|
|
6901 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6902 /* We use char because int might match the return type of a gcc2
|
|
6903 builtin and then its argument prototype would still apply. */
|
|
6904 char $ac_func();
|
|
6905
|
|
6906 int main() {
|
|
6907
|
|
6908 /* The GNU C library defines this for functions which it implements
|
|
6909 to always fail with ENOSYS. Some functions are actually named
|
|
6910 something starting with __ and the normal name is an alias. */
|
|
6911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
6912 choke me
|
|
6913 #else
|
|
6914 $ac_func();
|
|
6915 #endif
|
|
6916
|
|
6917 ; return 0; }
|
|
6918 EOF
|
853
|
6919 if { (eval echo configure:6920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
444
|
6920 rm -rf conftest*
|
|
6921 eval "ac_cv_func_$ac_func=yes"
|
|
6922 else
|
|
6923 echo "configure: failed program was:" >&5
|
|
6924 cat conftest.$ac_ext >&5
|
|
6925 rm -rf conftest*
|
|
6926 eval "ac_cv_func_$ac_func=no"
|
|
6927 fi
|
|
6928 rm -f conftest*
|
|
6929
|
|
6930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
6931 echo "$ac_t""yes" 1>&6
|
|
6932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
6933 { test "$extra_verbose" = "yes" && cat << EOF
|
|
6934 Defining $ac_tr_func
|
|
6935 EOF
|
|
6936 cat >> confdefs.h <<EOF
|
|
6937 #define $ac_tr_func 1
|
|
6938 EOF
|
|
6939 }
|
|
6940
|
|
6941 else
|
|
6942 echo "$ac_t""no" 1>&6
|
|
6943 fi
|
|
6944 done
|
|
6945
|
|
6946 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
|
853
|
6947 echo "configure:6948: checking for standard XRegisterIMInstantiateCallback prototype" >&5
|
444
|
6948 cat > conftest.$ac_ext <<EOF
|
853
|
6949 #line 6950 "configure"
|
444
|
6950 #include "confdefs.h"
|
|
6951
|
|
6952 #define NeedFunctionPrototypes 1
|
|
6953 #include <X11/Xlib.h>
|
|
6954 extern Bool XRegisterIMInstantiateCallback(
|
|
6955 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
|
|
6956
|
|
6957 int main() {
|
|
6958
|
|
6959 ; return 0; }
|
|
6960 EOF
|
853
|
6961 if { (eval echo configure:6962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
444
|
6962 rm -rf conftest*
|
|
6963 echo "$ac_t""yes" 1>&6
|
|
6964 else
|
|
6965 echo "configure: failed program was:" >&5
|
|
6966 cat conftest.$ac_ext >&5
|
|
6967 rm -rf conftest*
|
|
6968 echo "$ac_t""no" 1>&6
|
|
6969 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6970 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
|
|
6971 EOF
|
|
6972 cat >> confdefs.h <<\EOF
|
|
6973 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
|
|
6974 EOF
|
|
6975 }
|
|
6976
|
|
6977 fi
|
|
6978 rm -f conftest*
|
149
|
6979
|
169
|
6980 test -z "$with_xmu" && {
|
|
6981 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
|
853
|
6982 echo "configure:6983: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
|
169
|
6983 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
|
149
|
6984
|
|
6985 xe_check_libs=" -lXmu "
|
|
6986 cat > conftest.$ac_ext <<EOF
|
853
|
6987 #line 6988 "configure"
|
149
|
6988 #include "confdefs.h"
|
|
6989 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6990 /* We use char because int might match the return type of a gcc2
|
|
6991 builtin and then its argument prototype would still apply. */
|
169
|
6992 char XmuReadBitmapDataFromFile();
|
149
|
6993
|
|
6994 int main() {
|
169
|
6995 XmuReadBitmapDataFromFile()
|
149
|
6996 ; return 0; }
|
|
6997 EOF
|
853
|
6998 if { (eval echo configure:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6999 rm -rf conftest*
|
|
7000 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7001 else
|
|
7002 echo "configure: failed program was:" >&5
|
|
7003 cat conftest.$ac_ext >&5
|
|
7004 rm -rf conftest*
|
|
7005 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7006 fi
|
|
7007 rm -f conftest*
|
|
7008 xe_check_libs=""
|
|
7009
|
151
|
7010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7011 echo "$ac_t""yes" 1>&6
|
|
7012 with_xmu=yes
|
|
7013 else
|
|
7014 echo "$ac_t""no" 1>&6
|
|
7015 with_xmu=no
|
|
7016 fi
|
|
7017
|
169
|
7018 }
|
185
|
7019 if test "$with_xmu" = "no"; then
|
|
7020 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
|
151
|
7021 echo " xemacs will be linked with \"xmu.o\""
|
|
7022 fi
|
187
|
7023 else
|
185
|
7024 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
|
|
7025 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7026 Defining HAVE_XMU
|
|
7027 EOF
|
|
7028 cat >> confdefs.h <<\EOF
|
|
7029 #define HAVE_XMU 1
|
|
7030 EOF
|
|
7031 }
|
|
7032
|
169
|
7033 fi
|
151
|
7034
|
|
7035
|
|
7036 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
|
853
|
7037 echo "configure:7038: checking for main in -lXbsd" >&5
|
151
|
7038 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
|
|
7039
|
|
7040 xe_check_libs=" -lXbsd "
|
|
7041 cat > conftest.$ac_ext <<EOF
|
853
|
7042 #line 7043 "configure"
|
151
|
7043 #include "confdefs.h"
|
149
|
7044
|
|
7045 int main() {
|
151
|
7046 main()
|
149
|
7047 ; return 0; }
|
|
7048 EOF
|
853
|
7049 if { (eval echo configure:7050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7050 rm -rf conftest*
|
|
7051 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7052 else
|
|
7053 echo "configure: failed program was:" >&5
|
|
7054 cat conftest.$ac_ext >&5
|
|
7055 rm -rf conftest*
|
|
7056 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7057 fi
|
|
7058 rm -f conftest*
|
|
7059 xe_check_libs=""
|
|
7060
|
151
|
7061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7062 echo "$ac_t""yes" 1>&6
|
|
7063 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
|
|
7064 else
|
|
7065 echo "$ac_t""no" 1>&6
|
|
7066 fi
|
|
7067
|
149
|
7068
|
|
7069
|
243
|
7070 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
|
274
|
7071 if test "$GCC" = "yes"; then
|
|
7072 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
|
|
7073 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
|
|
7074 else
|
|
7075 case "$CC" in
|
|
7076 "xlc" ) CC="xlc_r" ;;
|
|
7077 "xlC" ) CC="xlC_r" ;;
|
|
7078 "cc" ) CC="cc_r" ;;
|
|
7079 esac
|
|
7080 fi
|
243
|
7081 fi
|
|
7082
|
149
|
7083 fi
|
265
|
7084 if test "$with_msw" != "no"; then
|
|
7085 echo "checking for MS-Windows" 1>&6
|
853
|
7086 echo "configure:7087: checking for MS-Windows" >&5
|
265
|
7087
|
|
7088 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
|
853
|
7089 echo "configure:7090: checking for main in -lgdi32" >&5
|
265
|
7090 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
|
|
7091
|
|
7092 xe_check_libs=" -lgdi32 "
|
|
7093 cat > conftest.$ac_ext <<EOF
|
853
|
7094 #line 7095 "configure"
|
265
|
7095 #include "confdefs.h"
|
|
7096
|
|
7097 int main() {
|
|
7098 main()
|
|
7099 ; return 0; }
|
|
7100 EOF
|
853
|
7101 if { (eval echo configure:7102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
265
|
7102 rm -rf conftest*
|
|
7103 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7104 else
|
|
7105 echo "configure: failed program was:" >&5
|
|
7106 cat conftest.$ac_ext >&5
|
|
7107 rm -rf conftest*
|
|
7108 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7109 fi
|
|
7110 rm -f conftest*
|
|
7111 xe_check_libs=""
|
|
7112
|
|
7113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7114 echo "$ac_t""yes" 1>&6
|
|
7115 with_msw=yes
|
|
7116 else
|
|
7117 echo "$ac_t""no" 1>&6
|
|
7118 fi
|
|
7119
|
|
7120
|
|
7121 if test "$with_msw" = "yes"; then
|
|
7122 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7123 Defining HAVE_MS_WINDOWS
|
|
7124 EOF
|
|
7125 cat >> confdefs.h <<\EOF
|
|
7126 #define HAVE_MS_WINDOWS 1
|
|
7127 EOF
|
|
7128 }
|
|
7129
|
448
|
7130
|
462
|
7131 if test "$with_netinstall" = "yes"; then
|
|
7132 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
|
|
7133 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
|
|
7134 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
|
7135 fi
|
458
|
7136
|
276
|
7137 install_pp="$blddir/lib-src/installexe.sh"
|
771
|
7138 libs_system="$libs_system -limm32 -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lole32 -luuid -lwinspool -lmpr" && if test "$extra_verbose" = "yes"; then echo " Appending \"-limm32 -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lole32 -luuid -lwinspool -lmpr\" to \$libs_system"; fi
|
|
7139 if test "$with_dragndrop" != no; then
|
|
7140 dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
|
|
7141 with_dragndrop=yes
|
|
7142 fi
|
265
|
7143 if test "$window_system" != x11; then
|
771
|
7144 window_system=msw
|
|
7145 test "$with_scrollbars" != "no" && with_scrollbars=msw
|
|
7146 test "$with_menubars" != "no" && with_menubars=msw
|
|
7147 test "$with_toolbars" != "no" && with_toolbars=msw
|
|
7148 test "$with_dialogs" != "no" && with_dialogs=msw
|
|
7149 test "$with_widgets" != "no" && with_widgets=msw
|
265
|
7150 fi
|
278
|
7151 cat > conftest.$ac_ext <<EOF
|
853
|
7152 #line 7153 "configure"
|
278
|
7153 #include "confdefs.h"
|
|
7154 #include <fcntl.h>
|
|
7155 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
|
|
7156 EOF
|
853
|
7157 if { (eval echo configure:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
278
|
7158 then
|
771
|
7159 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
7160 Defining HAVE_MSG_SELECT
|
|
7161 EOF
|
|
7162 cat >> confdefs.h <<\EOF
|
|
7163 #define HAVE_MSG_SELECT 1
|
|
7164 EOF
|
|
7165 }
|
|
7166
|
|
7167 else
|
373
|
7168 conftest_rc="$?"
|
278
|
7169 echo "configure: failed program was:" >&5
|
|
7170 cat conftest.$ac_ext >&5
|
|
7171 fi
|
|
7172 rm -fr conftest*
|
771
|
7173 fi
|
|
7174 fi
|
|
7175
|
|
7176
|
|
7177
|
|
7178 test -z "$with_dragndrop" && with_dragndrop="$with_dragndrop_default"
|
149
|
7179 test -z "$window_system" && window_system="none"
|
|
7180
|
272
|
7181 if test "$window_system" = "none"; then
|
388
|
7182 for feature in menubars scrollbars toolbars dialogs dragndrop xface
|
272
|
7183 do
|
|
7184 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7185 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
|
|
7186 fi
|
|
7187 eval "with_${feature}=no"
|
|
7188 done
|
|
7189 else
|
|
7190 test -z "$with_toolbars" && with_toolbars=yes
|
|
7191 fi
|
|
7192
|
|
7193 if test "$with_msw" != "yes"; then
|
|
7194 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
|
|
7195 do
|
|
7196 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7197 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
|
|
7198 fi
|
|
7199 eval "with_${feature}=no"
|
|
7200 done
|
|
7201 else
|
|
7202 :
|
|
7203 fi
|
|
7204
|
|
7205 if test "$with_x11" != "yes"; then
|
434
|
7206 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
|
70
|
7207 do
|
149
|
7208 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7209 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
|
70
|
7210 fi
|
149
|
7211 eval "with_${feature}=no"
|
70
|
7212 done
|
149
|
7213 fi
|
|
7214
|
442
|
7215 if test "$with_x11" = "yes"; then
|
|
7216 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
|
|
7217 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
|
853
|
7218 echo "configure:7219: checking for X11/extensions/shape.h" >&5
|
|
7219
|
|
7220 cat > conftest.$ac_ext <<EOF
|
|
7221 #line 7222 "configure"
|
442
|
7222 #include "confdefs.h"
|
|
7223 #include <X11/extensions/shape.h>
|
|
7224 EOF
|
|
7225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
7226 { (eval echo configure:7227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
7227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7228 if test -z "$ac_err"; then
|
|
7229 rm -rf conftest*
|
|
7230 eval "ac_cv_header_$ac_safe=yes"
|
|
7231 else
|
|
7232 echo "$ac_err" >&5
|
|
7233 echo "configure: failed program was:" >&5
|
|
7234 cat conftest.$ac_ext >&5
|
|
7235 rm -rf conftest*
|
|
7236 eval "ac_cv_header_$ac_safe=no"
|
|
7237 fi
|
|
7238 rm -f conftest*
|
|
7239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7240 echo "$ac_t""yes" 1>&6
|
|
7241
|
|
7242 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7243 Defining HAVE_BALLOON_HELP
|
|
7244 EOF
|
|
7245 cat >> confdefs.h <<\EOF
|
|
7246 #define HAVE_BALLOON_HELP 1
|
|
7247 EOF
|
|
7248 }
|
|
7249
|
771
|
7250
|
442
|
7251 else
|
|
7252 echo "$ac_t""no" 1>&6
|
|
7253 fi
|
|
7254
|
|
7255 fi
|
|
7256
|
0
|
7257 bitmapdir=
|
|
7258
|
149
|
7259 case "$window_system" in
|
70
|
7260 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
272
|
7261 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
|
462
|
7262 gtk )
|
|
7263 HAVE_X_WINDOWS=no
|
|
7264 test "$with_gnome" = "yes" && echo " Using GNOME."
|
|
7265 test "$with_gnome" = "no" && echo " Using GTK."
|
|
7266 ;;
|
70
|
7267 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
0
|
7268 esac
|
|
7269
|
149
|
7270 case "$x_libraries" in *X11R4* )
|
|
7271 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
|
|
7272 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
|
|
7273 esac
|
|
7274
|
414
|
7275 echo "checking for WM_COMMAND option" 1>&6
|
853
|
7276 echo "configure:7277: checking for WM_COMMAND option" >&5;
|
414
|
7277 if test "$with_wmcommand" != "no"; then
|
|
7278 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7279 Defining HAVE_WMCOMMAND
|
|
7280 EOF
|
|
7281 cat >> confdefs.h <<\EOF
|
|
7282 #define HAVE_WMCOMMAND 1
|
177
|
7283 EOF
|
|
7284 }
|
|
7285
|
|
7286 fi
|
|
7287
|
149
|
7288 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
|
|
7289 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
|
|
7290 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
|
853
|
7291 echo "configure:7292: checking for X11/Xauth.h" >&5
|
|
7292
|
|
7293 cat > conftest.$ac_ext <<EOF
|
|
7294 #line 7295 "configure"
|
149
|
7295 #include "confdefs.h"
|
|
7296 #include <X11/Xauth.h>
|
|
7297 EOF
|
|
7298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
7299 { (eval echo configure:7300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
7301 if test -z "$ac_err"; then
|
|
7302 rm -rf conftest*
|
|
7303 eval "ac_cv_header_$ac_safe=yes"
|
|
7304 else
|
|
7305 echo "$ac_err" >&5
|
|
7306 echo "configure: failed program was:" >&5
|
|
7307 cat conftest.$ac_ext >&5
|
|
7308 rm -rf conftest*
|
|
7309 eval "ac_cv_header_$ac_safe=no"
|
|
7310 fi
|
|
7311 rm -f conftest*
|
|
7312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7313 echo "$ac_t""yes" 1>&6
|
|
7314 :
|
|
7315 else
|
|
7316 echo "$ac_t""no" 1>&6
|
|
7317 with_xauth=no
|
|
7318 fi
|
|
7319 }
|
|
7320 test -z "$with_xauth" && {
|
|
7321 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
|
853
|
7322 echo "configure:7323: checking for XauGetAuthByAddr in -lXau" >&5
|
149
|
7323 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
|
|
7324
|
|
7325 xe_check_libs=" -lXau "
|
|
7326 cat > conftest.$ac_ext <<EOF
|
853
|
7327 #line 7328 "configure"
|
149
|
7328 #include "confdefs.h"
|
|
7329 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7330 /* We use char because int might match the return type of a gcc2
|
|
7331 builtin and then its argument prototype would still apply. */
|
|
7332 char XauGetAuthByAddr();
|
|
7333
|
|
7334 int main() {
|
|
7335 XauGetAuthByAddr()
|
|
7336 ; return 0; }
|
|
7337 EOF
|
853
|
7338 if { (eval echo configure:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7339 rm -rf conftest*
|
|
7340 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7341 else
|
|
7342 echo "configure: failed program was:" >&5
|
|
7343 cat conftest.$ac_ext >&5
|
|
7344 rm -rf conftest*
|
|
7345 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7346 fi
|
|
7347 rm -f conftest*
|
|
7348 xe_check_libs=""
|
|
7349
|
151
|
7350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7351 echo "$ac_t""yes" 1>&6
|
|
7352 :
|
|
7353 else
|
|
7354 echo "$ac_t""no" 1>&6
|
|
7355 with_xauth=no
|
|
7356 fi
|
|
7357
|
|
7358 }
|
|
7359 test -z "$with_xauth" && with_xauth=yes
|
|
7360 if test "$with_xauth" = "yes"; then
|
|
7361 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7362 Defining HAVE_XAUTH
|
|
7363 EOF
|
|
7364 cat >> confdefs.h <<\EOF
|
|
7365 #define HAVE_XAUTH 1
|
|
7366 EOF
|
|
7367 }
|
|
7368
|
159
|
7369
|
|
7370 T=""
|
462
|
7371 for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
159
|
7372 libs_xauth="$T"
|
|
7373
|
|
7374 fi
|
|
7375
|
149
|
7376
|
274
|
7377
|
149
|
7378
|
|
7379 if test "$with_tooltalk" != "no" ; then
|
|
7380 for dir in "" "Tt/" "desktop/" ; do
|
|
7381 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
|
|
7382 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
|
853
|
7383 echo "configure:7384: checking for ${dir}tt_c.h" >&5
|
|
7384
|
|
7385 cat > conftest.$ac_ext <<EOF
|
|
7386 #line 7387 "configure"
|
149
|
7387 #include "confdefs.h"
|
|
7388 #include <${dir}tt_c.h>
|
|
7389 EOF
|
|
7390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
7391 { (eval echo configure:7392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
7393 if test -z "$ac_err"; then
|
|
7394 rm -rf conftest*
|
|
7395 eval "ac_cv_header_$ac_safe=yes"
|
|
7396 else
|
|
7397 echo "$ac_err" >&5
|
|
7398 echo "configure: failed program was:" >&5
|
|
7399 cat conftest.$ac_ext >&5
|
|
7400 rm -rf conftest*
|
|
7401 eval "ac_cv_header_$ac_safe=no"
|
|
7402 fi
|
|
7403 rm -f conftest*
|
|
7404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7405 echo "$ac_t""yes" 1>&6
|
442
|
7406 tt_c_h_file="${dir}tt_c.h"; break
|
149
|
7407 else
|
|
7408 echo "$ac_t""no" 1>&6
|
|
7409 fi
|
|
7410
|
|
7411 done
|
442
|
7412 if test -z "$tt_c_h_file"; then
|
284
|
7413 if test "$with_tooltalk" = "yes"; then
|
|
7414 (echo "$progname: Usage error:"
|
|
7415 echo " " "Unable to find required tooltalk header files."
|
|
7416 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
7417 fi
|
|
7418 with_tooltalk=no
|
|
7419 fi
|
149
|
7420 fi
|
|
7421 if test "$with_tooltalk" != "no" ; then
|
|
7422 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
|
|
7423
|
|
7424 xe_msg_checking="for tt_message_create in -ltt"
|
|
7425 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
|
|
7426 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
853
|
7427 echo "configure:7428: checking "$xe_msg_checking"" >&5
|
149
|
7428 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
|
|
7429
|
|
7430 xe_check_libs=" -ltt $extra_libs"
|
|
7431 cat > conftest.$ac_ext <<EOF
|
853
|
7432 #line 7433 "configure"
|
149
|
7433 #include "confdefs.h"
|
|
7434 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7435 /* We use char because int might match the return type of a gcc2
|
|
7436 builtin and then its argument prototype would still apply. */
|
|
7437 char tt_message_create();
|
|
7438
|
|
7439 int main() {
|
|
7440 tt_message_create()
|
|
7441 ; return 0; }
|
|
7442 EOF
|
853
|
7443 if { (eval echo configure:7444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7444 rm -rf conftest*
|
|
7445 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7446 else
|
|
7447 echo "configure: failed program was:" >&5
|
|
7448 cat conftest.$ac_ext >&5
|
|
7449 rm -rf conftest*
|
|
7450 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7451 fi
|
|
7452 rm -f conftest*
|
|
7453 xe_check_libs=""
|
|
7454
|
151
|
7455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7456 echo "$ac_t""yes" 1>&6
|
284
|
7457 tt_libs="-ltt $extra_libs"; break
|
149
|
7458 else
|
|
7459 echo "$ac_t""no" 1>&6
|
|
7460 :
|
|
7461 fi
|
|
7462
|
|
7463
|
|
7464 done
|
284
|
7465 if test -z "$tt_libs"; then
|
|
7466 if test "$with_tooltalk" = "yes"; then
|
|
7467 (echo "$progname: Usage error:"
|
|
7468 echo " " "Unable to find required tooltalk libraries."
|
|
7469 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
7470 fi
|
|
7471 with_tooltalk=no
|
|
7472 fi
|
|
7473 fi
|
|
7474 test -z "$with_tooltalk" && with_tooltalk=yes
|
149
|
7475 if test "$with_tooltalk" = "yes"; then
|
|
7476 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7477 Defining TOOLTALK
|
|
7478 EOF
|
|
7479 cat >> confdefs.h <<\EOF
|
|
7480 #define TOOLTALK 1
|
|
7481 EOF
|
|
7482 }
|
|
7483
|
|
7484 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
7485 Defining TT_C_H_FILE = "$tt_c_h_file"
|
|
7486 EOF
|
|
7487 cat >> confdefs.h <<EOF
|
|
7488 #define TT_C_H_FILE "$tt_c_h_file"
|
149
|
7489 EOF
|
|
7490 }
|
|
7491
|
151
|
7492 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
|
149
|
7493 fi
|
|
7494
|
|
7495 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
|
|
7496 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
|
853
|
7497 echo "configure:7498: checking for Dt/Dt.h" >&5
|
|
7498
|
|
7499 cat > conftest.$ac_ext <<EOF
|
|
7500 #line 7501 "configure"
|
149
|
7501 #include "confdefs.h"
|
|
7502 #include <Dt/Dt.h>
|
|
7503 EOF
|
|
7504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
7505 { (eval echo configure:7506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7506 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
7507 if test -z "$ac_err"; then
|
|
7508 rm -rf conftest*
|
|
7509 eval "ac_cv_header_$ac_safe=yes"
|
|
7510 else
|
|
7511 echo "$ac_err" >&5
|
|
7512 echo "configure: failed program was:" >&5
|
|
7513 cat conftest.$ac_ext >&5
|
|
7514 rm -rf conftest*
|
|
7515 eval "ac_cv_header_$ac_safe=no"
|
|
7516 fi
|
|
7517 rm -f conftest*
|
|
7518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7519 echo "$ac_t""yes" 1>&6
|
|
7520 :
|
|
7521 else
|
|
7522 echo "$ac_t""no" 1>&6
|
|
7523 with_cde=no
|
136
|
7524 fi
|
|
7525 }
|
149
|
7526 test -z "$with_cde" && {
|
|
7527 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
|
853
|
7528 echo "configure:7529: checking for DtDndDragStart in -lDtSvc" >&5
|
149
|
7529 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
|
|
7530
|
|
7531 xe_check_libs=" -lDtSvc "
|
|
7532 cat > conftest.$ac_ext <<EOF
|
853
|
7533 #line 7534 "configure"
|
149
|
7534 #include "confdefs.h"
|
|
7535 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7536 /* We use char because int might match the return type of a gcc2
|
|
7537 builtin and then its argument prototype would still apply. */
|
|
7538 char DtDndDragStart();
|
|
7539
|
|
7540 int main() {
|
|
7541 DtDndDragStart()
|
|
7542 ; return 0; }
|
|
7543 EOF
|
853
|
7544 if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7545 rm -rf conftest*
|
|
7546 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7547 else
|
|
7548 echo "configure: failed program was:" >&5
|
|
7549 cat conftest.$ac_ext >&5
|
|
7550 rm -rf conftest*
|
|
7551 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7552 fi
|
|
7553 rm -f conftest*
|
|
7554 xe_check_libs=""
|
|
7555
|
151
|
7556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7557 echo "$ac_t""yes" 1>&6
|
|
7558 :
|
|
7559 else
|
|
7560 echo "$ac_t""no" 1>&6
|
|
7561 with_cde=no
|
|
7562 fi
|
|
7563
|
|
7564 }
|
582
|
7565 if test "$with_dragndrop" = "no" ; then
|
|
7566 if test "$with_cde" = "yes" ; then
|
|
7567 echo "configure: warning: --with-cde forced to \`no'; no generic Drag'n'Drop support" 1>&2
|
|
7568 fi
|
|
7569 with_cde=no
|
|
7570 fi
|
149
|
7571 test -z "$with_cde" && with_cde=yes
|
|
7572 if test "$with_cde" = "yes" ; then
|
|
7573 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7574 Defining HAVE_CDE
|
|
7575 EOF
|
|
7576 cat >> confdefs.h <<\EOF
|
|
7577 #define HAVE_CDE 1
|
|
7578 EOF
|
|
7579 }
|
|
7580
|
151
|
7581 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
|
282
|
7582 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
|
149
|
7583 with_tooltalk=yes # CDE requires Tooltalk
|
167
|
7584 need_motif=yes # CDE requires Motif
|
149
|
7585 fi
|
|
7586
|
288
|
7587 test "$window_system" != "x11" && with_offix=no
|
|
7588 if test "$with_xmu" != yes -a "$with_x11" = yes; then
|
582
|
7589 if test "$with_offix" = "yes" ; then
|
|
7590 echo "configure: warning: --with-offix forced to \`no'; no real Xmu support" 1>&2
|
|
7591 fi
|
288
|
7592 with_offix=no
|
|
7593 fi
|
|
7594 if test "$with_dragndrop" = no; then
|
582
|
7595 if test "$with_offix" = "yes" ; then
|
|
7596 echo "configure: warning: --with-offix forced to \`no'; no generic Drag'n'Drop support" 1>&2
|
|
7597 fi
|
288
|
7598 with_offix=no
|
|
7599 fi
|
|
7600 if test "$with_cde" = yes; then
|
582
|
7601 if test "$with_offix" = "yes" ; then
|
|
7602 echo "configure: warning: --with-offix forced to \`no'; CDE already found" 1>&2
|
|
7603 fi
|
288
|
7604 with_offix=no
|
|
7605 fi
|
300
|
7606 test -z "$with_offix" && with_offix=no
|
288
|
7607 if test "$with_offix" = "yes"; then
|
|
7608 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7609 Defining HAVE_OFFIX_DND
|
|
7610 EOF
|
|
7611 cat >> confdefs.h <<\EOF
|
|
7612 #define HAVE_OFFIX_DND 1
|
|
7613 EOF
|
|
7614 }
|
|
7615
|
|
7616 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
|
|
7617 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
|
|
7618 fi
|
462
|
7619 if test "$with_gtk" = "yes"; then
|
|
7620 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
|
|
7621 fi
|
288
|
7622
|
282
|
7623 if test "$with_dragndrop" != "no" ; then
|
446
|
7624 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
|
853
|
7625 echo "configure:7626: checking if drag and drop API is needed" >&5
|
282
|
7626 if test -n "$dragndrop_proto" ; then
|
|
7627 with_dragndrop=yes
|
|
7628 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
|
|
7629 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7630 Defining HAVE_DRAGNDROP
|
|
7631 EOF
|
|
7632 cat >> confdefs.h <<\EOF
|
|
7633 #define HAVE_DRAGNDROP 1
|
|
7634 EOF
|
|
7635 }
|
|
7636
|
|
7637 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
|
|
7638 else
|
|
7639 with_dragndrop=no
|
|
7640 echo "$ac_t""no" 1>&6
|
|
7641 fi
|
|
7642 fi
|
|
7643
|
259
|
7644 echo "checking for LDAP" 1>&6
|
853
|
7645 echo "configure:7646: checking for LDAP" >&5
|
259
|
7646 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
|
|
7647 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
|
853
|
7648 echo "configure:7649: checking for ldap.h" >&5
|
|
7649
|
|
7650 cat > conftest.$ac_ext <<EOF
|
|
7651 #line 7652 "configure"
|
259
|
7652 #include "confdefs.h"
|
|
7653 #include <ldap.h>
|
|
7654 EOF
|
|
7655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
7656 { (eval echo configure:7657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
259
|
7658 if test -z "$ac_err"; then
|
|
7659 rm -rf conftest*
|
|
7660 eval "ac_cv_header_$ac_safe=yes"
|
|
7661 else
|
|
7662 echo "$ac_err" >&5
|
|
7663 echo "configure: failed program was:" >&5
|
|
7664 cat conftest.$ac_ext >&5
|
|
7665 rm -rf conftest*
|
|
7666 eval "ac_cv_header_$ac_safe=no"
|
|
7667 fi
|
|
7668 rm -f conftest*
|
|
7669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7670 echo "$ac_t""yes" 1>&6
|
|
7671 :
|
|
7672 else
|
|
7673 echo "$ac_t""no" 1>&6
|
|
7674 with_ldap=no
|
|
7675 fi
|
|
7676 }
|
|
7677 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
|
|
7678 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
|
853
|
7679 echo "configure:7680: checking for lber.h" >&5
|
|
7680
|
|
7681 cat > conftest.$ac_ext <<EOF
|
|
7682 #line 7683 "configure"
|
259
|
7683 #include "confdefs.h"
|
|
7684 #include <lber.h>
|
|
7685 EOF
|
|
7686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
7687 { (eval echo configure:7688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
259
|
7689 if test -z "$ac_err"; then
|
|
7690 rm -rf conftest*
|
|
7691 eval "ac_cv_header_$ac_safe=yes"
|
|
7692 else
|
|
7693 echo "$ac_err" >&5
|
|
7694 echo "configure: failed program was:" >&5
|
|
7695 cat conftest.$ac_ext >&5
|
|
7696 rm -rf conftest*
|
|
7697 eval "ac_cv_header_$ac_safe=no"
|
|
7698 fi
|
|
7699 rm -f conftest*
|
|
7700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7701 echo "$ac_t""yes" 1>&6
|
|
7702 :
|
|
7703 else
|
|
7704 echo "$ac_t""no" 1>&6
|
|
7705 with_ldap=no
|
|
7706 fi
|
|
7707 }
|
272
|
7708 if test "$with_ldap" != "no"; then
|
418
|
7709
|
|
7710 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
|
853
|
7711 echo "configure:7712: checking for ldap_search in -lldap" >&5
|
418
|
7712 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
|
|
7713
|
|
7714 xe_check_libs=" -lldap "
|
|
7715 cat > conftest.$ac_ext <<EOF
|
853
|
7716 #line 7717 "configure"
|
418
|
7717 #include "confdefs.h"
|
|
7718 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7719 /* We use char because int might match the return type of a gcc2
|
|
7720 builtin and then its argument prototype would still apply. */
|
|
7721 char ldap_search();
|
|
7722
|
|
7723 int main() {
|
|
7724 ldap_search()
|
|
7725 ; return 0; }
|
|
7726 EOF
|
853
|
7727 if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
7728 rm -rf conftest*
|
|
7729 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7730 else
|
|
7731 echo "configure: failed program was:" >&5
|
|
7732 cat conftest.$ac_ext >&5
|
|
7733 rm -rf conftest*
|
|
7734 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7735 fi
|
|
7736 rm -f conftest*
|
|
7737 xe_check_libs=""
|
|
7738
|
|
7739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7740 echo "$ac_t""yes" 1>&6
|
418
|
7741 with_ldap_nolber=yes
|
|
7742 else
|
|
7743 echo "$ac_t""no" 1>&6
|
|
7744 with_ldap_nolber=no
|
|
7745 fi
|
|
7746
|
|
7747
|
|
7748 test "$with_ldap_nolber" = "no" && {
|
|
7749 xe_msg_checking="for ldap_open in -lldap"
|
|
7750 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
|
|
7751 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
853
|
7752 echo "configure:7753: checking "$xe_msg_checking"" >&5
|
418
|
7753 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
7754
|
|
7755 xe_check_libs=" -lldap -llber"
|
|
7756 cat > conftest.$ac_ext <<EOF
|
853
|
7757 #line 7758 "configure"
|
418
|
7758 #include "confdefs.h"
|
|
7759 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7760 /* We use char because int might match the return type of a gcc2
|
|
7761 builtin and then its argument prototype would still apply. */
|
|
7762 char ldap_open();
|
|
7763
|
|
7764 int main() {
|
|
7765 ldap_open()
|
|
7766 ; return 0; }
|
|
7767 EOF
|
853
|
7768 if { (eval echo configure:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
7769 rm -rf conftest*
|
|
7770 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7771 else
|
|
7772 echo "configure: failed program was:" >&5
|
|
7773 cat conftest.$ac_ext >&5
|
|
7774 rm -rf conftest*
|
|
7775 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7776 fi
|
|
7777 rm -f conftest*
|
|
7778 xe_check_libs=""
|
|
7779
|
|
7780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7781 echo "$ac_t""yes" 1>&6
|
418
|
7782 with_ldap_lber=yes
|
|
7783 else
|
|
7784 echo "$ac_t""no" 1>&6
|
|
7785 with_ldap_lber=no
|
259
|
7786 fi
|
|
7787
|
|
7788 }
|
422
|
7789 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
|
|
7790 xe_msg_checking="for ldap_open in -lldap"
|
|
7791 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
|
|
7792 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
853
|
7793 echo "configure:7794: checking "$xe_msg_checking"" >&5
|
422
|
7794 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
7795
|
|
7796 xe_check_libs=" -lldap -llber -lkrb"
|
|
7797 cat > conftest.$ac_ext <<EOF
|
853
|
7798 #line 7799 "configure"
|
422
|
7799 #include "confdefs.h"
|
|
7800 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7801 /* We use char because int might match the return type of a gcc2
|
|
7802 builtin and then its argument prototype would still apply. */
|
|
7803 char ldap_open();
|
|
7804
|
|
7805 int main() {
|
|
7806 ldap_open()
|
|
7807 ; return 0; }
|
|
7808 EOF
|
853
|
7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
422
|
7810 rm -rf conftest*
|
|
7811 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7812 else
|
|
7813 echo "configure: failed program was:" >&5
|
|
7814 cat conftest.$ac_ext >&5
|
|
7815 rm -rf conftest*
|
|
7816 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7817 fi
|
|
7818 rm -f conftest*
|
|
7819 xe_check_libs=""
|
|
7820
|
|
7821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7822 echo "$ac_t""yes" 1>&6
|
|
7823 with_ldap_krb=yes
|
|
7824 else
|
|
7825 echo "$ac_t""no" 1>&6
|
|
7826 with_ldap_krb=no
|
|
7827 fi
|
|
7828
|
|
7829 }
|
|
7830 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
|
|
7831 xe_msg_checking="for ldap_open in -lldap"
|
|
7832 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
|
|
7833 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
853
|
7834 echo "configure:7835: checking "$xe_msg_checking"" >&5
|
422
|
7835 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
7836
|
|
7837 xe_check_libs=" -lldap -llber -lkrb -ldes"
|
|
7838 cat > conftest.$ac_ext <<EOF
|
853
|
7839 #line 7840 "configure"
|
422
|
7840 #include "confdefs.h"
|
|
7841 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7842 /* We use char because int might match the return type of a gcc2
|
|
7843 builtin and then its argument prototype would still apply. */
|
|
7844 char ldap_open();
|
|
7845
|
|
7846 int main() {
|
|
7847 ldap_open()
|
|
7848 ; return 0; }
|
|
7849 EOF
|
853
|
7850 if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
422
|
7851 rm -rf conftest*
|
|
7852 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7853 else
|
|
7854 echo "configure: failed program was:" >&5
|
|
7855 cat conftest.$ac_ext >&5
|
|
7856 rm -rf conftest*
|
|
7857 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7858 fi
|
|
7859 rm -f conftest*
|
|
7860 xe_check_libs=""
|
|
7861
|
|
7862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7863 echo "$ac_t""yes" 1>&6
|
|
7864 with_ldap_krbdes=yes
|
|
7865 else
|
|
7866 echo "$ac_t""no" 1>&6
|
|
7867 with_ldap_krbdes=no
|
|
7868 fi
|
|
7869
|
|
7870 }
|
|
7871 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
|
272
|
7872 fi
|
|
7873 if test "$with_ldap" = "yes"; then
|
259
|
7874 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7875 Defining HAVE_LDAP
|
|
7876 EOF
|
|
7877 cat >> confdefs.h <<\EOF
|
|
7878 #define HAVE_LDAP 1
|
|
7879 EOF
|
|
7880 }
|
|
7881
|
418
|
7882 if test "$with_ldap_nolber" = "yes" ; then
|
|
7883 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
|
|
7884 else
|
422
|
7885 if test "$with_ldap_krb" = "yes" ; then
|
|
7886 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
|
|
7887 fi
|
|
7888 if test "$with_ldap_krbdes" = "yes" ; then
|
|
7889 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
|
|
7890 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
|
|
7891 fi
|
272
|
7892 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
|
|
7893 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
|
418
|
7894 fi
|
|
7895 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
|
|
7896 do
|
|
7897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
7898 echo "configure:7899: checking for $ac_func" >&5
|
|
7899
|
|
7900 cat > conftest.$ac_ext <<EOF
|
|
7901 #line 7902 "configure"
|
418
|
7902 #include "confdefs.h"
|
|
7903 /* System header to define __stub macros and hopefully few prototypes,
|
|
7904 which can conflict with char $ac_func(); below. */
|
|
7905 #include <assert.h>
|
|
7906 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7907 /* We use char because int might match the return type of a gcc2
|
|
7908 builtin and then its argument prototype would still apply. */
|
|
7909 char $ac_func();
|
|
7910
|
|
7911 int main() {
|
|
7912
|
|
7913 /* The GNU C library defines this for functions which it implements
|
|
7914 to always fail with ENOSYS. Some functions are actually named
|
|
7915 something starting with __ and the normal name is an alias. */
|
|
7916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
7917 choke me
|
|
7918 #else
|
|
7919 $ac_func();
|
|
7920 #endif
|
|
7921
|
|
7922 ; return 0; }
|
|
7923 EOF
|
853
|
7924 if { (eval echo configure:7925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
418
|
7925 rm -rf conftest*
|
|
7926 eval "ac_cv_func_$ac_func=yes"
|
|
7927 else
|
|
7928 echo "configure: failed program was:" >&5
|
|
7929 cat conftest.$ac_ext >&5
|
|
7930 rm -rf conftest*
|
|
7931 eval "ac_cv_func_$ac_func=no"
|
|
7932 fi
|
|
7933 rm -f conftest*
|
|
7934
|
|
7935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
7936 echo "$ac_t""yes" 1>&6
|
|
7937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
7938 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7939 Defining $ac_tr_func
|
|
7940 EOF
|
|
7941 cat >> confdefs.h <<EOF
|
|
7942 #define $ac_tr_func 1
|
|
7943 EOF
|
|
7944 }
|
|
7945
|
|
7946 else
|
|
7947 echo "$ac_t""no" 1>&6
|
|
7948 fi
|
|
7949 done
|
|
7950
|
404
|
7951 fi
|
|
7952
|
442
|
7953 if test "$with_postgresql" != "no"; then
|
|
7954 echo "checking for PostgreSQL" 1>&6
|
853
|
7955 echo "configure:7956: checking for PostgreSQL" >&5
|
442
|
7956
|
|
7957 for header_dir in "" "pgsql/" "postgresql/"; do
|
|
7958 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
|
|
7959 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
|
853
|
7960 echo "configure:7961: checking for ${header_dir}libpq-fe.h" >&5
|
|
7961
|
|
7962 cat > conftest.$ac_ext <<EOF
|
|
7963 #line 7964 "configure"
|
442
|
7964 #include "confdefs.h"
|
|
7965 #include <${header_dir}libpq-fe.h>
|
|
7966 EOF
|
|
7967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
7968 { (eval echo configure:7969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
7969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7970 if test -z "$ac_err"; then
|
|
7971 rm -rf conftest*
|
|
7972 eval "ac_cv_header_$ac_safe=yes"
|
|
7973 else
|
|
7974 echo "$ac_err" >&5
|
|
7975 echo "configure: failed program was:" >&5
|
|
7976 cat conftest.$ac_ext >&5
|
|
7977 rm -rf conftest*
|
|
7978 eval "ac_cv_header_$ac_safe=no"
|
|
7979 fi
|
|
7980 rm -f conftest*
|
|
7981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7982 echo "$ac_t""yes" 1>&6
|
|
7983 libpq_fe_h_file=${header_dir}libpq-fe.h; break
|
|
7984 else
|
|
7985 echo "$ac_t""no" 1>&6
|
|
7986 fi
|
|
7987
|
|
7988 done
|
|
7989
|
|
7990 test -n "$libpq_fe_h_file" && {
|
|
7991 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
|
853
|
7992 echo "configure:7993: checking for PQconnectdb in -lpq" >&5
|
442
|
7993 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
|
|
7994
|
|
7995 xe_check_libs=" -lpq "
|
|
7996 cat > conftest.$ac_ext <<EOF
|
853
|
7997 #line 7998 "configure"
|
442
|
7998 #include "confdefs.h"
|
|
7999 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8000 /* We use char because int might match the return type of a gcc2
|
|
8001 builtin and then its argument prototype would still apply. */
|
|
8002 char PQconnectdb();
|
|
8003
|
|
8004 int main() {
|
|
8005 PQconnectdb()
|
|
8006 ; return 0; }
|
|
8007 EOF
|
853
|
8008 if { (eval echo configure:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
8009 rm -rf conftest*
|
|
8010 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8011 else
|
|
8012 echo "configure: failed program was:" >&5
|
|
8013 cat conftest.$ac_ext >&5
|
|
8014 rm -rf conftest*
|
|
8015 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8016 fi
|
|
8017 rm -f conftest*
|
|
8018 xe_check_libs=""
|
|
8019
|
|
8020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8021 echo "$ac_t""yes" 1>&6
|
|
8022 have_libpq=yes
|
|
8023 else
|
|
8024 echo "$ac_t""no" 1>&6
|
|
8025 fi
|
|
8026
|
|
8027 }
|
|
8028
|
|
8029 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
|
|
8030 with_postgresql=yes
|
|
8031 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8032 Defining HAVE_POSTGRESQL
|
|
8033 EOF
|
|
8034 cat >> confdefs.h <<\EOF
|
|
8035 #define HAVE_POSTGRESQL 1
|
|
8036 EOF
|
|
8037 }
|
|
8038
|
|
8039
|
|
8040 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
|
853
|
8041 echo "configure:8042: checking for PQconnectStart in -lpq" >&5
|
442
|
8042 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
|
|
8043
|
|
8044 xe_check_libs=" -lpq "
|
|
8045 cat > conftest.$ac_ext <<EOF
|
853
|
8046 #line 8047 "configure"
|
442
|
8047 #include "confdefs.h"
|
|
8048 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8049 /* We use char because int might match the return type of a gcc2
|
|
8050 builtin and then its argument prototype would still apply. */
|
|
8051 char PQconnectStart();
|
|
8052
|
|
8053 int main() {
|
|
8054 PQconnectStart()
|
|
8055 ; return 0; }
|
|
8056 EOF
|
853
|
8057 if { (eval echo configure:8058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
8058 rm -rf conftest*
|
|
8059 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8060 else
|
|
8061 echo "configure: failed program was:" >&5
|
|
8062 cat conftest.$ac_ext >&5
|
|
8063 rm -rf conftest*
|
|
8064 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8065 fi
|
|
8066 rm -f conftest*
|
|
8067 xe_check_libs=""
|
|
8068
|
|
8069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8070 echo "$ac_t""yes" 1>&6
|
|
8071 with_postgresqlv7=yes;
|
|
8072 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8073 Defining HAVE_POSTGRESQLV7
|
|
8074 EOF
|
|
8075 cat >> confdefs.h <<\EOF
|
|
8076 #define HAVE_POSTGRESQLV7 1
|
|
8077 EOF
|
|
8078 }
|
|
8079
|
|
8080 else
|
|
8081 echo "$ac_t""no" 1>&6
|
|
8082 fi
|
|
8083
|
|
8084
|
|
8085 { test "$extra_verbose" = "yes" && cat << EOF
|
|
8086 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
|
|
8087 EOF
|
|
8088 cat >> confdefs.h <<EOF
|
|
8089 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
|
|
8090 EOF
|
|
8091 }
|
|
8092
|
|
8093 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
|
|
8094 elif test "$with_postgresql" = "yes"; then
|
|
8095 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
|
|
8096 fi
|
|
8097 fi
|
|
8098
|
149
|
8099
|
278
|
8100 if test "$window_system" != "none"; then
|
|
8101 echo "checking for graphics libraries" 1>&6
|
853
|
8102 echo "configure:8103: checking for graphics libraries" >&5
|
724
|
8103
|
|
8104 libpath_xpm=
|
|
8105 incpath_xpm=
|
|
8106 case "$opsys" in
|
|
8107 cygwin*)
|
|
8108 cygwin_top=`eval "gcc -print-file-name=libc.a"` ;
|
|
8109 cygwin_top=`eval "dirname ${cygwin_top}"`;
|
|
8110 cygwin_top="${cygwin_top}/..";
|
|
8111 case "$window_system" in
|
|
8112 x11) ;;
|
|
8113 msw) libpath_xpm="-L${cygwin_top}/lib/noX"
|
|
8114 incpath_xpm="-I${cygwin_top}/include/noX"
|
|
8115 ;;
|
|
8116 gtk) ;;
|
|
8117 none) ;;
|
|
8118 *) ;;
|
|
8119 esac
|
|
8120 ;;
|
|
8121 *) ;;
|
|
8122 esac
|
373
|
8123 xpm_problem=""
|
|
8124 if test -z "$with_xpm"; then
|
724
|
8125 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
|
|
8126 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
|
193
|
8127 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
|
853
|
8128 echo "configure:8129: checking for Xpm - no older than 3.4f" >&5
|
272
|
8129 xe_check_libs=-lXpm
|
|
8130 cat > conftest.$ac_ext <<EOF
|
853
|
8131 #line 8132 "configure"
|
442
|
8132 #include "confdefs.h"
|
|
8133 #define XPM_NUMBERS
|
149
|
8134 #include <X11/xpm.h>
|
272
|
8135 int main(int c, char **v) {
|
|
8136 return c == 1 ? 0 :
|
|
8137 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
|
|
8138 XpmIncludeVersion < 30406 ? 2 : 0 ;}
|
|
8139 EOF
|
853
|
8140 if { (eval echo configure:8141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
159
|
8141 then
|
272
|
8142 ./conftest dummy_arg; xpm_status=$?;
|
373
|
8143 if test "$xpm_status" = "0"; then
|
272
|
8144 with_xpm=yes;
|
|
8145 else
|
|
8146 with_xpm=no;
|
373
|
8147 if test "$xpm_status" = "1"; then
|
272
|
8148 xpm_problem="Xpm library version and header file version don't match!"
|
373
|
8149 elif test "$xpm_status" = "2"; then
|
272
|
8150 xpm_problem="Xpm library version is too old!"
|
|
8151 else
|
|
8152 xpm_problem="Internal xpm detection logic error!"
|
|
8153 fi
|
|
8154 echo "
|
373
|
8155 *** WARNING *** $xpm_problem
|
278
|
8156 I'm not touching that with a 10-foot pole!
|
|
8157 If you really want to use the installed version of Xpm, rerun
|
373
|
8158 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
|
278
|
8159 fi
|
159
|
8160 else
|
373
|
8161 conftest_rc="$?"
|
159
|
8162 echo "configure: failed program was:" >&5
|
|
8163 cat conftest.$ac_ext >&5
|
|
8164 rm -fr conftest*
|
|
8165 with_xpm=no
|
|
8166 fi
|
|
8167 rm -fr conftest*
|
272
|
8168 xe_check_libs=
|
|
8169 echo "$ac_t""$with_xpm" 1>&6
|
193
|
8170 fi
|
|
8171 if test "$with_xpm" = "yes"; then
|
458
|
8172 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
8173 Defining HAVE_XPM
|
|
8174 EOF
|
|
8175 cat >> confdefs.h <<\EOF
|
|
8176 #define HAVE_XPM 1
|
|
8177 EOF
|
|
8178 }
|
|
8179
|
724
|
8180 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
|
193
|
8181 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
|
724
|
8182 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
|
278
|
8183 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
|
853
|
8184 echo "configure:8185: checking for \"FOR_MSW\" xpm" >&5
|
278
|
8185 xe_check_libs=-lXpm
|
|
8186 cat > conftest.$ac_ext <<EOF
|
853
|
8187 #line 8188 "configure"
|
278
|
8188 #include "confdefs.h"
|
|
8189
|
|
8190 int main() {
|
|
8191 XpmCreatePixmapFromData()
|
|
8192 ; return 0; }
|
|
8193 EOF
|
853
|
8194 if { (eval echo configure:8195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
8195 rm -rf conftest*
|
|
8196 xpm_for_msw=no
|
|
8197 else
|
|
8198 echo "configure: failed program was:" >&5
|
|
8199 cat conftest.$ac_ext >&5
|
|
8200 rm -rf conftest*
|
|
8201 xpm_for_msw=yes
|
|
8202 fi
|
|
8203 rm -f conftest*
|
|
8204 xe_check_libs=
|
|
8205 echo "$ac_t""$xpm_for_msw" 1>&6
|
|
8206 if test "$xpm_for_msw" = "yes"; then
|
|
8207 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8208 Defining FOR_MSW
|
|
8209 EOF
|
|
8210 cat >> confdefs.h <<\EOF
|
|
8211 #define FOR_MSW 1
|
|
8212 EOF
|
|
8213 }
|
|
8214
|
|
8215 fi
|
|
8216 fi
|
|
8217
|
388
|
8218 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
8219 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
853
|
8220 echo "configure:8221: checking for compface.h" >&5
|
|
8221
|
|
8222 cat > conftest.$ac_ext <<EOF
|
|
8223 #line 8224 "configure"
|
388
|
8224 #include "confdefs.h"
|
|
8225 #include <compface.h>
|
|
8226 EOF
|
|
8227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
8228 { (eval echo configure:8229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
388
|
8230 if test -z "$ac_err"; then
|
|
8231 rm -rf conftest*
|
|
8232 eval "ac_cv_header_$ac_safe=yes"
|
|
8233 else
|
|
8234 echo "$ac_err" >&5
|
|
8235 echo "configure: failed program was:" >&5
|
|
8236 cat conftest.$ac_ext >&5
|
|
8237 rm -rf conftest*
|
|
8238 eval "ac_cv_header_$ac_safe=no"
|
|
8239 fi
|
|
8240 rm -f conftest*
|
|
8241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8242 echo "$ac_t""yes" 1>&6
|
|
8243 :
|
|
8244 else
|
|
8245 echo "$ac_t""no" 1>&6
|
|
8246 with_xface=no
|
|
8247 fi
|
|
8248 }
|
|
8249 test -z "$with_xface" && {
|
|
8250 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
853
|
8251 echo "configure:8252: checking for UnGenFace in -lcompface" >&5
|
388
|
8252 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
8253
|
|
8254 xe_check_libs=" -lcompface "
|
|
8255 cat > conftest.$ac_ext <<EOF
|
853
|
8256 #line 8257 "configure"
|
388
|
8257 #include "confdefs.h"
|
|
8258 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8259 /* We use char because int might match the return type of a gcc2
|
|
8260 builtin and then its argument prototype would still apply. */
|
|
8261 char UnGenFace();
|
|
8262
|
|
8263 int main() {
|
|
8264 UnGenFace()
|
|
8265 ; return 0; }
|
|
8266 EOF
|
853
|
8267 if { (eval echo configure:8268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
388
|
8268 rm -rf conftest*
|
|
8269 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8270 else
|
|
8271 echo "configure: failed program was:" >&5
|
|
8272 cat conftest.$ac_ext >&5
|
|
8273 rm -rf conftest*
|
|
8274 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8275 fi
|
|
8276 rm -f conftest*
|
|
8277 xe_check_libs=""
|
|
8278
|
|
8279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8280 echo "$ac_t""yes" 1>&6
|
|
8281 :
|
|
8282 else
|
|
8283 echo "$ac_t""no" 1>&6
|
|
8284 with_xface=no
|
|
8285 fi
|
|
8286
|
|
8287 }
|
|
8288 test -z "$with_xface" && with_xface=yes
|
|
8289 if test "$with_xface" = "yes"; then
|
|
8290 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8291 Defining HAVE_XFACE
|
|
8292 EOF
|
|
8293 cat >> confdefs.h <<\EOF
|
|
8294 #define HAVE_XFACE 1
|
|
8295 EOF
|
|
8296 }
|
|
8297
|
|
8298 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
|
|
8299 fi
|
|
8300
|
373
|
8301 if test "$with_gif" != "no"; then
|
|
8302 with_gif="yes"
|
|
8303 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8304 Defining HAVE_GIF
|
|
8305 EOF
|
|
8306 cat >> confdefs.h <<\EOF
|
|
8307 #define HAVE_GIF 1
|
|
8308 EOF
|
|
8309 }
|
|
8310
|
|
8311 fi
|
|
8312
|
278
|
8313 if test "$with_png $with_tiff" != "no no"; then
|
|
8314
|
|
8315 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
|
853
|
8316 echo "configure:8317: checking for inflate in -lc" >&5
|
278
|
8317 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
|
|
8318
|
|
8319 xe_check_libs=" -lc "
|
|
8320 cat > conftest.$ac_ext <<EOF
|
853
|
8321 #line 8322 "configure"
|
149
|
8322 #include "confdefs.h"
|
|
8323 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8324 /* We use char because int might match the return type of a gcc2
|
|
8325 builtin and then its argument prototype would still apply. */
|
278
|
8326 char inflate();
|
|
8327
|
|
8328 int main() {
|
|
8329 inflate()
|
|
8330 ; return 0; }
|
|
8331 EOF
|
853
|
8332 if { (eval echo configure:8333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
8333 rm -rf conftest*
|
|
8334 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8335 else
|
|
8336 echo "configure: failed program was:" >&5
|
|
8337 cat conftest.$ac_ext >&5
|
|
8338 rm -rf conftest*
|
|
8339 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8340 fi
|
|
8341 rm -f conftest*
|
|
8342 xe_check_libs=""
|
|
8343
|
151
|
8344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
8345 echo "$ac_t""yes" 1>&6
|
278
|
8346 :
|
|
8347 else
|
|
8348 echo "$ac_t""no" 1>&6
|
|
8349
|
|
8350 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
|
853
|
8351 echo "configure:8352: checking for inflate in -lz" >&5
|
278
|
8352 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
|
|
8353
|
|
8354 xe_check_libs=" -lz "
|
|
8355 cat > conftest.$ac_ext <<EOF
|
853
|
8356 #line 8357 "configure"
|
278
|
8357 #include "confdefs.h"
|
|
8358 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8359 /* We use char because int might match the return type of a gcc2
|
|
8360 builtin and then its argument prototype would still apply. */
|
|
8361 char inflate();
|
|
8362
|
|
8363 int main() {
|
|
8364 inflate()
|
|
8365 ; return 0; }
|
|
8366 EOF
|
853
|
8367 if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
8368 rm -rf conftest*
|
|
8369 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8370 else
|
|
8371 echo "configure: failed program was:" >&5
|
|
8372 cat conftest.$ac_ext >&5
|
|
8373 rm -rf conftest*
|
|
8374 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8375 fi
|
|
8376 rm -f conftest*
|
|
8377 xe_check_libs=""
|
|
8378
|
|
8379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8380 echo "$ac_t""yes" 1>&6
|
|
8381 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
|
|
8382 else
|
|
8383 echo "$ac_t""no" 1>&6
|
|
8384
|
|
8385 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
|
853
|
8386 echo "configure:8387: checking for inflate in -lgz" >&5
|
278
|
8387 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
|
|
8388
|
|
8389 xe_check_libs=" -lgz "
|
|
8390 cat > conftest.$ac_ext <<EOF
|
853
|
8391 #line 8392 "configure"
|
278
|
8392 #include "confdefs.h"
|
|
8393 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8394 /* We use char because int might match the return type of a gcc2
|
|
8395 builtin and then its argument prototype would still apply. */
|
|
8396 char inflate();
|
|
8397
|
|
8398 int main() {
|
|
8399 inflate()
|
|
8400 ; return 0; }
|
|
8401 EOF
|
853
|
8402 if { (eval echo configure:8403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
8403 rm -rf conftest*
|
|
8404 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8405 else
|
|
8406 echo "configure: failed program was:" >&5
|
|
8407 cat conftest.$ac_ext >&5
|
|
8408 rm -rf conftest*
|
|
8409 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8410 fi
|
|
8411 rm -f conftest*
|
|
8412 xe_check_libs=""
|
|
8413
|
|
8414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8415 echo "$ac_t""yes" 1>&6
|
|
8416 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
|
|
8417 else
|
|
8418 echo "$ac_t""no" 1>&6
|
|
8419 fi
|
|
8420
|
|
8421
|
|
8422 fi
|
|
8423
|
|
8424
|
|
8425 fi
|
|
8426
|
|
8427
|
193
|
8428 fi
|
|
8429
|
251
|
8430 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
|
|
8431 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
|
853
|
8432 echo "configure:8433: checking for jpeglib.h" >&5
|
|
8433
|
|
8434 cat > conftest.$ac_ext <<EOF
|
|
8435 #line 8436 "configure"
|
251
|
8436 #include "confdefs.h"
|
|
8437 #include <jpeglib.h>
|
0
|
8438 EOF
|
149
|
8439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
8440 { (eval echo configure:8441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
251
|
8442 if test -z "$ac_err"; then
|
|
8443 rm -rf conftest*
|
|
8444 eval "ac_cv_header_$ac_safe=yes"
|
|
8445 else
|
|
8446 echo "$ac_err" >&5
|
|
8447 echo "configure: failed program was:" >&5
|
|
8448 cat conftest.$ac_ext >&5
|
|
8449 rm -rf conftest*
|
|
8450 eval "ac_cv_header_$ac_safe=no"
|
|
8451 fi
|
|
8452 rm -f conftest*
|
|
8453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8454 echo "$ac_t""yes" 1>&6
|
|
8455 :
|
|
8456 else
|
|
8457 echo "$ac_t""no" 1>&6
|
|
8458 with_jpeg=no
|
|
8459 fi
|
|
8460 }
|
|
8461 test -z "$with_jpeg" && {
|
|
8462 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
|
853
|
8463 echo "configure:8464: checking for jpeg_destroy_decompress in -ljpeg" >&5
|
251
|
8464 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
|
|
8465
|
|
8466 xe_check_libs=" -ljpeg "
|
|
8467 cat > conftest.$ac_ext <<EOF
|
853
|
8468 #line 8469 "configure"
|
251
|
8469 #include "confdefs.h"
|
|
8470 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8471 /* We use char because int might match the return type of a gcc2
|
|
8472 builtin and then its argument prototype would still apply. */
|
|
8473 char jpeg_destroy_decompress();
|
|
8474
|
|
8475 int main() {
|
|
8476 jpeg_destroy_decompress()
|
|
8477 ; return 0; }
|
|
8478 EOF
|
853
|
8479 if { (eval echo configure:8480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
251
|
8480 rm -rf conftest*
|
|
8481 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8482 else
|
|
8483 echo "configure: failed program was:" >&5
|
|
8484 cat conftest.$ac_ext >&5
|
|
8485 rm -rf conftest*
|
|
8486 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8487 fi
|
|
8488 rm -f conftest*
|
|
8489 xe_check_libs=""
|
|
8490
|
|
8491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8492 echo "$ac_t""yes" 1>&6
|
|
8493 :
|
|
8494 else
|
|
8495 echo "$ac_t""no" 1>&6
|
|
8496 with_jpeg=no
|
|
8497 fi
|
|
8498
|
|
8499 }
|
|
8500 test -z "$with_jpeg" && with_jpeg=yes
|
|
8501 if test "$with_jpeg" = "yes"; then
|
|
8502 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8503 Defining HAVE_JPEG
|
|
8504 EOF
|
|
8505 cat >> confdefs.h <<\EOF
|
|
8506 #define HAVE_JPEG 1
|
|
8507 EOF
|
|
8508 }
|
|
8509
|
|
8510 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
|
|
8511 fi
|
|
8512
|
373
|
8513 png_problem=""
|
251
|
8514 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
|
853
|
8515 echo "configure:8516: checking for pow" >&5
|
|
8516
|
|
8517 cat > conftest.$ac_ext <<EOF
|
|
8518 #line 8519 "configure"
|
251
|
8519 #include "confdefs.h"
|
|
8520 /* System header to define __stub macros and hopefully few prototypes,
|
|
8521 which can conflict with char pow(); below. */
|
|
8522 #include <assert.h>
|
243
|
8523 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8524 /* We use char because int might match the return type of a gcc2
|
|
8525 builtin and then its argument prototype would still apply. */
|
251
|
8526 char pow();
|
243
|
8527
|
|
8528 int main() {
|
251
|
8529
|
|
8530 /* The GNU C library defines this for functions which it implements
|
|
8531 to always fail with ENOSYS. Some functions are actually named
|
|
8532 something starting with __ and the normal name is an alias. */
|
|
8533 #if defined (__stub_pow) || defined (__stub___pow)
|
|
8534 choke me
|
|
8535 #else
|
|
8536 pow();
|
|
8537 #endif
|
|
8538
|
243
|
8539 ; return 0; }
|
|
8540 EOF
|
853
|
8541 if { (eval echo configure:8542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
251
|
8542 rm -rf conftest*
|
|
8543 eval "ac_cv_func_pow=yes"
|
|
8544 else
|
|
8545 echo "configure: failed program was:" >&5
|
|
8546 cat conftest.$ac_ext >&5
|
|
8547 rm -rf conftest*
|
|
8548 eval "ac_cv_func_pow=no"
|
|
8549 fi
|
|
8550 rm -f conftest*
|
|
8551
|
|
8552 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
|
|
8553 echo "$ac_t""yes" 1>&6
|
|
8554 :
|
|
8555 else
|
|
8556 echo "$ac_t""no" 1>&6
|
|
8557 with_png=no
|
|
8558 fi
|
|
8559 }
|
373
|
8560 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
|
|
8561 echo $ac_n "checking for png.h""... $ac_c" 1>&6
|
853
|
8562 echo "configure:8563: checking for png.h" >&5
|
|
8563
|
|
8564 cat > conftest.$ac_ext <<EOF
|
|
8565 #line 8566 "configure"
|
373
|
8566 #include "confdefs.h"
|
|
8567 #include <png.h>
|
|
8568 EOF
|
|
8569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
8570 { (eval echo configure:8571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
373
|
8572 if test -z "$ac_err"; then
|
|
8573 rm -rf conftest*
|
|
8574 eval "ac_cv_header_$ac_safe=yes"
|
|
8575 else
|
|
8576 echo "$ac_err" >&5
|
|
8577 echo "configure: failed program was:" >&5
|
|
8578 cat conftest.$ac_ext >&5
|
|
8579 rm -rf conftest*
|
|
8580 eval "ac_cv_header_$ac_safe=no"
|
|
8581 fi
|
|
8582 rm -f conftest*
|
|
8583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8584 echo "$ac_t""yes" 1>&6
|
|
8585 :
|
|
8586 else
|
|
8587 echo "$ac_t""no" 1>&6
|
|
8588 with_png=no
|
|
8589 fi
|
|
8590 }
|
272
|
8591 test -z "$with_png" && {
|
|
8592 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
|
853
|
8593 echo "configure:8594: checking for png_read_image in -lpng" >&5
|
272
|
8594 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
|
|
8595
|
|
8596 xe_check_libs=" -lpng "
|
|
8597 cat > conftest.$ac_ext <<EOF
|
853
|
8598 #line 8599 "configure"
|
243
|
8599 #include "confdefs.h"
|
|
8600 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8601 /* We use char because int might match the return type of a gcc2
|
|
8602 builtin and then its argument prototype would still apply. */
|
272
|
8603 char png_read_image();
|
|
8604
|
|
8605 int main() {
|
|
8606 png_read_image()
|
|
8607 ; return 0; }
|
|
8608 EOF
|
853
|
8609 if { (eval echo configure:8610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
217
|
8610 rm -rf conftest*
|
|
8611 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8612 else
|
|
8613 echo "configure: failed program was:" >&5
|
|
8614 cat conftest.$ac_ext >&5
|
|
8615 rm -rf conftest*
|
|
8616 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8617 fi
|
|
8618 rm -f conftest*
|
|
8619 xe_check_libs=""
|
|
8620
|
|
8621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8622 echo "$ac_t""yes" 1>&6
|
272
|
8623 :
|
|
8624 else
|
|
8625 echo "$ac_t""no" 1>&6
|
|
8626 with_png=no
|
|
8627 fi
|
|
8628
|
|
8629 }
|
373
|
8630 if test -z "$with_png"; then
|
|
8631 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
|
853
|
8632 echo "configure:8633: checking for workable png version information" >&5
|
373
|
8633 xe_check_libs="-lpng -lz"
|
|
8634 cat > conftest.$ac_ext <<EOF
|
853
|
8635 #line 8636 "configure"
|
373
|
8636 #include "confdefs.h"
|
|
8637 #include <png.h>
|
|
8638 int main(int c, char **v) {
|
|
8639 if (c == 1) return 0;
|
|
8640 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
|
|
8641 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
|
|
8642 EOF
|
853
|
8643 if { (eval echo configure:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
373
|
8644 then
|
|
8645 ./conftest dummy_arg; png_status=$?;
|
|
8646 if test "$png_status" = "0"; then
|
|
8647 with_png=yes;
|
|
8648 else
|
|
8649 with_png=no;
|
|
8650 if test "$png_status" = "1"; then
|
|
8651 png_problem="PNG library version and header file don't match!"
|
|
8652 elif test "$png_status" = "2"; then
|
|
8653 png_problem="PNG library version too old (pre 1.0.2)!"
|
|
8654 fi
|
|
8655 echo "
|
|
8656 *** WARNING *** $png_problem
|
|
8657 I'm not touching that with a 10-foot pole!
|
|
8658 If you really want to use the installed version of libPNG, rerun
|
|
8659 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
|
|
8660 fi
|
|
8661 else
|
|
8662 conftest_rc="$?"
|
|
8663 echo "configure: failed program was:" >&5
|
|
8664 cat conftest.$ac_ext >&5
|
|
8665 rm -fr conftest*
|
|
8666 with_png=no
|
|
8667 fi
|
|
8668 rm -fr conftest*
|
|
8669 xe_check_libs=
|
|
8670 echo "$ac_t""$with_png" 1>&6
|
|
8671 fi
|
251
|
8672 if test "$with_png" = "yes"; then
|
|
8673 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8674 Defining HAVE_PNG
|
|
8675 EOF
|
|
8676 cat >> confdefs.h <<\EOF
|
|
8677 #define HAVE_PNG 1
|
|
8678 EOF
|
|
8679 }
|
|
8680
|
272
|
8681 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
|
251
|
8682 fi
|
|
8683
|
272
|
8684 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
|
|
8685 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
|
853
|
8686 echo "configure:8687: checking for tiffio.h" >&5
|
|
8687
|
|
8688 cat > conftest.$ac_ext <<EOF
|
|
8689 #line 8690 "configure"
|
272
|
8690 #include "confdefs.h"
|
|
8691 #include <tiffio.h>
|
|
8692 EOF
|
|
8693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
8694 { (eval echo configure:8695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
272
|
8696 if test -z "$ac_err"; then
|
|
8697 rm -rf conftest*
|
|
8698 eval "ac_cv_header_$ac_safe=yes"
|
|
8699 else
|
|
8700 echo "$ac_err" >&5
|
|
8701 echo "configure: failed program was:" >&5
|
|
8702 cat conftest.$ac_ext >&5
|
|
8703 rm -rf conftest*
|
|
8704 eval "ac_cv_header_$ac_safe=no"
|
|
8705 fi
|
|
8706 rm -f conftest*
|
|
8707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8708 echo "$ac_t""yes" 1>&6
|
|
8709 :
|
|
8710 else
|
|
8711 echo "$ac_t""no" 1>&6
|
|
8712 with_tiff=no
|
|
8713 fi
|
|
8714 }
|
|
8715 test -z "$with_tiff" && {
|
286
|
8716 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
|
853
|
8717 echo "configure:8718: checking for TIFFClientOpen in -ltiff" >&5
|
286
|
8718 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
|
251
|
8719
|
272
|
8720 xe_check_libs=" -ltiff "
|
|
8721 cat > conftest.$ac_ext <<EOF
|
853
|
8722 #line 8723 "configure"
|
217
|
8723 #include "confdefs.h"
|
|
8724 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8725 /* We use char because int might match the return type of a gcc2
|
|
8726 builtin and then its argument prototype would still apply. */
|
286
|
8727 char TIFFClientOpen();
|
|
8728
|
|
8729 int main() {
|
|
8730 TIFFClientOpen()
|
|
8731 ; return 0; }
|
|
8732 EOF
|
853
|
8733 if { (eval echo configure:8734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
217
|
8734 rm -rf conftest*
|
|
8735 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8736 else
|
|
8737 echo "configure: failed program was:" >&5
|
|
8738 cat conftest.$ac_ext >&5
|
|
8739 rm -rf conftest*
|
|
8740 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8741 fi
|
|
8742 rm -f conftest*
|
|
8743 xe_check_libs=""
|
|
8744
|
|
8745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8746 echo "$ac_t""yes" 1>&6
|
272
|
8747 :
|
|
8748 else
|
|
8749 echo "$ac_t""no" 1>&6
|
|
8750 with_tiff=no
|
|
8751 fi
|
|
8752
|
|
8753 }
|
|
8754 test -z "$with_tiff" && with_tiff=yes
|
251
|
8755 if test "$with_tiff" = "yes"; then
|
|
8756 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8757 Defining HAVE_TIFF
|
|
8758 EOF
|
|
8759 cat >> confdefs.h <<\EOF
|
|
8760 #define HAVE_TIFF 1
|
|
8761 EOF
|
|
8762 }
|
|
8763
|
272
|
8764 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
|
251
|
8765 fi
|
278
|
8766 fi
|
|
8767
|
|
8768
|
462
|
8769 if test "$with_gtk" = "yes"; then
|
|
8770 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
8771 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
853
|
8772 echo "configure:8773: checking for compface.h" >&5
|
|
8773
|
|
8774 cat > conftest.$ac_ext <<EOF
|
|
8775 #line 8776 "configure"
|
462
|
8776 #include "confdefs.h"
|
|
8777 #include <compface.h>
|
|
8778 EOF
|
|
8779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
8780 { (eval echo configure:8781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
462
|
8781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
8782 if test -z "$ac_err"; then
|
|
8783 rm -rf conftest*
|
|
8784 eval "ac_cv_header_$ac_safe=yes"
|
|
8785 else
|
|
8786 echo "$ac_err" >&5
|
|
8787 echo "configure: failed program was:" >&5
|
|
8788 cat conftest.$ac_ext >&5
|
|
8789 rm -rf conftest*
|
|
8790 eval "ac_cv_header_$ac_safe=no"
|
|
8791 fi
|
|
8792 rm -f conftest*
|
|
8793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8794 echo "$ac_t""yes" 1>&6
|
|
8795 :
|
|
8796 else
|
|
8797 echo "$ac_t""no" 1>&6
|
|
8798 with_xface=no
|
|
8799 fi
|
|
8800 }
|
|
8801 test -z "$with_xface" && {
|
|
8802 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
853
|
8803 echo "configure:8804: checking for UnGenFace in -lcompface" >&5
|
462
|
8804 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
8805
|
|
8806 xe_check_libs=" -lcompface "
|
|
8807 cat > conftest.$ac_ext <<EOF
|
853
|
8808 #line 8809 "configure"
|
462
|
8809 #include "confdefs.h"
|
|
8810 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8811 /* We use char because int might match the return type of a gcc2
|
|
8812 builtin and then its argument prototype would still apply. */
|
|
8813 char UnGenFace();
|
|
8814
|
|
8815 int main() {
|
|
8816 UnGenFace()
|
|
8817 ; return 0; }
|
|
8818 EOF
|
853
|
8819 if { (eval echo configure:8820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
8820 rm -rf conftest*
|
|
8821 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8822 else
|
|
8823 echo "configure: failed program was:" >&5
|
|
8824 cat conftest.$ac_ext >&5
|
|
8825 rm -rf conftest*
|
|
8826 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8827 fi
|
|
8828 rm -f conftest*
|
|
8829 xe_check_libs=""
|
|
8830
|
|
8831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8832 echo "$ac_t""yes" 1>&6
|
|
8833 :
|
|
8834 else
|
|
8835 echo "$ac_t""no" 1>&6
|
|
8836 with_xface=no
|
|
8837 fi
|
|
8838
|
|
8839 }
|
|
8840 test -z "$with_xface" && with_xface=yes
|
|
8841 if test "$with_xface" = "yes"; then
|
|
8842 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8843 Defining HAVE_XFACE
|
|
8844 EOF
|
|
8845 cat >> confdefs.h <<\EOF
|
|
8846 #define HAVE_XFACE 1
|
|
8847 EOF
|
|
8848 }
|
|
8849
|
|
8850 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
|
|
8851 fi
|
|
8852 fi
|
|
8853
|
|
8854
|
|
8855
|
278
|
8856 if test "$with_x11" = "yes"; then
|
|
8857 echo "checking for X11 graphics libraries" 1>&6
|
853
|
8858 echo "configure:8859: checking for X11 graphics libraries" >&5
|
726
|
8859 fi
|
|
8860
|
|
8861 case "$with_widgets" in
|
|
8862 "yes" | "athena") detect_athena=yes ;;
|
|
8863 *) detect_athena=no ;;
|
|
8864 esac
|
|
8865
|
|
8866 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
|
434
|
8867 echo "checking for the Athena widgets" 1>&6
|
853
|
8868 echo "configure:8869: checking for the Athena widgets" >&5
|
434
|
8869
|
|
8870 case "$with_athena" in
|
|
8871 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
|
|
8872 "3d") athena_variant=Xaw3d athena_3d=yes ;;
|
|
8873 "next") athena_variant=neXtaw athena_3d=yes ;;
|
|
8874 "95") athena_variant=Xaw95 athena_3d=yes ;;
|
|
8875 "xpm") athena_variant=XawXpm athena_3d=yes ;;
|
|
8876 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
|
|
8877 esac
|
|
8878
|
|
8879 if test "$athena_3d" = "no"; then
|
193
|
8880
|
434
|
8881 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
|
853
|
8882 echo "configure:8883: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
|
434
|
8883 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
|
|
8884
|
|
8885 xe_check_libs=" -l$athena_variant "
|
|
8886 cat > conftest.$ac_ext <<EOF
|
853
|
8887 #line 8888 "configure"
|
193
|
8888 #include "confdefs.h"
|
|
8889 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8890 /* We use char because int might match the return type of a gcc2
|
|
8891 builtin and then its argument prototype would still apply. */
|
|
8892 char XawScrollbarSetThumb();
|
|
8893
|
|
8894 int main() {
|
|
8895 XawScrollbarSetThumb()
|
|
8896 ; return 0; }
|
|
8897 EOF
|
853
|
8898 if { (eval echo configure:8899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
434
|
8899 rm -rf conftest*
|
|
8900 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8901 else
|
|
8902 echo "configure: failed program was:" >&5
|
|
8903 cat conftest.$ac_ext >&5
|
|
8904 rm -rf conftest*
|
|
8905 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8906 fi
|
|
8907 rm -f conftest*
|
|
8908 xe_check_libs=""
|
|
8909
|
|
8910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8911 echo "$ac_t""yes" 1>&6
|
|
8912
|
|
8913 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
|
853
|
8914 echo "configure:8915: checking for threeDClassRec in -l$athena_variant" >&5
|
434
|
8915 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
8916
|
|
8917 xe_check_libs=" -l$athena_variant "
|
|
8918 cat > conftest.$ac_ext <<EOF
|
853
|
8919 #line 8920 "configure"
|
434
|
8920 #include "confdefs.h"
|
|
8921 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8922 /* We use char because int might match the return type of a gcc2
|
|
8923 builtin and then its argument prototype would still apply. */
|
|
8924 char threeDClassRec();
|
|
8925
|
|
8926 int main() {
|
|
8927 threeDClassRec()
|
|
8928 ; return 0; }
|
|
8929 EOF
|
853
|
8930 if { (eval echo configure:8931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
561
|
8931 rm -rf conftest*
|
|
8932 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8933 else
|
|
8934 echo "configure: failed program was:" >&5
|
|
8935 cat conftest.$ac_ext >&5
|
|
8936 rm -rf conftest*
|
|
8937 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8938 fi
|
|
8939 rm -f conftest*
|
|
8940 xe_check_libs=""
|
|
8941
|
|
8942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8943 echo "$ac_t""yes" 1>&6
|
|
8944 echo "configure: warning: Could not find a non-3d Athena widget library." 1>&2
|
434
|
8945 else
|
|
8946 echo "$ac_t""no" 1>&6
|
|
8947 athena_lib=$athena_variant
|
|
8948 fi
|
|
8949
|
|
8950
|
|
8951
|
|
8952 else
|
|
8953 echo "$ac_t""no" 1>&6
|
561
|
8954 echo "configure: warning: Could not find an Athena widget library." 1>&2
|
434
|
8955 fi
|
|
8956
|
|
8957
|
|
8958 else
|
|
8959
|
|
8960 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
|
853
|
8961 echo "configure:8962: checking for threeDClassRec in -l$athena_variant" >&5
|
434
|
8962 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
8963
|
|
8964 xe_check_libs=" -l$athena_variant "
|
|
8965 cat > conftest.$ac_ext <<EOF
|
853
|
8966 #line 8967 "configure"
|
434
|
8967 #include "confdefs.h"
|
|
8968 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8969 /* We use char because int might match the return type of a gcc2
|
|
8970 builtin and then its argument prototype would still apply. */
|
|
8971 char threeDClassRec();
|
|
8972
|
|
8973 int main() {
|
|
8974 threeDClassRec()
|
|
8975 ; return 0; }
|
|
8976 EOF
|
853
|
8977 if { (eval echo configure:8978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
434
|
8978 rm -rf conftest*
|
|
8979 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8980 else
|
|
8981 echo "configure: failed program was:" >&5
|
|
8982 cat conftest.$ac_ext >&5
|
|
8983 rm -rf conftest*
|
|
8984 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8985 fi
|
|
8986 rm -f conftest*
|
|
8987 xe_check_libs=""
|
|
8988
|
|
8989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8990 echo "$ac_t""yes" 1>&6
|
|
8991 athena_lib=$athena_variant
|
|
8992 else
|
|
8993 echo "$ac_t""no" 1>&6
|
|
8994 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
|
853
|
8995 echo "configure:8996: checking for threeDClassRec in -lXaw" >&5
|
434
|
8996 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
8997
|
|
8998 xe_check_libs=" -lXaw "
|
|
8999 cat > conftest.$ac_ext <<EOF
|
853
|
9000 #line 9001 "configure"
|
434
|
9001 #include "confdefs.h"
|
|
9002 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9003 /* We use char because int might match the return type of a gcc2
|
|
9004 builtin and then its argument prototype would still apply. */
|
|
9005 char threeDClassRec();
|
|
9006
|
|
9007 int main() {
|
|
9008 threeDClassRec()
|
|
9009 ; return 0; }
|
|
9010 EOF
|
853
|
9011 if { (eval echo configure:9012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
193
|
9012 rm -rf conftest*
|
|
9013 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9014 else
|
|
9015 echo "configure: failed program was:" >&5
|
|
9016 cat conftest.$ac_ext >&5
|
|
9017 rm -rf conftest*
|
|
9018 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9019 fi
|
|
9020 rm -f conftest*
|
|
9021 xe_check_libs=""
|
|
9022
|
|
9023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9024 echo "$ac_t""yes" 1>&6
|
438
|
9025 athena_lib=Xaw;
|
561
|
9026 echo "configure: warning: Assuming that libXaw is actually $athena_variant." 1>&2;
|
434
|
9027
|
|
9028 else
|
|
9029 echo "$ac_t""no" 1>&6
|
561
|
9030 echo "configure: warning: Could not find a 3d Athena widget library that looked like $athena_variant." 1>&2
|
434
|
9031 fi
|
|
9032
|
|
9033
|
|
9034 fi
|
|
9035
|
|
9036
|
|
9037 fi
|
|
9038
|
|
9039 if test "$athena_3d" = "no"; then
|
|
9040 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
9041 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
|
853
|
9042 echo "configure:9043: checking for X11/Xaw/ThreeD.h" >&5
|
|
9043
|
|
9044 cat > conftest.$ac_ext <<EOF
|
|
9045 #line 9046 "configure"
|
434
|
9046 #include "confdefs.h"
|
|
9047 #include <X11/Xaw/ThreeD.h>
|
|
9048 EOF
|
|
9049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
9050 { (eval echo configure:9051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
561
|
9051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9052 if test -z "$ac_err"; then
|
|
9053 rm -rf conftest*
|
|
9054 eval "ac_cv_header_$ac_safe=yes"
|
|
9055 else
|
|
9056 echo "$ac_err" >&5
|
|
9057 echo "configure: failed program was:" >&5
|
|
9058 cat conftest.$ac_ext >&5
|
|
9059 rm -rf conftest*
|
|
9060 eval "ac_cv_header_$ac_safe=no"
|
|
9061 fi
|
|
9062 rm -f conftest*
|
|
9063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9064 echo "$ac_t""yes" 1>&6
|
|
9065 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
|
434
|
9066 else
|
|
9067 echo "$ac_t""no" 1>&6
|
|
9068 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
9069 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
|
853
|
9070 echo "configure:9071: checking for X11/Xaw/XawInit.h" >&5
|
|
9071
|
|
9072 cat > conftest.$ac_ext <<EOF
|
|
9073 #line 9074 "configure"
|
434
|
9074 #include "confdefs.h"
|
|
9075 #include <X11/Xaw/XawInit.h>
|
|
9076 EOF
|
|
9077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
9078 { (eval echo configure:9079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
9079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9080 if test -z "$ac_err"; then
|
|
9081 rm -rf conftest*
|
|
9082 eval "ac_cv_header_$ac_safe=yes"
|
|
9083 else
|
|
9084 echo "$ac_err" >&5
|
|
9085 echo "configure: failed program was:" >&5
|
|
9086 cat conftest.$ac_ext >&5
|
|
9087 rm -rf conftest*
|
|
9088 eval "ac_cv_header_$ac_safe=no"
|
|
9089 fi
|
|
9090 rm -f conftest*
|
|
9091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9092 echo "$ac_t""yes" 1>&6
|
|
9093 athena_h_path=X11/Xaw
|
|
9094 else
|
|
9095 echo "$ac_t""no" 1>&6
|
561
|
9096 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
|
434
|
9097 fi
|
|
9098
|
|
9099 fi
|
|
9100
|
|
9101 else
|
|
9102 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
9103 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
|
853
|
9104 echo "configure:9105: checking for X11/$athena_variant/XawInit.h" >&5
|
|
9105
|
|
9106 cat > conftest.$ac_ext <<EOF
|
|
9107 #line 9108 "configure"
|
434
|
9108 #include "confdefs.h"
|
|
9109 #include <X11/$athena_variant/XawInit.h>
|
|
9110 EOF
|
|
9111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
9112 { (eval echo configure:9113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
9113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9114 if test -z "$ac_err"; then
|
|
9115 rm -rf conftest*
|
|
9116 eval "ac_cv_header_$ac_safe=yes"
|
|
9117 else
|
|
9118 echo "$ac_err" >&5
|
|
9119 echo "configure: failed program was:" >&5
|
|
9120 cat conftest.$ac_ext >&5
|
|
9121 rm -rf conftest*
|
|
9122 eval "ac_cv_header_$ac_safe=no"
|
|
9123 fi
|
|
9124 rm -f conftest*
|
|
9125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9126 echo "$ac_t""yes" 1>&6
|
|
9127 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
9128 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
|
853
|
9129 echo "configure:9130: checking for X11/$athena_variant/ThreeD.h" >&5
|
|
9130
|
|
9131 cat > conftest.$ac_ext <<EOF
|
|
9132 #line 9133 "configure"
|
434
|
9133 #include "confdefs.h"
|
|
9134 #include <X11/$athena_variant/ThreeD.h>
|
|
9135 EOF
|
|
9136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
9137 { (eval echo configure:9138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
9138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9139 if test -z "$ac_err"; then
|
|
9140 rm -rf conftest*
|
|
9141 eval "ac_cv_header_$ac_safe=yes"
|
|
9142 else
|
|
9143 echo "$ac_err" >&5
|
|
9144 echo "configure: failed program was:" >&5
|
|
9145 cat conftest.$ac_ext >&5
|
|
9146 rm -rf conftest*
|
|
9147 eval "ac_cv_header_$ac_safe=no"
|
|
9148 fi
|
|
9149 rm -f conftest*
|
|
9150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9151 echo "$ac_t""yes" 1>&6
|
|
9152 athena_h_path=X11/$athena_variant
|
|
9153 else
|
|
9154 echo "$ac_t""no" 1>&6
|
|
9155 fi
|
|
9156
|
|
9157 else
|
|
9158 echo "$ac_t""no" 1>&6
|
|
9159 fi
|
|
9160
|
|
9161
|
440
|
9162 if test -z "$athena_h_path"; then
|
|
9163 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
9164 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
|
853
|
9165 echo "configure:9166: checking for $athena_variant/XawInit.h" >&5
|
|
9166
|
|
9167 cat > conftest.$ac_ext <<EOF
|
|
9168 #line 9169 "configure"
|
440
|
9169 #include "confdefs.h"
|
|
9170 #include <$athena_variant/XawInit.h>
|
|
9171 EOF
|
|
9172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
9173 { (eval echo configure:9174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
9174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9175 if test -z "$ac_err"; then
|
|
9176 rm -rf conftest*
|
|
9177 eval "ac_cv_header_$ac_safe=yes"
|
|
9178 else
|
|
9179 echo "$ac_err" >&5
|
|
9180 echo "configure: failed program was:" >&5
|
|
9181 cat conftest.$ac_ext >&5
|
|
9182 rm -rf conftest*
|
|
9183 eval "ac_cv_header_$ac_safe=no"
|
|
9184 fi
|
|
9185 rm -f conftest*
|
|
9186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9187 echo "$ac_t""yes" 1>&6
|
|
9188 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
9189 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
|
853
|
9190 echo "configure:9191: checking for $athena_variant/ThreeD.h" >&5
|
|
9191
|
|
9192 cat > conftest.$ac_ext <<EOF
|
|
9193 #line 9194 "configure"
|
440
|
9194 #include "confdefs.h"
|
|
9195 #include <$athena_variant/ThreeD.h>
|
|
9196 EOF
|
|
9197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
9198 { (eval echo configure:9199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
9199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9200 if test -z "$ac_err"; then
|
|
9201 rm -rf conftest*
|
|
9202 eval "ac_cv_header_$ac_safe=yes"
|
|
9203 else
|
|
9204 echo "$ac_err" >&5
|
|
9205 echo "configure: failed program was:" >&5
|
|
9206 cat conftest.$ac_ext >&5
|
|
9207 rm -rf conftest*
|
|
9208 eval "ac_cv_header_$ac_safe=no"
|
|
9209 fi
|
|
9210 rm -f conftest*
|
|
9211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9212 echo "$ac_t""yes" 1>&6
|
|
9213 athena_h_path=$athena_variant
|
|
9214 else
|
|
9215 echo "$ac_t""no" 1>&6
|
|
9216 fi
|
|
9217
|
|
9218 else
|
|
9219 echo "$ac_t""no" 1>&6
|
|
9220 fi
|
|
9221
|
|
9222 fi
|
|
9223
|
434
|
9224 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
|
|
9225 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
9226 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
|
853
|
9227 echo "configure:9228: checking for X11/Xaw3d/XawInit.h" >&5
|
|
9228
|
|
9229 cat > conftest.$ac_ext <<EOF
|
|
9230 #line 9231 "configure"
|
434
|
9231 #include "confdefs.h"
|
|
9232 #include <X11/Xaw3d/XawInit.h>
|
|
9233 EOF
|
|
9234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
9235 { (eval echo configure:9236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
9236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9237 if test -z "$ac_err"; then
|
|
9238 rm -rf conftest*
|
|
9239 eval "ac_cv_header_$ac_safe=yes"
|
|
9240 else
|
|
9241 echo "$ac_err" >&5
|
|
9242 echo "configure: failed program was:" >&5
|
|
9243 cat conftest.$ac_ext >&5
|
|
9244 rm -rf conftest*
|
|
9245 eval "ac_cv_header_$ac_safe=no"
|
|
9246 fi
|
|
9247 rm -f conftest*
|
|
9248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9249 echo "$ac_t""yes" 1>&6
|
|
9250 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
9251 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
|
853
|
9252 echo "configure:9253: checking for X11/Xaw3d/ThreeD.h" >&5
|
|
9253
|
|
9254 cat > conftest.$ac_ext <<EOF
|
|
9255 #line 9256 "configure"
|
434
|
9256 #include "confdefs.h"
|
|
9257 #include <X11/Xaw3d/ThreeD.h>
|
|
9258 EOF
|
|
9259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
9260 { (eval echo configure:9261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
9261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9262 if test -z "$ac_err"; then
|
|
9263 rm -rf conftest*
|
|
9264 eval "ac_cv_header_$ac_safe=yes"
|
|
9265 else
|
|
9266 echo "$ac_err" >&5
|
|
9267 echo "configure: failed program was:" >&5
|
|
9268 cat conftest.$ac_ext >&5
|
|
9269 rm -rf conftest*
|
|
9270 eval "ac_cv_header_$ac_safe=no"
|
|
9271 fi
|
|
9272 rm -f conftest*
|
|
9273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9274 echo "$ac_t""yes" 1>&6
|
|
9275
|
561
|
9276 echo "configure: warning: Assuming that X11/Xaw3d headers are suitable for $athena_variant." 1>&2
|
434
|
9277 athena_h_path=X11/Xaw3d
|
|
9278
|
|
9279 else
|
|
9280 echo "$ac_t""no" 1>&6
|
|
9281 fi
|
|
9282
|
|
9283 else
|
|
9284 echo "$ac_t""no" 1>&6
|
|
9285 fi
|
|
9286
|
|
9287 fi
|
|
9288
|
440
|
9289 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
|
|
9290 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
9291 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
|
853
|
9292 echo "configure:9293: checking for Xaw3d/XawInit.h" >&5
|
|
9293
|
|
9294 cat > conftest.$ac_ext <<EOF
|
|
9295 #line 9296 "configure"
|
440
|
9296 #include "confdefs.h"
|
|
9297 #include <Xaw3d/XawInit.h>
|
|
9298 EOF
|
|
9299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
9300 { (eval echo configure:9301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
9301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9302 if test -z "$ac_err"; then
|
|
9303 rm -rf conftest*
|
|
9304 eval "ac_cv_header_$ac_safe=yes"
|
|
9305 else
|
|
9306 echo "$ac_err" >&5
|
|
9307 echo "configure: failed program was:" >&5
|
|
9308 cat conftest.$ac_ext >&5
|
|
9309 rm -rf conftest*
|
|
9310 eval "ac_cv_header_$ac_safe=no"
|
|
9311 fi
|
|
9312 rm -f conftest*
|
|
9313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9314 echo "$ac_t""yes" 1>&6
|
|
9315 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
9316 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
|
853
|
9317 echo "configure:9318: checking for Xaw3d/ThreeD.h" >&5
|
|
9318
|
|
9319 cat > conftest.$ac_ext <<EOF
|
|
9320 #line 9321 "configure"
|
440
|
9321 #include "confdefs.h"
|
|
9322 #include <Xaw3d/ThreeD.h>
|
|
9323 EOF
|
|
9324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
9325 { (eval echo configure:9326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
9326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9327 if test -z "$ac_err"; then
|
|
9328 rm -rf conftest*
|
|
9329 eval "ac_cv_header_$ac_safe=yes"
|
|
9330 else
|
|
9331 echo "$ac_err" >&5
|
|
9332 echo "configure: failed program was:" >&5
|
|
9333 cat conftest.$ac_ext >&5
|
|
9334 rm -rf conftest*
|
|
9335 eval "ac_cv_header_$ac_safe=no"
|
|
9336 fi
|
|
9337 rm -f conftest*
|
|
9338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9339 echo "$ac_t""yes" 1>&6
|
|
9340
|
561
|
9341 echo "configure: warning: Assuming that Xaw3d headers are suitable for $athena_variant." 1>&2
|
440
|
9342 athena_h_path=Xaw3d
|
|
9343
|
|
9344 else
|
|
9345 echo "$ac_t""no" 1>&6
|
|
9346 fi
|
|
9347
|
|
9348 else
|
|
9349 echo "$ac_t""no" 1>&6
|
|
9350 fi
|
|
9351
|
|
9352 fi
|
|
9353
|
434
|
9354 if test -z "$athena_h_path"; then
|
|
9355 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
9356 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
|
853
|
9357 echo "configure:9358: checking for X11/Xaw/ThreeD.h" >&5
|
|
9358
|
|
9359 cat > conftest.$ac_ext <<EOF
|
|
9360 #line 9361 "configure"
|
434
|
9361 #include "confdefs.h"
|
|
9362 #include <X11/Xaw/ThreeD.h>
|
|
9363 EOF
|
|
9364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
9365 { (eval echo configure:9366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
9366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9367 if test -z "$ac_err"; then
|
|
9368 rm -rf conftest*
|
|
9369 eval "ac_cv_header_$ac_safe=yes"
|
|
9370 else
|
|
9371 echo "$ac_err" >&5
|
|
9372 echo "configure: failed program was:" >&5
|
|
9373 cat conftest.$ac_ext >&5
|
|
9374 rm -rf conftest*
|
|
9375 eval "ac_cv_header_$ac_safe=no"
|
|
9376 fi
|
|
9377 rm -f conftest*
|
|
9378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9379 echo "$ac_t""yes" 1>&6
|
|
9380
|
561
|
9381 echo "configure: warning: Assuming that X11/Xaw headers are suitable for $athena_variant." 1>&2
|
434
|
9382 athena_h_path=X11/Xaw
|
|
9383
|
|
9384 else
|
|
9385 echo "$ac_t""no" 1>&6
|
561
|
9386 echo "configure: warning: Could not find a suitable 3d Athena header set." 1>&2
|
434
|
9387 fi
|
|
9388
|
|
9389 fi
|
|
9390 fi
|
|
9391
|
|
9392 if test -n "$athena_lib" -a -n "$athena_h_path"; then
|
|
9393 have_xaw=yes
|
|
9394 else
|
|
9395 have_xaw=no
|
|
9396 fi
|
424
|
9397
|
724
|
9398 else
|
|
9399 have_xaw=no
|
|
9400 fi
|
|
9401 if test "$with_x11" = "yes"; then
|
193
|
9402 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
|
151
|
9403 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
|
853
|
9404 echo "configure:9405: checking for Xm/Xm.h" >&5
|
|
9405
|
|
9406 cat > conftest.$ac_ext <<EOF
|
|
9407 #line 9408 "configure"
|
151
|
9408 #include "confdefs.h"
|
|
9409 #include <Xm/Xm.h>
|
|
9410 EOF
|
|
9411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
9412 { (eval echo configure:9413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
151
|
9414 if test -z "$ac_err"; then
|
|
9415 rm -rf conftest*
|
|
9416 eval "ac_cv_header_$ac_safe=yes"
|
|
9417 else
|
|
9418 echo "$ac_err" >&5
|
|
9419 echo "configure: failed program was:" >&5
|
|
9420 cat conftest.$ac_ext >&5
|
|
9421 rm -rf conftest*
|
|
9422 eval "ac_cv_header_$ac_safe=no"
|
|
9423 fi
|
|
9424 rm -f conftest*
|
|
9425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9426 echo "$ac_t""yes" 1>&6
|
|
9427
|
|
9428 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
|
853
|
9429 echo "configure:9430: checking for XmStringFree in -lXm" >&5
|
151
|
9430 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
|
|
9431
|
|
9432 xe_check_libs=" -lXm "
|
|
9433 cat > conftest.$ac_ext <<EOF
|
853
|
9434 #line 9435 "configure"
|
151
|
9435 #include "confdefs.h"
|
|
9436 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9437 /* We use char because int might match the return type of a gcc2
|
|
9438 builtin and then its argument prototype would still apply. */
|
|
9439 char XmStringFree();
|
|
9440
|
|
9441 int main() {
|
|
9442 XmStringFree()
|
|
9443 ; return 0; }
|
|
9444 EOF
|
853
|
9445 if { (eval echo configure:9446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
9446 rm -rf conftest*
|
|
9447 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9448 else
|
|
9449 echo "configure: failed program was:" >&5
|
|
9450 cat conftest.$ac_ext >&5
|
|
9451 rm -rf conftest*
|
|
9452 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9453 fi
|
|
9454 rm -f conftest*
|
|
9455 xe_check_libs=""
|
|
9456
|
|
9457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9458 echo "$ac_t""yes" 1>&6
|
|
9459 have_motif=yes
|
|
9460 else
|
|
9461 echo "$ac_t""no" 1>&6
|
|
9462 have_motif=no
|
|
9463 fi
|
|
9464
|
|
9465
|
|
9466 else
|
|
9467 echo "$ac_t""no" 1>&6
|
|
9468 have_motif=no
|
|
9469 fi
|
|
9470
|
149
|
9471
|
272
|
9472 if test "$have_motif" = "yes"; then
|
|
9473 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
|
853
|
9474 echo "configure:9475: checking for Lesstif" >&5
|
272
|
9475 cat > conftest.$ac_ext <<EOF
|
853
|
9476 #line 9477 "configure"
|
272
|
9477 #include "confdefs.h"
|
|
9478 #include <Xm/Xm.h>
|
|
9479 #ifdef LESSTIF_VERSION
|
|
9480 yes
|
|
9481 #endif
|
|
9482
|
|
9483 EOF
|
|
9484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
9485 egrep "yes" >/dev/null 2>&1; then
|
|
9486 rm -rf conftest*
|
|
9487 have_lesstif=yes
|
|
9488 else
|
|
9489 rm -rf conftest*
|
|
9490 have_lesstif=no
|
|
9491 fi
|
|
9492 rm -f conftest*
|
|
9493
|
|
9494 echo "$ac_t""$have_lesstif" 1>&6
|
|
9495 fi
|
|
9496
|
193
|
9497 fi
|
149
|
9498
|
434
|
9499 case "$with_menubars" in "" | "yes" | "athena" )
|
149
|
9500 with_menubars="lucid" ;;
|
|
9501 esac
|
243
|
9502 case "$with_dialogs" in "" | "yes" | "lucid" )
|
434
|
9503 if test "$have_motif" = "yes"; then with_dialogs="motif"
|
|
9504 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
|
771
|
9505 elif test "$with_msw" = "yes"; then with_dialogs="msw"
|
149
|
9506 else with_dialogs=no
|
|
9507 fi ;;
|
|
9508 esac
|
|
9509 case "$with_scrollbars" in "" | "yes" )
|
|
9510 with_scrollbars="lucid" ;;
|
|
9511 esac
|
424
|
9512 case "$with_widgets" in "" | "yes" | "lucid")
|
420
|
9513 if test "$have_motif" = "yes"; then with_widgets="motif"
|
424
|
9514 elif test "$have_xaw" = "yes"; then with_widgets="athena"
|
771
|
9515 elif test "$with_msw" = "yes"; then with_widgets="msw"
|
420
|
9516 else with_widgets=no
|
|
9517 fi ;;
|
|
9518 esac
|
|
9519
|
|
9520 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
|
412
|
9521
|
424
|
9522 case "$all_widgets" in
|
434
|
9523 *athena* )
|
|
9524 if test "$have_xaw" != "yes"; then
|
|
9525 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
|
|
9526 fi
|
|
9527
|
|
9528 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
|
|
9529
|
|
9530 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
|
|
9531
|
442
|
9532 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9533 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
|
|
9534 EOF
|
|
9535 cat >> confdefs.h <<EOF
|
|
9536 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
|
|
9537 EOF
|
|
9538 }
|
|
9539
|
|
9540 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9541 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
|
|
9542 EOF
|
|
9543 cat >> confdefs.h <<EOF
|
|
9544 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
|
|
9545 EOF
|
|
9546 }
|
|
9547
|
|
9548 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9549 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
|
|
9550 EOF
|
|
9551 cat >> confdefs.h <<EOF
|
|
9552 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
|
|
9553 EOF
|
|
9554 }
|
|
9555
|
|
9556 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9557 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
|
|
9558 EOF
|
|
9559 cat >> confdefs.h <<EOF
|
|
9560 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
|
|
9561 EOF
|
|
9562 }
|
|
9563
|
|
9564 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9565 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
|
|
9566 EOF
|
|
9567 cat >> confdefs.h <<EOF
|
|
9568 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
|
|
9569 EOF
|
|
9570 }
|
|
9571
|
|
9572 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9573 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
|
|
9574 EOF
|
|
9575 cat >> confdefs.h <<EOF
|
|
9576 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
|
|
9577 EOF
|
|
9578 }
|
|
9579
|
|
9580 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9581 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
|
|
9582 EOF
|
|
9583 cat >> confdefs.h <<EOF
|
|
9584 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
|
|
9585 EOF
|
|
9586 }
|
|
9587
|
|
9588 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9589 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
|
|
9590 EOF
|
|
9591 cat >> confdefs.h <<EOF
|
|
9592 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
|
|
9593 EOF
|
|
9594 }
|
|
9595
|
|
9596 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9597 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
|
|
9598 EOF
|
|
9599 cat >> confdefs.h <<EOF
|
|
9600 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
|
|
9601 EOF
|
|
9602 }
|
|
9603
|
|
9604 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9605 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
|
|
9606 EOF
|
|
9607 cat >> confdefs.h <<EOF
|
|
9608 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
|
434
|
9609 EOF
|
|
9610 }
|
|
9611
|
|
9612
|
|
9613 { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
9614 Defining LWLIB_USES_ATHENA
|
|
9615 EOF
|
|
9616 cat >> confdefs.h <<\EOF
|
|
9617 #define LWLIB_USES_ATHENA 1
|
|
9618 EOF
|
|
9619 }
|
|
9620
|
434
|
9621 { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
9622 Defining NEED_ATHENA
|
|
9623 EOF
|
|
9624 cat >> confdefs.h <<\EOF
|
|
9625 #define NEED_ATHENA 1
|
|
9626 EOF
|
|
9627 }
|
|
9628
|
442
|
9629 need_athena="yes"
|
434
|
9630
|
|
9631 if test "$athena_3d" = "yes"; then
|
|
9632 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9633 Defining HAVE_ATHENA_3D
|
|
9634 EOF
|
|
9635 cat >> confdefs.h <<\EOF
|
|
9636 #define HAVE_ATHENA_3D 1
|
|
9637 EOF
|
|
9638 }
|
|
9639
|
|
9640 fi
|
|
9641 ;;
|
149
|
9642 esac
|
|
9643
|
|
9644 case "$all_widgets" in *motif* )
|
|
9645 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9646 Defining LWLIB_USES_MOTIF
|
|
9647 EOF
|
|
9648 cat >> confdefs.h <<\EOF
|
|
9649 #define LWLIB_USES_MOTIF 1
|
|
9650 EOF
|
|
9651 }
|
|
9652
|
157
|
9653 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9654 Defining NEED_MOTIF
|
|
9655 EOF
|
|
9656 cat >> confdefs.h <<\EOF
|
|
9657 #define NEED_MOTIF 1
|
|
9658 EOF
|
|
9659 }
|
|
9660
|
|
9661 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
|
149
|
9662 need_motif=yes ;;
|
70
|
9663 esac
|
|
9664
|
157
|
9665 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
|
9666 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
|
9667 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
|
424
|
9668 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
|
|
9669 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
|
|
9670 case "$with_widgets" in athena* )
|
|
9671 lwlib_objs="$lwlib_objs xlwradio.o xlwcheckbox.o xlwgauge.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwradio.o xlwcheckbox.o xlwgauge.o\" to \$lwlib_objs"; fi;;
|
|
9672 esac
|
157
|
9673 case "$all_widgets" in *lucid* )
|
|
9674 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9675 Defining NEED_LUCID
|
|
9676 EOF
|
|
9677 cat >> confdefs.h <<\EOF
|
|
9678 #define NEED_LUCID 1
|
|
9679 EOF
|
|
9680 }
|
|
9681
|
|
9682 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
|
|
9683 esac
|
|
9684
|
|
9685
|
|
9686
|
434
|
9687 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
9688 Defining LWLIB_SCROLLBARS_ATHENA
|
|
9689 EOF
|
|
9690 cat >> confdefs.h <<\EOF
|
|
9691 #define LWLIB_SCROLLBARS_ATHENA 1
|
|
9692 EOF
|
|
9693 }
|
434
|
9694
|
|
9695 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
9696 Defining LWLIB_DIALOGS_ATHENA
|
|
9697 EOF
|
|
9698 cat >> confdefs.h <<\EOF
|
|
9699 #define LWLIB_DIALOGS_ATHENA 1
|
|
9700 EOF
|
|
9701 }
|
434
|
9702
|
|
9703
|
|
9704 if test "$athena_3d" = "yes"; then
|
|
9705 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
9706 Defining LWLIB_SCROLLBARS_ATHENA3D
|
|
9707 EOF
|
|
9708 cat >> confdefs.h <<\EOF
|
|
9709 #define LWLIB_SCROLLBARS_ATHENA3D 1
|
|
9710 EOF
|
|
9711 }
|
|
9712
|
434
|
9713 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
9714 Defining LWLIB_DIALOGS_ATHENA3D
|
|
9715 EOF
|
|
9716 cat >> confdefs.h <<\EOF
|
|
9717 #define LWLIB_DIALOGS_ATHENA3D 1
|
|
9718 EOF
|
|
9719 }
|
|
9720
|
434
|
9721 fi
|
|
9722
|
424
|
9723 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9724 Defining LWLIB_WIDGETS_ATHENA
|
|
9725 EOF
|
|
9726 cat >> confdefs.h <<\EOF
|
|
9727 #define LWLIB_WIDGETS_ATHENA 1
|
|
9728 EOF
|
|
9729 }
|
|
9730 ;; esac
|
|
9731 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
|
|
9732 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9733 Defining LWLIB_TABS_LUCID
|
|
9734 EOF
|
|
9735 cat >> confdefs.h <<\EOF
|
|
9736 #define LWLIB_TABS_LUCID 1
|
|
9737 EOF
|
|
9738 }
|
|
9739
|
149
|
9740
|
|
9741 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9742 Defining HAVE_MENUBARS
|
|
9743 EOF
|
|
9744 cat >> confdefs.h <<\EOF
|
|
9745 #define HAVE_MENUBARS 1
|
|
9746 EOF
|
|
9747 }
|
|
9748
|
|
9749 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9750 Defining HAVE_SCROLLBARS
|
|
9751 EOF
|
|
9752 cat >> confdefs.h <<\EOF
|
|
9753 #define HAVE_SCROLLBARS 1
|
|
9754 EOF
|
|
9755 }
|
|
9756
|
|
9757 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9758 Defining HAVE_DIALOGS
|
|
9759 EOF
|
|
9760 cat >> confdefs.h <<\EOF
|
|
9761 #define HAVE_DIALOGS 1
|
|
9762 EOF
|
|
9763 }
|
|
9764
|
|
9765 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9766 Defining HAVE_TOOLBARS
|
|
9767 EOF
|
|
9768 cat >> confdefs.h <<\EOF
|
|
9769 #define HAVE_TOOLBARS 1
|
|
9770 EOF
|
|
9771 }
|
|
9772
|
440
|
9773 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
9774 Defining HAVE_WIDGETS
|
|
9775 EOF
|
|
9776 cat >> confdefs.h <<\EOF
|
|
9777 #define HAVE_WIDGETS 1
|
|
9778 EOF
|
|
9779 }
|
|
9780
|
149
|
9781
|
|
9782 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9783 Defining LWLIB_MENUBARS_LUCID
|
|
9784 EOF
|
|
9785 cat >> confdefs.h <<\EOF
|
|
9786 #define LWLIB_MENUBARS_LUCID 1
|
|
9787 EOF
|
|
9788 }
|
|
9789
|
|
9790 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9791 Defining LWLIB_SCROLLBARS_LUCID
|
|
9792 EOF
|
|
9793 cat >> confdefs.h <<\EOF
|
|
9794 #define LWLIB_SCROLLBARS_LUCID 1
|
|
9795 EOF
|
|
9796 }
|
|
9797
|
|
9798
|
|
9799 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9800 Defining LWLIB_MENUBARS_MOTIF
|
|
9801 EOF
|
|
9802 cat >> confdefs.h <<\EOF
|
|
9803 #define LWLIB_MENUBARS_MOTIF 1
|
|
9804 EOF
|
|
9805 }
|
|
9806
|
|
9807 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9808 Defining LWLIB_SCROLLBARS_MOTIF
|
|
9809 EOF
|
|
9810 cat >> confdefs.h <<\EOF
|
|
9811 #define LWLIB_SCROLLBARS_MOTIF 1
|
|
9812 EOF
|
|
9813 }
|
|
9814
|
|
9815 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9816 Defining LWLIB_DIALOGS_MOTIF
|
|
9817 EOF
|
|
9818 cat >> confdefs.h <<\EOF
|
|
9819 #define LWLIB_DIALOGS_MOTIF 1
|
|
9820 EOF
|
|
9821 }
|
|
9822
|
424
|
9823 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9824 Defining LWLIB_WIDGETS_MOTIF
|
|
9825 EOF
|
|
9826 cat >> confdefs.h <<\EOF
|
|
9827 #define LWLIB_WIDGETS_MOTIF 1
|
|
9828 EOF
|
|
9829 }
|
|
9830
|
412
|
9831
|
272
|
9832
|
|
9833 test -z "$with_mule" && with_mule=no
|
561
|
9834
|
|
9835
|
771
|
9836 if test "$with_default_eol_detection" = "yes"; then
|
251
|
9837 { test "$extra_verbose" = "yes" && cat << \EOF
|
771
|
9838 Defining HAVE_DEFAULT_EOL_DETECTION
|
|
9839 EOF
|
|
9840 cat >> confdefs.h <<\EOF
|
|
9841 #define HAVE_DEFAULT_EOL_DETECTION 1
|
|
9842 EOF
|
|
9843 }
|
|
9844
|
|
9845 fi
|
594
|
9846
|
149
|
9847 if test "$with_mule" = "yes" ; then
|
151
|
9848 echo "checking for Mule-related features" 1>&6
|
853
|
9849 echo "configure:9850: checking for Mule-related features" >&5
|
149
|
9850 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9851 Defining MULE
|
|
9852 EOF
|
|
9853 cat >> confdefs.h <<\EOF
|
|
9854 #define MULE 1
|
|
9855 EOF
|
|
9856 }
|
|
9857
|
|
9858
|
155
|
9859 for ac_hdr in libintl.h
|
|
9860 do
|
|
9861 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
9862 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
853
|
9863 echo "configure:9864: checking for $ac_hdr" >&5
|
|
9864
|
|
9865 cat > conftest.$ac_ext <<EOF
|
|
9866 #line 9867 "configure"
|
155
|
9867 #include "confdefs.h"
|
|
9868 #include <$ac_hdr>
|
|
9869 EOF
|
|
9870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
9871 { (eval echo configure:9872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
9873 if test -z "$ac_err"; then
|
|
9874 rm -rf conftest*
|
|
9875 eval "ac_cv_header_$ac_safe=yes"
|
|
9876 else
|
|
9877 echo "$ac_err" >&5
|
|
9878 echo "configure: failed program was:" >&5
|
|
9879 cat conftest.$ac_ext >&5
|
|
9880 rm -rf conftest*
|
|
9881 eval "ac_cv_header_$ac_safe=no"
|
|
9882 fi
|
|
9883 rm -f conftest*
|
|
9884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9885 echo "$ac_t""yes" 1>&6
|
|
9886 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
9887 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9888 Defining $ac_tr_hdr
|
|
9889 EOF
|
|
9890 cat >> confdefs.h <<EOF
|
|
9891 #define $ac_tr_hdr 1
|
|
9892 EOF
|
|
9893 }
|
|
9894
|
|
9895 else
|
|
9896 echo "$ac_t""no" 1>&6
|
|
9897 fi
|
|
9898 done
|
|
9899
|
|
9900
|
149
|
9901 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
|
853
|
9902 echo "configure:9903: checking for strerror in -lintl" >&5
|
149
|
9903 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
|
|
9904
|
|
9905 xe_check_libs=" -lintl "
|
|
9906 cat > conftest.$ac_ext <<EOF
|
853
|
9907 #line 9908 "configure"
|
149
|
9908 #include "confdefs.h"
|
|
9909 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9910 /* We use char because int might match the return type of a gcc2
|
|
9911 builtin and then its argument prototype would still apply. */
|
|
9912 char strerror();
|
|
9913
|
|
9914 int main() {
|
|
9915 strerror()
|
|
9916 ; return 0; }
|
|
9917 EOF
|
853
|
9918 if { (eval echo configure:9919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
9919 rm -rf conftest*
|
|
9920 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9921 else
|
|
9922 echo "configure: failed program was:" >&5
|
|
9923 cat conftest.$ac_ext >&5
|
|
9924 rm -rf conftest*
|
|
9925 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9926 fi
|
|
9927 rm -f conftest*
|
|
9928 xe_check_libs=""
|
|
9929
|
151
|
9930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
9931 echo "$ac_t""yes" 1>&6
|
|
9932 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
9933 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
9934 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9935 Defining $ac_tr_lib
|
|
9936 EOF
|
|
9937 cat >> confdefs.h <<EOF
|
|
9938 #define $ac_tr_lib 1
|
|
9939 EOF
|
|
9940 }
|
|
9941
|
151
|
9942 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
|
149
|
9943
|
|
9944 else
|
|
9945 echo "$ac_t""no" 1>&6
|
|
9946 fi
|
|
9947
|
|
9948
|
|
9949
|
|
9950 echo "checking for Mule input methods" 1>&6
|
853
|
9951 echo "configure:9952: checking for Mule input methods" >&5
|
272
|
9952 case "$with_xim" in "" | "yes" )
|
149
|
9953 echo "checking for XIM" 1>&6
|
853
|
9954 echo "configure:9955: checking for XIM" >&5
|
392
|
9955
|
|
9956 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
|
853
|
9957 echo "configure:9958: checking for XOpenIM in -lX11" >&5
|
392
|
9958 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
|
|
9959
|
|
9960 xe_check_libs=" -lX11 "
|
|
9961 cat > conftest.$ac_ext <<EOF
|
853
|
9962 #line 9963 "configure"
|
392
|
9963 #include "confdefs.h"
|
|
9964 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9965 /* We use char because int might match the return type of a gcc2
|
|
9966 builtin and then its argument prototype would still apply. */
|
|
9967 char XOpenIM();
|
|
9968
|
|
9969 int main() {
|
|
9970 XOpenIM()
|
|
9971 ; return 0; }
|
|
9972 EOF
|
853
|
9973 if { (eval echo configure:9974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
392
|
9974 rm -rf conftest*
|
|
9975 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9976 else
|
|
9977 echo "configure: failed program was:" >&5
|
|
9978 cat conftest.$ac_ext >&5
|
|
9979 rm -rf conftest*
|
|
9980 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9981 fi
|
|
9982 rm -f conftest*
|
|
9983 xe_check_libs=""
|
|
9984
|
|
9985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9986 echo "$ac_t""yes" 1>&6
|
|
9987 with_xim=xlib
|
|
9988 else
|
|
9989 echo "$ac_t""no" 1>&6
|
|
9990 with_xim=no
|
|
9991 fi
|
|
9992
|
|
9993
|
|
9994 if test "$have_motif $have_lesstif" = "yes no"; then
|
|
9995
|
149
|
9996 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
|
853
|
9997 echo "configure:9998: checking for XmImMbLookupString in -lXm" >&5
|
149
|
9998 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
|
|
9999
|
|
10000 xe_check_libs=" -lXm "
|
|
10001 cat > conftest.$ac_ext <<EOF
|
853
|
10002 #line 10003 "configure"
|
149
|
10003 #include "confdefs.h"
|
|
10004 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10005 /* We use char because int might match the return type of a gcc2
|
|
10006 builtin and then its argument prototype would still apply. */
|
|
10007 char XmImMbLookupString();
|
|
10008
|
|
10009 int main() {
|
|
10010 XmImMbLookupString()
|
|
10011 ; return 0; }
|
|
10012 EOF
|
853
|
10013 if { (eval echo configure:10014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
10014 rm -rf conftest*
|
|
10015 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10016 else
|
|
10017 echo "configure: failed program was:" >&5
|
|
10018 cat conftest.$ac_ext >&5
|
|
10019 rm -rf conftest*
|
|
10020 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10021 fi
|
|
10022 rm -f conftest*
|
|
10023 xe_check_libs=""
|
|
10024
|
151
|
10025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10026 echo "$ac_t""yes" 1>&6
|
|
10027 with_xim=motif
|
|
10028 else
|
|
10029 echo "$ac_t""no" 1>&6
|
392
|
10030 fi
|
|
10031
|
|
10032
|
|
10033 fi ;;
|
149
|
10034 esac
|
272
|
10035 if test "$with_xim" != "no"; then
|
149
|
10036 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10037 Defining HAVE_XIM
|
|
10038 EOF
|
|
10039 cat >> confdefs.h <<\EOF
|
|
10040 #define HAVE_XIM 1
|
|
10041 EOF
|
|
10042 }
|
|
10043
|
|
10044 if test "$with_xim" = "xlib"; then
|
|
10045 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10046 Defining XIM_XLIB
|
|
10047 EOF
|
|
10048 cat >> confdefs.h <<\EOF
|
|
10049 #define XIM_XLIB 1
|
|
10050 EOF
|
|
10051 }
|
|
10052
|
151
|
10053 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
10054 echo " xemacs will be linked with \"input-method-xlib.o\""
|
|
10055 fi
|
|
10056 fi
|
149
|
10057 if test "$with_xim" = "motif"; then
|
|
10058 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10059 Defining XIM_MOTIF
|
|
10060 EOF
|
|
10061 cat >> confdefs.h <<\EOF
|
|
10062 #define XIM_MOTIF 1
|
|
10063 EOF
|
|
10064 }
|
|
10065
|
|
10066 need_motif=yes
|
151
|
10067 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
|
|
10068 echo " xemacs will be linked with \"input-method-motif.o\""
|
|
10069 fi
|
149
|
10070 fi
|
215
|
10071 if test "$with_xim" = "motif"; then
|
177
|
10072 with_xfs=no
|
|
10073 fi
|
215
|
10074 fi
|
|
10075
|
|
10076 if test "$with_xfs" = "yes" ; then
|
|
10077 echo "checking for XFontSet" 1>&6
|
853
|
10078 echo "configure:10079: checking for XFontSet" >&5
|
215
|
10079
|
177
|
10080 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
|
853
|
10081 echo "configure:10082: checking for XmbDrawString in -lX11" >&5
|
177
|
10082 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
|
|
10083
|
|
10084 xe_check_libs=" -lX11 "
|
|
10085 cat > conftest.$ac_ext <<EOF
|
853
|
10086 #line 10087 "configure"
|
177
|
10087 #include "confdefs.h"
|
|
10088 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10089 /* We use char because int might match the return type of a gcc2
|
|
10090 builtin and then its argument prototype would still apply. */
|
|
10091 char XmbDrawString();
|
|
10092
|
|
10093 int main() {
|
|
10094 XmbDrawString()
|
|
10095 ; return 0; }
|
|
10096 EOF
|
853
|
10097 if { (eval echo configure:10098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
177
|
10098 rm -rf conftest*
|
|
10099 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10100 else
|
|
10101 echo "configure: failed program was:" >&5
|
|
10102 cat conftest.$ac_ext >&5
|
|
10103 rm -rf conftest*
|
|
10104 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10105 fi
|
|
10106 rm -f conftest*
|
|
10107 xe_check_libs=""
|
|
10108
|
|
10109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10110 echo "$ac_t""yes" 1>&6
|
|
10111 :
|
|
10112 else
|
|
10113 echo "$ac_t""no" 1>&6
|
|
10114 with_xfs=no
|
|
10115 fi
|
|
10116
|
|
10117
|
|
10118 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
|
|
10119 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10120 Defining USE_XFONTSET
|
|
10121 EOF
|
|
10122 cat >> confdefs.h <<\EOF
|
|
10123 #define USE_XFONTSET 1
|
|
10124 EOF
|
|
10125 }
|
|
10126
|
215
|
10127 if test "$with_xim" = "no" ; then
|
450
|
10128 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
10129 echo " xemacs will be linked with \"input-method-xlib.o\""
|
177
|
10130 fi
|
215
|
10131 fi
|
177
|
10132 fi
|
151
|
10133 fi
|
149
|
10134 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
|
151
|
10135 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
|
|
10136 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
|
853
|
10137 echo "configure:10138: checking for wnn/jllib.h" >&5
|
|
10138
|
|
10139 cat > conftest.$ac_ext <<EOF
|
|
10140 #line 10141 "configure"
|
151
|
10141 #include "confdefs.h"
|
|
10142 #include <wnn/jllib.h>
|
149
|
10143 EOF
|
|
10144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
10145 { (eval echo configure:10146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
458
|
10146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10147 if test -z "$ac_err"; then
|
|
10148 rm -rf conftest*
|
|
10149 eval "ac_cv_header_$ac_safe=yes"
|
|
10150 else
|
|
10151 echo "$ac_err" >&5
|
|
10152 echo "configure: failed program was:" >&5
|
|
10153 cat conftest.$ac_ext >&5
|
|
10154 rm -rf conftest*
|
|
10155 eval "ac_cv_header_$ac_safe=no"
|
|
10156 fi
|
|
10157 rm -f conftest*
|
|
10158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10159 echo "$ac_t""yes" 1>&6
|
|
10160 :
|
|
10161 else
|
|
10162 echo "$ac_t""no" 1>&6
|
|
10163 with_wnn=no
|
|
10164 fi
|
|
10165 }
|
|
10166 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
|
|
10167 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
|
853
|
10168 echo "configure:10169: checking for wnn/commonhd.h" >&5
|
|
10169
|
|
10170 cat > conftest.$ac_ext <<EOF
|
|
10171 #line 10172 "configure"
|
458
|
10172 #include "confdefs.h"
|
|
10173 #include <wnn/commonhd.h>
|
|
10174 EOF
|
|
10175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
10176 { (eval echo configure:10177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
10178 if test -z "$ac_err"; then
|
|
10179 rm -rf conftest*
|
|
10180 eval "ac_cv_header_$ac_safe=yes"
|
|
10181 else
|
|
10182 echo "$ac_err" >&5
|
|
10183 echo "configure: failed program was:" >&5
|
|
10184 cat conftest.$ac_ext >&5
|
|
10185 rm -rf conftest*
|
|
10186 eval "ac_cv_header_$ac_safe=no"
|
|
10187 fi
|
|
10188 rm -f conftest*
|
|
10189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10190 echo "$ac_t""yes" 1>&6
|
|
10191 :
|
|
10192 else
|
|
10193 echo "$ac_t""no" 1>&6
|
|
10194 with_wnn=no
|
|
10195 fi
|
|
10196 }
|
167
|
10197 if test "$with_wnn" != "no"; then
|
|
10198 for ac_func in crypt
|
|
10199 do
|
|
10200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
10201 echo "configure:10202: checking for $ac_func" >&5
|
|
10202
|
|
10203 cat > conftest.$ac_ext <<EOF
|
|
10204 #line 10205 "configure"
|
167
|
10205 #include "confdefs.h"
|
|
10206 /* System header to define __stub macros and hopefully few prototypes,
|
|
10207 which can conflict with char $ac_func(); below. */
|
|
10208 #include <assert.h>
|
|
10209 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10210 /* We use char because int might match the return type of a gcc2
|
|
10211 builtin and then its argument prototype would still apply. */
|
|
10212 char $ac_func();
|
|
10213
|
|
10214 int main() {
|
|
10215
|
|
10216 /* The GNU C library defines this for functions which it implements
|
|
10217 to always fail with ENOSYS. Some functions are actually named
|
|
10218 something starting with __ and the normal name is an alias. */
|
|
10219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
10220 choke me
|
|
10221 #else
|
|
10222 $ac_func();
|
|
10223 #endif
|
|
10224
|
|
10225 ; return 0; }
|
|
10226 EOF
|
853
|
10227 if { (eval echo configure:10228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
167
|
10228 rm -rf conftest*
|
|
10229 eval "ac_cv_func_$ac_func=yes"
|
|
10230 else
|
|
10231 echo "configure: failed program was:" >&5
|
|
10232 cat conftest.$ac_ext >&5
|
|
10233 rm -rf conftest*
|
|
10234 eval "ac_cv_func_$ac_func=no"
|
|
10235 fi
|
|
10236 rm -f conftest*
|
|
10237
|
|
10238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
10239 echo "$ac_t""yes" 1>&6
|
|
10240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
10241 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10242 Defining $ac_tr_func
|
|
10243 EOF
|
|
10244 cat >> confdefs.h <<EOF
|
|
10245 #define $ac_tr_func 1
|
|
10246 EOF
|
|
10247 }
|
|
10248
|
|
10249 else
|
|
10250 echo "$ac_t""no" 1>&6
|
|
10251 fi
|
|
10252 done
|
|
10253
|
|
10254 test "$ac_cv_func_crypt" != "yes" && {
|
|
10255 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
853
|
10256 echo "configure:10257: checking for crypt in -lcrypt" >&5
|
167
|
10257 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
|
|
10258
|
|
10259 xe_check_libs=" -lcrypt "
|
|
10260 cat > conftest.$ac_ext <<EOF
|
853
|
10261 #line 10262 "configure"
|
167
|
10262 #include "confdefs.h"
|
|
10263 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10264 /* We use char because int might match the return type of a gcc2
|
|
10265 builtin and then its argument prototype would still apply. */
|
|
10266 char crypt();
|
|
10267
|
|
10268 int main() {
|
|
10269 crypt()
|
|
10270 ; return 0; }
|
|
10271 EOF
|
853
|
10272 if { (eval echo configure:10273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
167
|
10273 rm -rf conftest*
|
|
10274 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10275 else
|
|
10276 echo "configure: failed program was:" >&5
|
|
10277 cat conftest.$ac_ext >&5
|
|
10278 rm -rf conftest*
|
|
10279 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10280 fi
|
|
10281 rm -f conftest*
|
|
10282 xe_check_libs=""
|
|
10283
|
|
10284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10285 echo "$ac_t""yes" 1>&6
|
|
10286 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
10287 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
10288 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10289 Defining $ac_tr_lib
|
|
10290 EOF
|
|
10291 cat >> confdefs.h <<EOF
|
|
10292 #define $ac_tr_lib 1
|
|
10293 EOF
|
|
10294 }
|
|
10295
|
|
10296 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
|
|
10297
|
|
10298 else
|
|
10299 echo "$ac_t""no" 1>&6
|
|
10300 fi
|
|
10301
|
|
10302 }
|
|
10303 fi
|
377
|
10304 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
|
|
10305
|
159
|
10306 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
|
853
|
10307 echo "configure:10308: checking for jl_dic_list_e in -lwnn" >&5
|
155
|
10308 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
149
|
10309
|
159
|
10310 xe_check_libs=" -lwnn "
|
|
10311 cat > conftest.$ac_ext <<EOF
|
853
|
10312 #line 10313 "configure"
|
149
|
10313 #include "confdefs.h"
|
|
10314 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10315 /* We use char because int might match the return type of a gcc2
|
|
10316 builtin and then its argument prototype would still apply. */
|
155
|
10317 char jl_dic_list_e();
|
149
|
10318
|
|
10319 int main() {
|
155
|
10320 jl_dic_list_e()
|
149
|
10321 ; return 0; }
|
|
10322 EOF
|
853
|
10323 if { (eval echo configure:10324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
10324 rm -rf conftest*
|
|
10325 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10326 else
|
|
10327 echo "configure: failed program was:" >&5
|
|
10328 cat conftest.$ac_ext >&5
|
|
10329 rm -rf conftest*
|
|
10330 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10331 fi
|
|
10332 rm -f conftest*
|
|
10333 xe_check_libs=""
|
|
10334
|
|
10335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10336 echo "$ac_t""yes" 1>&6
|
|
10337 libwnn=wnn
|
|
10338 else
|
|
10339 echo "$ac_t""no" 1>&6
|
|
10340 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
|
853
|
10341 echo "configure:10342: checking for jl_dic_list_e in -lwnn4" >&5
|
377
|
10342 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
10343
|
|
10344 xe_check_libs=" -lwnn4 "
|
|
10345 cat > conftest.$ac_ext <<EOF
|
853
|
10346 #line 10347 "configure"
|
377
|
10347 #include "confdefs.h"
|
|
10348 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10349 /* We use char because int might match the return type of a gcc2
|
|
10350 builtin and then its argument prototype would still apply. */
|
|
10351 char jl_dic_list_e();
|
|
10352
|
|
10353 int main() {
|
|
10354 jl_dic_list_e()
|
|
10355 ; return 0; }
|
|
10356 EOF
|
853
|
10357 if { (eval echo configure:10358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
10358 rm -rf conftest*
|
|
10359 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10360 else
|
|
10361 echo "configure: failed program was:" >&5
|
|
10362 cat conftest.$ac_ext >&5
|
|
10363 rm -rf conftest*
|
|
10364 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10365 fi
|
|
10366 rm -f conftest*
|
|
10367 xe_check_libs=""
|
|
10368
|
151
|
10369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10370 echo "$ac_t""yes" 1>&6
|
377
|
10371 libwnn=wnn4
|
|
10372 else
|
|
10373 echo "$ac_t""no" 1>&6
|
|
10374 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
|
853
|
10375 echo "configure:10376: checking for jl_dic_list_e in -lwnn6" >&5
|
377
|
10376 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
10377
|
|
10378 xe_check_libs=" -lwnn6 "
|
|
10379 cat > conftest.$ac_ext <<EOF
|
853
|
10380 #line 10381 "configure"
|
377
|
10381 #include "confdefs.h"
|
|
10382 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10383 /* We use char because int might match the return type of a gcc2
|
|
10384 builtin and then its argument prototype would still apply. */
|
|
10385 char jl_dic_list_e();
|
|
10386
|
|
10387 int main() {
|
|
10388 jl_dic_list_e()
|
|
10389 ; return 0; }
|
|
10390 EOF
|
853
|
10391 if { (eval echo configure:10392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
10392 rm -rf conftest*
|
|
10393 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10394 else
|
|
10395 echo "configure: failed program was:" >&5
|
|
10396 cat conftest.$ac_ext >&5
|
|
10397 rm -rf conftest*
|
|
10398 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10399 fi
|
|
10400 rm -f conftest*
|
|
10401 xe_check_libs=""
|
|
10402
|
|
10403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10404 echo "$ac_t""yes" 1>&6
|
|
10405 libwnn=wnn6
|
|
10406 else
|
|
10407 echo "$ac_t""no" 1>&6
|
|
10408 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
|
853
|
10409 echo "configure:10410: checking for dic_list_e in -lwnn6_fromsrc" >&5
|
377
|
10410 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
|
|
10411
|
|
10412 xe_check_libs=" -lwnn6_fromsrc "
|
|
10413 cat > conftest.$ac_ext <<EOF
|
853
|
10414 #line 10415 "configure"
|
377
|
10415 #include "confdefs.h"
|
|
10416 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10417 /* We use char because int might match the return type of a gcc2
|
|
10418 builtin and then its argument prototype would still apply. */
|
|
10419 char dic_list_e();
|
|
10420
|
|
10421 int main() {
|
|
10422 dic_list_e()
|
|
10423 ; return 0; }
|
|
10424 EOF
|
853
|
10425 if { (eval echo configure:10426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
10426 rm -rf conftest*
|
|
10427 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10428 else
|
|
10429 echo "configure: failed program was:" >&5
|
|
10430 cat conftest.$ac_ext >&5
|
|
10431 rm -rf conftest*
|
|
10432 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10433 fi
|
|
10434 rm -f conftest*
|
|
10435 xe_check_libs=""
|
|
10436
|
|
10437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10438 echo "$ac_t""yes" 1>&6
|
|
10439 libwnn=wnn6_fromsrc
|
159
|
10440 else
|
|
10441 echo "$ac_t""no" 1>&6
|
|
10442 with_wnn=no
|
149
|
10443 fi
|
|
10444
|
377
|
10445
|
|
10446 fi
|
|
10447
|
|
10448
|
|
10449 fi
|
|
10450
|
|
10451
|
|
10452 fi
|
|
10453
|
|
10454
|
|
10455 fi
|
149
|
10456 test -z "$with_wnn" && with_wnn=yes
|
|
10457 if test "$with_wnn" = "yes"; then
|
|
10458 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10459 Defining HAVE_WNN
|
|
10460 EOF
|
|
10461 cat >> confdefs.h <<\EOF
|
|
10462 #define HAVE_WNN 1
|
|
10463 EOF
|
|
10464 }
|
|
10465
|
377
|
10466 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
|
284
|
10467 if test "$with_wnn6" != "no"; then
|
|
10468
|
377
|
10469 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
|
853
|
10470 echo "configure:10471: checking for jl_fi_dic_list in -l$libwnn" >&5
|
377
|
10471 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
|
|
10472
|
|
10473 xe_check_libs=" -l$libwnn "
|
|
10474 cat > conftest.$ac_ext <<EOF
|
853
|
10475 #line 10476 "configure"
|
149
|
10476 #include "confdefs.h"
|
|
10477 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10478 /* We use char because int might match the return type of a gcc2
|
|
10479 builtin and then its argument prototype would still apply. */
|
|
10480 char jl_fi_dic_list();
|
|
10481
|
|
10482 int main() {
|
|
10483 jl_fi_dic_list()
|
|
10484 ; return 0; }
|
|
10485 EOF
|
853
|
10486 if { (eval echo configure:10487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
10487 rm -rf conftest*
|
|
10488 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10489 else
|
|
10490 echo "configure: failed program was:" >&5
|
|
10491 cat conftest.$ac_ext >&5
|
|
10492 rm -rf conftest*
|
|
10493 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10494 fi
|
|
10495 rm -f conftest*
|
|
10496 xe_check_libs=""
|
|
10497
|
151
|
10498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10499 echo "$ac_t""yes" 1>&6
|
|
10500 with_wnn6=yes
|
|
10501 else
|
|
10502 echo "$ac_t""no" 1>&6
|
|
10503 fi
|
|
10504
|
|
10505
|
284
|
10506 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
151
|
10507 Defining WNN6
|
|
10508 EOF
|
|
10509 cat >> confdefs.h <<\EOF
|
|
10510 #define WNN6 1
|
|
10511 EOF
|
|
10512 }
|
|
10513
|
284
|
10514 fi
|
151
|
10515 fi
|
149
|
10516
|
267
|
10517 canna_includes_found=no
|
|
10518 if test "$with_canna" != "no"; then
|
|
10519 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
10520 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
853
|
10521 echo "configure:10522: checking for canna/jrkanji.h" >&5
|
|
10522
|
|
10523 cat > conftest.$ac_ext <<EOF
|
|
10524 #line 10525 "configure"
|
267
|
10525 #include "confdefs.h"
|
|
10526 #include <canna/jrkanji.h>
|
|
10527 EOF
|
|
10528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
10529 { (eval echo configure:10530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
267
|
10531 if test -z "$ac_err"; then
|
|
10532 rm -rf conftest*
|
|
10533 eval "ac_cv_header_$ac_safe=yes"
|
|
10534 else
|
|
10535 echo "$ac_err" >&5
|
|
10536 echo "configure: failed program was:" >&5
|
|
10537 cat conftest.$ac_ext >&5
|
|
10538 rm -rf conftest*
|
|
10539 eval "ac_cv_header_$ac_safe=no"
|
|
10540 fi
|
|
10541 rm -f conftest*
|
|
10542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10543 echo "$ac_t""yes" 1>&6
|
|
10544 canna_includes_found=yes
|
|
10545 else
|
|
10546 echo "$ac_t""no" 1>&6
|
|
10547 fi
|
|
10548
|
|
10549 fi
|
|
10550 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
|
|
10551 -d "/usr/local/canna/include"; then
|
|
10552 save_c_switch_site="$c_switch_site"
|
|
10553 c_switch_site="$c_switch_site -I/usr/local/canna/include"
|
|
10554 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
10555 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
853
|
10556 echo "configure:10557: checking for canna/jrkanji.h" >&5
|
|
10557
|
|
10558 cat > conftest.$ac_ext <<EOF
|
|
10559 #line 10560 "configure"
|
267
|
10560 #include "confdefs.h"
|
|
10561 #include <canna/jrkanji.h>
|
|
10562 EOF
|
|
10563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
10564 { (eval echo configure:10565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
267
|
10566 if test -z "$ac_err"; then
|
|
10567 rm -rf conftest*
|
|
10568 eval "ac_cv_header_$ac_safe=yes"
|
|
10569 else
|
|
10570 echo "$ac_err" >&5
|
|
10571 echo "configure: failed program was:" >&5
|
|
10572 cat conftest.$ac_ext >&5
|
|
10573 rm -rf conftest*
|
|
10574 eval "ac_cv_header_$ac_safe=no"
|
|
10575 fi
|
|
10576 rm -f conftest*
|
|
10577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10578 echo "$ac_t""yes" 1>&6
|
|
10579 canna_includes_found=yes
|
|
10580 else
|
|
10581 echo "$ac_t""no" 1>&6
|
|
10582 fi
|
|
10583
|
|
10584 if test "$canna_includes_found" != "yes"; then
|
|
10585 c_switch_site="$save_c_switch_site"
|
|
10586 with_canna="no"
|
|
10587 fi
|
|
10588 fi
|
|
10589
|
|
10590 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
|
149
|
10591 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
|
853
|
10592 echo "configure:10593: checking for canna/RK.h" >&5
|
|
10593
|
|
10594 cat > conftest.$ac_ext <<EOF
|
|
10595 #line 10596 "configure"
|
149
|
10596 #include "confdefs.h"
|
|
10597 #include <canna/RK.h>
|
|
10598 EOF
|
|
10599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
10600 { (eval echo configure:10601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
10602 if test -z "$ac_err"; then
|
|
10603 rm -rf conftest*
|
|
10604 eval "ac_cv_header_$ac_safe=yes"
|
|
10605 else
|
|
10606 echo "$ac_err" >&5
|
|
10607 echo "configure: failed program was:" >&5
|
|
10608 cat conftest.$ac_ext >&5
|
|
10609 rm -rf conftest*
|
|
10610 eval "ac_cv_header_$ac_safe=no"
|
|
10611 fi
|
|
10612 rm -f conftest*
|
|
10613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10614 echo "$ac_t""yes" 1>&6
|
|
10615 :
|
|
10616 else
|
|
10617 echo "$ac_t""no" 1>&6
|
|
10618 with_canna=no
|
|
10619 fi
|
|
10620 }
|
|
10621 test -z "$with_canna" && {
|
|
10622 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
|
853
|
10623 echo "configure:10624: checking for RkBgnBun in -lRKC" >&5
|
149
|
10624 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
|
|
10625
|
|
10626 xe_check_libs=" -lRKC "
|
|
10627 cat > conftest.$ac_ext <<EOF
|
853
|
10628 #line 10629 "configure"
|
149
|
10629 #include "confdefs.h"
|
|
10630 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10631 /* We use char because int might match the return type of a gcc2
|
|
10632 builtin and then its argument prototype would still apply. */
|
|
10633 char RkBgnBun();
|
|
10634
|
|
10635 int main() {
|
|
10636 RkBgnBun()
|
|
10637 ; return 0; }
|
|
10638 EOF
|
853
|
10639 if { (eval echo configure:10640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
10640 rm -rf conftest*
|
|
10641 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10642 else
|
|
10643 echo "configure: failed program was:" >&5
|
|
10644 cat conftest.$ac_ext >&5
|
|
10645 rm -rf conftest*
|
|
10646 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10647 fi
|
|
10648 rm -f conftest*
|
|
10649 xe_check_libs=""
|
|
10650
|
151
|
10651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10652 echo "$ac_t""yes" 1>&6
|
|
10653 :
|
|
10654 else
|
|
10655 echo "$ac_t""no" 1>&6
|
|
10656 with_canna=no
|
|
10657 fi
|
|
10658
|
|
10659 }
|
|
10660 test -z "$with_canna" && {
|
|
10661 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
|
853
|
10662 echo "configure:10663: checking for jrKanjiControl in -lcanna" >&5
|
149
|
10663 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
|
|
10664
|
|
10665 xe_check_libs=" -lcanna "
|
|
10666 cat > conftest.$ac_ext <<EOF
|
853
|
10667 #line 10668 "configure"
|
149
|
10668 #include "confdefs.h"
|
|
10669 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10670 /* We use char because int might match the return type of a gcc2
|
|
10671 builtin and then its argument prototype would still apply. */
|
|
10672 char jrKanjiControl();
|
|
10673
|
|
10674 int main() {
|
|
10675 jrKanjiControl()
|
|
10676 ; return 0; }
|
|
10677 EOF
|
853
|
10678 if { (eval echo configure:10679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
10679 rm -rf conftest*
|
|
10680 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10681 else
|
|
10682 echo "configure: failed program was:" >&5
|
|
10683 cat conftest.$ac_ext >&5
|
|
10684 rm -rf conftest*
|
|
10685 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10686 fi
|
|
10687 rm -f conftest*
|
|
10688 xe_check_libs=""
|
|
10689
|
151
|
10690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10691 echo "$ac_t""yes" 1>&6
|
|
10692 :
|
|
10693 else
|
|
10694 echo "$ac_t""no" 1>&6
|
|
10695 with_canna=no
|
|
10696 fi
|
|
10697
|
|
10698 }
|
|
10699 test -z "$with_canna" && with_canna=yes
|
|
10700 if test "$with_canna" = "yes"; then
|
|
10701 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10702 Defining HAVE_CANNA
|
|
10703 EOF
|
|
10704 cat >> confdefs.h <<\EOF
|
|
10705 #define HAVE_CANNA 1
|
|
10706 EOF
|
|
10707 }
|
|
10708
|
151
|
10709 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
|
|
10710 fi
|
155
|
10711
|
151
|
10712 else for feature in xim canna wnn; do
|
149
|
10713 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
561
|
10714 echo "configure: warning: --with-${feature} ignored: Not valid without Mule support" 1>&2
|
149
|
10715 fi
|
|
10716 eval "with_${feature}=no"
|
|
10717 done
|
151
|
10718 fi
|
|
10719
|
|
10720 if test "$need_motif" = "yes" ; then
|
|
10721 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
|
207
|
10722
|
|
10723 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
|
853
|
10724 echo "configure:10725: checking for layout_object_getvalue in -li18n" >&5
|
207
|
10725 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
|
|
10726
|
|
10727 xe_check_libs=" -li18n "
|
|
10728 cat > conftest.$ac_ext <<EOF
|
853
|
10729 #line 10730 "configure"
|
207
|
10730 #include "confdefs.h"
|
|
10731 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10732 /* We use char because int might match the return type of a gcc2
|
|
10733 builtin and then its argument prototype would still apply. */
|
|
10734 char layout_object_getvalue();
|
|
10735
|
|
10736 int main() {
|
|
10737 layout_object_getvalue()
|
|
10738 ; return 0; }
|
|
10739 EOF
|
853
|
10740 if { (eval echo configure:10741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
207
|
10741 rm -rf conftest*
|
|
10742 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10743 else
|
|
10744 echo "configure: failed program was:" >&5
|
|
10745 cat conftest.$ac_ext >&5
|
|
10746 rm -rf conftest*
|
|
10747 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10748 fi
|
|
10749 rm -f conftest*
|
|
10750 xe_check_libs=""
|
|
10751
|
|
10752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10753 echo "$ac_t""yes" 1>&6
|
|
10754 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
|
|
10755 else
|
|
10756 echo "$ac_t""no" 1>&6
|
|
10757 fi
|
|
10758
|
|
10759
|
151
|
10760
|
|
10761 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
10762 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
10763 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
10764
|
163
|
10765 runpath="" runpath_dirs=""
|
155
|
10766 if test -n "$LD_RUN_PATH"; then
|
151
|
10767 runpath="$LD_RUN_PATH"
|
155
|
10768 elif test "$GCC" = "yes"; then
|
163
|
10769 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
10770 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
10771 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
10772 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
10773 case "$arg" in P,* | -L* | -R* )
|
159
|
10774 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
10775 {
|
155
|
10776 xe_runpath_dir="$dir"
|
163
|
10777 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
10778 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
10779 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
10780 eval "$xe_add_unique_runpath_dir"
|
|
10781 }
|
155
|
10782 done ;;
|
|
10783 esac
|
|
10784 done
|
163
|
10785 ld_switch_run="$ld_switch_run_save"
|
155
|
10786 rm -f conftest*
|
151
|
10787 else
|
155
|
10788 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
10789 case "$arg" in -L*) {
|
159
|
10790 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
10791 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
10792 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
10793 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
10794 eval "$xe_add_unique_runpath_dir"
|
|
10795 };; esac
|
151
|
10796 done
|
163
|
10797 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
10798 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
10799 eval "$xe_add_unique_runpath_dir";
|
|
10800 fi
|
155
|
10801 fi
|
151
|
10802 if test -n "$runpath"; then
|
|
10803 ld_switch_run="${dash_r}${runpath}"
|
272
|
10804
|
|
10805 if test "$GCC" = "yes"; then
|
|
10806 set x $ld_switch_run; shift; ld_switch_run=""
|
|
10807 while test -n "$1"; do
|
|
10808 case $1 in
|
380
|
10809 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
10810 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
10811 -Xlinker* ) ;;
|
|
10812 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
10813 esac
|
|
10814 shift
|
|
10815 done
|
|
10816 fi
|
151
|
10817 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
10818 fi
|
|
10819 fi
|
|
10820
|
|
10821 fi
|
|
10822
|
771
|
10823 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask
|
149
|
10824 do
|
|
10825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
10826 echo "configure:10827: checking for $ac_func" >&5
|
|
10827
|
|
10828 cat > conftest.$ac_ext <<EOF
|
|
10829 #line 10830 "configure"
|
410
|
10830 #include "confdefs.h"
|
|
10831 /* System header to define __stub macros and hopefully few prototypes,
|
|
10832 which can conflict with char $ac_func(); below. */
|
|
10833 #include <assert.h>
|
|
10834 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10835 /* We use char because int might match the return type of a gcc2
|
|
10836 builtin and then its argument prototype would still apply. */
|
|
10837 char $ac_func();
|
|
10838
|
|
10839 int main() {
|
|
10840
|
|
10841 /* The GNU C library defines this for functions which it implements
|
|
10842 to always fail with ENOSYS. Some functions are actually named
|
|
10843 something starting with __ and the normal name is an alias. */
|
|
10844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
10845 choke me
|
|
10846 #else
|
|
10847 $ac_func();
|
|
10848 #endif
|
|
10849
|
|
10850 ; return 0; }
|
|
10851 EOF
|
853
|
10852 if { (eval echo configure:10853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
10853 rm -rf conftest*
|
|
10854 eval "ac_cv_func_$ac_func=yes"
|
|
10855 else
|
|
10856 echo "configure: failed program was:" >&5
|
|
10857 cat conftest.$ac_ext >&5
|
|
10858 rm -rf conftest*
|
|
10859 eval "ac_cv_func_$ac_func=no"
|
|
10860 fi
|
|
10861 rm -f conftest*
|
|
10862
|
|
10863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
10864 echo "$ac_t""yes" 1>&6
|
|
10865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
10866 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10867 Defining $ac_tr_func
|
|
10868 EOF
|
|
10869 cat >> confdefs.h <<EOF
|
|
10870 #define $ac_tr_func 1
|
|
10871 EOF
|
|
10872 }
|
|
10873
|
|
10874 else
|
|
10875 echo "$ac_t""no" 1>&6
|
|
10876 fi
|
|
10877 done
|
|
10878
|
|
10879
|
458
|
10880
|
444
|
10881 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
|
442
|
10882 do
|
|
10883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
10884 echo "configure:10885: checking for $ac_func" >&5
|
|
10885
|
|
10886 cat > conftest.$ac_ext <<EOF
|
|
10887 #line 10888 "configure"
|
442
|
10888 #include "confdefs.h"
|
|
10889 /* System header to define __stub macros and hopefully few prototypes,
|
|
10890 which can conflict with char $ac_func(); below. */
|
|
10891 #include <assert.h>
|
|
10892 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10893 /* We use char because int might match the return type of a gcc2
|
|
10894 builtin and then its argument prototype would still apply. */
|
|
10895 char $ac_func();
|
|
10896
|
|
10897 int main() {
|
|
10898
|
|
10899 /* The GNU C library defines this for functions which it implements
|
|
10900 to always fail with ENOSYS. Some functions are actually named
|
|
10901 something starting with __ and the normal name is an alias. */
|
|
10902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
10903 choke me
|
|
10904 #else
|
|
10905 $ac_func();
|
|
10906 #endif
|
|
10907
|
|
10908 ; return 0; }
|
|
10909 EOF
|
853
|
10910 if { (eval echo configure:10911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
410
|
10911 rm -rf conftest*
|
|
10912 eval "ac_cv_func_$ac_func=yes"
|
|
10913 else
|
|
10914 echo "configure: failed program was:" >&5
|
|
10915 cat conftest.$ac_ext >&5
|
|
10916 rm -rf conftest*
|
|
10917 eval "ac_cv_func_$ac_func=no"
|
|
10918 fi
|
|
10919 rm -f conftest*
|
|
10920
|
|
10921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
10922 echo "$ac_t""yes" 1>&6
|
|
10923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
10924 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10925 Defining $ac_tr_func
|
|
10926 EOF
|
|
10927 cat >> confdefs.h <<EOF
|
|
10928 #define $ac_tr_func 1
|
|
10929 EOF
|
|
10930 }
|
|
10931
|
|
10932 else
|
|
10933 echo "$ac_t""no" 1>&6
|
|
10934 fi
|
|
10935 done
|
|
10936
|
|
10937
|
442
|
10938 echo $ac_n "checking for openpty""... $ac_c" 1>&6
|
853
|
10939 echo "configure:10940: checking for openpty" >&5
|
|
10940
|
|
10941 cat > conftest.$ac_ext <<EOF
|
|
10942 #line 10943 "configure"
|
442
|
10943 #include "confdefs.h"
|
|
10944 /* System header to define __stub macros and hopefully few prototypes,
|
|
10945 which can conflict with char openpty(); below. */
|
|
10946 #include <assert.h>
|
|
10947 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10948 /* We use char because int might match the return type of a gcc2
|
|
10949 builtin and then its argument prototype would still apply. */
|
|
10950 char openpty();
|
|
10951
|
|
10952 int main() {
|
|
10953
|
|
10954 /* The GNU C library defines this for functions which it implements
|
|
10955 to always fail with ENOSYS. Some functions are actually named
|
|
10956 something starting with __ and the normal name is an alias. */
|
|
10957 #if defined (__stub_openpty) || defined (__stub___openpty)
|
|
10958 choke me
|
|
10959 #else
|
|
10960 openpty();
|
|
10961 #endif
|
|
10962
|
|
10963 ; return 0; }
|
|
10964 EOF
|
853
|
10965 if { (eval echo configure:10966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
10966 rm -rf conftest*
|
|
10967 eval "ac_cv_func_openpty=yes"
|
|
10968 else
|
|
10969 echo "configure: failed program was:" >&5
|
|
10970 cat conftest.$ac_ext >&5
|
|
10971 rm -rf conftest*
|
|
10972 eval "ac_cv_func_openpty=no"
|
|
10973 fi
|
|
10974 rm -f conftest*
|
|
10975
|
|
10976 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
|
|
10977 echo "$ac_t""yes" 1>&6
|
|
10978 have_openpty=yes
|
|
10979 else
|
|
10980 echo "$ac_t""no" 1>&6
|
|
10981
|
|
10982
|
|
10983 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
|
853
|
10984 echo "configure:10985: checking for openpty in -lutil" >&5
|
442
|
10985 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
|
|
10986
|
|
10987 xe_check_libs=" -lutil "
|
|
10988 cat > conftest.$ac_ext <<EOF
|
853
|
10989 #line 10990 "configure"
|
442
|
10990 #include "confdefs.h"
|
|
10991 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10992 /* We use char because int might match the return type of a gcc2
|
|
10993 builtin and then its argument prototype would still apply. */
|
|
10994 char openpty();
|
|
10995
|
|
10996 int main() {
|
|
10997 openpty()
|
|
10998 ; return 0; }
|
|
10999 EOF
|
853
|
11000 if { (eval echo configure:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
11001 rm -rf conftest*
|
|
11002 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11003 else
|
|
11004 echo "configure: failed program was:" >&5
|
|
11005 cat conftest.$ac_ext >&5
|
|
11006 rm -rf conftest*
|
|
11007 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11008 fi
|
|
11009 rm -f conftest*
|
|
11010 xe_check_libs=""
|
|
11011
|
|
11012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11013 echo "$ac_t""yes" 1>&6
|
|
11014 have_openpty=yes need_libutil=yes
|
|
11015 else
|
|
11016 echo "$ac_t""no" 1>&6
|
|
11017 fi
|
|
11018
|
|
11019
|
|
11020 fi
|
|
11021
|
|
11022 if test "$have_openpty" = "yes"; then
|
|
11023 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11024 Defining HAVE_OPENPTY
|
|
11025 EOF
|
|
11026 cat >> confdefs.h <<\EOF
|
|
11027 #define HAVE_OPENPTY 1
|
|
11028 EOF
|
|
11029 }
|
|
11030
|
535
|
11031 for ac_hdr in libutil.h util.h
|
442
|
11032 do
|
|
11033 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11034 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
853
|
11035 echo "configure:11036: checking for $ac_hdr" >&5
|
|
11036
|
|
11037 cat > conftest.$ac_ext <<EOF
|
|
11038 #line 11039 "configure"
|
442
|
11039 #include "confdefs.h"
|
|
11040 #include <$ac_hdr>
|
|
11041 EOF
|
|
11042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
11043 { (eval echo configure:11044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
11044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11045 if test -z "$ac_err"; then
|
|
11046 rm -rf conftest*
|
|
11047 eval "ac_cv_header_$ac_safe=yes"
|
|
11048 else
|
|
11049 echo "$ac_err" >&5
|
|
11050 echo "configure: failed program was:" >&5
|
|
11051 cat conftest.$ac_ext >&5
|
|
11052 rm -rf conftest*
|
|
11053 eval "ac_cv_header_$ac_safe=no"
|
|
11054 fi
|
|
11055 rm -f conftest*
|
|
11056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11057 echo "$ac_t""yes" 1>&6
|
|
11058 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11059 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11060 Defining $ac_tr_hdr
|
|
11061 EOF
|
|
11062 cat >> confdefs.h <<EOF
|
|
11063 #define $ac_tr_hdr 1
|
|
11064 EOF
|
|
11065 }
|
458
|
11066 break
|
442
|
11067 else
|
|
11068 echo "$ac_t""no" 1>&6
|
|
11069 fi
|
|
11070 done
|
|
11071
|
|
11072 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
|
|
11073 fi
|
|
11074
|
535
|
11075 case "$opsys" in
|
|
11076 hpux*) for ac_hdr in sys/ptyio.h
|
|
11077 do
|
|
11078 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11079 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
853
|
11080 echo "configure:11081: checking for $ac_hdr" >&5
|
|
11081
|
|
11082 cat > conftest.$ac_ext <<EOF
|
|
11083 #line 11084 "configure"
|
535
|
11084 #include "confdefs.h"
|
|
11085 #include <$ac_hdr>
|
|
11086 EOF
|
|
11087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
11088 { (eval echo configure:11089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
11089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11090 if test -z "$ac_err"; then
|
|
11091 rm -rf conftest*
|
|
11092 eval "ac_cv_header_$ac_safe=yes"
|
|
11093 else
|
|
11094 echo "$ac_err" >&5
|
|
11095 echo "configure: failed program was:" >&5
|
|
11096 cat conftest.$ac_ext >&5
|
|
11097 rm -rf conftest*
|
|
11098 eval "ac_cv_header_$ac_safe=no"
|
|
11099 fi
|
|
11100 rm -f conftest*
|
|
11101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11102 echo "$ac_t""yes" 1>&6
|
|
11103 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11104 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11105 Defining $ac_tr_hdr
|
|
11106 EOF
|
|
11107 cat >> confdefs.h <<EOF
|
|
11108 #define $ac_tr_hdr 1
|
|
11109 EOF
|
|
11110 }
|
|
11111
|
|
11112 else
|
|
11113 echo "$ac_t""no" 1>&6
|
|
11114 fi
|
|
11115 done
|
|
11116 ;;
|
|
11117 *) for ac_hdr in pty.h
|
|
11118 do
|
|
11119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
853
|
11121 echo "configure:11122: checking for $ac_hdr" >&5
|
|
11122
|
|
11123 cat > conftest.$ac_ext <<EOF
|
|
11124 #line 11125 "configure"
|
535
|
11125 #include "confdefs.h"
|
|
11126 #include <$ac_hdr>
|
|
11127 EOF
|
|
11128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
11129 { (eval echo configure:11130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
11130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11131 if test -z "$ac_err"; then
|
|
11132 rm -rf conftest*
|
|
11133 eval "ac_cv_header_$ac_safe=yes"
|
|
11134 else
|
|
11135 echo "$ac_err" >&5
|
|
11136 echo "configure: failed program was:" >&5
|
|
11137 cat conftest.$ac_ext >&5
|
|
11138 rm -rf conftest*
|
|
11139 eval "ac_cv_header_$ac_safe=no"
|
|
11140 fi
|
|
11141 rm -f conftest*
|
|
11142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11143 echo "$ac_t""yes" 1>&6
|
|
11144 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11145 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11146 Defining $ac_tr_hdr
|
|
11147 EOF
|
|
11148 cat >> confdefs.h <<EOF
|
|
11149 #define $ac_tr_hdr 1
|
|
11150 EOF
|
|
11151 }
|
|
11152
|
|
11153 else
|
|
11154 echo "$ac_t""no" 1>&6
|
|
11155 fi
|
|
11156 done
|
|
11157
|
|
11158 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
|
|
11159 do
|
|
11160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
853
|
11162 echo "configure:11163: checking for $ac_hdr" >&5
|
|
11163
|
|
11164 cat > conftest.$ac_ext <<EOF
|
|
11165 #line 11166 "configure"
|
771
|
11166 #include "confdefs.h"
|
|
11167 #include <$ac_hdr>
|
|
11168 EOF
|
|
11169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
11170 { (eval echo configure:11171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
771
|
11171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11172 if test -z "$ac_err"; then
|
|
11173 rm -rf conftest*
|
|
11174 eval "ac_cv_header_$ac_safe=yes"
|
|
11175 else
|
|
11176 echo "$ac_err" >&5
|
|
11177 echo "configure: failed program was:" >&5
|
|
11178 cat conftest.$ac_ext >&5
|
|
11179 rm -rf conftest*
|
|
11180 eval "ac_cv_header_$ac_safe=no"
|
|
11181 fi
|
|
11182 rm -f conftest*
|
|
11183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11184 echo "$ac_t""yes" 1>&6
|
|
11185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11186 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11187 Defining $ac_tr_hdr
|
|
11188 EOF
|
|
11189 cat >> confdefs.h <<EOF
|
|
11190 #define $ac_tr_hdr 1
|
|
11191 EOF
|
|
11192 }
|
|
11193
|
|
11194 else
|
|
11195 echo "$ac_t""no" 1>&6
|
|
11196 fi
|
|
11197 done
|
|
11198
|
|
11199 ;;
|
|
11200 esac
|
|
11201
|
|
11202 for ac_hdr in stropts.h
|
|
11203 do
|
|
11204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
853
|
11206 echo "configure:11207: checking for $ac_hdr" >&5
|
|
11207
|
|
11208 cat > conftest.$ac_ext <<EOF
|
|
11209 #line 11210 "configure"
|
771
|
11210 #include "confdefs.h"
|
|
11211 #include <$ac_hdr>
|
|
11212 EOF
|
|
11213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
11214 { (eval echo configure:11215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
771
|
11215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11216 if test -z "$ac_err"; then
|
|
11217 rm -rf conftest*
|
|
11218 eval "ac_cv_header_$ac_safe=yes"
|
|
11219 else
|
|
11220 echo "$ac_err" >&5
|
|
11221 echo "configure: failed program was:" >&5
|
|
11222 cat conftest.$ac_ext >&5
|
|
11223 rm -rf conftest*
|
|
11224 eval "ac_cv_header_$ac_safe=no"
|
|
11225 fi
|
|
11226 rm -f conftest*
|
|
11227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11228 echo "$ac_t""yes" 1>&6
|
|
11229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11230 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11231 Defining $ac_tr_hdr
|
|
11232 EOF
|
|
11233 cat >> confdefs.h <<EOF
|
|
11234 #define $ac_tr_hdr 1
|
|
11235 EOF
|
|
11236 }
|
|
11237
|
|
11238 else
|
|
11239 echo "$ac_t""no" 1>&6
|
|
11240 fi
|
|
11241 done
|
|
11242
|
|
11243 if test "$ac_cv_header_stropts_h" = "yes"; then
|
|
11244 for ac_func in isastream
|
|
11245 do
|
|
11246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
11247 echo "configure:11248: checking for $ac_func" >&5
|
|
11248
|
|
11249 cat > conftest.$ac_ext <<EOF
|
|
11250 #line 11251 "configure"
|
771
|
11251 #include "confdefs.h"
|
|
11252 /* System header to define __stub macros and hopefully few prototypes,
|
|
11253 which can conflict with char $ac_func(); below. */
|
|
11254 #include <assert.h>
|
|
11255 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11256 /* We use char because int might match the return type of a gcc2
|
|
11257 builtin and then its argument prototype would still apply. */
|
|
11258 char $ac_func();
|
|
11259
|
|
11260 int main() {
|
|
11261
|
|
11262 /* The GNU C library defines this for functions which it implements
|
|
11263 to always fail with ENOSYS. Some functions are actually named
|
|
11264 something starting with __ and the normal name is an alias. */
|
|
11265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
11266 choke me
|
|
11267 #else
|
|
11268 $ac_func();
|
|
11269 #endif
|
|
11270
|
|
11271 ; return 0; }
|
|
11272 EOF
|
853
|
11273 if { (eval echo configure:11274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
771
|
11274 rm -rf conftest*
|
|
11275 eval "ac_cv_func_$ac_func=yes"
|
|
11276 else
|
|
11277 echo "configure: failed program was:" >&5
|
|
11278 cat conftest.$ac_ext >&5
|
|
11279 rm -rf conftest*
|
|
11280 eval "ac_cv_func_$ac_func=no"
|
|
11281 fi
|
|
11282 rm -f conftest*
|
|
11283
|
|
11284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11285 echo "$ac_t""yes" 1>&6
|
|
11286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
11287 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11288 Defining $ac_tr_func
|
|
11289 EOF
|
|
11290 cat >> confdefs.h <<EOF
|
|
11291 #define $ac_tr_func 1
|
|
11292 EOF
|
|
11293 }
|
|
11294
|
|
11295 else
|
|
11296 echo "$ac_t""no" 1>&6
|
|
11297 fi
|
|
11298 done
|
|
11299
|
|
11300 for ac_hdr in strtio.h
|
|
11301 do
|
|
11302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
853
|
11304 echo "configure:11305: checking for $ac_hdr" >&5
|
|
11305
|
|
11306 cat > conftest.$ac_ext <<EOF
|
|
11307 #line 11308 "configure"
|
535
|
11308 #include "confdefs.h"
|
|
11309 #include <$ac_hdr>
|
|
11310 EOF
|
|
11311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
11312 { (eval echo configure:11313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
11313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11314 if test -z "$ac_err"; then
|
|
11315 rm -rf conftest*
|
|
11316 eval "ac_cv_header_$ac_safe=yes"
|
|
11317 else
|
|
11318 echo "$ac_err" >&5
|
|
11319 echo "configure: failed program was:" >&5
|
|
11320 cat conftest.$ac_ext >&5
|
|
11321 rm -rf conftest*
|
|
11322 eval "ac_cv_header_$ac_safe=no"
|
|
11323 fi
|
|
11324 rm -f conftest*
|
|
11325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11326 echo "$ac_t""yes" 1>&6
|
|
11327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11328 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11329 Defining $ac_tr_hdr
|
|
11330 EOF
|
|
11331 cat >> confdefs.h <<EOF
|
|
11332 #define $ac_tr_hdr 1
|
|
11333 EOF
|
|
11334 }
|
|
11335
|
|
11336 else
|
|
11337 echo "$ac_t""no" 1>&6
|
|
11338 fi
|
|
11339 done
|
771
|
11340 fi
|
|
11341
|
|
11342 for ac_func in getloadavg
|
410
|
11343 do
|
|
11344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
11345 echo "configure:11346: checking for $ac_func" >&5
|
|
11346
|
|
11347 cat > conftest.$ac_ext <<EOF
|
|
11348 #line 11349 "configure"
|
149
|
11349 #include "confdefs.h"
|
|
11350 /* System header to define __stub macros and hopefully few prototypes,
|
|
11351 which can conflict with char $ac_func(); below. */
|
|
11352 #include <assert.h>
|
|
11353 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11354 /* We use char because int might match the return type of a gcc2
|
|
11355 builtin and then its argument prototype would still apply. */
|
|
11356 char $ac_func();
|
|
11357
|
|
11358 int main() {
|
|
11359
|
70
|
11360 /* The GNU C library defines this for functions which it implements
|
|
11361 to always fail with ENOSYS. Some functions are actually named
|
|
11362 something starting with __ and the normal name is an alias. */
|
149
|
11363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
70
|
11364 choke me
|
|
11365 #else
|
149
|
11366 $ac_func();
|
70
|
11367 #endif
|
149
|
11368
|
70
|
11369 ; return 0; }
|
|
11370 EOF
|
853
|
11371 if { (eval echo configure:11372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
11372 rm -rf conftest*
|
|
11373 eval "ac_cv_func_$ac_func=yes"
|
|
11374 else
|
|
11375 echo "configure: failed program was:" >&5
|
|
11376 cat conftest.$ac_ext >&5
|
|
11377 rm -rf conftest*
|
|
11378 eval "ac_cv_func_$ac_func=no"
|
|
11379 fi
|
|
11380 rm -f conftest*
|
|
11381
|
|
11382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11383 echo "$ac_t""yes" 1>&6
|
|
11384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
11385 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11386 Defining $ac_tr_func
|
|
11387 EOF
|
|
11388 cat >> confdefs.h <<EOF
|
|
11389 #define $ac_tr_func 1
|
|
11390 EOF
|
|
11391 }
|
|
11392
|
|
11393 else
|
|
11394 echo "$ac_t""no" 1>&6
|
|
11395 fi
|
|
11396 done
|
|
11397
|
|
11398
|
|
11399 if test "$ac_cv_func_getloadavg" = "yes"; then
|
|
11400 for ac_hdr in sys/loadavg.h
|
|
11401 do
|
|
11402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
853
|
11404 echo "configure:11405: checking for $ac_hdr" >&5
|
|
11405
|
|
11406 cat > conftest.$ac_ext <<EOF
|
|
11407 #line 11408 "configure"
|
442
|
11408 #include "confdefs.h"
|
|
11409 #include <$ac_hdr>
|
|
11410 EOF
|
|
11411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
11412 { (eval echo configure:11413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
11413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11414 if test -z "$ac_err"; then
|
|
11415 rm -rf conftest*
|
|
11416 eval "ac_cv_header_$ac_safe=yes"
|
|
11417 else
|
|
11418 echo "$ac_err" >&5
|
|
11419 echo "configure: failed program was:" >&5
|
|
11420 cat conftest.$ac_ext >&5
|
|
11421 rm -rf conftest*
|
|
11422 eval "ac_cv_header_$ac_safe=no"
|
|
11423 fi
|
|
11424 rm -f conftest*
|
|
11425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11426 echo "$ac_t""yes" 1>&6
|
|
11427 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11428 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11429 Defining $ac_tr_hdr
|
|
11430 EOF
|
|
11431 cat >> confdefs.h <<EOF
|
|
11432 #define $ac_tr_hdr 1
|
|
11433 EOF
|
|
11434 }
|
|
11435
|
|
11436 else
|
|
11437 echo "$ac_t""no" 1>&6
|
|
11438 fi
|
|
11439 done
|
|
11440
|
|
11441 else
|
|
11442 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
|
398
|
11443 echo " xemacs will be linked with \"getloadavg.o\""
|
|
11444 fi
|
|
11445
|
|
11446
|
|
11447 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
|
853
|
11448 echo "configure:11449: checking for kstat_open in -lkstat" >&5
|
398
|
11449 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
|
|
11450
|
|
11451 xe_check_libs=" -lkstat "
|
|
11452 cat > conftest.$ac_ext <<EOF
|
853
|
11453 #line 11454 "configure"
|
398
|
11454 #include "confdefs.h"
|
|
11455 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11456 /* We use char because int might match the return type of a gcc2
|
|
11457 builtin and then its argument prototype would still apply. */
|
|
11458 char kstat_open();
|
|
11459
|
|
11460 int main() {
|
|
11461 kstat_open()
|
|
11462 ; return 0; }
|
|
11463 EOF
|
853
|
11464 if { (eval echo configure:11465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
11465 rm -rf conftest*
|
|
11466 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11467 else
|
|
11468 echo "configure: failed program was:" >&5
|
|
11469 cat conftest.$ac_ext >&5
|
|
11470 rm -rf conftest*
|
|
11471 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11472 fi
|
|
11473 rm -f conftest*
|
|
11474 xe_check_libs=""
|
|
11475
|
|
11476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11477 echo "$ac_t""yes" 1>&6
|
|
11478 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
11479 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
369
|
11480 { test "$extra_verbose" = "yes" && cat << EOF
|
398
|
11481 Defining $ac_tr_lib
|
369
|
11482 EOF
|
|
11483 cat >> confdefs.h <<EOF
|
398
|
11484 #define $ac_tr_lib 1
|
|
11485 EOF
|
|
11486 }
|
|
11487
|
|
11488 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
|
|
11489
|
|
11490 else
|
|
11491 echo "$ac_t""no" 1>&6
|
|
11492 fi
|
|
11493
|
|
11494
|
442
|
11495 for ac_hdr in kstat.h
|
|
11496 do
|
|
11497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
853
|
11499 echo "configure:11500: checking for $ac_hdr" >&5
|
|
11500
|
|
11501 cat > conftest.$ac_ext <<EOF
|
|
11502 #line 11503 "configure"
|
442
|
11503 #include "confdefs.h"
|
|
11504 #include <$ac_hdr>
|
|
11505 EOF
|
|
11506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
11507 { (eval echo configure:11508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
11508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11509 if test -z "$ac_err"; then
|
|
11510 rm -rf conftest*
|
|
11511 eval "ac_cv_header_$ac_safe=yes"
|
|
11512 else
|
|
11513 echo "$ac_err" >&5
|
|
11514 echo "configure: failed program was:" >&5
|
|
11515 cat conftest.$ac_ext >&5
|
|
11516 rm -rf conftest*
|
|
11517 eval "ac_cv_header_$ac_safe=no"
|
|
11518 fi
|
|
11519 rm -f conftest*
|
|
11520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11521 echo "$ac_t""yes" 1>&6
|
|
11522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11523 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11524 Defining $ac_tr_hdr
|
|
11525 EOF
|
|
11526 cat >> confdefs.h <<EOF
|
|
11527 #define $ac_tr_hdr 1
|
|
11528 EOF
|
|
11529 }
|
|
11530
|
|
11531 else
|
|
11532 echo "$ac_t""no" 1>&6
|
|
11533 fi
|
|
11534 done
|
|
11535
|
398
|
11536
|
|
11537
|
|
11538 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
|
853
|
11539 echo "configure:11540: checking for kvm_read in -lkvm" >&5
|
398
|
11540 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
|
|
11541
|
|
11542 xe_check_libs=" -lkvm "
|
|
11543 cat > conftest.$ac_ext <<EOF
|
853
|
11544 #line 11545 "configure"
|
398
|
11545 #include "confdefs.h"
|
|
11546 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11547 /* We use char because int might match the return type of a gcc2
|
|
11548 builtin and then its argument prototype would still apply. */
|
|
11549 char kvm_read();
|
|
11550
|
|
11551 int main() {
|
|
11552 kvm_read()
|
|
11553 ; return 0; }
|
|
11554 EOF
|
853
|
11555 if { (eval echo configure:11556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
11556 rm -rf conftest*
|
|
11557 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11558 else
|
|
11559 echo "configure: failed program was:" >&5
|
|
11560 cat conftest.$ac_ext >&5
|
|
11561 rm -rf conftest*
|
|
11562 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11563 fi
|
|
11564 rm -f conftest*
|
|
11565 xe_check_libs=""
|
|
11566
|
|
11567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11568 echo "$ac_t""yes" 1>&6
|
|
11569 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
11570 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
11571 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11572 Defining $ac_tr_lib
|
|
11573 EOF
|
|
11574 cat >> confdefs.h <<EOF
|
|
11575 #define $ac_tr_lib 1
|
|
11576 EOF
|
|
11577 }
|
|
11578
|
|
11579 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
|
|
11580
|
|
11581 else
|
|
11582 echo "$ac_t""no" 1>&6
|
|
11583 fi
|
|
11584
|
|
11585
|
|
11586 fi
|
151
|
11587
|
149
|
11588 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
|
853
|
11589 echo "configure:11590: checking whether netdb declares h_errno" >&5
|
|
11590 cat > conftest.$ac_ext <<EOF
|
|
11591 #line 11592 "configure"
|
0
|
11592 #include "confdefs.h"
|
|
11593 #include <netdb.h>
|
149
|
11594 int main() {
|
|
11595 return h_errno;
|
|
11596 ; return 0; }
|
|
11597 EOF
|
853
|
11598 if { (eval echo configure:11599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11599 rm -rf conftest*
|
|
11600 echo "$ac_t""yes" 1>&6
|
|
11601 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11602 Defining HAVE_H_ERRNO
|
|
11603 EOF
|
|
11604 cat >> confdefs.h <<\EOF
|
|
11605 #define HAVE_H_ERRNO 1
|
|
11606 EOF
|
|
11607 }
|
|
11608
|
|
11609 else
|
|
11610 echo "configure: failed program was:" >&5
|
|
11611 cat conftest.$ac_ext >&5
|
|
11612 rm -rf conftest*
|
|
11613 echo "$ac_t""no" 1>&6
|
|
11614 fi
|
|
11615 rm -f conftest*
|
|
11616
|
|
11617 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
|
853
|
11618 echo "configure:11619: checking for sigsetjmp" >&5
|
|
11619 cat > conftest.$ac_ext <<EOF
|
|
11620 #line 11621 "configure"
|
0
|
11621 #include "confdefs.h"
|
|
11622 #include <setjmp.h>
|
149
|
11623 int main() {
|
|
11624 sigjmp_buf bar; sigsetjmp (bar, 0);
|
|
11625 ; return 0; }
|
|
11626 EOF
|
853
|
11627 if { (eval echo configure:11628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
11628 rm -rf conftest*
|
|
11629 echo "$ac_t""yes" 1>&6
|
|
11630 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11631 Defining HAVE_SIGSETJMP
|
|
11632 EOF
|
|
11633 cat >> confdefs.h <<\EOF
|
|
11634 #define HAVE_SIGSETJMP 1
|
|
11635 EOF
|
|
11636 }
|
|
11637
|
|
11638 else
|
|
11639 echo "configure: failed program was:" >&5
|
|
11640 cat conftest.$ac_ext >&5
|
|
11641 rm -rf conftest*
|
|
11642 echo "$ac_t""no" 1>&6
|
|
11643 fi
|
|
11644 rm -f conftest*
|
|
11645
|
|
11646 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
|
853
|
11647 echo "configure:11648: checking whether localtime caches TZ" >&5
|
149
|
11648
|
|
11649 if test "$ac_cv_func_tzset" = "yes"; then
|
|
11650 cat > conftest.$ac_ext <<EOF
|
853
|
11651 #line 11652 "configure"
|
0
|
11652 #include "confdefs.h"
|
|
11653 #include <time.h>
|
149
|
11654 #if STDC_HEADERS
|
0
|
11655 # include <stdlib.h>
|
|
11656 #endif
|
|
11657 extern char **environ;
|
|
11658 unset_TZ ()
|
|
11659 {
|
|
11660 char **from, **to;
|
|
11661 for (to = from = environ; (*to = *from); from++)
|
|
11662 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
11663 to++;
|
|
11664 }
|
149
|
11665 char TZ_GMT0[] = "TZ=GMT0";
|
|
11666 char TZ_PST8[] = "TZ=PST8";
|
0
|
11667 main()
|
|
11668 {
|
|
11669 time_t now = time ((time_t *) 0);
|
|
11670 int hour_GMT0, hour_unset;
|
149
|
11671 if (putenv (TZ_GMT0) != 0)
|
0
|
11672 exit (1);
|
|
11673 hour_GMT0 = localtime (&now)->tm_hour;
|
|
11674 unset_TZ ();
|
|
11675 hour_unset = localtime (&now)->tm_hour;
|
149
|
11676 if (putenv (TZ_PST8) != 0)
|
0
|
11677 exit (1);
|
|
11678 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
11679 exit (1);
|
|
11680 unset_TZ ();
|
|
11681 if (localtime (&now)->tm_hour != hour_unset)
|
|
11682 exit (1);
|
|
11683 exit (0);
|
|
11684 }
|
|
11685 EOF
|
853
|
11686 if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
11687 then
|
0
|
11688 emacs_cv_localtime_cache=no
|
149
|
11689 else
|
373
|
11690 conftest_rc="$?"
|
149
|
11691 echo "configure: failed program was:" >&5
|
|
11692 cat conftest.$ac_ext >&5
|
|
11693 rm -fr conftest*
|
0
|
11694 emacs_cv_localtime_cache=yes
|
|
11695 fi
|
|
11696 rm -fr conftest*
|
149
|
11697 else
|
|
11698 # If we lack tzset, report that localtime does not cache TZ,
|
|
11699 # since we can't invalidate the cache if we don't have tzset.
|
|
11700 emacs_cv_localtime_cache=no
|
|
11701 fi
|
|
11702 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
|
|
11703 if test $emacs_cv_localtime_cache = yes; then
|
|
11704 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11705 Defining LOCALTIME_CACHE
|
|
11706 EOF
|
|
11707 cat >> confdefs.h <<\EOF
|
|
11708 #define LOCALTIME_CACHE 1
|
|
11709 EOF
|
|
11710 }
|
|
11711
|
|
11712 fi
|
|
11713
|
|
11714 if test "$HAVE_TIMEVAL" = "yes"; then
|
274
|
11715 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
|
853
|
11716 echo "configure:11717: checking whether gettimeofday accepts one or two arguments" >&5
|
|
11717 cat > conftest.$ac_ext <<EOF
|
|
11718 #line 11719 "configure"
|
0
|
11719 #include "confdefs.h"
|
|
11720
|
|
11721 #ifdef TIME_WITH_SYS_TIME
|
|
11722 #include <sys/time.h>
|
|
11723 #include <time.h>
|
|
11724 #else
|
|
11725 #ifdef HAVE_SYS_TIME_H
|
|
11726 #include <sys/time.h>
|
|
11727 #else
|
|
11728 #include <time.h>
|
|
11729 #endif
|
|
11730 #endif
|
|
11731
|
149
|
11732 int main() {
|
|
11733
|
0
|
11734 struct timeval time;
|
442
|
11735 gettimeofday (&time, 0);
|
|
11736
|
|
11737 ; return 0; }
|
|
11738 EOF
|
853
|
11739 if { (eval echo configure:11740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
274
|
11740 rm -rf conftest*
|
|
11741 echo "$ac_t""two" 1>&6
|
|
11742 else
|
|
11743 echo "configure: failed program was:" >&5
|
|
11744 cat conftest.$ac_ext >&5
|
|
11745 rm -rf conftest*
|
|
11746 echo "$ac_t""one" 1>&6
|
149
|
11747 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11748 Defining GETTIMEOFDAY_ONE_ARGUMENT
|
|
11749 EOF
|
|
11750 cat >> confdefs.h <<\EOF
|
|
11751 #define GETTIMEOFDAY_ONE_ARGUMENT 1
|
|
11752 EOF
|
|
11753 }
|
|
11754
|
|
11755 fi
|
|
11756 rm -f conftest*
|
|
11757 fi
|
|
11758
|
|
11759
|
|
11760 echo $ac_n "checking for inline""... $ac_c" 1>&6
|
853
|
11761 echo "configure:11762: checking for inline" >&5
|
149
|
11762
|
|
11763 ac_cv_c_inline=no
|
|
11764 for ac_kw in inline __inline__ __inline; do
|
|
11765 cat > conftest.$ac_ext <<EOF
|
853
|
11766 #line 11767 "configure"
|
744
|
11767 #include "confdefs.h"
|
|
11768
|
|
11769 int main() {
|
|
11770 } $ac_kw foo() {
|
|
11771 ; return 0; }
|
|
11772 EOF
|
853
|
11773 if { (eval echo configure:11774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
11774 rm -rf conftest*
|
|
11775 ac_cv_c_inline=$ac_kw; break
|
|
11776 else
|
|
11777 echo "configure: failed program was:" >&5
|
|
11778 cat conftest.$ac_ext >&5
|
|
11779 fi
|
|
11780 rm -f conftest*
|
|
11781 done
|
|
11782
|
|
11783
|
|
11784 echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
11785 case "$ac_cv_c_inline" in
|
|
11786 inline | yes) ;;
|
|
11787 no) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11788 Defining inline =
|
|
11789 EOF
|
|
11790 cat >> confdefs.h <<\EOF
|
|
11791 #define inline
|
|
11792 EOF
|
|
11793 }
|
|
11794 ;;
|
|
11795 *) { test "$extra_verbose" = "yes" && cat << EOF
|
|
11796 Defining inline = $ac_cv_c_inline
|
|
11797 EOF
|
|
11798 cat >> confdefs.h <<EOF
|
|
11799 #define inline $ac_cv_c_inline
|
|
11800 EOF
|
|
11801 }
|
|
11802 ;;
|
|
11803 esac
|
|
11804
|
442
|
11805 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
|
155
|
11806 echo " xemacs will be linked with \"inline.o\""
|
|
11807 fi
|
149
|
11808
|
|
11809
|
444
|
11810 if test "$__DECC" != "yes"; then
|
|
11811 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
0
|
11812 # for constant arguments. Useless!
|
149
|
11813 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
853
|
11814 echo "configure:11815: checking for working alloca.h" >&5
|
|
11815
|
|
11816 cat > conftest.$ac_ext <<EOF
|
|
11817 #line 11818 "configure"
|
0
|
11818 #include "confdefs.h"
|
|
11819 #include <alloca.h>
|
149
|
11820 int main() {
|
744
|
11821 char *p = alloca(2 * sizeof(int));
|
|
11822 ; return 0; }
|
|
11823 EOF
|
853
|
11824 if { (eval echo configure:11825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11825 rm -rf conftest*
|
|
11826 ac_cv_header_alloca_h=yes
|
|
11827 else
|
|
11828 echo "configure: failed program was:" >&5
|
|
11829 cat conftest.$ac_ext >&5
|
|
11830 rm -rf conftest*
|
|
11831 ac_cv_header_alloca_h=no
|
|
11832 fi
|
|
11833 rm -f conftest*
|
|
11834
|
|
11835 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|
11836 if test $ac_cv_header_alloca_h = yes; then
|
|
11837 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11838 Defining HAVE_ALLOCA_H
|
|
11839 EOF
|
|
11840 cat >> confdefs.h <<\EOF
|
|
11841 #define HAVE_ALLOCA_H 1
|
|
11842 EOF
|
|
11843 }
|
|
11844
|
|
11845 fi
|
|
11846
|
|
11847 echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
853
|
11848 echo "configure:11849: checking for alloca" >&5
|
|
11849
|
|
11850 cat > conftest.$ac_ext <<EOF
|
|
11851 #line 11852 "configure"
|
149
|
11852 #include "confdefs.h"
|
|
11853
|
|
11854 #ifdef __GNUC__
|
|
11855 # define alloca __builtin_alloca
|
0
|
11856 #else
|
420
|
11857 # ifdef _MSC_VER
|
|
11858 # include <malloc.h>
|
|
11859 # define alloca _alloca
|
149
|
11860 # else
|
420
|
11861 # if HAVE_ALLOCA_H
|
|
11862 # include <alloca.h>
|
149
|
11863 # else
|
420
|
11864 # ifdef _AIX
|
|
11865 #pragma alloca
|
|
11866 # else
|
|
11867 # ifndef alloca /* predefined by HP cc +Olibcalls */
|
149
|
11868 char *alloca ();
|
420
|
11869 # endif
|
149
|
11870 # endif
|
|
11871 # endif
|
|
11872 # endif
|
0
|
11873 #endif
|
149
|
11874
|
|
11875 int main() {
|
|
11876 char *p = (char *) alloca(1);
|
0
|
11877 ; return 0; }
|
|
11878 EOF
|
853
|
11879 if { (eval echo configure:11880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11880 rm -rf conftest*
|
|
11881 ac_cv_func_alloca_works=yes
|
|
11882 else
|
|
11883 echo "configure: failed program was:" >&5
|
|
11884 cat conftest.$ac_ext >&5
|
|
11885 rm -rf conftest*
|
|
11886 ac_cv_func_alloca_works=no
|
|
11887 fi
|
|
11888 rm -f conftest*
|
|
11889
|
|
11890 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|
11891 if test $ac_cv_func_alloca_works = yes; then
|
|
11892 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11893 Defining HAVE_ALLOCA
|
|
11894 EOF
|
|
11895 cat >> confdefs.h <<\EOF
|
|
11896 #define HAVE_ALLOCA 1
|
|
11897 EOF
|
|
11898 }
|
|
11899
|
|
11900 fi
|
|
11901
|
|
11902 if test $ac_cv_func_alloca_works = no; then
|
0
|
11903 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
11904 # that cause trouble. Some versions do not even contain alloca or
|
|
11905 # contain a buggy version. If you still want to use their alloca,
|
|
11906 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
420
|
11907 ALLOCA=alloca.${ac_objext}
|
149
|
11908 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11909 Defining C_ALLOCA
|
|
11910 EOF
|
|
11911 cat >> confdefs.h <<\EOF
|
|
11912 #define C_ALLOCA 1
|
|
11913 EOF
|
|
11914 }
|
|
11915
|
|
11916
|
|
11917 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
853
|
11918 echo "configure:11919: checking whether alloca needs Cray hooks" >&5
|
|
11919
|
|
11920 cat > conftest.$ac_ext <<EOF
|
|
11921 #line 11922 "configure"
|
149
|
11922 #include "confdefs.h"
|
|
11923 #if defined(CRAY) && ! defined(CRAY2)
|
|
11924 webecray
|
|
11925 #else
|
|
11926 wenotbecray
|
|
11927 #endif
|
|
11928
|
|
11929 EOF
|
|
11930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
11931 egrep "webecray" >/dev/null 2>&1; then
|
|
11932 rm -rf conftest*
|
|
11933 ac_cv_os_cray=yes
|
|
11934 else
|
|
11935 rm -rf conftest*
|
|
11936 ac_cv_os_cray=no
|
|
11937 fi
|
|
11938 rm -f conftest*
|
|
11939
|
|
11940
|
|
11941 echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|
11942 if test $ac_cv_os_cray = yes; then
|
|
11943 for ac_func in _getb67 GETB67 getb67; do
|
|
11944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
11945 echo "configure:11946: checking for $ac_func" >&5
|
|
11946
|
|
11947 cat > conftest.$ac_ext <<EOF
|
|
11948 #line 11949 "configure"
|
149
|
11949 #include "confdefs.h"
|
|
11950 /* System header to define __stub macros and hopefully few prototypes,
|
|
11951 which can conflict with char $ac_func(); below. */
|
|
11952 #include <assert.h>
|
|
11953 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11954 /* We use char because int might match the return type of a gcc2
|
|
11955 builtin and then its argument prototype would still apply. */
|
|
11956 char $ac_func();
|
|
11957
|
|
11958 int main() {
|
|
11959
|
|
11960 /* The GNU C library defines this for functions which it implements
|
|
11961 to always fail with ENOSYS. Some functions are actually named
|
|
11962 something starting with __ and the normal name is an alias. */
|
|
11963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
11964 choke me
|
|
11965 #else
|
|
11966 $ac_func();
|
|
11967 #endif
|
|
11968
|
|
11969 ; return 0; }
|
|
11970 EOF
|
853
|
11971 if { (eval echo configure:11972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11972 rm -rf conftest*
|
|
11973 eval "ac_cv_func_$ac_func=yes"
|
|
11974 else
|
|
11975 echo "configure: failed program was:" >&5
|
|
11976 cat conftest.$ac_ext >&5
|
|
11977 rm -rf conftest*
|
|
11978 eval "ac_cv_func_$ac_func=no"
|
|
11979 fi
|
|
11980 rm -f conftest*
|
|
11981
|
|
11982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11983 echo "$ac_t""yes" 1>&6
|
|
11984 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11985 Defining CRAY_STACKSEG_END = $ac_func
|
|
11986 EOF
|
|
11987 cat >> confdefs.h <<EOF
|
|
11988 #define CRAY_STACKSEG_END $ac_func
|
|
11989 EOF
|
|
11990 }
|
|
11991
|
|
11992 break
|
|
11993 else
|
|
11994 echo "$ac_t""no" 1>&6
|
|
11995 fi
|
|
11996
|
|
11997 done
|
|
11998 fi
|
|
11999
|
|
12000 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
853
|
12001 echo "configure:12002: checking stack direction for C alloca" >&5
|
|
12002
|
|
12003 cat > conftest.$ac_ext <<EOF
|
|
12004 #line 12005 "configure"
|
0
|
12005 #include "confdefs.h"
|
|
12006 find_stack_direction ()
|
|
12007 {
|
|
12008 static char *addr = 0;
|
|
12009 auto char dummy;
|
|
12010 if (addr == 0)
|
|
12011 {
|
|
12012 addr = &dummy;
|
|
12013 return find_stack_direction ();
|
|
12014 }
|
|
12015 else
|
|
12016 return (&dummy > addr) ? 1 : -1;
|
|
12017 }
|
|
12018 main ()
|
|
12019 {
|
|
12020 exit (find_stack_direction() < 0);
|
|
12021 }
|
|
12022 EOF
|
853
|
12023 if { (eval echo configure:12024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
12024 then
|
|
12025 ac_cv_c_stack_direction=1
|
|
12026 else
|
373
|
12027 conftest_rc="$?"
|
149
|
12028 echo "configure: failed program was:" >&5
|
|
12029 cat conftest.$ac_ext >&5
|
|
12030 rm -fr conftest*
|
|
12031 ac_cv_c_stack_direction=-1
|
0
|
12032 fi
|
|
12033 rm -fr conftest*
|
149
|
12034
|
|
12035 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|
12036 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12037 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
|
|
12038 EOF
|
|
12039 cat >> confdefs.h <<EOF
|
|
12040 #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
12041 EOF
|
|
12042 }
|
|
12043
|
|
12044 fi
|
|
12045
|
444
|
12046 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
|
151
|
12047 echo " xemacs will be linked with \"$ALLOCA\""
|
|
12048 fi
|
444
|
12049 fi
|
149
|
12050
|
|
12051 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
|
853
|
12052 echo "configure:12053: checking for working strcoll" >&5
|
|
12053
|
|
12054 cat > conftest.$ac_ext <<EOF
|
|
12055 #line 12056 "configure"
|
0
|
12056 #include "confdefs.h"
|
|
12057 #include <string.h>
|
|
12058 main ()
|
|
12059 {
|
|
12060 exit (strcoll ("abc", "def") >= 0 ||
|
|
12061 strcoll ("ABC", "DEF") >= 0 ||
|
|
12062 strcoll ("123", "456") >= 0);
|
|
12063 }
|
|
12064 EOF
|
853
|
12065 if { (eval echo configure:12066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
12066 then
|
|
12067 ac_cv_func_strcoll_works=yes
|
|
12068 else
|
373
|
12069 conftest_rc="$?"
|
149
|
12070 echo "configure: failed program was:" >&5
|
|
12071 cat conftest.$ac_ext >&5
|
|
12072 rm -fr conftest*
|
|
12073 ac_cv_func_strcoll_works=no
|
0
|
12074 fi
|
|
12075 rm -fr conftest*
|
|
12076
|
149
|
12077 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
|
|
12078 if test $ac_cv_func_strcoll_works = yes; then
|
|
12079 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12080 Defining HAVE_STRCOLL
|
|
12081 EOF
|
|
12082 cat >> confdefs.h <<\EOF
|
|
12083 #define HAVE_STRCOLL 1
|
|
12084 EOF
|
|
12085 }
|
|
12086
|
|
12087 fi
|
|
12088
|
|
12089
|
163
|
12090 for ac_func in getpgrp
|
|
12091 do
|
|
12092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
12093 echo "configure:12094: checking for $ac_func" >&5
|
|
12094
|
|
12095 cat > conftest.$ac_ext <<EOF
|
|
12096 #line 12097 "configure"
|
163
|
12097 #include "confdefs.h"
|
|
12098 /* System header to define __stub macros and hopefully few prototypes,
|
|
12099 which can conflict with char $ac_func(); below. */
|
|
12100 #include <assert.h>
|
|
12101 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12102 /* We use char because int might match the return type of a gcc2
|
|
12103 builtin and then its argument prototype would still apply. */
|
|
12104 char $ac_func();
|
|
12105
|
|
12106 int main() {
|
|
12107
|
|
12108 /* The GNU C library defines this for functions which it implements
|
|
12109 to always fail with ENOSYS. Some functions are actually named
|
|
12110 something starting with __ and the normal name is an alias. */
|
|
12111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
12112 choke me
|
|
12113 #else
|
|
12114 $ac_func();
|
|
12115 #endif
|
|
12116
|
|
12117 ; return 0; }
|
|
12118 EOF
|
853
|
12119 if { (eval echo configure:12120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
163
|
12120 rm -rf conftest*
|
|
12121 eval "ac_cv_func_$ac_func=yes"
|
|
12122 else
|
|
12123 echo "configure: failed program was:" >&5
|
|
12124 cat conftest.$ac_ext >&5
|
|
12125 rm -rf conftest*
|
|
12126 eval "ac_cv_func_$ac_func=no"
|
|
12127 fi
|
|
12128 rm -f conftest*
|
|
12129
|
|
12130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12131 echo "$ac_t""yes" 1>&6
|
|
12132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12133 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12134 Defining $ac_tr_func
|
|
12135 EOF
|
|
12136 cat >> confdefs.h <<EOF
|
|
12137 #define $ac_tr_func 1
|
|
12138 EOF
|
|
12139 }
|
|
12140
|
|
12141 else
|
|
12142 echo "$ac_t""no" 1>&6
|
|
12143 fi
|
|
12144 done
|
|
12145
|
|
12146 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
|
853
|
12147 echo "configure:12148: checking whether getpgrp takes no argument" >&5
|
|
12148
|
|
12149 cat > conftest.$ac_ext <<EOF
|
|
12150 #line 12151 "configure"
|
163
|
12151 #include "confdefs.h"
|
|
12152
|
|
12153 /*
|
|
12154 * If this system has a BSD-style getpgrp(),
|
|
12155 * which takes a pid argument, exit unsuccessfully.
|
|
12156 *
|
|
12157 * Snarfed from Chet Ramey's bash pgrp.c test program
|
|
12158 */
|
|
12159 #include <stdio.h>
|
|
12160 #include <sys/types.h>
|
|
12161
|
|
12162 int pid;
|
|
12163 int pg1, pg2, pg3, pg4;
|
|
12164 int ng, np, s, child;
|
|
12165
|
|
12166 main()
|
|
12167 {
|
|
12168 pid = getpid();
|
|
12169 pg1 = getpgrp(0);
|
|
12170 pg2 = getpgrp();
|
|
12171 pg3 = getpgrp(pid);
|
|
12172 pg4 = getpgrp(1);
|
|
12173
|
|
12174 /*
|
|
12175 * If all of these values are the same, it's pretty sure that
|
|
12176 * we're on a system that ignores getpgrp's first argument.
|
|
12177 */
|
|
12178 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
|
|
12179 exit(0);
|
|
12180
|
|
12181 child = fork();
|
|
12182 if (child < 0)
|
|
12183 exit(1);
|
|
12184 else if (child == 0) {
|
|
12185 np = getpid();
|
|
12186 /*
|
|
12187 * If this is Sys V, this will not work; pgrp will be
|
|
12188 * set to np because setpgrp just changes a pgrp to be
|
|
12189 * the same as the pid.
|
|
12190 */
|
|
12191 setpgrp(np, pg1);
|
|
12192 ng = getpgrp(0); /* Same result for Sys V and BSD */
|
|
12193 if (ng == pg1) {
|
|
12194 exit(1);
|
|
12195 } else {
|
|
12196 exit(0);
|
|
12197 }
|
|
12198 } else {
|
|
12199 wait(&s);
|
|
12200 exit(s>>8);
|
|
12201 }
|
|
12202 }
|
|
12203
|
|
12204 EOF
|
853
|
12205 if { (eval echo configure:12206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
12206 then
|
|
12207 ac_cv_func_getpgrp_void=yes
|
|
12208 else
|
373
|
12209 conftest_rc="$?"
|
163
|
12210 echo "configure: failed program was:" >&5
|
|
12211 cat conftest.$ac_ext >&5
|
|
12212 rm -fr conftest*
|
|
12213 ac_cv_func_getpgrp_void=no
|
|
12214 fi
|
|
12215 rm -fr conftest*
|
|
12216
|
|
12217
|
|
12218 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
|
|
12219 if test $ac_cv_func_getpgrp_void = yes; then
|
|
12220 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12221 Defining GETPGRP_VOID
|
|
12222 EOF
|
|
12223 cat >> confdefs.h <<\EOF
|
|
12224 #define GETPGRP_VOID 1
|
|
12225 EOF
|
|
12226 }
|
|
12227
|
|
12228 fi
|
|
12229
|
|
12230
|
149
|
12231 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
853
|
12232 echo "configure:12233: checking for working mmap" >&5
|
155
|
12233 case "$opsys" in ultrix* ) have_mmap=no ;; *)
|
|
12234 cat > conftest.$ac_ext <<EOF
|
853
|
12235 #line 12236 "configure"
|
153
|
12236 #include "confdefs.h"
|
|
12237 #include <stdio.h>
|
|
12238 #include <unistd.h>
|
149
|
12239 #include <fcntl.h>
|
|
12240 #include <sys/mman.h>
|
|
12241
|
153
|
12242 #ifndef MAP_VARIABLE
|
|
12243 #define MAP_VARIABLE 0
|
0
|
12244 #endif
|
149
|
12245
|
153
|
12246 #ifndef MAP_FAILED
|
|
12247 #define MAP_FAILED -1
|
|
12248 #endif
|
|
12249
|
|
12250 int main (int argc, char *argv[])
|
0
|
12251 {
|
153
|
12252 int fd = -1;
|
|
12253 caddr_t p;
|
|
12254 #ifndef MAP_ANONYMOUS
|
|
12255 fd = open ("/dev/zero", O_RDWR);
|
|
12256 if (fd < 0)
|
|
12257 return 1;
|
|
12258 #define MAP_ANONYMOUS 0
|
|
12259 #endif
|
|
12260 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
|
|
12261 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
|
|
12262 fd, 0) != (void *) MAP_FAILED)
|
|
12263 return 0;
|
|
12264 perror ("conftest: mmap failed");
|
|
12265 return 1;
|
|
12266 }
|
|
12267 EOF
|
853
|
12268 if { (eval echo configure:12269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
12269 then
|
153
|
12270 have_mmap=yes
|
149
|
12271 else
|
373
|
12272 conftest_rc="$?"
|
149
|
12273 echo "configure: failed program was:" >&5
|
|
12274 cat conftest.$ac_ext >&5
|
|
12275 rm -fr conftest*
|
153
|
12276 have_mmap=no
|
149
|
12277 fi
|
155
|
12278 rm -fr conftest* ;;
|
|
12279 esac
|
153
|
12280 echo "$ac_t""$have_mmap" 1>&6
|
|
12281 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
12282 Defining HAVE_MMAP
|
|
12283 EOF
|
|
12284 cat >> confdefs.h <<\EOF
|
|
12285 #define HAVE_MMAP 1
|
|
12286 EOF
|
|
12287 }
|
|
12288
|
412
|
12289
|
535
|
12290 case "$opsys" in cygwin*)
|
462
|
12291 test "$rel_alloc" = "default" && rel_alloc=no ;;
|
|
12292 esac
|
442
|
12293 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
|
|
12294 if test "$rel_alloc $have_mmap" = "default yes"; then
|
|
12295 if test "$doug_lea_malloc" = "yes"; then
|
|
12296 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
|
853
|
12297 echo "configure:12298: checking for M_MMAP_THRESHOLD" >&5
|
442
|
12298 cat > conftest.$ac_ext <<EOF
|
853
|
12299 #line 12300 "configure"
|
442
|
12300 #include "confdefs.h"
|
|
12301 #include <malloc.h>
|
|
12302 int main() {
|
|
12303
|
|
12304 #ifndef M_MMAP_THRESHOLD
|
|
12305 #error No M_MMAP_THRESHOLD :-(
|
|
12306 !@+$%^&*_)(_ - unlikely to compile...
|
|
12307 #endif
|
|
12308
|
|
12309 ; return 0; }
|
|
12310 EOF
|
853
|
12311 if { (eval echo configure:12312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
12312 rm -rf conftest*
|
|
12313 rel_alloc=no; echo "$ac_t""yes" 1>&6;
|
|
12314 else
|
|
12315 echo "configure: failed program was:" >&5
|
|
12316 cat conftest.$ac_ext >&5
|
|
12317 rm -rf conftest*
|
|
12318 rel_alloc=yes; echo "$ac_t""no" 1>&6;
|
|
12319 fi
|
|
12320 rm -f conftest*
|
|
12321 else
|
|
12322 rel_alloc=yes
|
|
12323 fi
|
|
12324 fi
|
149
|
12325 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12326 Defining REL_ALLOC
|
|
12327 EOF
|
|
12328 cat >> confdefs.h <<\EOF
|
|
12329 #define REL_ALLOC 1
|
|
12330 EOF
|
|
12331 }
|
|
12332
|
|
12333
|
175
|
12334 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
|
|
12335 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
|
853
|
12336 echo "configure:12337: checking for termios.h" >&5
|
|
12337
|
|
12338 cat > conftest.$ac_ext <<EOF
|
|
12339 #line 12340 "configure"
|
175
|
12340 #include "confdefs.h"
|
|
12341 #include <termios.h>
|
|
12342 EOF
|
|
12343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
12344 { (eval echo configure:12345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
175
|
12346 if test -z "$ac_err"; then
|
|
12347 rm -rf conftest*
|
|
12348 eval "ac_cv_header_$ac_safe=yes"
|
|
12349 else
|
|
12350 echo "$ac_err" >&5
|
|
12351 echo "configure: failed program was:" >&5
|
|
12352 cat conftest.$ac_ext >&5
|
|
12353 rm -rf conftest*
|
|
12354 eval "ac_cv_header_$ac_safe=no"
|
|
12355 fi
|
|
12356 rm -f conftest*
|
|
12357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12358 echo "$ac_t""yes" 1>&6
|
|
12359 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12360 Defining HAVE_TERMIOS
|
|
12361 EOF
|
|
12362 cat >> confdefs.h <<\EOF
|
|
12363 #define HAVE_TERMIOS 1
|
|
12364 EOF
|
|
12365 }
|
|
12366
|
|
12367 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12368 Defining SIGNALS_VIA_CHARACTERS
|
|
12369 EOF
|
|
12370 cat >> confdefs.h <<\EOF
|
|
12371 #define SIGNALS_VIA_CHARACTERS 1
|
|
12372 EOF
|
|
12373 }
|
|
12374
|
|
12375 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12376 Defining NO_TERMIO
|
|
12377 EOF
|
|
12378 cat >> confdefs.h <<\EOF
|
|
12379 #define NO_TERMIO 1
|
|
12380 EOF
|
|
12381 }
|
|
12382
|
|
12383 else
|
|
12384 echo "$ac_t""no" 1>&6
|
|
12385 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
|
|
12386 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
|
853
|
12387 echo "configure:12388: checking for termio.h" >&5
|
|
12388
|
|
12389 cat > conftest.$ac_ext <<EOF
|
|
12390 #line 12391 "configure"
|
175
|
12391 #include "confdefs.h"
|
|
12392 #include <termio.h>
|
|
12393 EOF
|
|
12394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
12395 { (eval echo configure:12396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
175
|
12397 if test -z "$ac_err"; then
|
|
12398 rm -rf conftest*
|
|
12399 eval "ac_cv_header_$ac_safe=yes"
|
|
12400 else
|
|
12401 echo "$ac_err" >&5
|
|
12402 echo "configure: failed program was:" >&5
|
|
12403 cat conftest.$ac_ext >&5
|
|
12404 rm -rf conftest*
|
|
12405 eval "ac_cv_header_$ac_safe=no"
|
|
12406 fi
|
|
12407 rm -f conftest*
|
|
12408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12409 echo "$ac_t""yes" 1>&6
|
|
12410 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12411 Defining HAVE_TERMIO
|
|
12412 EOF
|
|
12413 cat >> confdefs.h <<\EOF
|
|
12414 #define HAVE_TERMIO 1
|
|
12415 EOF
|
|
12416 }
|
|
12417
|
|
12418 else
|
|
12419 echo "$ac_t""no" 1>&6
|
|
12420 fi
|
|
12421
|
|
12422 fi
|
|
12423
|
|
12424
|
|
12425
|
149
|
12426 echo $ac_n "checking for socket""... $ac_c" 1>&6
|
853
|
12427 echo "configure:12428: checking for socket" >&5
|
|
12428
|
|
12429 cat > conftest.$ac_ext <<EOF
|
|
12430 #line 12431 "configure"
|
149
|
12431 #include "confdefs.h"
|
|
12432 /* System header to define __stub macros and hopefully few prototypes,
|
|
12433 which can conflict with char socket(); below. */
|
|
12434 #include <assert.h>
|
|
12435 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12436 /* We use char because int might match the return type of a gcc2
|
|
12437 builtin and then its argument prototype would still apply. */
|
|
12438 char socket();
|
|
12439
|
|
12440 int main() {
|
|
12441
|
0
|
12442 /* The GNU C library defines this for functions which it implements
|
|
12443 to always fail with ENOSYS. Some functions are actually named
|
|
12444 something starting with __ and the normal name is an alias. */
|
|
12445 #if defined (__stub_socket) || defined (__stub___socket)
|
|
12446 choke me
|
|
12447 #else
|
149
|
12448 socket();
|
0
|
12449 #endif
|
149
|
12450
|
0
|
12451 ; return 0; }
|
|
12452 EOF
|
853
|
12453 if { (eval echo configure:12454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12454 rm -rf conftest*
|
|
12455 eval "ac_cv_func_socket=yes"
|
|
12456 else
|
|
12457 echo "configure: failed program was:" >&5
|
|
12458 cat conftest.$ac_ext >&5
|
|
12459 rm -rf conftest*
|
|
12460 eval "ac_cv_func_socket=no"
|
|
12461 fi
|
|
12462 rm -f conftest*
|
|
12463
|
|
12464 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
|
|
12465 echo "$ac_t""yes" 1>&6
|
|
12466 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
|
|
12467 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
|
853
|
12468 echo "configure:12469: checking for netinet/in.h" >&5
|
|
12469
|
|
12470 cat > conftest.$ac_ext <<EOF
|
|
12471 #line 12472 "configure"
|
0
|
12472 #include "confdefs.h"
|
|
12473 #include <netinet/in.h>
|
|
12474 EOF
|
149
|
12475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
12476 { (eval echo configure:12477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12478 if test -z "$ac_err"; then
|
149
|
12479 rm -rf conftest*
|
|
12480 eval "ac_cv_header_$ac_safe=yes"
|
|
12481 else
|
|
12482 echo "$ac_err" >&5
|
|
12483 echo "configure: failed program was:" >&5
|
|
12484 cat conftest.$ac_ext >&5
|
|
12485 rm -rf conftest*
|
|
12486 eval "ac_cv_header_$ac_safe=no"
|
|
12487 fi
|
|
12488 rm -f conftest*
|
|
12489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12490 echo "$ac_t""yes" 1>&6
|
|
12491 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
|
|
12492 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
|
853
|
12493 echo "configure:12494: checking for arpa/inet.h" >&5
|
|
12494
|
|
12495 cat > conftest.$ac_ext <<EOF
|
|
12496 #line 12497 "configure"
|
0
|
12497 #include "confdefs.h"
|
|
12498 #include <arpa/inet.h>
|
|
12499 EOF
|
149
|
12500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
12501 { (eval echo configure:12502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12503 if test -z "$ac_err"; then
|
149
|
12504 rm -rf conftest*
|
|
12505 eval "ac_cv_header_$ac_safe=yes"
|
|
12506 else
|
|
12507 echo "$ac_err" >&5
|
|
12508 echo "configure: failed program was:" >&5
|
|
12509 cat conftest.$ac_ext >&5
|
|
12510 rm -rf conftest*
|
|
12511 eval "ac_cv_header_$ac_safe=no"
|
|
12512 fi
|
|
12513 rm -f conftest*
|
|
12514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12515 echo "$ac_t""yes" 1>&6
|
0
|
12516
|
149
|
12517 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12518 Defining HAVE_SOCKETS
|
|
12519 EOF
|
|
12520 cat >> confdefs.h <<\EOF
|
|
12521 #define HAVE_SOCKETS 1
|
|
12522 EOF
|
|
12523 }
|
|
12524
|
|
12525 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
|
853
|
12526 echo "configure:12527: checking "for sun_len member in struct sockaddr_un"" >&5
|
149
|
12527 cat > conftest.$ac_ext <<EOF
|
853
|
12528 #line 12529 "configure"
|
149
|
12529 #include "confdefs.h"
|
|
12530
|
0
|
12531 #include <sys/types.h>
|
149
|
12532 #include <sys/socket.h>
|
|
12533 #include <sys/un.h>
|
|
12534
|
|
12535 int main() {
|
|
12536 static struct sockaddr_un x; x.sun_len = 1;
|
|
12537 ; return 0; }
|
|
12538 EOF
|
853
|
12539 if { (eval echo configure:12540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12540 rm -rf conftest*
|
|
12541 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12542 Defining HAVE_SOCKADDR_SUN_LEN
|
|
12543 EOF
|
|
12544 cat >> confdefs.h <<\EOF
|
|
12545 #define HAVE_SOCKADDR_SUN_LEN 1
|
|
12546 EOF
|
|
12547 }
|
|
12548
|
|
12549 else
|
|
12550 echo "configure: failed program was:" >&5
|
|
12551 cat conftest.$ac_ext >&5
|
|
12552 rm -rf conftest*
|
|
12553 echo "$ac_t""no" 1>&6
|
|
12554 fi
|
|
12555 rm -f conftest*
|
259
|
12556 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
|
853
|
12557 echo "configure:12558: checking "for ip_mreq struct in netinet/in.h"" >&5
|
259
|
12558 cat > conftest.$ac_ext <<EOF
|
853
|
12559 #line 12560 "configure"
|
284
|
12560 #include "confdefs.h"
|
|
12561
|
|
12562 #include <sys/types.h>
|
259
|
12563 #include <netinet/in.h>
|
|
12564
|
|
12565 int main() {
|
|
12566 static struct ip_mreq x;
|
|
12567 ; return 0; }
|
|
12568 EOF
|
853
|
12569 if { (eval echo configure:12570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
12570 rm -rf conftest*
|
|
12571 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12572 Defining HAVE_MULTICAST
|
|
12573 EOF
|
|
12574 cat >> confdefs.h <<\EOF
|
|
12575 #define HAVE_MULTICAST 1
|
|
12576 EOF
|
|
12577 }
|
|
12578
|
|
12579 else
|
|
12580 echo "configure: failed program was:" >&5
|
|
12581 cat conftest.$ac_ext >&5
|
|
12582 rm -rf conftest*
|
|
12583 echo "$ac_t""no" 1>&6
|
|
12584 fi
|
|
12585 rm -f conftest*
|
149
|
12586 else
|
|
12587 echo "$ac_t""no" 1>&6
|
|
12588 fi
|
|
12589
|
|
12590 else
|
|
12591 echo "$ac_t""no" 1>&6
|
|
12592 fi
|
|
12593
|
|
12594 else
|
|
12595 echo "$ac_t""no" 1>&6
|
|
12596 fi
|
|
12597
|
|
12598
|
|
12599 echo $ac_n "checking for msgget""... $ac_c" 1>&6
|
853
|
12600 echo "configure:12601: checking for msgget" >&5
|
|
12601
|
|
12602 cat > conftest.$ac_ext <<EOF
|
|
12603 #line 12604 "configure"
|
149
|
12604 #include "confdefs.h"
|
|
12605 /* System header to define __stub macros and hopefully few prototypes,
|
|
12606 which can conflict with char msgget(); below. */
|
|
12607 #include <assert.h>
|
|
12608 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12609 /* We use char because int might match the return type of a gcc2
|
|
12610 builtin and then its argument prototype would still apply. */
|
|
12611 char msgget();
|
|
12612
|
|
12613 int main() {
|
|
12614
|
0
|
12615 /* The GNU C library defines this for functions which it implements
|
|
12616 to always fail with ENOSYS. Some functions are actually named
|
|
12617 something starting with __ and the normal name is an alias. */
|
|
12618 #if defined (__stub_msgget) || defined (__stub___msgget)
|
|
12619 choke me
|
|
12620 #else
|
149
|
12621 msgget();
|
0
|
12622 #endif
|
149
|
12623
|
0
|
12624 ; return 0; }
|
|
12625 EOF
|
853
|
12626 if { (eval echo configure:12627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12627 rm -rf conftest*
|
|
12628 eval "ac_cv_func_msgget=yes"
|
|
12629 else
|
|
12630 echo "configure: failed program was:" >&5
|
|
12631 cat conftest.$ac_ext >&5
|
|
12632 rm -rf conftest*
|
|
12633 eval "ac_cv_func_msgget=no"
|
|
12634 fi
|
|
12635 rm -f conftest*
|
|
12636
|
|
12637 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
|
|
12638 echo "$ac_t""yes" 1>&6
|
|
12639 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
|
|
12640 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
|
853
|
12641 echo "configure:12642: checking for sys/ipc.h" >&5
|
|
12642
|
|
12643 cat > conftest.$ac_ext <<EOF
|
|
12644 #line 12645 "configure"
|
0
|
12645 #include "confdefs.h"
|
|
12646 #include <sys/ipc.h>
|
|
12647 EOF
|
149
|
12648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
12649 { (eval echo configure:12650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12651 if test -z "$ac_err"; then
|
149
|
12652 rm -rf conftest*
|
|
12653 eval "ac_cv_header_$ac_safe=yes"
|
|
12654 else
|
|
12655 echo "$ac_err" >&5
|
|
12656 echo "configure: failed program was:" >&5
|
|
12657 cat conftest.$ac_ext >&5
|
|
12658 rm -rf conftest*
|
|
12659 eval "ac_cv_header_$ac_safe=no"
|
|
12660 fi
|
|
12661 rm -f conftest*
|
|
12662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12663 echo "$ac_t""yes" 1>&6
|
|
12664 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
|
|
12665 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
|
853
|
12666 echo "configure:12667: checking for sys/msg.h" >&5
|
|
12667
|
|
12668 cat > conftest.$ac_ext <<EOF
|
|
12669 #line 12670 "configure"
|
0
|
12670 #include "confdefs.h"
|
|
12671 #include <sys/msg.h>
|
|
12672 EOF
|
149
|
12673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
12674 { (eval echo configure:12675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12676 if test -z "$ac_err"; then
|
149
|
12677 rm -rf conftest*
|
|
12678 eval "ac_cv_header_$ac_safe=yes"
|
|
12679 else
|
|
12680 echo "$ac_err" >&5
|
|
12681 echo "configure: failed program was:" >&5
|
|
12682 cat conftest.$ac_ext >&5
|
|
12683 rm -rf conftest*
|
|
12684 eval "ac_cv_header_$ac_safe=no"
|
|
12685 fi
|
|
12686 rm -f conftest*
|
|
12687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12688 echo "$ac_t""yes" 1>&6
|
|
12689 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12690 Defining HAVE_SYSVIPC
|
|
12691 EOF
|
|
12692 cat >> confdefs.h <<\EOF
|
|
12693 #define HAVE_SYSVIPC 1
|
|
12694 EOF
|
|
12695 }
|
|
12696
|
|
12697 else
|
|
12698 echo "$ac_t""no" 1>&6
|
|
12699 fi
|
|
12700
|
|
12701 else
|
|
12702 echo "$ac_t""no" 1>&6
|
|
12703 fi
|
|
12704
|
|
12705 else
|
|
12706 echo "$ac_t""no" 1>&6
|
|
12707 fi
|
|
12708
|
|
12709
|
|
12710 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
|
|
12711 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
|
853
|
12712 echo "configure:12713: checking for dirent.h" >&5
|
|
12713
|
|
12714 cat > conftest.$ac_ext <<EOF
|
|
12715 #line 12716 "configure"
|
0
|
12716 #include "confdefs.h"
|
|
12717 #include <dirent.h>
|
|
12718 EOF
|
149
|
12719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
12720 { (eval echo configure:12721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12722 if test -z "$ac_err"; then
|
|
12723 rm -rf conftest*
|
149
|
12724 eval "ac_cv_header_$ac_safe=yes"
|
|
12725 else
|
|
12726 echo "$ac_err" >&5
|
|
12727 echo "configure: failed program was:" >&5
|
|
12728 cat conftest.$ac_ext >&5
|
|
12729 rm -rf conftest*
|
|
12730 eval "ac_cv_header_$ac_safe=no"
|
|
12731 fi
|
|
12732 rm -f conftest*
|
|
12733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12734 echo "$ac_t""yes" 1>&6
|
|
12735 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12736 Defining SYSV_SYSTEM_DIR
|
|
12737 EOF
|
|
12738 cat >> confdefs.h <<\EOF
|
|
12739 #define SYSV_SYSTEM_DIR 1
|
|
12740 EOF
|
|
12741 }
|
|
12742
|
|
12743 else
|
|
12744 echo "$ac_t""no" 1>&6
|
|
12745 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
|
|
12746 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
|
853
|
12747 echo "configure:12748: checking for sys/dir.h" >&5
|
|
12748
|
|
12749 cat > conftest.$ac_ext <<EOF
|
|
12750 #line 12751 "configure"
|
0
|
12751 #include "confdefs.h"
|
|
12752 #include <sys/dir.h>
|
|
12753 EOF
|
149
|
12754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
12755 { (eval echo configure:12756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12757 if test -z "$ac_err"; then
|
149
|
12758 rm -rf conftest*
|
|
12759 eval "ac_cv_header_$ac_safe=yes"
|
|
12760 else
|
|
12761 echo "$ac_err" >&5
|
|
12762 echo "configure: failed program was:" >&5
|
|
12763 cat conftest.$ac_ext >&5
|
|
12764 rm -rf conftest*
|
|
12765 eval "ac_cv_header_$ac_safe=no"
|
|
12766 fi
|
|
12767 rm -f conftest*
|
|
12768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12769 echo "$ac_t""yes" 1>&6
|
0
|
12770 :
|
|
12771 else
|
149
|
12772 echo "$ac_t""no" 1>&6
|
|
12773 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12774 Defining NONSYSTEM_DIR_LIBRARY
|
|
12775 EOF
|
|
12776 cat >> confdefs.h <<\EOF
|
|
12777 #define NONSYSTEM_DIR_LIBRARY 1
|
|
12778 EOF
|
|
12779 }
|
|
12780
|
|
12781 fi
|
|
12782
|
|
12783 fi
|
|
12784
|
|
12785
|
|
12786 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
|
|
12787 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
|
853
|
12788 echo "configure:12789: checking for nlist.h" >&5
|
|
12789
|
|
12790 cat > conftest.$ac_ext <<EOF
|
|
12791 #line 12792 "configure"
|
0
|
12792 #include "confdefs.h"
|
|
12793 #include <nlist.h>
|
|
12794 EOF
|
149
|
12795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
12796 { (eval echo configure:12797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12798 if test -z "$ac_err"; then
|
|
12799 rm -rf conftest*
|
149
|
12800 eval "ac_cv_header_$ac_safe=yes"
|
|
12801 else
|
|
12802 echo "$ac_err" >&5
|
|
12803 echo "configure: failed program was:" >&5
|
|
12804 cat conftest.$ac_ext >&5
|
|
12805 rm -rf conftest*
|
|
12806 eval "ac_cv_header_$ac_safe=no"
|
|
12807 fi
|
|
12808 rm -f conftest*
|
|
12809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12810 echo "$ac_t""yes" 1>&6
|
|
12811 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12812 Defining NLIST_STRUCT
|
|
12813 EOF
|
|
12814 cat >> confdefs.h <<\EOF
|
|
12815 #define NLIST_STRUCT 1
|
|
12816 EOF
|
|
12817 }
|
|
12818
|
|
12819 else
|
|
12820 echo "$ac_t""no" 1>&6
|
|
12821 fi
|
|
12822
|
|
12823
|
0
|
12824
|
149
|
12825 echo "checking "for sound support"" 1>&6
|
853
|
12826 echo "configure:12827: checking "for sound support"" >&5
|
155
|
12827 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
|
|
12828
|
149
|
12829 if test "$with_native_sound" != "no"; then
|
155
|
12830 if test -n "$native_sound_lib"; then
|
|
12831 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
|
|
12832 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
|
853
|
12833 echo "configure:12834: checking for multimedia/audio_device.h" >&5
|
|
12834
|
|
12835 cat > conftest.$ac_ext <<EOF
|
|
12836 #line 12837 "configure"
|
155
|
12837 #include "confdefs.h"
|
|
12838 #include <multimedia/audio_device.h>
|
|
12839 EOF
|
|
12840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
12841 { (eval echo configure:12842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
12843 if test -z "$ac_err"; then
|
|
12844 rm -rf conftest*
|
|
12845 eval "ac_cv_header_$ac_safe=yes"
|
|
12846 else
|
|
12847 echo "$ac_err" >&5
|
|
12848 echo "configure: failed program was:" >&5
|
|
12849 cat conftest.$ac_ext >&5
|
|
12850 rm -rf conftest*
|
|
12851 eval "ac_cv_header_$ac_safe=no"
|
|
12852 fi
|
|
12853 rm -f conftest*
|
|
12854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12855 echo "$ac_t""yes" 1>&6
|
|
12856 sound_found=yes sound_cflags=""
|
|
12857 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
12858 echo " xemacs will be linked with \"sunplay.o\""
|
|
12859 fi
|
|
12860 else
|
|
12861 echo "$ac_t""no" 1>&6
|
|
12862 fi
|
|
12863
|
|
12864 fi
|
|
12865
|
|
12866 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
|
|
12867 sound_found=yes
|
151
|
12868 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
12869 echo " xemacs will be linked with \"sunplay.o\""
|
|
12870 fi
|
149
|
12871 if test -d "/usr/demo/SOUND/include"
|
|
12872 then sound_cflags="-I/usr/demo/SOUND/include"
|
|
12873 else sound_cflags="-I/usr/demo/SOUND"
|
|
12874 fi
|
|
12875 if test -z "$native_sound_lib" ; then
|
|
12876 if test -r "/usr/demo/SOUND/lib/libaudio.a"
|
|
12877 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
|
|
12878 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
|
|
12879 fi
|
|
12880 fi
|
155
|
12881 fi
|
|
12882
|
|
12883 if test -z "$sound_found"; then
|
|
12884 case "$canonical" in
|
149
|
12885 *-sgi-* )
|
155
|
12886 if test -z "$native_sound_lib"; then
|
|
12887
|
149
|
12888 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
|
853
|
12889 echo "configure:12890: checking for ALopenport in -laudio" >&5
|
149
|
12890 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
|
|
12891
|
|
12892 xe_check_libs=" -laudio "
|
|
12893 cat > conftest.$ac_ext <<EOF
|
853
|
12894 #line 12895 "configure"
|
149
|
12895 #include "confdefs.h"
|
|
12896 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12897 /* We use char because int might match the return type of a gcc2
|
|
12898 builtin and then its argument prototype would still apply. */
|
|
12899 char ALopenport();
|
|
12900
|
|
12901 int main() {
|
|
12902 ALopenport()
|
|
12903 ; return 0; }
|
|
12904 EOF
|
853
|
12905 if { (eval echo configure:12906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12906 rm -rf conftest*
|
|
12907 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12908 else
|
|
12909 echo "configure: failed program was:" >&5
|
|
12910 cat conftest.$ac_ext >&5
|
|
12911 rm -rf conftest*
|
|
12912 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12913 fi
|
|
12914 rm -f conftest*
|
|
12915 xe_check_libs=""
|
|
12916
|
151
|
12917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
12918 echo "$ac_t""yes" 1>&6
|
|
12919 native_sound_lib="-laudio"
|
|
12920 else
|
|
12921 echo "$ac_t""no" 1>&6
|
|
12922 fi
|
|
12923
|
|
12924
|
155
|
12925 fi
|
|
12926 if test -n "$native_sound_lib"; then
|
|
12927 sound_found=yes sound_cflags=""
|
151
|
12928 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
|
|
12929 echo " xemacs will be linked with \"sgiplay.o\""
|
|
12930 fi
|
149
|
12931 fi ;;
|
|
12932 hppa*-hp-hpux* )
|
155
|
12933 if test -z "$native_sound_lib"; then
|
|
12934
|
149
|
12935 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
|
853
|
12936 echo "configure:12937: checking for AOpenAudio in -lAlib" >&5
|
149
|
12937 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
|
|
12938
|
|
12939 xe_check_libs=" -lAlib "
|
|
12940 cat > conftest.$ac_ext <<EOF
|
853
|
12941 #line 12942 "configure"
|
149
|
12942 #include "confdefs.h"
|
|
12943 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12944 /* We use char because int might match the return type of a gcc2
|
|
12945 builtin and then its argument prototype would still apply. */
|
|
12946 char AOpenAudio();
|
|
12947
|
|
12948 int main() {
|
|
12949 AOpenAudio()
|
|
12950 ; return 0; }
|
|
12951 EOF
|
853
|
12952 if { (eval echo configure:12953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12953 rm -rf conftest*
|
|
12954 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
12955 else
|
|
12956 echo "configure: failed program was:" >&5
|
|
12957 cat conftest.$ac_ext >&5
|
|
12958 rm -rf conftest*
|
|
12959 eval "ac_cv_lib_$ac_lib_var=no"
|
|
12960 fi
|
|
12961 rm -f conftest*
|
|
12962 xe_check_libs=""
|
|
12963
|
151
|
12964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
12965 echo "$ac_t""yes" 1>&6
|
|
12966 native_sound_lib="-lAlib"
|
|
12967 else
|
|
12968 echo "$ac_t""no" 1>&6
|
|
12969 fi
|
|
12970
|
|
12971
|
155
|
12972 fi
|
|
12973 if test -n "$native_sound_lib"; then
|
|
12974 sound_found=yes
|
151
|
12975 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
|
|
12976 echo " xemacs will be linked with \"hpplay.o\""
|
|
12977 fi
|
169
|
12978 if test "$GCC" = "yes" # Kludge city
|
149
|
12979 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
|
|
12980 else sound_cflags="+e -I/usr/audio/examples"
|
|
12981 fi
|
|
12982 fi ;;
|
0
|
12983 esac
|
|
12984 fi
|
149
|
12985
|
155
|
12986 if test -z "$sound_found"; then
|
553
|
12987 if test "$with_msw" = "yes"; then
|
594
|
12988 sound_found=yes
|
|
12989 native_sound_lib=
|
|
12990 extra_objs="$extra_objs ntplay.o" && if test "$extra_verbose" = "yes"; then
|
|
12991 echo " xemacs will be linked with \"ntplay.o\""
|
|
12992 fi
|
553
|
12993 fi
|
|
12994 fi
|
|
12995
|
|
12996 if test -z "$sound_found"; then
|
149
|
12997 for dir in "machine" "sys" "linux"; do
|
|
12998 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
|
|
12999 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
|
853
|
13000 echo "configure:13001: checking for ${dir}/soundcard.h" >&5
|
|
13001
|
|
13002 cat > conftest.$ac_ext <<EOF
|
|
13003 #line 13004 "configure"
|
149
|
13004 #include "confdefs.h"
|
|
13005 #include <${dir}/soundcard.h>
|
|
13006 EOF
|
|
13007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
13008 { (eval echo configure:13009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
13010 if test -z "$ac_err"; then
|
|
13011 rm -rf conftest*
|
|
13012 eval "ac_cv_header_$ac_safe=yes"
|
|
13013 else
|
|
13014 echo "$ac_err" >&5
|
|
13015 echo "configure: failed program was:" >&5
|
|
13016 cat conftest.$ac_ext >&5
|
|
13017 rm -rf conftest*
|
|
13018 eval "ac_cv_header_$ac_safe=no"
|
|
13019 fi
|
|
13020 rm -f conftest*
|
|
13021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13022 echo "$ac_t""yes" 1>&6
|
|
13023 sound_found=yes
|
426
|
13024 need_miscplay=yes
|
151
|
13025 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
|
|
13026 echo " xemacs will be linked with \"linuxplay.o\""
|
|
13027 fi
|
149
|
13028 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
13029 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
|
|
13030 EOF
|
|
13031 cat >> confdefs.h <<EOF
|
|
13032 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
|
149
|
13033 EOF
|
|
13034 }
|
|
13035
|
|
13036 break
|
|
13037 else
|
|
13038 echo "$ac_t""no" 1>&6
|
|
13039 fi
|
|
13040
|
|
13041 done
|
100
|
13042 fi
|
149
|
13043
|
|
13044 test "$sound_found" = "yes" && with_native_sound=yes
|
|
13045 fi
|
|
13046
|
|
13047 if test "$with_native_sound" = "yes"; then
|
|
13048 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13049 Defining HAVE_NATIVE_SOUND
|
|
13050 EOF
|
|
13051 cat >> confdefs.h <<\EOF
|
|
13052 #define HAVE_NATIVE_SOUND 1
|
|
13053 EOF
|
|
13054 }
|
|
13055
|
151
|
13056 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
|
13057 fi
|
|
13058
|
432
|
13059 if test "$with_nas_sound" != "no"; then
|
|
13060 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
|
|
13061 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
|
853
|
13062 echo "configure:13063: checking for audio/audiolib.h" >&5
|
|
13063
|
|
13064 cat > conftest.$ac_ext <<EOF
|
|
13065 #line 13066 "configure"
|
432
|
13066 #include "confdefs.h"
|
|
13067 #include <audio/audiolib.h>
|
|
13068 EOF
|
|
13069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
13070 { (eval echo configure:13071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
432
|
13071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
13072 if test -z "$ac_err"; then
|
|
13073 rm -rf conftest*
|
|
13074 eval "ac_cv_header_$ac_safe=yes"
|
|
13075 else
|
|
13076 echo "$ac_err" >&5
|
|
13077 echo "configure: failed program was:" >&5
|
|
13078 cat conftest.$ac_ext >&5
|
|
13079 rm -rf conftest*
|
|
13080 eval "ac_cv_header_$ac_safe=no"
|
|
13081 fi
|
|
13082 rm -f conftest*
|
|
13083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13084 echo "$ac_t""yes" 1>&6
|
|
13085
|
|
13086
|
|
13087 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
|
853
|
13088 echo "configure:13089: checking for AuOpenServer in -laudio" >&5
|
432
|
13089 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
|
|
13090
|
|
13091 xe_check_libs=" -laudio "
|
|
13092 cat > conftest.$ac_ext <<EOF
|
853
|
13093 #line 13094 "configure"
|
432
|
13094 #include "confdefs.h"
|
|
13095 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13096 /* We use char because int might match the return type of a gcc2
|
|
13097 builtin and then its argument prototype would still apply. */
|
|
13098 char AuOpenServer();
|
|
13099
|
|
13100 int main() {
|
|
13101 AuOpenServer()
|
|
13102 ; return 0; }
|
|
13103 EOF
|
853
|
13104 if { (eval echo configure:13105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
432
|
13105 rm -rf conftest*
|
|
13106 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13107 else
|
|
13108 echo "configure: failed program was:" >&5
|
|
13109 cat conftest.$ac_ext >&5
|
|
13110 rm -rf conftest*
|
|
13111 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13112 fi
|
|
13113 rm -f conftest*
|
|
13114 xe_check_libs=""
|
|
13115
|
|
13116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
13117 echo "$ac_t""yes" 1>&6
|
|
13118 have_nas_sound=yes
|
|
13119 else
|
|
13120 echo "$ac_t""no" 1>&6
|
|
13121 fi
|
|
13122
|
|
13123
|
|
13124 else
|
|
13125 echo "$ac_t""no" 1>&6
|
|
13126 fi
|
|
13127
|
|
13128 if test "$have_nas_sound" = "yes"; then
|
|
13129 with_nas_sound=yes
|
|
13130 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
13131 Defining HAVE_NAS_SOUND
|
|
13132 EOF
|
|
13133 cat >> confdefs.h <<\EOF
|
|
13134 #define HAVE_NAS_SOUND 1
|
|
13135 EOF
|
|
13136 }
|
|
13137
|
432
|
13138 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
|
151
|
13139 echo " xemacs will be linked with \"nas.o\""
|
|
13140 fi
|
432
|
13141 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
|
|
13142 cat > conftest.$ac_ext <<EOF
|
853
|
13143 #line 13144 "configure"
|
149
|
13144 #include "confdefs.h"
|
|
13145 #include <audio/Xtutil.h>
|
|
13146 EOF
|
|
13147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
13148 egrep "AuXtErrorJump" >/dev/null 2>&1; then
|
|
13149 :
|
|
13150 else
|
|
13151 rm -rf conftest*
|
432
|
13152 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
13153 Defining NAS_NO_ERROR_JUMP
|
|
13154 EOF
|
|
13155 cat >> confdefs.h <<\EOF
|
|
13156 #define NAS_NO_ERROR_JUMP 1
|
|
13157 EOF
|
|
13158 }
|
|
13159
|
|
13160 fi
|
|
13161 rm -f conftest*
|
|
13162
|
432
|
13163 else
|
|
13164 test "$with_nas_sound" = "yes" && \
|
|
13165 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
|
|
13166 with_nas_sound=no
|
|
13167 fi
|
|
13168 fi
|
|
13169
|
|
13170 if test "$with_esd_sound" != "no"; then
|
|
13171 # Extract the first word of "esd-config", so it can be a program name with args.
|
426
|
13172 set dummy esd-config; ac_word=$2
|
|
13173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
853
|
13174 echo "configure:13175: checking for $ac_word" >&5
|
426
|
13175
|
|
13176 if test -n "$have_esd_config"; then
|
|
13177 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
|
|
13178 else
|
|
13179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
13180 ac_dummy="$PATH"
|
|
13181 for ac_dir in $ac_dummy; do
|
|
13182 test -z "$ac_dir" && ac_dir=.
|
|
13183 if test -f $ac_dir/$ac_word; then
|
|
13184 ac_cv_prog_have_esd_config="yes"
|
|
13185 break
|
|
13186 fi
|
|
13187 done
|
|
13188 IFS="$ac_save_ifs"
|
|
13189 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
|
|
13190 fi
|
|
13191 have_esd_config="$ac_cv_prog_have_esd_config"
|
|
13192 if test -n "$have_esd_config"; then
|
|
13193 echo "$ac_t""$have_esd_config" 1>&6
|
|
13194 else
|
|
13195 echo "$ac_t""no" 1>&6
|
|
13196 fi
|
|
13197
|
432
|
13198 if test "$have_esd_config" = "yes"; then
|
|
13199 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
|
|
13200 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
|
|
13201 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
|
|
13202 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
|
853
|
13203 echo "configure:13204: checking for esd_play_stream" >&5
|
|
13204
|
|
13205 cat > conftest.$ac_ext <<EOF
|
|
13206 #line 13207 "configure"
|
432
|
13207 #include "confdefs.h"
|
|
13208 /* System header to define __stub macros and hopefully few prototypes,
|
|
13209 which can conflict with char esd_play_stream(); below. */
|
|
13210 #include <assert.h>
|
|
13211 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13212 /* We use char because int might match the return type of a gcc2
|
|
13213 builtin and then its argument prototype would still apply. */
|
|
13214 char esd_play_stream();
|
|
13215
|
|
13216 int main() {
|
|
13217
|
|
13218 /* The GNU C library defines this for functions which it implements
|
|
13219 to always fail with ENOSYS. Some functions are actually named
|
|
13220 something starting with __ and the normal name is an alias. */
|
|
13221 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
|
|
13222 choke me
|
|
13223 #else
|
|
13224 esd_play_stream();
|
|
13225 #endif
|
|
13226
|
|
13227 ; return 0; }
|
|
13228 EOF
|
853
|
13229 if { (eval echo configure:13230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
432
|
13230 rm -rf conftest*
|
|
13231 eval "ac_cv_func_esd_play_stream=yes"
|
|
13232 else
|
|
13233 echo "configure: failed program was:" >&5
|
|
13234 cat conftest.$ac_ext >&5
|
|
13235 rm -rf conftest*
|
|
13236 eval "ac_cv_func_esd_play_stream=no"
|
|
13237 fi
|
|
13238 rm -f conftest*
|
|
13239
|
|
13240 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
|
|
13241 echo "$ac_t""yes" 1>&6
|
|
13242 have_esd_sound=yes
|
|
13243 else
|
|
13244 echo "$ac_t""no" 1>&6
|
|
13245 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
|
|
13246 fi
|
|
13247
|
|
13248 fi
|
|
13249
|
|
13250 if test "$have_esd_sound" = "yes"; then
|
|
13251 with_esd_sound=yes
|
|
13252 need_miscplay=yes
|
|
13253 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
|
|
13254 echo " xemacs will be linked with \"esd.o\""
|
|
13255 fi
|
426
|
13256 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13257 Defining HAVE_ESD_SOUND
|
|
13258 EOF
|
|
13259 cat >> confdefs.h <<\EOF
|
|
13260 #define HAVE_ESD_SOUND 1
|
|
13261 EOF
|
|
13262 }
|
|
13263
|
432
|
13264 else
|
|
13265 test "$with_esd_sound" = "yes" && \
|
|
13266 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
|
|
13267 with_esd_sound=no
|
|
13268 fi
|
|
13269 fi
|
|
13270
|
|
13271 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
|
426
|
13272 echo " xemacs will be linked with \"miscplay.o\""
|
|
13273 fi
|
149
|
13274
|
|
13275
|
|
13276 test -z "$with_tty" && with_tty=yes
|
|
13277
|
|
13278 if test "$with_tty" = "yes" ; then
|
151
|
13279 echo "checking for TTY-related features" 1>&6
|
853
|
13280 echo "configure:13281: checking for TTY-related features" >&5
|
149
|
13281 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13282 Defining HAVE_TTY
|
|
13283 EOF
|
|
13284 cat >> confdefs.h <<\EOF
|
|
13285 #define HAVE_TTY 1
|
|
13286 EOF
|
|
13287 }
|
|
13288
|
|
13289
|
|
13290 if test -z "$with_ncurses"; then
|
70
|
13291
|
151
|
13292 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
|
853
|
13293 echo "configure:13294: checking for tgetent in -lncurses" >&5
|
151
|
13294 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
|
149
|
13295
|
|
13296 xe_check_libs=" -lncurses "
|
|
13297 cat > conftest.$ac_ext <<EOF
|
853
|
13298 #line 13299 "configure"
|
149
|
13299 #include "confdefs.h"
|
|
13300 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13301 /* We use char because int might match the return type of a gcc2
|
|
13302 builtin and then its argument prototype would still apply. */
|
151
|
13303 char tgetent();
|
149
|
13304
|
|
13305 int main() {
|
151
|
13306 tgetent()
|
149
|
13307 ; return 0; }
|
|
13308 EOF
|
853
|
13309 if { (eval echo configure:13310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13310 rm -rf conftest*
|
|
13311 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13312 else
|
|
13313 echo "configure: failed program was:" >&5
|
|
13314 cat conftest.$ac_ext >&5
|
|
13315 rm -rf conftest*
|
|
13316 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13317 fi
|
|
13318 rm -f conftest*
|
|
13319 xe_check_libs=""
|
|
13320
|
151
|
13321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
13322 echo "$ac_t""yes" 1>&6
|
|
13323 with_ncurses=yes
|
|
13324 else
|
|
13325 echo "$ac_t""no" 1>&6
|
|
13326 with_ncurses=no
|
|
13327 fi
|
|
13328
|
|
13329
|
|
13330 fi
|
|
13331 if test "$with_ncurses" = "yes"; then
|
|
13332 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13333 Defining HAVE_NCURSES
|
|
13334 EOF
|
|
13335 cat >> confdefs.h <<\EOF
|
|
13336 #define HAVE_NCURSES 1
|
|
13337 EOF
|
|
13338 }
|
|
13339
|
|
13340 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
13341 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
853
|
13342 echo "configure:13343: checking for ncurses/curses.h" >&5
|
|
13343
|
|
13344 cat > conftest.$ac_ext <<EOF
|
|
13345 #line 13346 "configure"
|
149
|
13346 #include "confdefs.h"
|
|
13347 #include <ncurses/curses.h>
|
|
13348 EOF
|
|
13349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
13350 { (eval echo configure:13351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
13352 if test -z "$ac_err"; then
|
|
13353 rm -rf conftest*
|
|
13354 eval "ac_cv_header_$ac_safe=yes"
|
|
13355 else
|
|
13356 echo "$ac_err" >&5
|
|
13357 echo "configure: failed program was:" >&5
|
|
13358 cat conftest.$ac_ext >&5
|
|
13359 rm -rf conftest*
|
|
13360 eval "ac_cv_header_$ac_safe=no"
|
|
13361 fi
|
|
13362 rm -f conftest*
|
|
13363 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13364 echo "$ac_t""yes" 1>&6
|
442
|
13365 curses_h_file=ncurses/curses.h
|
149
|
13366 else
|
|
13367 echo "$ac_t""no" 1>&6
|
|
13368 fi
|
|
13369
|
|
13370 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
|
|
13371 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
|
853
|
13372 echo "configure:13373: checking for ncurses/term.h" >&5
|
|
13373
|
|
13374 cat > conftest.$ac_ext <<EOF
|
|
13375 #line 13376 "configure"
|
0
|
13376 #include "confdefs.h"
|
|
13377 #include <ncurses/term.h>
|
|
13378 EOF
|
149
|
13379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
13380 { (eval echo configure:13381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13382 if test -z "$ac_err"; then
|
|
13383 rm -rf conftest*
|
149
|
13384 eval "ac_cv_header_$ac_safe=yes"
|
|
13385 else
|
|
13386 echo "$ac_err" >&5
|
|
13387 echo "configure: failed program was:" >&5
|
|
13388 cat conftest.$ac_ext >&5
|
|
13389 rm -rf conftest*
|
|
13390 eval "ac_cv_header_$ac_safe=no"
|
|
13391 fi
|
|
13392 rm -f conftest*
|
|
13393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13394 echo "$ac_t""yes" 1>&6
|
442
|
13395 term_h_file=ncurses/term.h
|
149
|
13396 else
|
|
13397 echo "$ac_t""no" 1>&6
|
|
13398 fi
|
|
13399
|
151
|
13400 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
13401 echo " xemacs will be linked with \"terminfo.o\""
|
|
13402 fi
|
|
13403 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
|
149
|
13404
|
153
|
13405 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
|
149
|
13406 save_c_switch_site="$c_switch_site"
|
|
13407 c_switch_site="$c_switch_site -I/usr/include/ncurses"
|
|
13408 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
13409 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
853
|
13410 echo "configure:13411: checking for ncurses/curses.h" >&5
|
|
13411
|
|
13412 cat > conftest.$ac_ext <<EOF
|
|
13413 #line 13414 "configure"
|
0
|
13414 #include "confdefs.h"
|
|
13415 #include <ncurses/curses.h>
|
|
13416 EOF
|
149
|
13417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
13418 { (eval echo configure:13419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13420 if test -z "$ac_err"; then
|
|
13421 rm -rf conftest*
|
149
|
13422 eval "ac_cv_header_$ac_safe=yes"
|
|
13423 else
|
|
13424 echo "$ac_err" >&5
|
|
13425 echo "configure: failed program was:" >&5
|
|
13426 cat conftest.$ac_ext >&5
|
|
13427 rm -rf conftest*
|
|
13428 eval "ac_cv_header_$ac_safe=no"
|
|
13429 fi
|
|
13430 rm -f conftest*
|
|
13431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13432 echo "$ac_t""yes" 1>&6
|
442
|
13433 curses_h_file=ncurses/curses.h
|
149
|
13434 else
|
|
13435 echo "$ac_t""no" 1>&6
|
|
13436 fi
|
|
13437
|
153
|
13438 if test "$ac_cv_header_ncurses_curses_h" = "yes"
|
561
|
13439 then echo "configure: warning: Your system has the bogus ncurses include bug." 1>&2
|
149
|
13440 else c_switch_site="$save_c_switch_site"
|
|
13441 fi
|
|
13442 fi
|
151
|
13443 else if test "$have_terminfo" = "yes"; then
|
|
13444 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
13445 echo " xemacs will be linked with \"terminfo.o\""
|
|
13446 fi
|
|
13447 if test -n "$libs_termcap"; then
|
|
13448 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
13449 else
|
|
13450 for lib in curses termlib termcap; do
|
|
13451
|
|
13452 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
|
853
|
13453 echo "configure:13454: checking for tgetent in -l$lib" >&5
|
151
|
13454 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
|
|
13455
|
|
13456 xe_check_libs=" -l$lib "
|
|
13457 cat > conftest.$ac_ext <<EOF
|
853
|
13458 #line 13459 "configure"
|
149
|
13459 #include "confdefs.h"
|
|
13460 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13461 /* We use char because int might match the return type of a gcc2
|
|
13462 builtin and then its argument prototype would still apply. */
|
151
|
13463 char tgetent();
|
149
|
13464
|
|
13465 int main() {
|
151
|
13466 tgetent()
|
149
|
13467 ; return 0; }
|
|
13468 EOF
|
853
|
13469 if { (eval echo configure:13470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13470 rm -rf conftest*
|
|
13471 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13472 else
|
|
13473 echo "configure: failed program was:" >&5
|
|
13474 cat conftest.$ac_ext >&5
|
|
13475 rm -rf conftest*
|
|
13476 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13477 fi
|
|
13478 rm -f conftest*
|
|
13479 xe_check_libs=""
|
|
13480
|
151
|
13481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
13482 echo "$ac_t""yes" 1>&6
|
|
13483 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
|
|
13484 else
|
|
13485 echo "$ac_t""no" 1>&6
|
|
13486 fi
|
|
13487
|
|
13488
|
|
13489 done
|
|
13490 fi
|
|
13491 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
|
|
13492 echo " xemacs will be linked with \"tparam.o\""
|
|
13493 fi
|
|
13494 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
|
|
13495 if test -n "$libs_termcap"; then
|
|
13496 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
13497 else
|
|
13498
|
|
13499 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
|
853
|
13500 echo "configure:13501: checking for tgetent in -lcurses" >&5
|
151
|
13501 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
|
|
13502
|
|
13503 xe_check_libs=" -lcurses "
|
|
13504 cat > conftest.$ac_ext <<EOF
|
853
|
13505 #line 13506 "configure"
|
149
|
13506 #include "confdefs.h"
|
|
13507 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13508 /* We use char because int might match the return type of a gcc2
|
|
13509 builtin and then its argument prototype would still apply. */
|
151
|
13510 char tgetent();
|
149
|
13511
|
|
13512 int main() {
|
151
|
13513 tgetent()
|
149
|
13514 ; return 0; }
|
|
13515 EOF
|
853
|
13516 if { (eval echo configure:13517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13517 rm -rf conftest*
|
|
13518 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13519 else
|
|
13520 echo "configure: failed program was:" >&5
|
|
13521 cat conftest.$ac_ext >&5
|
|
13522 rm -rf conftest*
|
|
13523 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13524 fi
|
|
13525 rm -f conftest*
|
|
13526 xe_check_libs=""
|
|
13527
|
151
|
13528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
13529 echo "$ac_t""yes" 1>&6
|
|
13530 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
|
|
13531 else
|
|
13532 echo "$ac_t""no" 1>&6
|
|
13533 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
|
853
|
13534 echo "configure:13535: checking for tgetent in -ltermcap" >&5
|
151
|
13535 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
|
|
13536
|
|
13537 xe_check_libs=" -ltermcap "
|
|
13538 cat > conftest.$ac_ext <<EOF
|
853
|
13539 #line 13540 "configure"
|
149
|
13540 #include "confdefs.h"
|
|
13541 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13542 /* We use char because int might match the return type of a gcc2
|
|
13543 builtin and then its argument prototype would still apply. */
|
151
|
13544 char tgetent();
|
149
|
13545
|
|
13546 int main() {
|
151
|
13547 tgetent()
|
149
|
13548 ; return 0; }
|
|
13549 EOF
|
853
|
13550 if { (eval echo configure:13551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13551 rm -rf conftest*
|
|
13552 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13553 else
|
|
13554 echo "configure: failed program was:" >&5
|
|
13555 cat conftest.$ac_ext >&5
|
|
13556 rm -rf conftest*
|
|
13557 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13558 fi
|
|
13559 rm -f conftest*
|
|
13560 xe_check_libs=""
|
|
13561
|
151
|
13562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
13563 echo "$ac_t""yes" 1>&6
|
|
13564 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
|
|
13565 else
|
|
13566 echo "$ac_t""no" 1>&6
|
|
13567 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
|
|
13568 echo " xemacs will be linked with \"termcap.o\""
|
|
13569 fi
|
|
13570 fi
|
|
13571
|
|
13572
|
|
13573 fi
|
|
13574
|
|
13575
|
0
|
13576 fi
|
|
13577 fi
|
149
|
13578 fi
|
|
13579 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
13580 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
|
|
13581 EOF
|
|
13582 cat >> confdefs.h <<EOF
|
|
13583 #define CURSES_H_FILE "${curses_h_file-curses.h}"
|
149
|
13584 EOF
|
|
13585 }
|
|
13586
|
|
13587 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
13588 Defining TERM_H_FILE = "${term_h_file-term.h}"
|
|
13589 EOF
|
|
13590 cat >> confdefs.h <<EOF
|
|
13591 #define TERM_H_FILE "${term_h_file-term.h}"
|
149
|
13592 EOF
|
|
13593 }
|
|
13594
|
155
|
13595
|
|
13596 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
|
|
13597 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
|
853
|
13598 echo "configure:13599: checking for gpm.h" >&5
|
|
13599
|
|
13600 cat > conftest.$ac_ext <<EOF
|
|
13601 #line 13602 "configure"
|
155
|
13602 #include "confdefs.h"
|
|
13603 #include <gpm.h>
|
|
13604 EOF
|
|
13605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
13606 { (eval echo configure:13607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
13608 if test -z "$ac_err"; then
|
|
13609 rm -rf conftest*
|
|
13610 eval "ac_cv_header_$ac_safe=yes"
|
|
13611 else
|
|
13612 echo "$ac_err" >&5
|
|
13613 echo "configure: failed program was:" >&5
|
|
13614 cat conftest.$ac_ext >&5
|
|
13615 rm -rf conftest*
|
|
13616 eval "ac_cv_header_$ac_safe=no"
|
|
13617 fi
|
|
13618 rm -f conftest*
|
|
13619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13620 echo "$ac_t""yes" 1>&6
|
|
13621 :
|
|
13622 else
|
|
13623 echo "$ac_t""no" 1>&6
|
|
13624 with_gpm=no
|
|
13625 fi
|
|
13626 }
|
|
13627 test -z "$with_gpm" && {
|
|
13628 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
|
853
|
13629 echo "configure:13630: checking for Gpm_Open in -lgpm" >&5
|
155
|
13630 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
|
|
13631
|
|
13632 xe_check_libs=" -lgpm "
|
|
13633 cat > conftest.$ac_ext <<EOF
|
853
|
13634 #line 13635 "configure"
|
155
|
13635 #include "confdefs.h"
|
|
13636 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13637 /* We use char because int might match the return type of a gcc2
|
|
13638 builtin and then its argument prototype would still apply. */
|
|
13639 char Gpm_Open();
|
|
13640
|
|
13641 int main() {
|
|
13642 Gpm_Open()
|
|
13643 ; return 0; }
|
|
13644 EOF
|
853
|
13645 if { (eval echo configure:13646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
155
|
13646 rm -rf conftest*
|
|
13647 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13648 else
|
|
13649 echo "configure: failed program was:" >&5
|
|
13650 cat conftest.$ac_ext >&5
|
|
13651 rm -rf conftest*
|
|
13652 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13653 fi
|
|
13654 rm -f conftest*
|
|
13655 xe_check_libs=""
|
|
13656
|
|
13657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
13658 echo "$ac_t""yes" 1>&6
|
|
13659 with_gpm=yes
|
|
13660 else
|
|
13661 echo "$ac_t""no" 1>&6
|
|
13662 with_gpm=no
|
|
13663 fi
|
|
13664
|
|
13665 }
|
|
13666 if test "$with_gpm" = "yes"; then
|
|
13667 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13668 Defining HAVE_GPM
|
|
13669 EOF
|
|
13670 cat >> confdefs.h <<\EOF
|
|
13671 #define HAVE_GPM 1
|
|
13672 EOF
|
|
13673 }
|
|
13674
|
|
13675 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
|
|
13676 fi
|
|
13677
|
151
|
13678 else for feature in ncurses gpm; do
|
149
|
13679 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
561
|
13680 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
|
149
|
13681 fi
|
|
13682 eval "with_${feature}=no"
|
|
13683 done
|
151
|
13684 fi
|
149
|
13685
|
426
|
13686 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
|
384
|
13687 != "no no no" && echo "checking for database support" 1>&6
|
853
|
13688 echo "configure:13689: checking for database support" >&5
|
426
|
13689
|
|
13690 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
|
384
|
13691 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
|
|
13692 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
|
853
|
13693 echo "configure:13694: checking for ndbm.h" >&5
|
|
13694
|
|
13695 cat > conftest.$ac_ext <<EOF
|
|
13696 #line 13697 "configure"
|
384
|
13697 #include "confdefs.h"
|
|
13698 #include <ndbm.h>
|
265
|
13699 EOF
|
|
13700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
13701 { (eval echo configure:13702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
265
|
13703 if test -z "$ac_err"; then
|
|
13704 rm -rf conftest*
|
|
13705 eval "ac_cv_header_$ac_safe=yes"
|
|
13706 else
|
|
13707 echo "$ac_err" >&5
|
|
13708 echo "configure: failed program was:" >&5
|
|
13709 cat conftest.$ac_ext >&5
|
|
13710 rm -rf conftest*
|
|
13711 eval "ac_cv_header_$ac_safe=no"
|
|
13712 fi
|
|
13713 rm -f conftest*
|
|
13714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13715 echo "$ac_t""yes" 1>&6
|
384
|
13716 :
|
|
13717 else
|
|
13718 echo "$ac_t""no" 1>&6
|
|
13719
|
426
|
13720 test "$with_database_gdbm" = "yes" -o \
|
|
13721 "$with_database_dbm" = "yes" && \
|
384
|
13722 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
|
426
|
13723 with_database_gdbm=no with_database_dbm=no
|
|
13724 fi
|
|
13725
|
|
13726 fi
|
|
13727
|
|
13728 if test "$with_database_gdbm" != "no"; then
|
384
|
13729
|
149
|
13730 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
|
853
|
13731 echo "configure:13732: checking for dbm_open in -lgdbm" >&5
|
149
|
13732 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
13733
|
|
13734 xe_check_libs=" -lgdbm "
|
|
13735 cat > conftest.$ac_ext <<EOF
|
853
|
13736 #line 13737 "configure"
|
149
|
13737 #include "confdefs.h"
|
|
13738 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13739 /* We use char because int might match the return type of a gcc2
|
|
13740 builtin and then its argument prototype would still apply. */
|
|
13741 char dbm_open();
|
|
13742
|
|
13743 int main() {
|
|
13744 dbm_open()
|
|
13745 ; return 0; }
|
|
13746 EOF
|
853
|
13747 if { (eval echo configure:13748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13748 rm -rf conftest*
|
|
13749 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13750 else
|
|
13751 echo "configure: failed program was:" >&5
|
|
13752 cat conftest.$ac_ext >&5
|
|
13753 rm -rf conftest*
|
|
13754 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13755 fi
|
|
13756 rm -f conftest*
|
|
13757 xe_check_libs=""
|
|
13758
|
151
|
13759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
13760 echo "$ac_t""yes" 1>&6
|
426
|
13761 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
|
|
13762 else
|
|
13763 echo "$ac_t""no" 1>&6
|
|
13764 if test "$with_database_gdbm" = "yes"; then
|
384
|
13765 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
|
|
13766 fi
|
426
|
13767 with_database_gdbm=no
|
384
|
13768 fi
|
|
13769
|
|
13770
|
149
|
13771 fi
|
|
13772
|
151
|
13773 if test "$with_database_dbm" != "no"; then
|
149
|
13774 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
853
|
13775 echo "configure:13776: checking for dbm_open" >&5
|
|
13776
|
|
13777 cat > conftest.$ac_ext <<EOF
|
|
13778 #line 13779 "configure"
|
149
|
13779 #include "confdefs.h"
|
|
13780 /* System header to define __stub macros and hopefully few prototypes,
|
|
13781 which can conflict with char dbm_open(); below. */
|
|
13782 #include <assert.h>
|
|
13783 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13784 /* We use char because int might match the return type of a gcc2
|
|
13785 builtin and then its argument prototype would still apply. */
|
|
13786 char dbm_open();
|
|
13787
|
|
13788 int main() {
|
|
13789
|
|
13790 /* The GNU C library defines this for functions which it implements
|
|
13791 to always fail with ENOSYS. Some functions are actually named
|
|
13792 something starting with __ and the normal name is an alias. */
|
|
13793 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
13794 choke me
|
|
13795 #else
|
|
13796 dbm_open();
|
|
13797 #endif
|
|
13798
|
|
13799 ; return 0; }
|
|
13800 EOF
|
853
|
13801 if { (eval echo configure:13802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13802 rm -rf conftest*
|
|
13803 eval "ac_cv_func_dbm_open=yes"
|
|
13804 else
|
|
13805 echo "configure: failed program was:" >&5
|
|
13806 cat conftest.$ac_ext >&5
|
|
13807 rm -rf conftest*
|
|
13808 eval "ac_cv_func_dbm_open=no"
|
|
13809 fi
|
|
13810 rm -f conftest*
|
|
13811
|
|
13812 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
13813 echo "$ac_t""yes" 1>&6
|
384
|
13814 with_database_dbm=yes libdbm=
|
|
13815 else
|
|
13816 echo "$ac_t""no" 1>&6
|
|
13817
|
149
|
13818
|
|
13819 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
|
853
|
13820 echo "configure:13821: checking for dbm_open in -ldbm" >&5
|
149
|
13821 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
13822
|
|
13823 xe_check_libs=" -ldbm "
|
|
13824 cat > conftest.$ac_ext <<EOF
|
853
|
13825 #line 13826 "configure"
|
149
|
13826 #include "confdefs.h"
|
|
13827 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13828 /* We use char because int might match the return type of a gcc2
|
|
13829 builtin and then its argument prototype would still apply. */
|
|
13830 char dbm_open();
|
|
13831
|
|
13832 int main() {
|
|
13833 dbm_open()
|
|
13834 ; return 0; }
|
|
13835 EOF
|
853
|
13836 if { (eval echo configure:13837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13837 rm -rf conftest*
|
|
13838 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13839 else
|
|
13840 echo "configure: failed program was:" >&5
|
|
13841 cat conftest.$ac_ext >&5
|
|
13842 rm -rf conftest*
|
|
13843 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13844 fi
|
|
13845 rm -f conftest*
|
|
13846 xe_check_libs=""
|
|
13847
|
151
|
13848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
13849 echo "$ac_t""yes" 1>&6
|
384
|
13850 with_database_dbm=yes libdbm=-ldbm
|
|
13851 else
|
|
13852 echo "$ac_t""no" 1>&6
|
|
13853 test "$with_database_dbm" = "yes" && \
|
|
13854 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
|
|
13855 with_database_dbm=no
|
|
13856 fi
|
|
13857
|
|
13858
|
|
13859 fi
|
|
13860
|
|
13861 fi
|
|
13862
|
|
13863 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
|
426
|
13864 test "$with_database_gdbm" = "yes" -o \
|
|
13865 "$with_database_dbm" = "yes" && \
|
384
|
13866 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
13867 Defining HAVE_DBM
|
|
13868 EOF
|
|
13869 cat >> confdefs.h <<\EOF
|
|
13870 #define HAVE_DBM 1
|
|
13871 EOF
|
|
13872 }
|
|
13873
|
|
13874
|
|
13875 if test "$with_database_berkdb" != "no"; then
|
298
|
13876 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
|
853
|
13877 echo "configure:13878: checking for Berkeley db.h" >&5
|
442
|
13878 for header in "db/db.h" "db.h"; do
|
298
|
13879 cat > conftest.$ac_ext <<EOF
|
853
|
13880 #line 13881 "configure"
|
442
|
13881 #include "confdefs.h"
|
|
13882
|
|
13883 #include <stdlib.h>
|
|
13884 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
|
298
|
13885 #ifdef HAVE_INTTYPES_H
|
|
13886 #define __BIT_TYPES_DEFINED__
|
|
13887 #include <inttypes.h>
|
|
13888 typedef uint8_t u_int8_t;
|
|
13889 typedef uint16_t u_int16_t;
|
|
13890 typedef uint32_t u_int32_t;
|
|
13891 #ifdef WE_DONT_NEED_QUADS
|
|
13892 typedef uint64_t u_int64_t;
|
|
13893 #endif
|
|
13894 #endif
|
442
|
13895 #endif
|
|
13896 #include <$header>
|
|
13897
|
|
13898 int main() {
|
|
13899
|
|
13900 ; return 0; }
|
|
13901 EOF
|
853
|
13902 if { (eval echo configure:13903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
13903 rm -rf conftest*
|
|
13904 db_h_file="$header"; break
|
298
|
13905 else
|
|
13906 echo "configure: failed program was:" >&5
|
|
13907 cat conftest.$ac_ext >&5
|
|
13908 fi
|
|
13909 rm -f conftest*
|
|
13910 done
|
442
|
13911 if test -z "$db_h_file"
|
298
|
13912 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
|
442
|
13913 else echo "$ac_t""$db_h_file" 1>&6
|
298
|
13914 fi
|
|
13915
|
|
13916 if test "$with_database_berkdb" != "no"; then
|
|
13917 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
|
853
|
13918 echo "configure:13919: checking for Berkeley DB version" >&5
|
298
|
13919 cat > conftest.$ac_ext <<EOF
|
853
|
13920 #line 13921 "configure"
|
442
|
13921 #include "confdefs.h"
|
|
13922 #include <$db_h_file>
|
298
|
13923 #if DB_VERSION_MAJOR > 1
|
|
13924 yes
|
|
13925 #endif
|
|
13926
|
|
13927 EOF
|
|
13928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
13929 egrep "yes" >/dev/null 2>&1; then
|
|
13930 rm -rf conftest*
|
448
|
13931 cat > conftest.$ac_ext <<EOF
|
853
|
13932 #line 13933 "configure"
|
448
|
13933 #include "confdefs.h"
|
|
13934 #include <$db_h_file>
|
|
13935 #if DB_VERSION_MAJOR > 2
|
|
13936 yes
|
|
13937 #endif
|
|
13938
|
|
13939 EOF
|
|
13940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
13941 egrep "yes" >/dev/null 2>&1; then
|
|
13942 rm -rf conftest*
|
|
13943 echo "$ac_t""3" 1>&6; dbfunc=db_create
|
|
13944 else
|
|
13945 rm -rf conftest*
|
|
13946
|
|
13947 echo "$ac_t""2" 1>&6; dbfunc=db_open
|
|
13948 fi
|
|
13949 rm -f conftest*
|
|
13950
|
|
13951 else
|
|
13952 rm -rf conftest*
|
|
13953
|
|
13954 echo "$ac_t""1" 1>&6; dbfunc=dbopen
|
298
|
13955 fi
|
|
13956 rm -f conftest*
|
|
13957
|
|
13958 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
|
853
|
13959 echo "configure:13960: checking for $dbfunc" >&5
|
|
13960
|
|
13961 cat > conftest.$ac_ext <<EOF
|
|
13962 #line 13963 "configure"
|
298
|
13963 #include "confdefs.h"
|
149
|
13964 /* System header to define __stub macros and hopefully few prototypes,
|
298
|
13965 which can conflict with char $dbfunc(); below. */
|
149
|
13966 #include <assert.h>
|
|
13967 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13968 /* We use char because int might match the return type of a gcc2
|
|
13969 builtin and then its argument prototype would still apply. */
|
298
|
13970 char $dbfunc();
|
149
|
13971
|
|
13972 int main() {
|
|
13973
|
0
|
13974 /* The GNU C library defines this for functions which it implements
|
|
13975 to always fail with ENOSYS. Some functions are actually named
|
|
13976 something starting with __ and the normal name is an alias. */
|
298
|
13977 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
|
0
|
13978 choke me
|
|
13979 #else
|
298
|
13980 $dbfunc();
|
0
|
13981 #endif
|
149
|
13982
|
0
|
13983 ; return 0; }
|
|
13984 EOF
|
853
|
13985 if { (eval echo configure:13986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
298
|
13986 rm -rf conftest*
|
|
13987 eval "ac_cv_func_$dbfunc=yes"
|
|
13988 else
|
|
13989 echo "configure: failed program was:" >&5
|
|
13990 cat conftest.$ac_ext >&5
|
|
13991 rm -rf conftest*
|
|
13992 eval "ac_cv_func_$dbfunc=no"
|
|
13993 fi
|
|
13994 rm -f conftest*
|
|
13995
|
|
13996 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
|
149
|
13997 echo "$ac_t""yes" 1>&6
|
|
13998 with_database_berkdb=yes need_libdb=no
|
|
13999 else
|
|
14000 echo "$ac_t""no" 1>&6
|
298
|
14001
|
|
14002
|
|
14003 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
|
853
|
14004 echo "configure:14005: checking for $dbfunc in -ldb" >&5
|
298
|
14005 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
|
149
|
14006
|
|
14007 xe_check_libs=" -ldb "
|
|
14008 cat > conftest.$ac_ext <<EOF
|
853
|
14009 #line 14010 "configure"
|
149
|
14010 #include "confdefs.h"
|
0
|
14011 /* Override any gcc2 internal prototype to avoid an error. */
|
149
|
14012 /* We use char because int might match the return type of a gcc2
|
|
14013 builtin and then its argument prototype would still apply. */
|
298
|
14014 char $dbfunc();
|
|
14015
|
|
14016 int main() {
|
|
14017 $dbfunc()
|
|
14018 ; return 0; }
|
|
14019 EOF
|
853
|
14020 if { (eval echo configure:14021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14021 rm -rf conftest*
|
|
14022 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14023 else
|
|
14024 echo "configure: failed program was:" >&5
|
|
14025 cat conftest.$ac_ext >&5
|
|
14026 rm -rf conftest*
|
|
14027 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14028 fi
|
|
14029 rm -f conftest*
|
|
14030 xe_check_libs=""
|
|
14031
|
151
|
14032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14033 echo "$ac_t""yes" 1>&6
|
|
14034 with_database_berkdb=yes need_libdb=yes
|
|
14035 else
|
|
14036 echo "$ac_t""no" 1>&6
|
298
|
14037 fi
|
|
14038
|
|
14039
|
|
14040 fi
|
|
14041
|
|
14042 fi
|
|
14043
|
149
|
14044 if test "$with_database_berkdb" = "yes"; then
|
|
14045 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
14046 Defining DB_H_FILE = "$db_h_file"
|
|
14047 EOF
|
|
14048 cat >> confdefs.h <<EOF
|
|
14049 #define DB_H_FILE "$db_h_file"
|
149
|
14050 EOF
|
|
14051 }
|
|
14052
|
|
14053 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14054 Defining HAVE_BERKELEY_DB
|
|
14055 EOF
|
|
14056 cat >> confdefs.h <<\EOF
|
|
14057 #define HAVE_BERKELEY_DB 1
|
|
14058 EOF
|
|
14059 }
|
|
14060
|
151
|
14061 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
|
149
|
14062 else with_database_berkdb=no
|
|
14063 fi
|
|
14064 fi
|
|
14065
|
426
|
14066 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
|
272
|
14067 != "no no no"; then
|
149
|
14068 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14069 Defining HAVE_DATABASE
|
|
14070 EOF
|
|
14071 cat >> confdefs.h <<\EOF
|
|
14072 #define HAVE_DATABASE 1
|
|
14073 EOF
|
|
14074 }
|
|
14075
|
|
14076 fi
|
|
14077
|
|
14078 if test "$with_socks" = "yes"; then
|
|
14079
|
|
14080 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
|
853
|
14081 echo "configure:14082: checking for SOCKSinit in -lsocks" >&5
|
149
|
14082 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
|
|
14083
|
|
14084 xe_check_libs=" -lsocks "
|
|
14085 cat > conftest.$ac_ext <<EOF
|
853
|
14086 #line 14087 "configure"
|
149
|
14087 #include "confdefs.h"
|
|
14088 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14089 /* We use char because int might match the return type of a gcc2
|
|
14090 builtin and then its argument prototype would still apply. */
|
|
14091 char SOCKSinit();
|
|
14092
|
|
14093 int main() {
|
|
14094 SOCKSinit()
|
|
14095 ; return 0; }
|
|
14096 EOF
|
853
|
14097 if { (eval echo configure:14098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14098 rm -rf conftest*
|
|
14099 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14100 else
|
|
14101 echo "configure: failed program was:" >&5
|
|
14102 cat conftest.$ac_ext >&5
|
|
14103 rm -rf conftest*
|
|
14104 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14105 fi
|
|
14106 rm -f conftest*
|
|
14107 xe_check_libs=""
|
|
14108
|
151
|
14109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14110 echo "$ac_t""yes" 1>&6
|
|
14111 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
14112 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
14113 { test "$extra_verbose" = "yes" && cat << EOF
|
|
14114 Defining $ac_tr_lib
|
|
14115 EOF
|
|
14116 cat >> confdefs.h <<EOF
|
|
14117 #define $ac_tr_lib 1
|
|
14118 EOF
|
|
14119 }
|
|
14120
|
151
|
14121 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
|
149
|
14122
|
|
14123 else
|
|
14124 echo "$ac_t""no" 1>&6
|
|
14125 fi
|
|
14126
|
|
14127
|
|
14128 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14129 Defining HAVE_SOCKS
|
|
14130 EOF
|
|
14131 cat >> confdefs.h <<\EOF
|
|
14132 #define HAVE_SOCKS 1
|
|
14133 EOF
|
|
14134 }
|
|
14135
|
|
14136 fi
|
|
14137
|
|
14138 if test "$usage_tracking" = "yes"; then
|
|
14139 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14140 Defining USAGE_TRACKING
|
|
14141 EOF
|
|
14142 cat >> confdefs.h <<\EOF
|
|
14143 #define USAGE_TRACKING 1
|
|
14144 EOF
|
|
14145 }
|
|
14146
|
151
|
14147 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
|
149
|
14148 fi
|
|
14149
|
430
|
14150 if test "$with_modules" != "no"; then
|
|
14151 echo "checking for module support" 1>&6
|
853
|
14152 echo "configure:14153: checking for module support" >&5
|
442
|
14153
|
|
14154 if test "$with_msw" = "yes"; then
|
|
14155 have_dl=yes;
|
|
14156 else
|
|
14157 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
|
430
|
14158 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
|
853
|
14159 echo "configure:14160: checking for dlfcn.h" >&5
|
|
14160
|
|
14161 cat > conftest.$ac_ext <<EOF
|
|
14162 #line 14163 "configure"
|
430
|
14163 #include "confdefs.h"
|
|
14164 #include <dlfcn.h>
|
261
|
14165 EOF
|
|
14166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
853
|
14167 { (eval echo configure:14168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
261
|
14169 if test -z "$ac_err"; then
|
|
14170 rm -rf conftest*
|
|
14171 eval "ac_cv_header_$ac_safe=yes"
|
|
14172 else
|
|
14173 echo "$ac_err" >&5
|
|
14174 echo "configure: failed program was:" >&5
|
|
14175 cat conftest.$ac_ext >&5
|
|
14176 rm -rf conftest*
|
|
14177 eval "ac_cv_header_$ac_safe=no"
|
|
14178 fi
|
|
14179 rm -f conftest*
|
|
14180 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14181 echo "$ac_t""yes" 1>&6
|
430
|
14182
|
452
|
14183 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
|
853
|
14184 echo "configure:14185: checking for dlopen in -lc" >&5
|
452
|
14185 cat > conftest.$ac_ext <<EOF
|
853
|
14186 #line 14187 "configure"
|
452
|
14187 #include "confdefs.h"
|
|
14188 #include <dlfcn.h>
|
|
14189 int main() {
|
|
14190 dlopen ("", 0);
|
|
14191 ; return 0; }
|
|
14192 EOF
|
853
|
14193 if { (eval echo configure:14194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
452
|
14194 rm -rf conftest*
|
|
14195 have_dl=yes
|
|
14196 else
|
|
14197 echo "configure: failed program was:" >&5
|
|
14198 cat conftest.$ac_ext >&5
|
|
14199 rm -rf conftest*
|
|
14200
|
|
14201 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
853
|
14202 echo "configure:14203: checking for dlopen in -ldl" >&5
|
452
|
14203 ac_save_LIBS="$LIBS"
|
|
14204 LIBS="-ldl $LIBS"
|
|
14205 cat > conftest.$ac_ext <<EOF
|
853
|
14206 #line 14207 "configure"
|
452
|
14207 #include "confdefs.h"
|
|
14208 #include <dlfcn.h>
|
|
14209 int main() {
|
|
14210 dlopen ("", 0);
|
|
14211 ; return 0; }
|
|
14212 EOF
|
853
|
14213 if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
452
|
14214 rm -rf conftest*
|
|
14215 have_dl=yes
|
|
14216 else
|
|
14217 echo "configure: failed program was:" >&5
|
|
14218 cat conftest.$ac_ext >&5
|
|
14219 rm -rf conftest*
|
|
14220 LIBS="$ac_save_LIBS"
|
|
14221 fi
|
|
14222 rm -f conftest*
|
|
14223 ac_save_LIBS=
|
|
14224 fi
|
|
14225 rm -f conftest*
|
430
|
14226 else
|
|
14227 echo "$ac_t""no" 1>&6
|
|
14228 fi
|
|
14229
|
442
|
14230 if test -n "$have_dl"; then
|
|
14231 { test "$extra_verbose" = "yes" && cat << \EOF
|
265
|
14232 Defining HAVE_DLOPEN
|
|
14233 EOF
|
|
14234 cat >> confdefs.h <<\EOF
|
|
14235 #define HAVE_DLOPEN 1
|
|
14236 EOF
|
|
14237 }
|
430
|
14238
|
442
|
14239 else
|
|
14240
|
430
|
14241 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
|
853
|
14242 echo "configure:14243: checking for shl_load in -ldld" >&5
|
430
|
14243 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
|
|
14244
|
|
14245 xe_check_libs=" -ldld "
|
|
14246 cat > conftest.$ac_ext <<EOF
|
853
|
14247 #line 14248 "configure"
|
430
|
14248 #include "confdefs.h"
|
|
14249 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14250 /* We use char because int might match the return type of a gcc2
|
|
14251 builtin and then its argument prototype would still apply. */
|
|
14252 char shl_load();
|
|
14253
|
|
14254 int main() {
|
|
14255 shl_load()
|
|
14256 ; return 0; }
|
|
14257 EOF
|
853
|
14258 if { (eval echo configure:14259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
261
|
14259 rm -rf conftest*
|
|
14260 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14261 else
|
|
14262 echo "configure: failed program was:" >&5
|
|
14263 cat conftest.$ac_ext >&5
|
|
14264 rm -rf conftest*
|
|
14265 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14266 fi
|
|
14267 rm -f conftest*
|
|
14268 xe_check_libs=""
|
|
14269
|
|
14270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14271 echo "$ac_t""yes" 1>&6
|
430
|
14272 libdl=dld have_dl=yes;
|
442
|
14273 { test "$extra_verbose" = "yes" && cat << \EOF
|
430
|
14274 Defining HAVE_SHL_LOAD
|
|
14275 EOF
|
|
14276 cat >> confdefs.h <<\EOF
|
|
14277 #define HAVE_SHL_LOAD 1
|
|
14278 EOF
|
|
14279 }
|
|
14280
|
|
14281 else
|
|
14282 echo "$ac_t""no" 1>&6
|
|
14283
|
|
14284 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
|
853
|
14285 echo "configure:14286: checking for dld_init in -ldld" >&5
|
430
|
14286 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
|
265
|
14287
|
|
14288 xe_check_libs=" -ldld "
|
|
14289 cat > conftest.$ac_ext <<EOF
|
853
|
14290 #line 14291 "configure"
|
430
|
14291 #include "confdefs.h"
|
|
14292 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14293 /* We use char because int might match the return type of a gcc2
|
|
14294 builtin and then its argument prototype would still apply. */
|
|
14295 char dld_init();
|
|
14296
|
|
14297 int main() {
|
|
14298 dld_init()
|
|
14299 ; return 0; }
|
|
14300 EOF
|
853
|
14301 if { (eval echo configure:14302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
265
|
14302 rm -rf conftest*
|
|
14303 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14304 else
|
|
14305 echo "configure: failed program was:" >&5
|
|
14306 cat conftest.$ac_ext >&5
|
|
14307 rm -rf conftest*
|
|
14308 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14309 fi
|
|
14310 rm -f conftest*
|
|
14311 xe_check_libs=""
|
|
14312
|
|
14313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14314 echo "$ac_t""yes" 1>&6
|
430
|
14315 libdl=dld have_dl=yes;
|
442
|
14316 { test "$extra_verbose" = "yes" && cat << \EOF
|
265
|
14317 Defining HAVE_DLD_INIT
|
|
14318 EOF
|
|
14319 cat >> confdefs.h <<\EOF
|
|
14320 #define HAVE_DLD_INIT 1
|
|
14321 EOF
|
|
14322 }
|
430
|
14323
|
|
14324 else
|
|
14325 echo "$ac_t""no" 1>&6
|
|
14326 fi
|
|
14327
|
|
14328
|
|
14329 fi
|
|
14330
|
|
14331
|
442
|
14332 fi
|
|
14333 fi
|
430
|
14334 if test -n "$have_dl"; then
|
|
14335
|
388
|
14336 dll_ld=
|
|
14337 dll_ldflags=
|
|
14338 dll_cflags=
|
|
14339 dll_post=
|
|
14340 dll_ldo="-o"
|
|
14341 ld_dynamic_link_flags=
|
|
14342 xehost=$canonical
|
|
14343 xealias=$internal_configuration
|
|
14344
|
|
14345 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
|
853
|
14346 echo "configure:14347: checking how to build dynamic libraries for ${xehost}" >&5
|
388
|
14347 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
|
|
14348 case "$xehost" in
|
|
14349 *-*-linux-gnu*) ;;
|
|
14350 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
|
14351 esac
|
|
14352
|
|
14353 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
14354 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
14355 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
14356
|
|
14357 case "$xehost_os" in
|
|
14358 aix3*)
|
|
14359 # AIX sometimes has problems with the GCC collect2 program. For some
|
|
14360 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
14361 # vanish in a puff of smoke.
|
|
14362 if test "${COLLECT_NAMES+set}" != set; then
|
|
14363 COLLECT_NAMES=
|
|
14364 export COLLECT_NAMES
|
|
14365 fi
|
|
14366 ;;
|
|
14367 esac
|
|
14368
|
|
14369 # Now see if the compiler is really GCC.
|
|
14370 if test "$GCC" = "yes"; then
|
|
14371 XEGCC=yes
|
|
14372 else
|
|
14373 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
|
853
|
14374 echo "configure:14375: checking checking whether we are using GNU C" >&5
|
388
|
14375 cat > conftest.$ac_ext <<EOF
|
853
|
14376 #line 14377 "configure"
|
388
|
14377 #include "confdefs.h"
|
|
14378
|
|
14379 #ifdef __GNUC__
|
|
14380 yes;
|
|
14381 #endif
|
|
14382
|
|
14383 EOF
|
|
14384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
14385 egrep "yes" >/dev/null 2>&1; then
|
|
14386 rm -rf conftest*
|
|
14387 XEGCC=yes
|
|
14388 else
|
|
14389 rm -rf conftest*
|
|
14390 XEGCC=no
|
|
14391 fi
|
|
14392 rm -f conftest*
|
|
14393
|
|
14394 echo "$ac_t""${XEGCC}" 1>&6
|
|
14395 fi
|
|
14396
|
|
14397 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
|
853
|
14398 echo "configure:14399: checking how to produce PIC code" >&5
|
388
|
14399 wl=
|
|
14400
|
|
14401 can_build_shared=yes
|
|
14402 if test "$XEGCC" = yes; then
|
|
14403 wl='-Wl,'
|
|
14404
|
|
14405 case "$xehost_os" in
|
460
|
14406 aix[3-9]* | irix[5-9]* | osf[3-9])
|
388
|
14407 # PIC is the default for these OSes.
|
|
14408 ;;
|
|
14409
|
460
|
14410 os2*)
|
388
|
14411 # We can build DLLs from non-PIC.
|
|
14412 ;;
|
|
14413 amigaos*)
|
|
14414 # FIXME: we need at least 68020 code to build shared libraries, but
|
|
14415 # adding the `-m68020' flag to GCC prevents building anything better,
|
|
14416 # like `-m68040'.
|
|
14417 dll_cflags='-m68020 -resident32 -malways-restore-a4'
|
|
14418 ;;
|
442
|
14419 *cygwin* | *mingw* )
|
|
14420 # PIC is the default
|
|
14421 ;;
|
388
|
14422 *)
|
|
14423 dll_cflags='-fPIC'
|
|
14424 ;;
|
|
14425 esac
|
|
14426 else
|
|
14427 # PORTME Check for PIC flags for the system compiler.
|
|
14428 case "$xehost_os" in
|
430
|
14429 hpux9* | hpux1[0-9]*)
|
388
|
14430 # Is there a better link_static_flag that works with the bundled CC?
|
|
14431 wl='-Wl,'
|
|
14432 dll_cflags='+Z'
|
|
14433 ;;
|
|
14434
|
460
|
14435 irix[5-9]*)
|
388
|
14436 wl='-Wl,'
|
|
14437 # PIC (with -KPIC) is the default.
|
|
14438 ;;
|
|
14439
|
|
14440 os2*)
|
|
14441 # We can build DLLs from non-PIC.
|
|
14442 ;;
|
|
14443
|
460
|
14444 osf[3-9]*)
|
388
|
14445 # All OSF/1 code is PIC.
|
|
14446 wl='-Wl,'
|
|
14447 ;;
|
|
14448
|
460
|
14449 aix[3-9]*)
|
|
14450 # All AIX code is PIC.
|
|
14451 wl='-Wl,'
|
|
14452 ;;
|
|
14453
|
388
|
14454 sco3.2v5*)
|
|
14455 dll_cflags='-belf -Kpic'
|
|
14456 wl='-Wl,'
|
|
14457 ;;
|
|
14458
|
|
14459 unixware*)
|
|
14460 dll_cflags="-KPIC"
|
|
14461 wl="-Wl,"
|
|
14462 ;;
|
|
14463
|
|
14464 sysv4*)
|
|
14465 dll_cflags="-KPIC"
|
|
14466 wl="-Wl,"
|
|
14467 ;;
|
|
14468
|
|
14469 sysv5*)
|
|
14470 dll_cflags="-KPIC"
|
|
14471 wl="-Wl,"
|
|
14472 ;;
|
|
14473
|
|
14474 solaris2*)
|
|
14475 dll_cflags='-KPIC'
|
|
14476 wl='-Wl,'
|
|
14477 ;;
|
|
14478
|
|
14479 sunos4*)
|
|
14480 dll_cflags='-PIC'
|
|
14481 wl='-Qoption ld '
|
|
14482 ;;
|
|
14483
|
|
14484 uts4*)
|
|
14485 dll_cflags='-pic'
|
|
14486 ;;
|
|
14487
|
|
14488 *)
|
|
14489 can_build_shared=no
|
|
14490 ;;
|
|
14491 esac
|
|
14492 fi
|
|
14493
|
|
14494 if test -n "$dll_cflags"; then
|
|
14495 echo "$ac_t""${dll_cflags}" 1>&6
|
442
|
14496
|
388
|
14497 # Check to make sure the dll_cflags actually works.
|
|
14498 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
|
853
|
14499 echo "configure:14500: checking if PIC flag ${dll_cflags} really works" >&5
|
388
|
14500 save_CFLAGS="$CFLAGS"
|
|
14501 CFLAGS="$CFLAGS $dll_cflags -DPIC"
|
|
14502 cat > conftest.$ac_ext <<EOF
|
853
|
14503 #line 14504 "configure"
|
388
|
14504 #include "confdefs.h"
|
|
14505
|
|
14506 int main() {
|
|
14507 int x=0;
|
|
14508 ; return 0; }
|
|
14509 EOF
|
853
|
14510 if { (eval echo configure:14511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
388
|
14511 rm -rf conftest*
|
|
14512
|
|
14513 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
|
|
14514 # reports no error. So, we need to grep stderr for (Bundled).
|
|
14515 if grep '(Bundled)' config.log >/dev/null; then
|
|
14516 echo "$ac_t""no" 1>&6
|
|
14517 can_build_shared=no
|
|
14518 dll_cflags=
|
|
14519 else
|
|
14520 echo "$ac_t""yes" 1>&6
|
|
14521 fi
|
|
14522 else
|
|
14523 echo "configure: failed program was:" >&5
|
|
14524 cat conftest.$ac_ext >&5
|
|
14525 rm -rf conftest*
|
|
14526 echo "$ac_t""no" 1>&6
|
|
14527 can_build_shared=no
|
|
14528 dll_cflags=
|
|
14529 fi
|
|
14530 rm -f conftest*
|
|
14531 CFLAGS="$save_CFLAGS"
|
|
14532 else
|
|
14533 echo "$ac_t""none" 1>&6
|
|
14534 fi
|
|
14535
|
|
14536 if test "$can_build_shared" = "yes"; then
|
|
14537 cc_produces_so=no
|
|
14538 xldf=
|
|
14539 xcldf=
|
|
14540 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
|
853
|
14541 echo "configure:14542: checking if C compiler can produce shared libraries" >&5
|
388
|
14542 if test "$XEGCC" = yes; then
|
|
14543 xcldf="-shared"
|
|
14544 xldf="-shared"
|
|
14545 else # Not using GCC
|
|
14546 case "$xehost_os" in
|
460
|
14547 aix[3-9]*)
|
388
|
14548 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
|
|
14549 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
|
|
14550 ;;
|
|
14551
|
|
14552 freebsd2* | netbsd* | openbsd*)
|
|
14553 xldf="-Bshareable"
|
|
14554 xcldf="${wl}-Bshareable"
|
|
14555 ;;
|
|
14556
|
|
14557 freebsd3*)
|
|
14558 xcldf="-shared"
|
|
14559 ;;
|
|
14560
|
|
14561 hpux*)
|
|
14562 xldf="-b +s"
|
|
14563 xcldf="${wl}-b ${wl}+s"
|
|
14564 ;;
|
|
14565
|
460
|
14566 irix[5-9]* | osf[3-9]*)
|
388
|
14567 xcldf="${wl}-shared"
|
|
14568 xldf="-shared"
|
|
14569 ;;
|
|
14570
|
|
14571 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
|
|
14572 xcldf="-G"
|
|
14573 xldf="-G"
|
|
14574 ;;
|
|
14575
|
|
14576 sunos4*)
|
|
14577 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
|
|
14578 xldf="-assert pure-text -Bstatic"
|
|
14579 ;;
|
|
14580 esac
|
|
14581 fi # End if if we are using gcc
|
|
14582
|
|
14583 if test -n "$xcldf"; then
|
|
14584 save_LDFLAGS=$LDFLAGS
|
|
14585 save_LIBS=$LIBS
|
|
14586 save_xe_libs=$xe_libs
|
|
14587 LDFLAGS="$xcldf $LDFLAGS"
|
|
14588 LIBS=
|
|
14589 xe_libs=
|
|
14590 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
14591 cat > conftest.$ac_ext <<EOF
|
853
|
14592 #line 14593 "configure"
|
388
|
14593 #include "confdefs.h"
|
|
14594
|
|
14595 int main() {
|
|
14596 int x=0;
|
|
14597 ; return 0; }
|
|
14598 EOF
|
853
|
14599 if { (eval echo configure:14600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
388
|
14600 rm -rf conftest*
|
|
14601 cc_produces_so=yes
|
|
14602 else
|
|
14603 echo "configure: failed program was:" >&5
|
|
14604 cat conftest.$ac_ext >&5
|
|
14605 rm -rf conftest*
|
|
14606 cc_produces_so=no
|
|
14607 fi
|
|
14608 rm -f conftest*
|
|
14609 LDFLAGS=$save_LDFLAGS
|
|
14610 LIBS=$save_LIBS
|
|
14611 xe_libs=$save_xe_libs
|
|
14612 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
14613 else
|
|
14614 cc_produces_so=no
|
|
14615 fi
|
|
14616 echo "$ac_t""${cc_produces_so}" 1>&6
|
|
14617
|
|
14618 LTLD=$LD
|
|
14619 if test -z "$LTLD"; then
|
|
14620 ac_prog=ld
|
|
14621 if test "$XEGCC" = yes; then
|
|
14622 # Check if gcc -print-prog-name=ld gives a path.
|
|
14623 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
853
|
14624 echo "configure:14625: checking for ld used by GCC" >&5
|
388
|
14625 ac_prog=`($CC -print-prog-name=ld) 2>&5`
|
|
14626 case "$ac_prog" in
|
|
14627 # Accept absolute paths.
|
|
14628 /*)
|
|
14629 if test -z "$LTLD"; then
|
724
|
14630 # case "$ac_prog" in
|
|
14631 # *gcc-lib*) LTLD="$CC"
|
|
14632 # ;;
|
|
14633 # *)
|
|
14634 LTLD="$ac_prog"
|
|
14635 # ;;
|
|
14636 # esac
|
388
|
14637 fi
|
|
14638 ;;
|
|
14639 "")
|
|
14640 # If it fails, then pretend we aren't using GCC.
|
|
14641 ac_prog=ld
|
|
14642 ;;
|
|
14643 *)
|
|
14644 # If it is relative, then search for the first ld in PATH.
|
|
14645 with_gnu_ld=unknown
|
|
14646 ;;
|
|
14647 esac
|
|
14648 else
|
|
14649 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
853
|
14650 echo "configure:14651: checking for GNU ld" >&5
|
388
|
14651 fi
|
|
14652
|
|
14653 if test -z "$LTLD"; then
|
|
14654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
14655 for ac_dir in $PATH; do
|
|
14656 test -z "$ac_dir" && ac_dir=.
|
|
14657 if test -f "$ac_dir/$ac_prog"; then
|
|
14658 LTLD="$ac_dir/$ac_prog"
|
|
14659 # Check to see if the program is GNU ld. I'd rather use --version,
|
|
14660 # but apparently some GNU ld's only accept -v.
|
|
14661 # Break only if it was the GNU/non-GNU ld that we prefer.
|
|
14662 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|
14663 xe_gnu_ld=yes
|
|
14664 else
|
|
14665 xe_gnu_ld=no
|
|
14666 fi
|
|
14667 fi
|
|
14668 done
|
|
14669 IFS="$ac_save_ifs"
|
|
14670 fi
|
|
14671
|
|
14672 if test -n "$LTLD"; then
|
|
14673 echo "$ac_t""${LTLD}" 1>&6
|
|
14674 else
|
|
14675 echo "$ac_t""no" 1>&6
|
|
14676 fi
|
|
14677
|
|
14678 if test -z "$LTLD" -a "$cc_produces_so" = no; then
|
|
14679 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
|
|
14680 exit 1
|
|
14681 fi
|
|
14682 fi
|
|
14683
|
|
14684 ld_dynamic_link_flags=
|
|
14685
|
|
14686 # Check to see if it really is or isn't GNU ld.
|
|
14687 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
|
853
|
14688 echo "configure:14689: checking if the linker is GNU ld" >&5
|
388
|
14689 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|
14690 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|
14691 xe_gnu_ld=yes
|
|
14692 else
|
|
14693 xe_gnu_ld=no
|
|
14694 fi
|
|
14695 echo "$ac_t""${xe_gnu_ld}" 1>&6
|
|
14696
|
|
14697 case "$xehost_os" in
|
|
14698 amigaos* | sunos4*)
|
|
14699 # On these operating systems, we should treat GNU ld like the system ld.
|
|
14700 gnu_ld_acts_native=yes
|
|
14701 ;;
|
|
14702 *)
|
|
14703 gnu_ld_acts_native=no
|
|
14704 ;;
|
|
14705 esac
|
|
14706
|
|
14707 if test "$cc_produces_so" = "yes"; then
|
|
14708 dll_ld=$CC
|
|
14709 dll_ldflags=$xcldf
|
|
14710 can_build_shared=yes
|
442
|
14711 ld_shlibs=yes
|
388
|
14712 else
|
|
14713 # OK - only NOW do we futz about with ld.
|
|
14714 # See if the linker supports building shared libraries.
|
|
14715 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
|
853
|
14716 echo "configure:14717: checking whether the linker supports shared libraries" >&5
|
388
|
14717 dll_ld=$CC
|
|
14718 dll_ldflags=$LDFLAGS
|
|
14719 ld_shlibs=yes
|
|
14720 can_build_shared=yes
|
|
14721 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
|
|
14722 # See if GNU ld supports shared libraries.
|
|
14723 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
|
14724 dll_ld=$CC
|
|
14725 dll_ldflags="-shared"
|
|
14726 ld_shlibs=yes
|
|
14727 else
|
|
14728 ld_shlibs=no
|
|
14729 fi
|
|
14730 else
|
|
14731 # PORTME fill in a description of your system's linker (not GNU ld)
|
|
14732 case "$xehost_os" in
|
|
14733 aix3*)
|
|
14734 dll_ld=$LTLD
|
|
14735 dll_ldflags=$xldf
|
|
14736 ;;
|
|
14737
|
460
|
14738 aix[4-9]*)
|
388
|
14739 dll_ldflags=$xcldf
|
|
14740 ;;
|
|
14741
|
|
14742 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
14743 # support. Future versions do this automatically, but an explicit c++rt0.o
|
|
14744 # doesn't break anything, and helps significantly (at the cost of a little
|
|
14745 # extra space).
|
|
14746 freebsd2.2*)
|
|
14747 dll_ld=$LTLD
|
|
14748 dll_ldflags=$xldf
|
|
14749 dll_post="/usr/lib/c++rt0.o"
|
|
14750 ;;
|
|
14751
|
|
14752 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
|
|
14753 freebsd2*)
|
|
14754 dll_ld=$LTLD
|
|
14755 dll_ldflags="-Bshareable"
|
|
14756 ;;
|
|
14757
|
|
14758 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
|
|
14759 freebsd3*)
|
|
14760 dll_ldflags="-shared"
|
|
14761 ;;
|
|
14762
|
|
14763 hpux*)
|
|
14764 dll_ld=$LTLD
|
|
14765 dll_ldflags=$xldf
|
|
14766 ;;
|
|
14767
|
460
|
14768 irix[5-9]*)
|
388
|
14769 dll_ld=$LTLD
|
|
14770 dll_ldflags=$xldf
|
|
14771 ;;
|
|
14772
|
|
14773 netbsd*)
|
|
14774 # Tested with NetBSD 1.2 ld
|
|
14775 dll_ld=$LTLD
|
|
14776 dll_ldflags=$xldf
|
|
14777 ;;
|
|
14778
|
|
14779 openbsd*)
|
|
14780 dll_ld=$LTLD
|
|
14781 dll_ldflags=$xldf
|
|
14782 ;;
|
|
14783
|
|
14784 osf3* | osf4*)
|
|
14785 dll_ld=$LTLD
|
|
14786 dll_ldflags=$xldf
|
|
14787 ;;
|
|
14788
|
|
14789 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
|
|
14790 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
|
|
14791 dll_ld=$LTLD
|
|
14792 case "$dll_ld" in
|
|
14793 *gcc*) dll_ldflags="-shared"
|
|
14794 dll_ld=$CC
|
|
14795 ;;
|
|
14796 *) dll_ldflags="-G"
|
|
14797 ;;
|
|
14798 esac
|
|
14799 ;;
|
|
14800
|
|
14801 sunos4*)
|
|
14802 if test "$XEGCC" = yes; then
|
|
14803 dll_ld=$CC
|
|
14804 else
|
|
14805 dll_ld=$LTLD
|
|
14806 fi
|
|
14807 dll_ldflags=$xldf
|
|
14808 ;;
|
|
14809
|
|
14810 uts4*)
|
|
14811 dll_ld=$LTLD
|
|
14812 dll_ldflags="-G"
|
|
14813 ;;
|
|
14814
|
|
14815 bsdi*)
|
|
14816 dll_ldflags="-r"
|
|
14817 dll_ld="shlicc2"
|
|
14818 ;;
|
|
14819
|
|
14820 *)
|
|
14821 ld_shlibs=no
|
|
14822 can_build_shared=no
|
|
14823 ;;
|
|
14824 esac
|
|
14825 fi
|
|
14826 echo "$ac_t""${ld_shlibs}" 1>&6
|
|
14827 if test "$ld_shlibs" = "no"; then
|
|
14828 can_build_shared=no
|
|
14829 fi
|
|
14830 fi # End of if cc_produces_so = no
|
|
14831
|
|
14832
|
|
14833 if test "$xe_gnu_ld" = yes; then
|
|
14834 if test "$ld_shlibs" = yes; then
|
|
14835 ld_dynamic_link_flags="${wl}-export-dynamic"
|
|
14836 fi
|
|
14837 fi
|
|
14838
|
|
14839 if test -z "$ld_dynamic_link_flags"; then
|
|
14840 case "$xehost_os" in
|
460
|
14841 aix[3-9]*)
|
388
|
14842 ld_dynamic_link_flags=
|
|
14843 ;;
|
|
14844
|
|
14845 freebsd2.2*)
|
|
14846 ld_dynamic_link_flags=
|
|
14847 ;;
|
|
14848
|
|
14849 freebsd2*)
|
|
14850 ld_dynamic_link_flags=
|
|
14851 ;;
|
|
14852
|
|
14853 freebsd3*)
|
|
14854 ld_dynamic_link_flags=
|
|
14855 ;;
|
|
14856
|
|
14857 hpux*)
|
|
14858 ld_dynamic_link_flags="${wl}-E"
|
|
14859 ;;
|
|
14860
|
460
|
14861 irix[5-9]*)
|
388
|
14862 ld_dynamic_link_flags=
|
|
14863 ;;
|
|
14864
|
|
14865 netbsd*)
|
|
14866 ld_dynamic_link_flags=
|
|
14867 ;;
|
|
14868
|
|
14869 openbsd*)
|
|
14870 ld_dynamic_link_flags=
|
|
14871 ;;
|
|
14872
|
|
14873 osf3* | osf4*)
|
|
14874 ld_dynamic_link_flags=
|
|
14875 ;;
|
|
14876
|
398
|
14877 solaris2* | solaris7*)
|
426
|
14878 ld_dynamic_link_flags=
|
398
|
14879 ;;
|
|
14880
|
|
14881 sco3.2v5* | unixware* | sysv5* | sysv4*)
|
388
|
14882 ld_dynamic_link_flags="${wl}-Bexport"
|
|
14883 ;;
|
|
14884
|
|
14885 sunos4*)
|
|
14886 ld_dynamic_link_flags=
|
|
14887 ;;
|
|
14888
|
|
14889 uts4*)
|
|
14890 ld_dynamic_link_flags=
|
|
14891 ;;
|
|
14892
|
|
14893 bsdi*)
|
|
14894 ld_dynamic_link_flags=
|
|
14895 ;;
|
|
14896
|
|
14897 esac
|
|
14898 fi # End of if -z ld_dynamic_link_flags
|
|
14899 fi # End of if test "$can_build_shared" = "yes"
|
|
14900
|
|
14901
|
|
14902
|
|
14903
|
|
14904
|
|
14905
|
|
14906
|
|
14907
|
430
|
14908 fi
|
|
14909
|
388
|
14910 if test "$can_build_shared" = "yes"; then
|
|
14911 { test "$extra_verbose" = "yes" && cat << \EOF
|
261
|
14912 Defining HAVE_SHLIB
|
|
14913 EOF
|
|
14914 cat >> confdefs.h <<\EOF
|
|
14915 #define HAVE_SHLIB 1
|
|
14916 EOF
|
|
14917 }
|
|
14918
|
388
|
14919 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
430
|
14920 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
|
388
|
14921 for ac_func in dlerror _dlerror
|
276
|
14922 do
|
|
14923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
853
|
14924 echo "configure:14925: checking for $ac_func" >&5
|
|
14925
|
|
14926 cat > conftest.$ac_ext <<EOF
|
|
14927 #line 14928 "configure"
|
276
|
14928 #include "confdefs.h"
|
|
14929 /* System header to define __stub macros and hopefully few prototypes,
|
|
14930 which can conflict with char $ac_func(); below. */
|
|
14931 #include <assert.h>
|
|
14932 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14933 /* We use char because int might match the return type of a gcc2
|
|
14934 builtin and then its argument prototype would still apply. */
|
|
14935 char $ac_func();
|
|
14936
|
|
14937 int main() {
|
|
14938
|
|
14939 /* The GNU C library defines this for functions which it implements
|
|
14940 to always fail with ENOSYS. Some functions are actually named
|
|
14941 something starting with __ and the normal name is an alias. */
|
|
14942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
14943 choke me
|
|
14944 #else
|
|
14945 $ac_func();
|
|
14946 #endif
|
|
14947
|
|
14948 ; return 0; }
|
|
14949 EOF
|
853
|
14950 if { (eval echo configure:14951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
276
|
14951 rm -rf conftest*
|
|
14952 eval "ac_cv_func_$ac_func=yes"
|
|
14953 else
|
|
14954 echo "configure: failed program was:" >&5
|
|
14955 cat conftest.$ac_ext >&5
|
|
14956 rm -rf conftest*
|
|
14957 eval "ac_cv_func_$ac_func=no"
|
|
14958 fi
|
|
14959 rm -f conftest*
|
|
14960
|
|
14961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
14962 echo "$ac_t""yes" 1>&6
|
|
14963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
14964 { test "$extra_verbose" = "yes" && cat << EOF
|
|
14965 Defining $ac_tr_func
|
|
14966 EOF
|
|
14967 cat >> confdefs.h <<EOF
|
|
14968 #define $ac_tr_func 1
|
|
14969 EOF
|
|
14970 }
|
|
14971
|
|
14972 else
|
|
14973 echo "$ac_t""no" 1>&6
|
|
14974 fi
|
|
14975 done
|
|
14976
|
430
|
14977 with_modules=yes
|
388
|
14978 else
|
430
|
14979 if test "$with_modules" = "yes"; then
|
|
14980 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
|
|
14981 else
|
582
|
14982 echo " No module support."
|
430
|
14983 fi
|
422
|
14984 with_modules=no
|
|
14985 fi
|
|
14986 fi
|
|
14987
|
|
14988 cat > conftest.$ac_ext <<EOF
|
853
|
14989 #line 14990 "configure"
|
272
|
14990 #include "confdefs.h"
|
|
14991 int main(int c,char *v[]){return 0;}
|
|
14992 EOF
|
853
|
14993 if { (eval echo configure:14994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
272
|
14994 then
|
|
14995 :
|
|
14996 else
|
373
|
14997 conftest_rc="$?"
|
272
|
14998 echo "configure: failed program was:" >&5
|
|
14999 cat conftest.$ac_ext >&5
|
|
15000 rm -fr conftest*
|
|
15001
|
|
15002 echo ""
|
|
15003 echo "*** PANIC *** The C compiler can no longer build working executables."
|
|
15004 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
|
|
15005 echo "*** PANIC *** The most likely reason for this problem is that configure"
|
|
15006 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
|
|
15007 echo "*** PANIC *** found at run time."
|
|
15008 echo "*** PANIC ***"
|
|
15009 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
|
|
15010 echo "*** PANIC *** On other systems, try telling configure where to find the"
|
|
15011 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
|
|
15012 echo "*** PANIC ***"
|
|
15013 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
|
|
15014 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
|
|
15015 echo "*** PANIC *** on your system. Don't do that."
|
|
15016 exit 1
|
|
15017 fi
|
|
15018 rm -fr conftest*
|
|
15019
|
771
|
15020 if test "$win32_processes" != "yes"; then
|
398
|
15021 { test "$extra_verbose" = "yes" && cat << \EOF
|
263
|
15022 Defining HAVE_UNIX_PROCESSES
|
|
15023 EOF
|
|
15024 cat >> confdefs.h <<\EOF
|
|
15025 #define HAVE_UNIX_PROCESSES 1
|
|
15026 EOF
|
|
15027 }
|
|
15028
|
398
|
15029 fi
|
261
|
15030
|
155
|
15031
|
|
15032
|
|
15033 T=""
|
175
|
15034 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15035 CFLAGS="$T"
|
|
15036
|
|
15037
|
|
15038 T=""
|
155
|
15039 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15040 extra_objs="$T"
|
|
15041
|
|
15042
|
|
15043 T=""
|
|
15044 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
|
|
15045 c_switch_general="$T"
|
|
15046
|
|
15047
|
|
15048 T=""
|
462
|
15049 for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
155
|
15050 c_switch_window_system="$T"
|
|
15051
|
|
15052
|
|
15053 T=""
|
|
15054 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15055 c_switch_all="$T"
|
|
15056
|
|
15057
|
|
15058 T=""
|
|
15059 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
|
|
15060 ld_switch_general="$T"
|
|
15061
|
|
15062
|
|
15063 T=""
|
|
15064 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15065 ld_switch_window_system="$T"
|
|
15066
|
|
15067
|
|
15068 T=""
|
|
15069 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15070 ld_switch_all="$T"
|
|
15071
|
|
15072
|
|
15073 T=""
|
|
15074 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15075 ld_libs_general="$T"
|
|
15076
|
|
15077
|
|
15078 T=""
|
462
|
15079 for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
155
|
15080 ld_libs_window_system="$T"
|
|
15081
|
|
15082
|
|
15083 T=""
|
|
15084 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15085 ld_libs_all="$T"
|
|
15086
|
149
|
15087
|
151
|
15088
|
|
15089 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
|
380
|
15090 internal_makefile_list="Makefile.in"
|
149
|
15091 SUBDIR_MAKEFILES=''
|
151
|
15092 test -d lock || mkdir lock
|
149
|
15093 for dir in $MAKE_SUBDIR; do
|
167
|
15094 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
|
|
15095 test -d "$d" || mkdir "$d"; cd "$d"
|
|
15096 done ) ;;
|
|
15097 * ) test -d "$dir" || mkdir "$dir" ;;
|
|
15098 esac
|
155
|
15099
|
|
15100 T=""
|
384
|
15101 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
155
|
15102 SUBDIR_MAKEFILES="$T"
|
|
15103
|
|
15104
|
|
15105 T=""
|
|
15106 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15107 internal_makefile_list="$T"
|
|
15108
|
149
|
15109 done
|
|
15110
|
|
15111
|
|
15112
|
167
|
15113
|
157
|
15114 for dir in src/s src/m; do
|
|
15115 if test ! -d "$dir" ; then
|
|
15116 echo Making symbolic link to "$srcdir/$dir"
|
|
15117 ${LN_S} "$srcdir/$dir" "$dir"
|
|
15118 fi
|
|
15119 done
|
|
15120
|
149
|
15121 if test "$extra_verbose" = "yes"; then
|
151
|
15122 echo ""
|
163
|
15123 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
|
15124 echo ""
|
|
15125 fi
|
|
15126
|
438
|
15127
|
|
15128 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
|
|
15129 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
|
|
15130 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
|
|
15131 fi
|
|
15132
|
|
15133 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
|
|
15134 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
|
|
15135 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
|
|
15136 fi
|
|
15137
|
|
15138 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
|
|
15139 test "$extra_verbose" = "yes" && echo "creating TAGS"
|
|
15140 echo "
|
|
15141 $srcdir/TAGS,include" > "TAGS"
|
151
|
15142 fi
|
|
15143
|
373
|
15144 if test "$__SUNPRO_C" = "yes"; then
|
438
|
15145 test "$extra_verbose" = "yes" && echo "creating .sbinit"
|
157
|
15146 ( echo "# For use with Sun WorkShop's Source browser."
|
|
15147 echo "# See sbquery(1) and sbinit(4) for more information"
|
|
15148 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
|
|
15149 ) > .sbinit
|
|
15150 fi
|
151
|
15151
|
|
15152 rm -f core
|
|
15153
|
149
|
15154
|
|
15155
|
|
15156
|
|
15157
|
|
15158
|
|
15159
|
|
15160
|
|
15161
|
|
15162
|
|
15163
|
|
15164
|
|
15165
|
|
15166
|
|
15167
|
280
|
15168
|
420
|
15169
|
422
|
15170
|
|
15171
|
452
|
15172
|
278
|
15173 PREFIX=$prefix
|
|
15174 while true; do
|
|
15175 case "$PREFIX" in
|
|
15176 *\$* ) eval "PREFIX=$PREFIX" ;;
|
|
15177 *) break ;;
|
|
15178 esac
|
|
15179 done
|
|
15180
|
|
15181
|
|
15182
|
420
|
15183
|
278
|
15184 EXEC_PREFIX=$exec_prefix
|
|
15185 while true; do
|
|
15186 case "$EXEC_PREFIX" in
|
|
15187 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
|
|
15188 *) break ;;
|
|
15189 esac
|
|
15190 done
|
|
15191
|
149
|
15192
|
|
15193
|
|
15194
|
274
|
15195 INFODIR=$infodir
|
|
15196 while true; do
|
|
15197 case "$INFODIR" in
|
|
15198 *\$* ) eval "INFODIR=$INFODIR" ;;
|
|
15199 *) break ;;
|
|
15200 esac
|
|
15201 done
|
|
15202
|
|
15203
|
|
15204
|
|
15205
|
|
15206 INFOPATH=$infopath
|
|
15207 while true; do
|
|
15208 case "$INFOPATH" in
|
|
15209 *\$* ) eval "INFOPATH=$INFOPATH" ;;
|
|
15210 *) break ;;
|
|
15211 esac
|
|
15212 done
|
|
15213
|
|
15214
|
|
15215
|
|
15216
|
|
15217 PACKAGE_PATH=$package_path
|
|
15218 while true; do
|
|
15219 case "$PACKAGE_PATH" in
|
|
15220 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
|
|
15221 *) break ;;
|
|
15222 esac
|
|
15223 done
|
|
15224
|
|
15225
|
|
15226
|
|
15227
|
|
15228 LISPDIR=$lispdir
|
|
15229 while true; do
|
|
15230 case "$LISPDIR" in
|
|
15231 *\$* ) eval "LISPDIR=$LISPDIR" ;;
|
|
15232 *) break ;;
|
|
15233 esac
|
|
15234 done
|
|
15235
|
|
15236
|
|
15237
|
|
15238
|
388
|
15239 MODULEDIR=$moduledir
|
|
15240 while true; do
|
|
15241 case "$MODULEDIR" in
|
|
15242 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
|
|
15243 *) break ;;
|
|
15244 esac
|
|
15245 done
|
|
15246
|
|
15247
|
|
15248
|
|
15249
|
|
15250 SITELISPDIR=$sitelispdir
|
|
15251 while true; do
|
|
15252 case "$SITELISPDIR" in
|
|
15253 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
|
|
15254 *) break ;;
|
|
15255 esac
|
|
15256 done
|
|
15257
|
|
15258
|
|
15259
|
|
15260
|
|
15261 SITEMODULEDIR=$sitemoduledir
|
|
15262 while true; do
|
|
15263 case "$SITEMODULEDIR" in
|
|
15264 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
|
|
15265 *) break ;;
|
|
15266 esac
|
|
15267 done
|
|
15268
|
|
15269
|
|
15270
|
274
|
15271
|
|
15272 ETCDIR=$etcdir
|
|
15273 while true; do
|
|
15274 case "$ETCDIR" in
|
|
15275 *\$* ) eval "ETCDIR=$ETCDIR" ;;
|
|
15276 *) break ;;
|
|
15277 esac
|
|
15278 done
|
|
15279
|
|
15280
|
|
15281
|
|
15282
|
420
|
15283 DOCDIR=$docdir
|
|
15284 while true; do
|
|
15285 case "$DOCDIR" in
|
|
15286 *\$* ) eval "DOCDIR=$DOCDIR" ;;
|
|
15287 *) break ;;
|
|
15288 esac
|
|
15289 done
|
|
15290
|
|
15291
|
|
15292
|
|
15293
|
274
|
15294 ARCHLIBDIR=$archlibdir
|
|
15295 while true; do
|
|
15296 case "$ARCHLIBDIR" in
|
|
15297 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
|
|
15298 *) break ;;
|
|
15299 esac
|
|
15300 done
|
149
|
15301
|
|
15302
|
|
15303
|
|
15304
|
|
15305
|
|
15306
|
|
15307
|
|
15308
|
|
15309
|
|
15310
|
|
15311
|
|
15312
|
|
15313
|
|
15314
|
|
15315
|
|
15316
|
203
|
15317
|
207
|
15318
|
263
|
15319
|
267
|
15320
|
173
|
15321 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
|
|
15322
|
|
15323
|
|
15324
|
|
15325
|
|
15326
|
|
15327
|
|
15328
|
594
|
15329
|
|
15330 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
|
|
15331 : ${XEMACS_CC:="$CC"}
|
380
|
15332
|
|
15333
|
420
|
15334 if test "$with_prefix" = "yes"; then
|
|
15335 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15336 Defining PREFIX_USER_DEFINED
|
|
15337 EOF
|
|
15338 cat >> confdefs.h <<\EOF
|
|
15339 #define PREFIX_USER_DEFINED 1
|
|
15340 EOF
|
|
15341 }
|
|
15342
|
|
15343 fi
|
380
|
15344
|
267
|
15345 if test "$with_site_lisp" = "no"; then
|
|
15346 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15347 Defining INHIBIT_SITE_LISP
|
|
15348 EOF
|
|
15349 cat >> confdefs.h <<\EOF
|
|
15350 #define INHIBIT_SITE_LISP 1
|
|
15351 EOF
|
|
15352 }
|
|
15353
|
|
15354 fi
|
388
|
15355 if test "$with_site_modules" = "no"; then
|
|
15356 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15357 Defining INHIBIT_SITE_MODULES
|
|
15358 EOF
|
|
15359 cat >> confdefs.h <<\EOF
|
|
15360 #define INHIBIT_SITE_MODULES 1
|
|
15361 EOF
|
|
15362 }
|
|
15363
|
|
15364 fi
|
155
|
15365
|
207
|
15366
|
|
15367 T=""
|
|
15368 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15369 ac_configure_args="$T"
|
|
15370
|
149
|
15371 { test "$extra_verbose" = "yes" && cat << EOF
|
424
|
15372 Defining EMACS_CONFIGURATION = "$configuration"
|
149
|
15373 EOF
|
|
15374 cat >> confdefs.h <<EOF
|
424
|
15375 #define EMACS_CONFIGURATION "$configuration"
|
149
|
15376 EOF
|
|
15377 }
|
|
15378
|
|
15379 { test "$extra_verbose" = "yes" && cat << EOF
|
207
|
15380 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
|
173
|
15381 EOF
|
|
15382 cat >> confdefs.h <<EOF
|
207
|
15383 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
|
173
|
15384 EOF
|
|
15385 }
|
|
15386
|
149
|
15387
|
|
15388
|
|
15389 null_string=""
|
|
15390 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15391 Defining LD_SWITCH_X_SITE = $null_string
|
|
15392 EOF
|
|
15393 cat >> confdefs.h <<EOF
|
|
15394 #define LD_SWITCH_X_SITE $null_string
|
|
15395 EOF
|
|
15396 }
|
|
15397
|
|
15398 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15399 Defining LD_SWITCH_X_SITE_AUX = $null_string
|
|
15400 EOF
|
|
15401 cat >> confdefs.h <<EOF
|
|
15402 #define LD_SWITCH_X_SITE_AUX $null_string
|
|
15403 EOF
|
|
15404 }
|
|
15405
|
|
15406 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15407 Defining C_SWITCH_X_SITE = $null_string
|
|
15408 EOF
|
|
15409 cat >> confdefs.h <<EOF
|
|
15410 #define C_SWITCH_X_SITE $null_string
|
|
15411 EOF
|
|
15412 }
|
|
15413
|
|
15414 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15415 Defining LD_SWITCH_SITE = $null_string
|
|
15416 EOF
|
|
15417 cat >> confdefs.h <<EOF
|
|
15418 #define LD_SWITCH_SITE $null_string
|
|
15419 EOF
|
|
15420 }
|
|
15421
|
|
15422 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15423 Defining C_SWITCH_SITE = $null_string
|
|
15424 EOF
|
|
15425 cat >> confdefs.h <<EOF
|
|
15426 #define C_SWITCH_SITE $null_string
|
|
15427 EOF
|
|
15428 }
|
|
15429
|
|
15430
|
|
15431
|
181
|
15432 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15433 Defining GNU_MALLOC
|
|
15434 EOF
|
|
15435 cat >> confdefs.h <<\EOF
|
|
15436 #define GNU_MALLOC 1
|
|
15437 EOF
|
|
15438 }
|
|
15439
|
181
|
15440 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15441 Defining USE_SYSTEM_MALLOC
|
|
15442 EOF
|
|
15443 cat >> confdefs.h <<\EOF
|
|
15444 #define USE_SYSTEM_MALLOC 1
|
|
15445 EOF
|
|
15446 }
|
|
15447
|
181
|
15448 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
15449 Defining USE_DEBUG_MALLOC
|
|
15450 EOF
|
|
15451 cat >> confdefs.h <<\EOF
|
|
15452 #define USE_DEBUG_MALLOC 1
|
|
15453 EOF
|
|
15454 }
|
|
15455
|
181
|
15456 { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
15457 Defining USE_SYSTEM_MALLOC
|
|
15458 EOF
|
|
15459 cat >> confdefs.h <<\EOF
|
|
15460 #define USE_SYSTEM_MALLOC 1
|
|
15461 EOF
|
|
15462 }
|
|
15463
|
149
|
15464 fi
|
169
|
15465 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15466 Defining USE_GCC
|
|
15467 EOF
|
|
15468 cat >> confdefs.h <<\EOF
|
|
15469 #define USE_GCC 1
|
|
15470 EOF
|
|
15471 }
|
|
15472
|
|
15473 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15474 Defining EXTERNAL_WIDGET
|
|
15475 EOF
|
|
15476 cat >> confdefs.h <<\EOF
|
|
15477 #define EXTERNAL_WIDGET 1
|
|
15478 EOF
|
|
15479 }
|
|
15480
|
442
|
15481 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15482 Defining QUICK_BUILD
|
|
15483 EOF
|
|
15484 cat >> confdefs.h <<\EOF
|
|
15485 #define QUICK_BUILD 1
|
149
|
15486 EOF
|
|
15487 }
|
|
15488
|
380
|
15489 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15490 Defining PURIFY
|
|
15491 EOF
|
|
15492 cat >> confdefs.h <<\EOF
|
|
15493 #define PURIFY 1
|
|
15494 EOF
|
|
15495 }
|
|
15496
|
149
|
15497 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15498 Defining QUANTIFY
|
|
15499 EOF
|
|
15500 cat >> confdefs.h <<\EOF
|
|
15501 #define QUANTIFY 1
|
|
15502 EOF
|
|
15503 }
|
|
15504
|
|
15505 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15506 Defining MAIL_USE_POP
|
|
15507 EOF
|
|
15508 cat >> confdefs.h <<\EOF
|
|
15509 #define MAIL_USE_POP 1
|
|
15510 EOF
|
|
15511 }
|
|
15512
|
|
15513 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15514 Defining KERBEROS
|
|
15515 EOF
|
|
15516 cat >> confdefs.h <<\EOF
|
|
15517 #define KERBEROS 1
|
|
15518 EOF
|
|
15519 }
|
|
15520
|
|
15521 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15522 Defining HESIOD
|
|
15523 EOF
|
|
15524 cat >> confdefs.h <<\EOF
|
|
15525 #define HESIOD 1
|
|
15526 EOF
|
|
15527 }
|
|
15528
|
272
|
15529 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15530 Defining USE_UNION_TYPE
|
|
15531 EOF
|
|
15532 cat >> confdefs.h <<\EOF
|
|
15533 #define USE_UNION_TYPE 1
|
149
|
15534 EOF
|
0
|
15535 }
|
70
|
15536
|
424
|
15537 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15538 Defining PDUMP
|
|
15539 EOF
|
|
15540 cat >> confdefs.h <<\EOF
|
|
15541 #define PDUMP 1
|
|
15542 EOF
|
|
15543 }
|
|
15544
|
724
|
15545 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15546 Defining IPV6_CANONICALIZE
|
|
15547 EOF
|
|
15548 cat >> confdefs.h <<\EOF
|
|
15549 #define IPV6_CANONICALIZE 1
|
|
15550 EOF
|
|
15551 }
|
|
15552
|
70
|
15553
|
0
|
15554
|
118
|
15555 (
|
149
|
15556 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
|
|
15557 else
|
|
15558 echo "uname -a: `uname -a`"
|
|
15559 fi
|
|
15560 echo ""
|
|
15561 echo "$0 $quoted_arguments"
|
261
|
15562 ) > Installation
|
|
15563
|
414
|
15564 if test ! -z ${emacs_beta_version} ; then
|
|
15565 if test -z "${emacs_is_beta}" ; then
|
|
15566 xemacs_betaname=".${emacs_beta_version}"
|
|
15567 else
|
|
15568 xemacs_betaname="-b${emacs_beta_version}"
|
|
15569 fi
|
|
15570 else
|
430
|
15571 xemacs_betaname=""
|
414
|
15572 fi
|
149
|
15573
|
116
|
15574 (
|
0
|
15575 echo "
|
|
15576
|
261
|
15577 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
|
442
|
15578 "
|
|
15579 echo "
|
|
15580 Compilation / Installation:"
|
|
15581 echo " Source code location: $srcdir"
|
|
15582 echo " Installation prefix: $prefix"
|
70
|
15583 if test -n "$site_includes"; then
|
442
|
15584 echo " Additional header files: $site_includes"
|
149
|
15585 fi
|
|
15586 if test -n "$site_libraries"; then
|
442
|
15587 echo " Additional libraries: $site_libraries"
|
149
|
15588 fi
|
209
|
15589 if test -n "$site_prefixes"; then
|
442
|
15590 echo " Additional prefixes: $site_prefixes"
|
209
|
15591 fi
|
149
|
15592 if test -n "$runpath"; then
|
442
|
15593 echo " Runtime library search path: $runpath"
|
|
15594 fi
|
|
15595
|
|
15596 if test -n "$opsysfile"
|
|
15597 then echo " Operating system description file: \`$opsysfile'"
|
|
15598 else echo " Not using any operating system description file"
|
|
15599 fi
|
|
15600 if test -n "$machfile"
|
|
15601 then echo " Machine description file: \`$machfile'"
|
|
15602 else echo " Not using any machine description file"
|
|
15603 fi
|
|
15604
|
|
15605 echo " Compiler: $CC $CFLAGS"
|
|
15606 echo " Relocating allocator for buffers: $rel_alloc"
|
|
15607 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
|
708
|
15608 case "$ld_switch_site" in
|
|
15609 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
|
|
15610 - Consider configuring with --pdump." ;;
|
|
15611 esac
|
442
|
15612
|
|
15613 echo "
|
|
15614 Window System:"
|
|
15615 if test "$with_msw" = "yes"; then
|
|
15616 echo " Compiling in support for the Microsoft window system."
|
|
15617 fi
|
|
15618 if test "$with_x11" = "yes"; then
|
|
15619 echo " Compiling in support for the X window system:"
|
|
15620 echo " - X Windows headers location: $x_includes"
|
|
15621 echo " - X Windows libraries location: $x_libraries"
|
|
15622 if test "$with_xauth" != yes; then
|
|
15623 echo " - Xau (X authority) not available."
|
|
15624 fi
|
|
15625 if test "$with_xmu" != yes; then
|
|
15626 echo " - Xmu library not available; substituting equivalent routines."
|
|
15627 fi
|
|
15628 if test "$with_wmcommand" != no; then
|
|
15629 echo " - Handling WM_COMMAND properly."
|
|
15630 fi
|
|
15631 fi
|
|
15632 if test "$need_athena" = "yes"; then
|
|
15633 echo " Compiling in support for the Athena widget set:"
|
|
15634 echo " - Athena headers location: $athena_h_path"
|
|
15635 echo " - Athena library to link: $athena_lib"
|
|
15636 fi
|
|
15637 case "$with_menubars" in
|
462
|
15638 gtk ) echo " Using GTK menubars." ;;
|
442
|
15639 lucid ) echo " Using Lucid menubars." ;;
|
|
15640 motif ) echo " Using Motif menubars."
|
|
15641 echo " *WARNING* The Motif menubar implementation is currently buggy."
|
|
15642 echo " We recommend using the Lucid menubar instead."
|
|
15643 echo " Re-run configure with --with-menubars='lucid'." ;;
|
|
15644 msw ) echo " Using MS-Windows menubars." ;;
|
|
15645 esac
|
|
15646 case "$with_scrollbars" in
|
462
|
15647 gtk ) echo " Using GTK scrollbars." ;;
|
442
|
15648 lucid ) echo " Using Lucid scrollbars." ;;
|
|
15649 motif ) echo " Using Motif scrollbars." ;;
|
|
15650 athena ) echo " Using Athena scrollbars." ;;
|
|
15651 msw ) echo " Using MS-Windows scrollbars." ;;
|
|
15652 esac
|
|
15653 case "$with_dialogs" in
|
462
|
15654 gtk ) echo " Using GTK dialog boxes." ;;
|
442
|
15655 motif ) echo " Using Motif dialog boxes."
|
|
15656 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
|
|
15657 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
|
|
15658 echo " We recommend using the Athena dialog boxes instead."
|
|
15659 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
|
|
15660 echo " Read the PROBLEMS file for more information."
|
|
15661 fi; fi ;;
|
|
15662 athena ) echo " Using Athena dialog boxes." ;;
|
|
15663 msw ) echo " Using MS-Windows dialog boxes." ;;
|
|
15664 esac
|
|
15665 case "$with_widgets" in
|
462
|
15666 gtk ) echo " Using GTK native widgets." ;;
|
442
|
15667 motif ) echo " Using Motif native widgets." ;;
|
|
15668 athena ) echo " Using Athena native widgets." ;;
|
|
15669 msw ) echo " Using MS-Windows native widgets." ;;
|
|
15670 esac
|
|
15671 if test "$with_dragndrop" = yes; then
|
|
15672 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
|
|
15673 echo " - Drag'n'Drop prototype: $dragndrop_proto."
|
|
15674 fi
|
|
15675
|
|
15676 echo "
|
|
15677 TTY:"
|
|
15678 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
15679 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
|
|
15680
|
|
15681 echo "
|
|
15682 Images:"
|
|
15683 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
|
153
|
15684 if test "$with_xpm" = yes; then
|
442
|
15685 echo " Compiling in support for XPM images."
|
175
|
15686 elif test "$with_x11" = yes; then
|
442
|
15687 echo " WARNING: -----------------------------------------------------------"
|
|
15688 echo " WARNING: Compiling without XPM image support."
|
373
|
15689 if test "$xpm_problem" != ""; then
|
|
15690 echo " Reason: $xpm_problem"
|
|
15691 fi
|
|
15692 echo " WARNING: You should strongly consider installing XPM."
|
151
|
15693 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
|
373
|
15694 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
442
|
15695 echo " WARNING: -----------------------------------------------------------"
|
371
|
15696 fi
|
373
|
15697 if test "$with_png" = yes; then
|
442
|
15698 echo " Compiling in support for PNG images."
|
373
|
15699 elif test "$window_system" != "none"; then
|
442
|
15700 echo " WARNING: -----------------------------------------------------------"
|
373
|
15701 echo " WARNING: Compiling without PNG image support."
|
|
15702 if test "$png_problem" != ""; then
|
|
15703 echo " Reason: $png_problem"
|
|
15704 fi
|
|
15705 echo " WARNING: You should strongly consider installing the PNG libraries."
|
|
15706 echo " WARNING: Otherwise certain images and glyphs may not display."
|
|
15707 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
442
|
15708 echo " WARNING: -----------------------------------------------------------"
|
|
15709 fi
|
|
15710 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
|
|
15711 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
|
310
|
15712 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
|
432
|
15713
|
442
|
15714 echo "
|
|
15715 Sound:"
|
|
15716 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
|
|
15717 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
|
|
15718 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
|
|
15719 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
|
|
15720
|
|
15721 echo "
|
|
15722 Databases:"
|
|
15723 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
|
116
|
15724 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
426
|
15725 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
|
442
|
15726 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
|
|
15727 if test "$with_postgresql" = yes; then
|
|
15728 echo " Compiling in support for PostgreSQL."
|
|
15729 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
|
|
15730 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
|
|
15731 fi
|
|
15732
|
|
15733 echo "
|
|
15734 Internationalization:"
|
|
15735 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
|
|
15736 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
|
|
15737 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
|
|
15738 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
|
|
15739 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
|
|
15740 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
120
|
15741 if test "$with_wnn" = yes; then
|
|
15742 echo " Compiling in support for the WNN input method on Mule."
|
442
|
15743 test "$with_wnn6" = yes && echo " - Using WNN version 6."
|
|
15744 fi
|
|
15745
|
|
15746 echo "
|
|
15747 Mail:"
|
|
15748 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
|
|
15749 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
|
|
15750 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
|
|
15751 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
|
|
15752
|
|
15753 echo "
|
|
15754 Other Features:"
|
708
|
15755 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup."
|
116
|
15756 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
149
|
15757 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
|
442
|
15758 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
15759 test "$with_dnet" = yes && echo " Compiling in support for DNET."
|
|
15760 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
|
|
15761 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
|
|
15762 test "$pdump" = yes && echo " Using the new portable dumper."
|
|
15763 test "$debug" = yes && echo " Compiling in support for extra debugging code."
|
|
15764 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
|
800
|
15765 if test "$error_check_extents $error_check_types $error_check_text $error_check_gc $error_check_malloc $error_check_glyphs $error_check_byte_code $error_check_display $error_check_structures" \
|
831
|
15766 != "no no no no no no no no no"; then
|
151
|
15767 echo " WARNING: ---------------------------------------------------------"
|
|
15768 echo " WARNING: Compiling in support for runtime error checking."
|
|
15769 echo " WARNING: XEmacs will run noticeably more slowly as a result."
|
|
15770 echo " WARNING: Error checking is on by default for XEmacs beta releases."
|
|
15771 echo " WARNING: ---------------------------------------------------------"
|
|
15772 fi
|
118
|
15773 echo ""
|
116
|
15774 ) | tee -a Installation
|
118
|
15775 echo ""
|
|
15776
|
70
|
15777
|
0
|
15778 # Remove any trailing slashes in these variables.
|
149
|
15779 test -n "$prefix" &&
|
159
|
15780 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
15781 test -n "$exec_prefix" &&
|
159
|
15782 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
15783
|
|
15784
|
272
|
15785 for file in $internal_makefile_list; do
|
|
15786 test "$file" = src/Makefile.in && \
|
|
15787 file="src/Makefile.in:src/Makefile.in.in:src/depend"
|
430
|
15788 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
|
272
|
15789 done
|
276
|
15790 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
|
430
|
15791 test "$with_modules" = "yes" && ac_output_files="$ac_output_files lib-src/ellcc.h" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src/ellcc.h\" to \$ac_output_files"; fi
|
272
|
15792
|
149
|
15793 trap '' 1 2 15
|
|
15794
|
|
15795 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
15796
|
|
15797 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
15798 # Let make expand exec_prefix.
|
|
15799 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
0
|
15800
|
|
15801 # Any assignment to VPATH causes Sun make to only execute
|
|
15802 # the first set of double-colon rules, so remove it if not needed.
|
|
15803 # If there is a colon in the path, we need to keep it.
|
|
15804 if test "x$srcdir" = x.; then
|
|
15805 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
15806 fi
|
|
15807
|
149
|
15808 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
15809
|
|
15810 DEFS=-DHAVE_CONFIG_H
|
|
15811
|
|
15812 # Without the "./", some shells look in PATH for config.status.
|
|
15813 : ${CONFIG_STATUS=./config.status}
|
|
15814
|
|
15815 echo creating $CONFIG_STATUS
|
|
15816 rm -f $CONFIG_STATUS
|
|
15817 cat > $CONFIG_STATUS <<EOF
|
|
15818 #! /bin/sh
|
0
|
15819 # Generated automatically by configure.
|
|
15820 # Run this file to recreate the current configuration.
|
|
15821 # This directory was configured as follows,
|
|
15822 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
15823 #
|
149
|
15824 # $0 $ac_configure_args
|
|
15825 #
|
|
15826 # Compiler output produced by configure, useful for debugging
|
|
15827 # configure, is in ./config.log if it exists.
|
|
15828
|
|
15829 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
0
|
15830 for ac_option
|
|
15831 do
|
|
15832 case "\$ac_option" in
|
|
15833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
149
|
15834 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
15835 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
0
|
15836 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
420
|
15837 echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
0
|
15838 exit 0 ;;
|
|
15839 -help | --help | --hel | --he | --h)
|
|
15840 echo "\$ac_cs_usage"; exit 0 ;;
|
|
15841 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
15842 esac
|
|
15843 done
|
|
15844
|
|
15845 ac_given_srcdir=$srcdir
|
149
|
15846 ac_given_INSTALL="$INSTALL"
|
|
15847
|
276
|
15848 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
149
|
15849 EOF
|
|
15850 cat >> $CONFIG_STATUS <<EOF
|
|
15851
|
|
15852 # Protect against being on the right side of a sed subst in config.status.
|
|
15853 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
15854 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
0
|
15855 $ac_vpsub
|
|
15856 $extrasub
|
420
|
15857 s%@SHELL@%$SHELL%g
|
149
|
15858 s%@CFLAGS@%$CFLAGS%g
|
|
15859 s%@CPPFLAGS@%$CPPFLAGS%g
|
|
15860 s%@CXXFLAGS@%$CXXFLAGS%g
|
420
|
15861 s%@FFLAGS@%$FFLAGS%g
|
149
|
15862 s%@DEFS@%$DEFS%g
|
|
15863 s%@LDFLAGS@%$LDFLAGS%g
|
|
15864 s%@LIBS@%$LIBS%g
|
|
15865 s%@exec_prefix@%$exec_prefix%g
|
|
15866 s%@prefix@%$prefix%g
|
|
15867 s%@program_transform_name@%$program_transform_name%g
|
|
15868 s%@bindir@%$bindir%g
|
|
15869 s%@sbindir@%$sbindir%g
|
|
15870 s%@libexecdir@%$libexecdir%g
|
|
15871 s%@datadir@%$datadir%g
|
|
15872 s%@sysconfdir@%$sysconfdir%g
|
|
15873 s%@sharedstatedir@%$sharedstatedir%g
|
|
15874 s%@localstatedir@%$localstatedir%g
|
|
15875 s%@libdir@%$libdir%g
|
|
15876 s%@includedir@%$includedir%g
|
|
15877 s%@oldincludedir@%$oldincludedir%g
|
|
15878 s%@infodir@%$infodir%g
|
|
15879 s%@mandir@%$mandir%g
|
0
|
15880 s%@LN_S@%$LN_S%g
|
181
|
15881 s%@blddir@%$blddir%g
|
0
|
15882 s%@CC@%$CC%g
|
|
15883 s%@CPP@%$CPP%g
|
207
|
15884 s%@start_flags@%$start_flags%g
|
163
|
15885 s%@ld_switch_shared@%$ld_switch_shared%g
|
|
15886 s%@start_files@%$start_files%g
|
|
15887 s%@ld@%$ld%g
|
|
15888 s%@lib_gcc@%$lib_gcc%g
|
0
|
15889 s%@RANLIB@%$RANLIB%g
|
|
15890 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
420
|
15891 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
0
|
15892 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
15893 s%@YACC@%$YACC%g
|
|
15894 s%@SET_MAKE@%$SET_MAKE%g
|
462
|
15895 s%@GTK_CONFIG@%$GTK_CONFIG%g
|
149
|
15896 s%@X_CFLAGS@%$X_CFLAGS%g
|
|
15897 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
|
15898 s%@X_LIBS@%$X_LIBS%g
|
|
15899 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
276
|
15900 s%@install_pp@%$install_pp%g
|
159
|
15901 s%@libs_xauth@%$libs_xauth%g
|
274
|
15902 s%@dnd_objs@%$dnd_objs%g
|
157
|
15903 s%@lwlib_objs@%$lwlib_objs%g
|
0
|
15904 s%@ALLOCA@%$ALLOCA%g
|
426
|
15905 s%@have_esd_config@%$have_esd_config%g
|
265
|
15906 s%@dll_ld@%$dll_ld%g
|
|
15907 s%@dll_cflags@%$dll_cflags%g
|
388
|
15908 s%@dll_ldflags@%$dll_ldflags%g
|
|
15909 s%@dll_post@%$dll_post%g
|
|
15910 s%@dll_ldo@%$dll_ldo%g
|
|
15911 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
|
151
|
15912 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
|
167
|
15913 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
|
149
|
15914 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
|
|
15915 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
|
280
|
15916 s%@PROGNAME@%$PROGNAME%g
|
0
|
15917 s%@version@%$version%g
|
|
15918 s%@configuration@%$configuration%g
|
|
15919 s%@canonical@%$canonical%g
|
422
|
15920 s%@inststaticdir@%$inststaticdir%g
|
|
15921 s%@instvardir@%$instvardir%g
|
0
|
15922 s%@srcdir@%$srcdir%g
|
155
|
15923 s%@pkgdir@%$pkgdir%g
|
0
|
15924 s%@statedir@%$statedir%g
|
452
|
15925 s%@extra_includes@%$extra_includes%g
|
420
|
15926 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
|
278
|
15927 s%@PREFIX@%$PREFIX%g
|
420
|
15928 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
|
278
|
15929 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
|
274
|
15930 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
|
|
15931 s%@INFODIR@%$INFODIR%g
|
203
|
15932 s%@infopath@%$infopath%g
|
274
|
15933 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
|
|
15934 s%@INFOPATH@%$INFOPATH%g
|
269
|
15935 s%@package_path@%$package_path%g
|
274
|
15936 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
|
|
15937 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
|
0
|
15938 s%@lispdir@%$lispdir%g
|
274
|
15939 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
|
|
15940 s%@LISPDIR@%$LISPDIR%g
|
388
|
15941 s%@moduledir@%$moduledir%g
|
|
15942 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
|
|
15943 s%@MODULEDIR@%$MODULEDIR%g
|
|
15944 s%@sitelispdir@%$sitelispdir%g
|
|
15945 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
|
|
15946 s%@SITELISPDIR@%$SITELISPDIR%g
|
|
15947 s%@sitemoduledir@%$sitemoduledir%g
|
|
15948 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
|
|
15949 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
|
0
|
15950 s%@etcdir@%$etcdir%g
|
274
|
15951 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
|
|
15952 s%@ETCDIR@%$ETCDIR%g
|
420
|
15953 s%@docdir@%$docdir%g
|
|
15954 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
|
|
15955 s%@DOCDIR@%$DOCDIR%g
|
0
|
15956 s%@archlibdir@%$archlibdir%g
|
274
|
15957 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
|
|
15958 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
|
0
|
15959 s%@bitmapdir@%$bitmapdir%g
|
149
|
15960 s%@extra_objs@%$extra_objs%g
|
0
|
15961 s%@machfile@%$machfile%g
|
|
15962 s%@opsysfile@%$opsysfile%g
|
149
|
15963 s%@c_switch_general@%$c_switch_general%g
|
|
15964 s%@c_switch_window_system@%$c_switch_window_system%g
|
|
15965 s%@c_switch_all@%$c_switch_all%g
|
|
15966 s%@ld_switch_general@%$ld_switch_general%g
|
|
15967 s%@ld_switch_window_system@%$ld_switch_window_system%g
|
|
15968 s%@ld_switch_all@%$ld_switch_all%g
|
|
15969 s%@ld_libs_general@%$ld_libs_general%g
|
|
15970 s%@ld_libs_window_system@%$ld_libs_window_system%g
|
|
15971 s%@ld_libs_all@%$ld_libs_all%g
|
173
|
15972 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
|
149
|
15973 s%@native_sound_lib@%$native_sound_lib%g
|
|
15974 s%@sound_cflags@%$sound_cflags%g
|
0
|
15975 s%@dynodump_arch@%$dynodump_arch%g
|
380
|
15976 s%@XEMACS_CC@%$XEMACS_CC%g
|
0
|
15977 s%@internal_makefile_list@%$internal_makefile_list%g
|
149
|
15978
|
|
15979 CEOF
|
|
15980 EOF
|
|
15981
|
|
15982 cat >> $CONFIG_STATUS <<\EOF
|
|
15983
|
|
15984 # Split the substitutions into bite-sized pieces for seds with
|
|
15985 # small command number limits, like on Digital OSF/1 and HP-UX.
|
|
15986 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
15987 ac_file=1 # Number of current file.
|
|
15988 ac_beg=1 # First line for current file.
|
|
15989 ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
15990 ac_more_lines=:
|
|
15991 ac_sed_cmds=""
|
|
15992 while $ac_more_lines; do
|
|
15993 if test $ac_beg -gt 1; then
|
|
15994 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
15995 else
|
|
15996 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
15997 fi
|
|
15998 if test ! -s conftest.s$ac_file; then
|
|
15999 ac_more_lines=false
|
|
16000 rm -f conftest.s$ac_file
|
|
16001 else
|
|
16002 if test -z "$ac_sed_cmds"; then
|
|
16003 ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
16004 else
|
|
16005 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
16006 fi
|
|
16007 ac_file=`expr $ac_file + 1`
|
|
16008 ac_beg=$ac_end
|
|
16009 ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
16010 fi
|
|
16011 done
|
|
16012 if test -z "$ac_sed_cmds"; then
|
|
16013 ac_sed_cmds=cat
|
|
16014 fi
|
|
16015 EOF
|
|
16016
|
|
16017 cat >> $CONFIG_STATUS <<EOF
|
|
16018
|
272
|
16019 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
|
149
|
16020 EOF
|
|
16021 cat >> $CONFIG_STATUS <<\EOF
|
|
16022 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
16023 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
16024 case "$ac_file" in
|
|
16025 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
16026 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
16027 *) ac_file_in="${ac_file}.in" ;;
|
|
16028 esac
|
|
16029
|
|
16030 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
16031
|
|
16032 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
16033 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
16034 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
16035 # The file is in a subdirectory.
|
|
16036 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
16037 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
16038 # A "../" for each directory in $ac_dir_suffix.
|
|
16039 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
16040 else
|
|
16041 ac_dir_suffix= ac_dots=
|
|
16042 fi
|
|
16043
|
|
16044 case "$ac_given_srcdir" in
|
|
16045 .) srcdir=.
|
|
16046 if test -z "$ac_dots"; then top_srcdir=.
|
|
16047 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
16048 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
16049 *) # Relative path.
|
|
16050 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
16051 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
16052 esac
|
|
16053
|
|
16054 case "$ac_given_INSTALL" in
|
|
16055 [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
16056 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
16057 esac
|
|
16058
|
|
16059 echo creating "$ac_file"
|
|
16060 rm -f "$ac_file"
|
|
16061 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
16062 case "$ac_file" in
|
|
16063 *Makefile*) ac_comsub="1i\\
|
|
16064 # $configure_input" ;;
|
|
16065 *) ac_comsub= ;;
|
|
16066 esac
|
|
16067
|
|
16068 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
16069 sed -e "$ac_comsub
|
|
16070 s%@configure_input@%$configure_input%g
|
|
16071 s%@srcdir@%$srcdir%g
|
0
|
16072 s%@top_srcdir@%$top_srcdir%g
|
149
|
16073 s%@INSTALL@%$INSTALL%g
|
|
16074 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
0
|
16075 fi; done
|
149
|
16076 rm -f conftest.s*
|
|
16077
|
|
16078 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
16079 # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
0
|
16080 #
|
|
16081 # ac_d sets the value in "#define NAME VALUE" lines.
|
149
|
16082 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
16083 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
0
|
16084 ac_dC='\3'
|
149
|
16085 ac_dD='%g'
|
0
|
16086 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
149
|
16087 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
16088 ac_uB='\([ ]\)%\1#\2define\3'
|
0
|
16089 ac_uC=' '
|
149
|
16090 ac_uD='\4%g'
|
0
|
16091 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
149
|
16092 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
16093 ac_eB='$%\1#\2define\3'
|
0
|
16094 ac_eC=' '
|
149
|
16095 ac_eD='%g'
|
|
16096
|
|
16097 if test "${CONFIG_HEADERS+set}" != set; then
|
|
16098 EOF
|
|
16099 cat >> $CONFIG_STATUS <<EOF
|
276
|
16100 CONFIG_HEADERS="src/config.h lwlib/config.h"
|
149
|
16101 EOF
|
|
16102 cat >> $CONFIG_STATUS <<\EOF
|
|
16103 fi
|
|
16104 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
16105 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
16106 case "$ac_file" in
|
|
16107 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
16108 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
16109 *) ac_file_in="${ac_file}.in" ;;
|
|
16110 esac
|
|
16111
|
|
16112 echo creating $ac_file
|
|
16113
|
|
16114 rm -f conftest.frag conftest.in conftest.out
|
|
16115 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
16116 cat $ac_file_inputs > conftest.in
|
|
16117
|
|
16118 EOF
|
|
16119
|
|
16120 # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
16121 # the proper values into config.h.in to produce config.h. And first:
|
|
16122 # Protect against being on the right side of a sed subst in config.status.
|
|
16123 # Protect against being in an unquoted here document in config.status.
|
|
16124 rm -f conftest.vals
|
|
16125 cat > conftest.hdr <<\EOF
|
|
16126 s/[\\&%]/\\&/g
|
|
16127 s%[\\$`]%\\&%g
|
|
16128 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
16129 s%ac_d%ac_u%gp
|
|
16130 s%ac_u%ac_e%gp
|
|
16131 EOF
|
|
16132 sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
16133 rm -f conftest.hdr
|
|
16134
|
|
16135 # This sed command replaces #undef with comments. This is necessary, for
|
|
16136 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
16137 # on some systems where configure will not decide to define it.
|
|
16138 cat >> conftest.vals <<\EOF
|
|
16139 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
16140 EOF
|
|
16141
|
|
16142 # Break up conftest.vals because some shells have a limit on
|
|
16143 # the size of here documents, and old seds have small limits too.
|
|
16144
|
|
16145 rm -f conftest.tail
|
0
|
16146 while :
|
|
16147 do
|
149
|
16148 ac_lines=`grep -c . conftest.vals`
|
|
16149 # grep -c gives empty output for an empty file on some AIX systems.
|
0
|
16150 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
149
|
16151 # Write a limited-size here document to conftest.frag.
|
|
16152 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
16153 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
16154 echo 'CEOF
|
|
16155 sed -f conftest.frag conftest.in > conftest.out
|
|
16156 rm -f conftest.in
|
|
16157 mv conftest.out conftest.in
|
|
16158 ' >> $CONFIG_STATUS
|
|
16159 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
16160 rm -f conftest.vals
|
|
16161 mv conftest.tail conftest.vals
|
0
|
16162 done
|
149
|
16163 rm -f conftest.vals
|
|
16164
|
|
16165 cat >> $CONFIG_STATUS <<\EOF
|
|
16166 rm -f conftest.frag conftest.h
|
0
|
16167 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
149
|
16168 cat conftest.in >> conftest.h
|
|
16169 rm -f conftest.in
|
0
|
16170 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
16171 echo "$ac_file is unchanged"
|
|
16172 rm -f conftest.h
|
|
16173 else
|
149
|
16174 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
16175 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
16176 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
16177 # The file is in a subdirectory.
|
|
16178 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
16179 fi
|
0
|
16180 rm -f $ac_file
|
|
16181 mv conftest.h $ac_file
|
|
16182 fi
|
|
16183 fi; done
|
149
|
16184
|
|
16185 EOF
|
|
16186 cat >> $CONFIG_STATUS <<EOF
|
|
16187 CPP="$CPP"
|
|
16188 top_srcdir="$srcdir"
|
|
16189 MAKE_SUBDIR="$MAKE_SUBDIR"
|
|
16190
|
|
16191 EOF
|
|
16192 cat >> $CONFIG_STATUS <<\EOF
|
380
|
16193 for dir in . $MAKE_SUBDIR; do
|
151
|
16194 (
|
149
|
16195 cd $dir
|
|
16196 rm -f junk.c
|
163
|
16197 < Makefile.in \
|
165
|
16198 sed -e '/^# Generated/d' \
|
163
|
16199 -e 's%/\*\*/#.*%%' \
|
165
|
16200 -e 's/^ *# */#/' \
|
163
|
16201 -e '/^##/d' \
|
|
16202 -e '/^#/ {
|
|
16203 p
|
|
16204 d
|
380
|
16205 }' \
|
|
16206 -e '/./ {
|
163
|
16207 s/\([\"]\)/\\\1/g
|
|
16208 s/^/"/
|
|
16209 s/$/"/
|
|
16210 }' > junk.c;
|
380
|
16211
|
|
16212
|
|
16213
|
|
16214 echo creating $dir/Makefile
|
|
16215 $CPP -I. -I${top_srcdir}/src junk.c \
|
|
16216 | sed -e 's/^\#.*//' \
|
|
16217 -e 's/^[ ][ ]*$//'\
|
|
16218 -e 's/^ / /' \
|
442
|
16219 -e '/^[ ]*$/d' \
|
|
16220 -e '/^\"/ {
|
380
|
16221 s/\\\([\"]\)/\1/g
|
|
16222 s/^[ ]*\"//
|
|
16223 s/\"[ ]*$//
|
|
16224 }' > Makefile.new
|
149
|
16225 chmod 444 Makefile.new
|
|
16226 mv -f Makefile.new Makefile
|
380
|
16227
|
|
16228 echo creating $dir/GNUmakefile
|
|
16229 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
|
|
16230 | sed -e 's/^\#.*//' \
|
|
16231 -e 's/^[ ][ ]*$//'\
|
|
16232 -e 's/^ / /' \
|
442
|
16233 -e '/^[ ]*$/d' \
|
|
16234 -e '/^\"/ {
|
380
|
16235 s/\\\([\"]\)/\1/g
|
|
16236 s/^[ ]*\"//
|
|
16237 s/\"[ ]*$//
|
|
16238 }' > Makefile.new
|
|
16239 chmod 444 Makefile.new
|
|
16240 mv -f Makefile.new GNUmakefile
|
|
16241
|
|
16242 rm -f junk.c
|
|
16243 )
|
149
|
16244 done
|
0
|
16245
|
181
|
16246 sed < config.status >> lib-src/config.values \
|
|
16247 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
|
|
16248 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
|
|
16249 -e 's/^\([^ ]*\) $/\1 ""/' \
|
|
16250 -e 's/ 1$/ t/'
|
175
|
16251
|
|
16252
|
0
|
16253 exit 0
|
|
16254 EOF
|
149
|
16255 chmod +x $CONFIG_STATUS
|
|
16256 rm -fr confdefs* $ac_clean_files
|
|
16257 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|