Mercurial > hg > xemacs-beta
comparison etc/configure-2.13 @ 2651:3580ae2ce979
[xemacs-hg @ 2005-03-11 11:18:44 by malcolmp]
Upgrade from autoconf 2.13 to autoconf 2.59.
author | malcolmp |
---|---|
date | Fri, 11 Mar 2005 11:20:34 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2650:fc554bcc59e7 | 2651:3580ae2ce979 |
---|---|
1 #! /bin/sh | |
2 | |
3 #### Configuration script for XEmacs. Largely divergent from FSF. | |
4 #### Guess values for system-dependent variables and create Makefiles. | |
5 #### Generated automatically using autoconf version 2.13 | |
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. | |
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois. | |
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc. | |
9 #### Copyright (C) 1995, 1996, 2002, 2003, 2004 Ben Wing. | |
10 #### Copyright (C) 2000, 2001 Martin Buchholz. | |
11 #### Copyright (C) 1998, 1999 J. Kean Johnston. | |
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 | |
18 ### in the this directory. You must have autoconf version 2.13 or later. | |
19 ### Note: this script has not yet been ported to autoconf version 2.5x. | |
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 | |
38 ### For usage, run `./configure --help' | |
39 ### For more detailed information on building and installing XEmacs, | |
40 ### read the file `INSTALL'. | |
41 ### | |
42 ### If configure succeeds, it leaves its status in config.status. | |
43 ### A log of configuration tests can be found in config.log. | |
44 ### If configure fails after disturbing the status quo, | |
45 ### config.status is removed. | |
46 | |
47 ac_help="$ac_help | |
48 --with-x use the X Window System" | |
49 | |
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 | |
65 for xe_parse_arg | |
66 do | |
67 case $xe_parse_arg in | |
68 --srcdir) (echo "$progname: Usage error:" | |
69 echo " " "The \`--srcdir' option requires a string value." | |
70 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; | |
71 --srcdir=*) srcdir=`echo $xe_parse_arg | sed -e 's/--srcdir=//'` ;; | |
72 *) ;; | |
73 esac | |
74 done | |
75 | |
76 exec_prefix=NONE | |
77 host=NONE | |
78 no_create= | |
79 nonopt=NONE | |
80 no_recursion= | |
81 prefix=NONE | |
82 program_prefix=NONE | |
83 program_suffix=NONE | |
84 program_transform_name=s,x,x, | |
85 silent= | |
86 site= | |
87 target=NONE | |
88 verbose= | |
89 x_includes=NONE | |
90 x_libraries=NONE | |
91 | |
92 subdirs= | |
93 MFLAGS= | |
94 MAKEFLAGS= | |
95 SHELL=${CONFIG_SHELL-/bin/sh} | |
96 ac_max_here_lines=12 | |
97 | |
98 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
99 | |
100 # File descriptor usage: | |
101 # 0 standard input | |
102 # 1 file creation | |
103 # 2 errors and warnings | |
104 # 3 some systems may open it to /dev/tty | |
105 # 4 used on the Kubota Titan | |
106 # 6 checking for... messages and results | |
107 # 5 compiler messages saved in config.log | |
108 if test "$silent" = yes; then | |
109 exec 6>/dev/null | |
110 else | |
111 exec 6>&1 | |
112 fi | |
113 exec 5>./config.log | |
114 | |
115 echo "\ | |
116 This file contains any messages produced by compilers while | |
117 running configure, to aid debugging if configure makes a mistake. | |
118 " 1>&5 | |
119 | |
120 # Strip out --no-create and --no-recursion so they do not pile up. | |
121 # Also quote any args containing shell metacharacters. | |
122 ac_configure_args= | |
123 for ac_arg | |
124 do | |
125 case "$ac_arg" in | |
126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
127 | --no-cr | --no-c) ;; | |
128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
130 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
131 ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
132 *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
133 esac | |
134 done | |
135 | |
136 # NLS nuisances. | |
137 # Only set these to C if already set. These must not be set unconditionally | |
138 # because not all systems understand e.g. LANG=C (notably SCO). | |
139 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
140 # Non-C LC_CTYPE values break the ctype check. | |
141 if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
142 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
143 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
144 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
145 | |
146 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
147 rm -rf conftest* confdefs.h | |
148 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
149 echo > confdefs.h | |
150 | |
151 # A filename unique to this package, relative to the directory that | |
152 # configure is in, which we can look for to find out if srcdir is correct. | |
153 ac_unique_file=src/lisp.h | |
154 | |
155 # Find the source files, if location was not specified. | |
156 if test -z "$srcdir"; then | |
157 ac_srcdir_defaulted=yes | |
158 # Try the directory containing this script, then its parent. | |
159 ac_prog=$0 | |
160 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
161 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
162 srcdir=$ac_confdir | |
163 if test ! -r $srcdir/$ac_unique_file; then | |
164 srcdir=.. | |
165 fi | |
166 else | |
167 ac_srcdir_defaulted=no | |
168 fi | |
169 if test ! -r $srcdir/$ac_unique_file; then | |
170 if test "$ac_srcdir_defaulted" = yes; then | |
171 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
172 else | |
173 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
174 fi | |
175 fi | |
176 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
177 | |
178 # Prefer explicitly selected file to automatically selected ones. | |
179 if test -z "$CONFIG_SITE"; then | |
180 if test "x$prefix" != xNONE; then | |
181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
182 else | |
183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
184 fi | |
185 fi | |
186 for ac_site_file in $CONFIG_SITE; do | |
187 if test -r "$ac_site_file"; then | |
188 echo "loading site script $ac_site_file" | |
189 . "$ac_site_file" | |
190 fi | |
191 done | |
192 | |
193 | |
194 ac_ext=c | |
195 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' | |
196 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' | |
197 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' | |
198 ac_cpp='$CPP '"$xe_cppflags" | |
199 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' | |
200 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | |
201 cross_compiling=no | |
202 | |
203 ac_exeext= | |
204 ac_objext=o | |
205 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
206 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
207 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
208 ac_n= ac_c=' | |
209 ' ac_t=' ' | |
210 else | |
211 ac_n=-n ac_c= ac_t= | |
212 fi | |
213 else | |
214 ac_n= ac_c='\c' ac_t= | |
215 fi | |
216 | |
217 | |
218 | |
219 progname="`echo $0 | sed 's:^\./\./:\./:'`" | |
220 | |
221 | |
222 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi | |
223 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 | |
224 | |
225 prefix='/usr/local' | |
226 exec_prefix='${prefix}' | |
227 bindir='${exec_prefix}/bin' | |
228 datadir='${prefix}/lib' | |
229 statedir='${prefix}/lib' | |
230 libdir='${exec_prefix}/lib' | |
231 mandir='${prefix}/man/man1' | |
232 inststaticdir='${PROGNAME}' | |
233 instvardir='${PROGNAME}-${version}' | |
234 infodir='${datadir}/${instvardir}/info' | |
235 infopath='' | |
236 install_pp='' | |
237 lispdir='${datadir}/${instvardir}/lisp' | |
238 moduledir='${libdir}/${instvardir}/${configuration}/modules' | |
239 sitelispdir='${datadir}/${inststaticdir}/site-lisp' | |
240 sitemoduledir='${libdir}/${inststaticdir}/site-modules' | |
241 package_path='' | |
242 etcdir='${datadir}/${instvardir}/etc' | |
243 archlibdir='${libdir}/${instvardir}/${configuration}' | |
244 docdir='${archlibdir}' | |
245 with_netinstall="no" | |
246 with_prefix='yes' | |
247 with_site_lisp='no' | |
248 with_site_modules='yes' | |
249 need_modules_common='' | |
250 with_menubars='' | |
251 with_scrollbars='' | |
252 with_widgets='' | |
253 with_dialogs='' | |
254 cpp='' cppflags='' libs='' ldflags='' | |
255 extra_includes='' | |
256 dynamic='' | |
257 with_x11='' | |
258 with_msw='' | |
259 rel_alloc='default' | |
260 with_system_malloc='default' | |
261 with_dlmalloc='default' | |
262 with_native_sound='' | |
263 with_nas_sound='' | |
264 with_esd_sound='no' | |
265 native_sound_lib='' | |
266 with_gtk='no' | |
267 with_gnome='no' | |
268 use_assertions="yes" | |
269 with_toolbars="" | |
270 with_tty="" | |
271 use_union_type="no" | |
272 with_dnet="" | |
273 use_number_lib="no" | |
274 pdump="" | |
275 with_dragndrop_default="no" | |
276 with_ipv6_cname="no" | |
277 | |
278 | |
279 arguments="$@" | |
280 | |
281 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g | |
282 quoted_arguments= | |
283 for i in "$@"; do | |
284 case "$i" in | |
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
286 | --no-cr | --no-c) ;; | |
287 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
288 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
289 *) | |
290 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`" | |
291 quoted_arguments="$quoted_arguments '$quoted_i'" ;; | |
292 esac | |
293 done | |
294 | |
295 while test $# != 0; do | |
296 arg="$1"; shift | |
297 case "$arg" in | |
298 --no-create|--no-recursion) ;; | |
299 --srcdir=*) ;; -* ) | |
300 case "$arg" in | |
301 -*=*) | |
302 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'` | |
303 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'` | |
304 valomitted=no | |
305 ;; | |
306 -*) | |
307 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'` | |
308 val="yes" valomitted=yes | |
309 ;; | |
310 esac | |
311 | |
312 optname="$opt" | |
313 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`" | |
314 | |
315 case "${valomitted}-${opt}" in yes-without_* ) | |
316 opt=`echo $opt | sed 's/without/with/'` | |
317 valomitted="no" val="no" ;; | |
318 esac | |
319 | |
320 case "$opt" in | |
321 | |
322 with_site_lisp | \ | |
323 with_prefix | \ | |
324 with_site_modules | \ | |
325 with_x | \ | |
326 with_x11 | \ | |
327 with_gtk | \ | |
328 with_gnome | \ | |
329 with_msw | \ | |
330 with_gcc | \ | |
331 dynamic | \ | |
332 with_ncurses | \ | |
333 with_dnet | \ | |
334 with_socks | \ | |
335 with_dragndrop | \ | |
336 with_cde | \ | |
337 with_offix | \ | |
338 with_gpm | \ | |
339 with_xpm | \ | |
340 with_xface | \ | |
341 with_gif | \ | |
342 with_jpeg | \ | |
343 with_png | \ | |
344 with_tiff | \ | |
345 with_zlib | \ | |
346 with_wmcommand | \ | |
347 with_xmu | \ | |
348 with_purify | \ | |
349 with_quantify | \ | |
350 with_toolbars | \ | |
351 with_tty | \ | |
352 with_xfs | \ | |
353 with_mule | \ | |
354 with_default_eol_detection | \ | |
355 with_canna | \ | |
356 with_wnn | \ | |
357 with_wnn6 | \ | |
358 with_workshop | \ | |
359 with_sparcworks | \ | |
360 with_tooltalk | \ | |
361 with_ldap | \ | |
362 with_postgresql | \ | |
363 with_pop | \ | |
364 with_kerberos | \ | |
365 with_hesiod | \ | |
366 with_dnet | \ | |
367 with_infodock | \ | |
368 with_netinstall | \ | |
369 with_optimization | \ | |
370 with_ipv6_cname | \ | |
371 external_widget | \ | |
372 use_kkcc | \ | |
373 verbose | \ | |
374 extra_verbose | \ | |
375 usage_tracking | \ | |
376 use_union_type | \ | |
377 pdump | \ | |
378 debug | \ | |
379 use_assertions | \ | |
380 memory_usage_stats | \ | |
381 with_clash_detection | \ | |
382 with_modules | \ | |
383 quick_build ) | |
384 case "$val" in | |
385 y | ye | yes ) val=yes ;; | |
386 n | no ) val=no ;; | |
387 * ) (echo "$progname: Usage error:" | |
388 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'." | |
389 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; | |
390 esac | |
391 eval "$opt=\"$val\"" ;; | |
392 | |
393 | |
394 compiler | \ | |
395 xemacs_compiler | \ | |
396 cflags | \ | |
397 cflags_warning | \ | |
398 cflags_optimization | \ | |
399 cflags_debugging | \ | |
400 cpp | \ | |
401 cppflags | \ | |
402 libs | \ | |
403 ldflags | \ | |
404 cache_file | \ | |
405 native_sound_lib| \ | |
406 site_lisp | \ | |
407 x_includes | \ | |
408 x_libraries | \ | |
409 site_includes | \ | |
410 site_libraries | \ | |
411 site_prefixes | \ | |
412 site_runtime_libraries ) | |
413 if test "$valomitted" = "yes" ; then | |
414 if test "$#" = 0 ; then | |
415 (echo "$progname: Usage error:" | |
416 echo " " "The \`--$optname' option requires a value." | |
417 echo " Use \`$progname --help' to show usage.") >&2 && exit 1; | |
418 fi | |
419 val="$1"; shift | |
420 fi | |
421 eval "$opt=\"$val\"" | |
422 ;; | |
423 | |
424 rel_alloc | \ | |
425 with_dlmalloc | \ | |
426 with_debug_malloc | use_debug_malloc | \ | |
427 with_system_malloc | use_system_malloc ) | |
428 case "$val" in | |
429 y | ye | yes ) val=yes ;; | |
430 n | no ) val=no ;; | |
431 d | de | def | defa | defau | defaul | default ) val=default ;; | |
432 * ) (echo "$progname: Usage error:" | |
433 echo " " "The \`--$optname' option requires one of these values: | |
434 \`yes', \`no', or \`default'." | |
435 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; | |
436 esac | |
437 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac | |
438 eval "$opt=\"$val\"" | |
439 ;; | |
440 | |
441 "with_database" ) | |
442 with_database_berkdb=no | |
443 with_database_dbm=no | |
444 with_database_gdbm=no | |
445 for x in `echo "$val" | sed -e 's/,/ /g'` ; do | |
446 case "$x" in | |
447 no ) ;; | |
448 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; | |
449 d | db | dbm ) with_database_dbm=yes ;; | |
450 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;; | |
451 * ) (echo "$progname: Usage error:" | |
452 echo " " "The \`--$optname' option value | |
453 must be either \`no' or a comma-separated list | |
454 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'." | |
455 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; | |
456 esac | |
457 done | |
458 if test "$with_database_dbm" = "yes" -a \ | |
459 "$with_database_gdbm" = "yes"; then | |
460 (echo "$progname: Usage error:" | |
461 echo " " "Only one of \`dbm' and \`gnudbm' may be specified | |
462 with the \`--$optname' option." | |
463 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | |
464 fi | |
465 ;; | |
466 | |
467 "with_sound" ) | |
468 for x in `echo "$val" | sed -e 's/,/ /g'` ; do | |
469 case "$x" in | |
470 n | no | non | none ) new_sdefault=no ;; | |
471 a | al | all | both ) new_sdefault=yes ;; | |
472 | |
473 native ) with_native_sound=yes ;; | |
474 nonative ) with_native_sound=no ;; | |
475 | |
476 nas ) with_nas_sound=yes ;; | |
477 nonas ) with_nas_sound=no ;; | |
478 | |
479 esd ) with_esd_sound=yes ;; | |
480 noesd ) with_esd_sound=no ;; | |
481 | |
482 * ) bogus_sound=yes ;; | |
483 esac | |
484 if test "$bogus_sound" -o \ | |
485 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then | |
486 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'." | |
487 (echo "$progname: Usage error:" | |
488 echo " " "Valid types for the \`--$optname' option are: | |
489 $types. | |
490 Option \`all' or \`none' must be first in the list. | |
491 The default is to autodetect native and NAS sound support." | |
492 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | |
493 elif test -n "$new_sdefault" ; then | |
494 with_native_sound=$new_sdefault | |
495 with_nas_sound=$new_sdefault | |
496 with_esd_sound=$new_sdefault | |
497 new_sdefault= # reset this | |
498 fi | |
499 sound_notfirst=true | |
500 done | |
501 ;; | |
502 | |
503 "with_athena" ) | |
504 case "$val" in | |
505 xa | xaw ) val=xaw ;; | |
506 3 | 3d | xaw3d ) val=3d ;; | |
507 ne | nex | next | naxtaw) val=next ;; | |
508 9 | 95 | xaw95 ) val=95 ;; | |
509 xp | xpm | xawxpm ) val=xpm ;; | |
510 * ) (echo "$progname: Usage error:" | |
511 echo " " "The \`--$optname' option must have one of these values: | |
512 \`xaw', \`3d', \`next', \`95', or \`xpm'." | |
513 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; | |
514 esac | |
515 eval "$opt=\"$val\"" | |
516 ;; | |
517 | |
518 "with_xim" ) | |
519 case "$val" in | |
520 y | ye | yes ) val=yes ;; | |
521 n | no | non | none ) val=no ;; | |
522 x | xl | xli | xlib ) val=xlib ;; | |
523 m | mo | mot | moti | motif ) val=motif ;; | |
524 * ) (echo "$progname: Usage error:" | |
525 echo " " "The \`--$optname' option must have one of these values: | |
526 \`motif', \`xlib', \`yes', or \`no'." | |
527 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; | |
528 esac | |
529 eval "$opt=\"$val\"" | |
530 ;; | |
531 | |
532 "mail_locking" ) | |
533 case "$val" in | |
534 lockf ) val=lockf ;; | |
535 flock ) val=flock ;; | |
536 file | dot ) val=file ;; | |
537 locking ) val=locking ;; | |
538 mmdf ) val=mmdf ;; | |
539 pop ) val=pop ;; | |
540 * ) (echo "$progname: Usage error:" | |
541 echo " " "The \`--$optname' option must have one of these values: | |
542 \`lockf', \`flock', \`file', \`dot', \`locking', \`mmdf', or \`pop'." | |
543 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; | |
544 esac | |
545 eval "$opt=\"$val\"" | |
546 ;; | |
547 | |
548 "use_number_lib" ) | |
549 case "$val" in | |
550 gmp ) val=gmp ;; | |
551 mp ) val=mp ;; | |
552 no|non|none ) val=no ;; | |
553 * ) (echo "$progname: Usage error:" | |
554 echo " " "The \`--$optname' option must have one of these values: | |
555 \`gmp', \`mp', or \`no'." | |
556 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; | |
557 esac | |
558 eval "$opt=\"$val\"" | |
559 ;; | |
560 | |
561 "error_checking" ) | |
562 | |
563 for x in `echo "$val" | sed -e 's/,/ /g'` ; do | |
564 case "$x" in | |
565 n | no | non | none ) new_default=no ;; | |
566 a | al | all ) new_default=yes ;; | |
567 | |
568 extents ) error_check_extents=yes ;; | |
569 noextents ) error_check_extents=no ;; | |
570 | |
571 types ) error_check_types=yes ;; | |
572 notypes ) error_check_types=no ;; | |
573 | |
574 text ) error_check_text=yes ;; | |
575 notext ) error_check_text=no ;; | |
576 | |
577 gc ) error_check_gc=yes ;; | |
578 nogc ) error_check_gc=no ;; | |
579 | |
580 malloc ) error_check_malloc=yes ;; | |
581 nomalloc ) error_check_malloc=no ;; | |
582 | |
583 byte_code ) error_check_byte_code=yes ;; | |
584 nobyte_code ) error_check_byte_code=no ;; | |
585 | |
586 glyphs ) error_check_glyphs=yes ;; | |
587 noglyphs ) error_check_glyphs=no ;; | |
588 | |
589 display ) error_check_display=yes ;; | |
590 nodisplay ) error_check_display=no ;; | |
591 | |
592 structures ) error_check_structures=yes ;; | |
593 nostructures ) error_check_structures=no ;; | |
594 | |
595 * ) bogus_error_check=yes ;; | |
596 esac | |
597 if test "$bogus_error_check" -o \ | |
598 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then | |
599 if test "$error_check_default" = yes ; then | |
600 types="\`all' (default), \`none', \`noextents', \`notypes', \`notext', \`nogc', \`nomalloc', \`noglyphs', \`nobyte-code', \`nodisplay', \`nostructures'." | |
601 else | |
602 types="\`all', \`none' (default), \`extents', \`types', \`text', \`gc', \`malloc', \`glyphs', \`byte-code', \`display', \`structures'." | |
603 fi | |
604 (echo "$progname: Usage error:" | |
605 echo " " "Valid types for the \`--$optname' option are: | |
606 $types." | |
607 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | |
608 elif test -n "$new_default" ; then | |
609 error_check_extents=$new_default | |
610 error_check_types=$new_default | |
611 error_check_text=$new_default | |
612 error_check_gc=$new_default | |
613 error_check_malloc=$new_default | |
614 error_check_byte_code=$new_default | |
615 error_check_glyphs=$new_default | |
616 error_check_display=$new_default | |
617 error_check_structures=$new_default | |
618 new_default= # reset this | |
619 fi | |
620 echeck_notfirst=true | |
621 done | |
622 ;; | |
623 | |
624 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ | |
625 mandir | infodir | infopath | lispdir | etcdir | \ | |
626 archlibdir | docdir | package_path | package_prefix | moduledir ) | |
627 if test "$valomitted" = "yes"; then | |
628 if test "$#" = 0; then | |
629 (echo "$progname: Usage error:" | |
630 echo " " "The \`--$optname' option requires a value." | |
631 echo " Use \`$progname --help' to show usage.") >&2 && exit 1; | |
632 fi | |
633 val="$1"; shift | |
634 fi | |
635 eval "$opt=\"$val\"" | |
636 | |
637 case "$opt" in | |
638 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF | |
639 Defining EXEC_PREFIX_USER_DEFINED | |
640 EOF | |
641 cat >> confdefs.h <<\EOF | |
642 #define EXEC_PREFIX_USER_DEFINED 1 | |
643 EOF | |
644 } | |
645 ;; | |
646 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF | |
647 Defining LISPDIR_USER_DEFINED | |
648 EOF | |
649 cat >> confdefs.h <<\EOF | |
650 #define LISPDIR_USER_DEFINED 1 | |
651 EOF | |
652 } | |
653 ;; | |
654 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF | |
655 Defining SITELISPDIR_USER_DEFINED | |
656 EOF | |
657 cat >> confdefs.h <<\EOF | |
658 #define SITELISPDIR_USER_DEFINED 1 | |
659 EOF | |
660 } | |
661 ;; | |
662 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF | |
663 Defining MODULEDIR_USER_DEFINED | |
664 EOF | |
665 cat >> confdefs.h <<\EOF | |
666 #define MODULEDIR_USER_DEFINED 1 | |
667 EOF | |
668 } | |
669 ;; | |
670 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF | |
671 Defining ETCDIR_USER_DEFINED | |
672 EOF | |
673 cat >> confdefs.h <<\EOF | |
674 #define ETCDIR_USER_DEFINED 1 | |
675 EOF | |
676 } | |
677 ;; | |
678 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF | |
679 Defining INFODIR_USER_DEFINED | |
680 EOF | |
681 cat >> confdefs.h <<\EOF | |
682 #define INFODIR_USER_DEFINED 1 | |
683 EOF | |
684 } | |
685 ;; | |
686 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF | |
687 Defining INFOPATH_USER_DEFINED | |
688 EOF | |
689 cat >> confdefs.h <<\EOF | |
690 #define INFOPATH_USER_DEFINED 1 | |
691 EOF | |
692 } | |
693 ;; | |
694 package_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF | |
695 Defining PACKAGE_PATH_USER_DEFINED | |
696 EOF | |
697 cat >> confdefs.h <<\EOF | |
698 #define PACKAGE_PATH_USER_DEFINED 1 | |
699 EOF | |
700 } | |
701 ;; | |
702 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF | |
703 Defining PACKAGE_PATH_USER_DEFINED | |
704 EOF | |
705 cat >> confdefs.h <<\EOF | |
706 #define PACKAGE_PATH_USER_DEFINED 1 | |
707 EOF | |
708 } | |
709 ;; | |
710 datadir ) | |
711 { test "$extra_verbose" = "yes" && cat << \EOF | |
712 Defining INFODIR_USER_DEFINED | |
713 EOF | |
714 cat >> confdefs.h <<\EOF | |
715 #define INFODIR_USER_DEFINED 1 | |
716 EOF | |
717 } | |
718 | |
719 { test "$extra_verbose" = "yes" && cat << \EOF | |
720 Defining LISPDIR_USER_DEFINED | |
721 EOF | |
722 cat >> confdefs.h <<\EOF | |
723 #define LISPDIR_USER_DEFINED 1 | |
724 EOF | |
725 } | |
726 | |
727 { test "$extra_verbose" = "yes" && cat << \EOF | |
728 Defining MODULEDIR_USER_DEFINED | |
729 EOF | |
730 cat >> confdefs.h <<\EOF | |
731 #define MODULEDIR_USER_DEFINED 1 | |
732 EOF | |
733 } | |
734 | |
735 { test "$extra_verbose" = "yes" && cat << \EOF | |
736 Defining ETCDIR_USER_DEFINED | |
737 EOF | |
738 cat >> confdefs.h <<\EOF | |
739 #define ETCDIR_USER_DEFINED 1 | |
740 EOF | |
741 } | |
742 | |
743 { test "$extra_verbose" = "yes" && cat << \EOF | |
744 Defining DOCDIR_USER_DEFINED | |
745 EOF | |
746 cat >> confdefs.h <<\EOF | |
747 #define DOCDIR_USER_DEFINED 1 | |
748 EOF | |
749 } | |
750 | |
751 { test "$extra_verbose" = "yes" && cat << \EOF | |
752 Defining ARCHLIBDIR_USER_DEFINED | |
753 EOF | |
754 cat >> confdefs.h <<\EOF | |
755 #define ARCHLIBDIR_USER_DEFINED 1 | |
756 EOF | |
757 } | |
758 ;; | |
759 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF | |
760 Defining DOCDIR_USER_DEFINED | |
761 EOF | |
762 cat >> confdefs.h <<\EOF | |
763 #define DOCDIR_USER_DEFINED 1 | |
764 EOF | |
765 } | |
766 ;; | |
767 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF | |
768 Defining ARCHLIBDIR_USER_DEFINED | |
769 EOF | |
770 cat >> confdefs.h <<\EOF | |
771 #define ARCHLIBDIR_USER_DEFINED 1 | |
772 EOF | |
773 } | |
774 ;; | |
775 esac | |
776 ;; | |
777 | |
778 "no_create" ) ;; | |
779 | |
780 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;; | |
781 | |
782 "with_menubars" | \ | |
783 "with_scrollbars" | \ | |
784 "with_dialogs" | \ | |
785 "with_widgets" ) | |
786 case "$val" in | |
787 l | lu | luc | luci | lucid ) val=lucid ;; | |
788 mo | mot | moti | motif ) val=motif ;; | |
789 a | at | ath | athe | athen | athena ) val=athena ;; | |
790 n | no | non | none ) val=no ;; | |
791 y | ye | yes ) val=yes ;; | |
792 "") val=yes ;; | |
793 g | gt | gtk ) val=gtk ;; | |
794 ms | msw ) val=msw ;; | |
795 * ) (echo "$progname: Usage error:" | |
796 echo " " "The \`--$optname' option must have one of these values: | |
797 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'." | |
798 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; | |
799 esac | |
800 eval "$opt=\"$val\"" | |
801 ;; | |
802 | |
803 "use_minimal_tagbits" | \ | |
804 "use_indexed_lrecord_implementation" | \ | |
805 "run_in_place" | \ | |
806 "const_is_losing" | \ | |
807 "with_gnu_make" ) | |
808 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2 | |
809 ;; | |
810 | |
811 * ) (echo "$progname: Usage error:" | |
812 echo " " "Unrecognized option: $arg" | |
813 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; | |
814 | |
815 esac | |
816 ;; | |
817 | |
818 *-*-*) configuration="$arg" ;; | |
819 | |
820 *) (echo "$progname: Usage error:" | |
821 echo " " "Unrecognized argument: $arg" | |
822 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; | |
823 | |
824 esac | |
825 done | |
826 | |
827 | |
828 test -n "$cpp" && CPP="$cpp" | |
829 test -n "$cppflags" && CPPFLAGS="$cppflags" | |
830 test -n "$libs" && LIBS="$libs" | |
831 test -n "$ldflags" && LDFLAGS="$ldflags" | |
832 | |
833 eval set x "$quoted_arguments"; shift | |
834 | |
835 test "$extra_verbose" = "yes" && verbose=yes | |
836 | |
837 test -n "$with_x" && with_x11="$with_x" | |
838 | |
839 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then | |
840 test "$with_system_malloc" = "default" && with_system_malloc=yes | |
841 fi | |
842 | |
843 | |
844 | |
845 if test "$with_cde $with_tooltalk" = "yes no"; then | |
846 (echo "$progname: Usage error:" | |
847 echo " " "--with-cde requires --with-tooltalk" | |
848 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | |
849 elif test "$with_tooltalk" = "no" ; then with_cde=no | |
850 elif test "$with_cde" = "yes"; then with_tooltalk=yes | |
851 fi | |
852 | |
853 | |
854 if test -z "$configuration"; then | |
855 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess` | |
856 if test -z "$configuration"; then | |
857 (echo "$progname: Usage error:" | |
858 echo " " "XEmacs has not been ported to this host type. | |
859 Try explicitly specifying the CONFIGURATION when rerunning configure." | |
860 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | |
861 fi | |
862 fi | |
863 | |
864 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
865 echo "configure:866: checking whether ln -s works" >&5 | |
866 | |
867 rm -f conftestdata | |
868 if ln -s X conftestdata 2>/dev/null | |
869 then | |
870 rm -f conftestdata | |
871 ac_cv_prog_LN_S="ln -s" | |
872 else | |
873 ac_cv_prog_LN_S=ln | |
874 fi | |
875 LN_S="$ac_cv_prog_LN_S" | |
876 if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
877 echo "$ac_t""yes" 1>&6 | |
878 else | |
879 echo "$ac_t""no" 1>&6 | |
880 fi | |
881 | |
882 | |
883 for dir in lisp etc man info tests; do | |
884 if test ! -d "$dir" ; then | |
885 echo Making symbolic link to "$srcdir/$dir" | |
886 ${LN_S} "$srcdir/$dir" "$dir" | |
887 fi | |
888 done | |
889 | |
890 | |
891 absolute_pwd="`pwd`"; | |
892 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd" | |
893 then blddir="$PWD" | |
894 else blddir="$absolute_pwd"; if test -d "/net"; then | |
895 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi | |
896 blddir=`echo "$blddir" | \ | |
897 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"` | |
898 fi | |
899 fi | |
900 | |
901 | |
902 case "$srcdir" in | |
903 /* ) ;; | |
904 . ) srcdir="$blddir" ;; | |
905 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then | |
906 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi | |
907 srcdir=`echo "$srcdir" | \ | |
908 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"` | |
909 fi ;; | |
910 esac | |
911 | |
912 if test `pwd` != `sh -c cd $srcdir && pwd` \ | |
913 && test -f "$srcdir/src/config.h"; then | |
914 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used" | |
915 echo " as a build directory right now; it has been configured in its own" | |
916 echo " right. To configure in another directory as well, you MUST" | |
917 echo " use GNU make. If you do not have GNU make, then you must" | |
918 echo " now do \`make distclean' in $srcdir," | |
919 echo " and then run $progname again.") >&2 | |
920 extrasub='/^VPATH[ ]*=/c\ | |
921 vpath %.c $(srcdir)\ | |
922 vpath %.h $(srcdir)\ | |
923 vpath %.y $(srcdir)\ | |
924 vpath %.l $(srcdir)\ | |
925 vpath %.s $(srcdir)\ | |
926 vpath %.in $(srcdir)' | |
927 fi | |
928 | |
929 . "$srcdir/version.sh" || exit 1; | |
930 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi | |
931 : "${extra_verbose=$beta}" | |
932 version="${emacs_major_version}.${emacs_minor_version}" | |
933 { test "$extra_verbose" = "yes" && cat << EOF | |
934 Defining EMACS_MAJOR_VERSION = $emacs_major_version | |
935 EOF | |
936 cat >> confdefs.h <<EOF | |
937 #define EMACS_MAJOR_VERSION $emacs_major_version | |
938 EOF | |
939 } | |
940 | |
941 { test "$extra_verbose" = "yes" && cat << EOF | |
942 Defining EMACS_MINOR_VERSION = $emacs_minor_version | |
943 EOF | |
944 cat >> confdefs.h <<EOF | |
945 #define EMACS_MINOR_VERSION $emacs_minor_version | |
946 EOF | |
947 } | |
948 | |
949 if test -n "$emacs_beta_version" ; then | |
950 if test "$beta" = "yes"; then | |
951 version="${version}-b${emacs_beta_version}" | |
952 { test "$extra_verbose" = "yes" && cat << EOF | |
953 Defining EMACS_BETA_VERSION = $emacs_beta_version | |
954 EOF | |
955 cat >> confdefs.h <<EOF | |
956 #define EMACS_BETA_VERSION $emacs_beta_version | |
957 EOF | |
958 } | |
959 | |
960 else | |
961 version="${version}.${emacs_beta_version}" | |
962 { test "$extra_verbose" = "yes" && cat << EOF | |
963 Defining EMACS_PATCH_LEVEL = $emacs_beta_version | |
964 EOF | |
965 cat >> confdefs.h <<EOF | |
966 #define EMACS_PATCH_LEVEL $emacs_beta_version | |
967 EOF | |
968 } | |
969 | |
970 fi | |
971 fi | |
972 { test "$extra_verbose" = "yes" && cat << EOF | |
973 Defining XEMACS_CODENAME = "$xemacs_codename" | |
974 EOF | |
975 cat >> confdefs.h <<EOF | |
976 #define XEMACS_CODENAME "$xemacs_codename" | |
977 EOF | |
978 } | |
979 | |
980 if test "$xemacs_extra_name" != ""; then | |
981 { test "$extra_verbose" = "yes" && cat << EOF | |
982 Defining XEMACS_EXTRA_NAME = "$xemacs_extra_name" | |
983 EOF | |
984 cat >> confdefs.h <<EOF | |
985 #define XEMACS_EXTRA_NAME "$xemacs_extra_name" | |
986 EOF | |
987 } | |
988 | |
989 fi | |
990 if test "$xemacs_release_date" != ""; then | |
991 { test "$extra_verbose" = "yes" && cat << EOF | |
992 Defining XEMACS_RELEASE_DATE = "$xemacs_release_date" | |
993 EOF | |
994 cat >> confdefs.h <<EOF | |
995 #define XEMACS_RELEASE_DATE "$xemacs_release_date" | |
996 EOF | |
997 } | |
998 | |
999 fi | |
1000 { test "$extra_verbose" = "yes" && cat << EOF | |
1001 Defining EMACS_VERSION = "$version" | |
1002 EOF | |
1003 cat >> confdefs.h <<EOF | |
1004 #define EMACS_VERSION "$version" | |
1005 EOF | |
1006 } | |
1007 | |
1008 | |
1009 if test "$with_infodock" = "yes"; then | |
1010 if test ! -f ../../ID-INSTALL; then | |
1011 echo "Cannot build InfoDock without InfoDock sources" | |
1012 with_infodock=no | |
1013 fi | |
1014 fi | |
1015 | |
1016 if test "$with_infodock" = "yes"; then | |
1017 { test "$extra_verbose" = "yes" && cat << EOF | |
1018 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version | |
1019 EOF | |
1020 cat >> confdefs.h <<EOF | |
1021 #define INFODOCK_MAJOR_VERSION $infodock_major_version | |
1022 EOF | |
1023 } | |
1024 | |
1025 { test "$extra_verbose" = "yes" && cat << EOF | |
1026 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version | |
1027 EOF | |
1028 cat >> confdefs.h <<EOF | |
1029 #define INFODOCK_MINOR_VERSION $infodock_minor_version | |
1030 EOF | |
1031 } | |
1032 | |
1033 { test "$extra_verbose" = "yes" && cat << EOF | |
1034 Defining INFODOCK_BUILD_VERSION = $infodock_build_version | |
1035 EOF | |
1036 cat >> confdefs.h <<EOF | |
1037 #define INFODOCK_BUILD_VERSION $infodock_build_version | |
1038 EOF | |
1039 } | |
1040 | |
1041 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version} | |
1042 PROGNAME=infodock | |
1043 CPPFLAGS="$CPPFLAGS -DINFODOCK" | |
1044 else | |
1045 PROGNAME=xemacs | |
1046 fi | |
1047 | |
1048 { test "$extra_verbose" = "yes" && cat << EOF | |
1049 Defining EMACS_PROGNAME = "$PROGNAME" | |
1050 EOF | |
1051 cat >> confdefs.h <<EOF | |
1052 #define EMACS_PROGNAME "$PROGNAME" | |
1053 EOF | |
1054 } | |
1055 | |
1056 | |
1057 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi | |
1058 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF | |
1059 Defining ERROR_CHECK_EXTENTS | |
1060 EOF | |
1061 cat >> confdefs.h <<\EOF | |
1062 #define ERROR_CHECK_EXTENTS 1 | |
1063 EOF | |
1064 } | |
1065 | |
1066 test "${error_check_types=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF | |
1067 Defining ERROR_CHECK_TYPES | |
1068 EOF | |
1069 cat >> confdefs.h <<\EOF | |
1070 #define ERROR_CHECK_TYPES 1 | |
1071 EOF | |
1072 } | |
1073 | |
1074 test "${error_check_text=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF | |
1075 Defining ERROR_CHECK_TEXT | |
1076 EOF | |
1077 cat >> confdefs.h <<\EOF | |
1078 #define ERROR_CHECK_TEXT 1 | |
1079 EOF | |
1080 } | |
1081 | |
1082 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF | |
1083 Defining ERROR_CHECK_GC | |
1084 EOF | |
1085 cat >> confdefs.h <<\EOF | |
1086 #define ERROR_CHECK_GC 1 | |
1087 EOF | |
1088 } | |
1089 | |
1090 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF | |
1091 Defining ERROR_CHECK_MALLOC | |
1092 EOF | |
1093 cat >> confdefs.h <<\EOF | |
1094 #define ERROR_CHECK_MALLOC 1 | |
1095 EOF | |
1096 } | |
1097 | |
1098 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF | |
1099 Defining ERROR_CHECK_BYTE_CODE | |
1100 EOF | |
1101 cat >> confdefs.h <<\EOF | |
1102 #define ERROR_CHECK_BYTE_CODE 1 | |
1103 EOF | |
1104 } | |
1105 | |
1106 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF | |
1107 Defining ERROR_CHECK_GLYPHS | |
1108 EOF | |
1109 cat >> confdefs.h <<\EOF | |
1110 #define ERROR_CHECK_GLYPHS 1 | |
1111 EOF | |
1112 } | |
1113 | |
1114 test "${error_check_display=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF | |
1115 Defining ERROR_CHECK_DISPLAY | |
1116 EOF | |
1117 cat >> confdefs.h <<\EOF | |
1118 #define ERROR_CHECK_DISPLAY 1 | |
1119 EOF | |
1120 } | |
1121 | |
1122 test "${error_check_structures=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF | |
1123 Defining ERROR_CHECK_STRUCTURES | |
1124 EOF | |
1125 cat >> confdefs.h <<\EOF | |
1126 #define ERROR_CHECK_STRUCTURES 1 | |
1127 EOF | |
1128 } | |
1129 | |
1130 if test "${debug:=$beta}" = "yes"; then | |
1131 use_assertions=yes | |
1132 memory_usage_stats=yes | |
1133 { test "$extra_verbose" = "yes" && cat << \EOF | |
1134 Defining DEBUG_XEMACS | |
1135 EOF | |
1136 cat >> confdefs.h <<\EOF | |
1137 #define DEBUG_XEMACS 1 | |
1138 EOF | |
1139 } | |
1140 | |
1141 fi | |
1142 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
1143 Defining USE_ASSERTIONS | |
1144 EOF | |
1145 cat >> confdefs.h <<\EOF | |
1146 #define USE_ASSERTIONS 1 | |
1147 EOF | |
1148 } | |
1149 | |
1150 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
1151 Defining MEMORY_USAGE_STATS | |
1152 EOF | |
1153 cat >> confdefs.h <<\EOF | |
1154 #define MEMORY_USAGE_STATS 1 | |
1155 EOF | |
1156 } | |
1157 | |
1158 | |
1159 | |
1160 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 | |
1161 echo "configure:1162: checking "host system type"" >&5 | |
1162 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` | |
1163 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` | |
1164 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` | |
1165 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` | |
1166 echo "$ac_t""$configuration" 1>&6 | |
1167 | |
1168 | |
1169 | |
1170 | |
1171 | |
1172 machine='' opsys='' | |
1173 | |
1174 case "$canonical" in | |
1175 sparc-*-* ) machine=sparc ;; | |
1176 alpha*-*-* ) machine=alpha ;; | |
1177 vax-*-* ) machine=vax ;; | |
1178 mips-dec-* ) machine=pmax ;; | |
1179 mips-sgi-irix6* ) machine=iris6d ;; | |
1180 mips-sgi-* ) machine=iris4d ;; | |
1181 mips*-linux ) machine=mips ;; | |
1182 romp-ibm-* ) machine=ibmrt ;; | |
1183 rs6000-ibm-aix* ) machine=ibmrs6000 ;; | |
1184 powerpc-ibm-aix* ) machine=ibmrs6000 ;; | |
1185 powerpc*-* ) machine=powerpc ;; | |
1186 hppa-*-* ) machine=hp800 ;; | |
1187 m88k-dg-* ) machine=aviion ;; | |
1188 m68*-sony-* ) machine=news ;; | |
1189 mips-sony-* ) machine=news-risc ;; | |
1190 clipper-* ) machine=clipper ;; | |
1191 arm* ) machine=arm ;; | |
1192 ns32k-* ) machine=ns32000 ;; | |
1193 esac | |
1194 | |
1195 case "$canonical" in | |
1196 *-*-linux* ) opsys=linux ;; | |
1197 *-*-netbsd* ) opsys=netbsd ;; | |
1198 *-*-openbsd* ) opsys=openbsd ;; | |
1199 *-*-nextstep* ) opsys=nextstep ;; | |
1200 *-*-vms ) opsys=vms ;; | |
1201 | |
1202 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;; | |
1203 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;; | |
1204 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;; | |
1205 *-dec-osf3* ) opsys=decosf3-1 ;; | |
1206 *-dec-osf[4-9]* ) opsys=decosf4-0 ;; | |
1207 | |
1208 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;; | |
1209 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;; | |
1210 *-*-ultrix* ) opsys=ultrix4-3 ;; | |
1211 | |
1212 *-*-aix3.1* ) opsys=aix3-1 ;; | |
1213 *-*-aix3.2.5 ) opsys=aix3-2-5 ;; | |
1214 *-*-aix3* ) opsys=aix3-2 ;; | |
1215 *-*-aix4.0* ) opsys=aix4 ;; | |
1216 *-*-aix4.1* ) opsys=aix4-1 ;; | |
1217 *-*-aix[4-9]* ) opsys=aix4-2 ;; | |
1218 | |
1219 *-gnu* ) opsys=gnu ;; | |
1220 *-*-bsd4.[01] ) opsys=bsd4-1 ;; | |
1221 *-*-bsd4.2 ) opsys=bsd4-2 ;; | |
1222 *-*-bsd4.3 ) opsys=bsd4-3 ;; | |
1223 *-*-aos4.2 ) opsys=bsd4-2 ;; | |
1224 *-*-aos* ) opsys=bsd4-3 ;; | |
1225 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;; | |
1226 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;; | |
1227 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;; | |
1228 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;; | |
1229 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;; | |
1230 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
1231 if test -z "$NON_GNU_CPP" ; then | |
1232 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do | |
1233 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi | |
1234 done | |
1235 fi | |
1236 opsys=usg5-4-2 ;; | |
1237 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
1238 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;; | |
1239 esac | |
1240 | |
1241 case "$canonical" in | |
1242 | |
1243 *-*-netbsd* ) | |
1244 case "$canonical" in | |
1245 i[3-9]86-*-netbsd*) machine=intel386 ;; | |
1246 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* ) | |
1247 machine=hp9000s300 ;; | |
1248 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;; | |
1249 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;; | |
1250 esac | |
1251 ;; | |
1252 | |
1253 *-*-openbsd* ) | |
1254 case "${canonical}" in | |
1255 i386-*-openbsd*) machine=intel386 ;; | |
1256 m68k-*-openbsd*) machine=hp9000s300 ;; | |
1257 mipsel-*-openbsd*) machine=pmax ;; | |
1258 esac | |
1259 ;; | |
1260 | |
1261 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;; | |
1262 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;; | |
1263 | |
1264 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;; | |
1265 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;; | |
1266 | |
1267 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;; | |
1268 | |
1269 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;; | |
1270 | |
1271 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;; | |
1272 | |
1273 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;; | |
1274 | |
1275 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;; | |
1276 | |
1277 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20 | |
1278 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2 | |
1279 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7 | |
1280 | |
1281 | |
1282 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;; | |
1283 | |
1284 *-convex-bsd* | *-convex-convexos* ) | |
1285 machine=convex opsys=bsd4-3 | |
1286 NON_GNU_CPP="cc -E -P" | |
1287 ;; | |
1288 | |
1289 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;; | |
1290 | |
1291 *-*-darwin*) | |
1292 opsys=darwin | |
1293 ;; | |
1294 | |
1295 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;; | |
1296 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;; | |
1297 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;; | |
1298 m88k-dg-dgux* ) opsys=dgux ;; | |
1299 | |
1300 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;; | |
1301 m88k-motorola-sysv4* ) | |
1302 machine=delta88k opsys=usg5-4-2 | |
1303 ;; | |
1304 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;; | |
1305 | |
1306 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;; | |
1307 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;; | |
1308 | |
1309 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;; | |
1310 | |
1311 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;; | |
1312 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;; | |
1313 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;; | |
1314 | |
1315 m88k-harris-cxux* ) | |
1316 case "`uname -r`" in | |
1317 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1318 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1319 esac | |
1320 NON_GNU_CPP="/lib/cpp" | |
1321 ;; | |
1322 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;; | |
1323 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;; | |
1324 | |
1325 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;; | |
1326 | |
1327 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;; | |
1328 | |
1329 *-hp-hpux* ) | |
1330 case "$canonical" in | |
1331 m68* ) machine=hp9000s300 ;; | |
1332 hppa* ) machine=hp800 ;; | |
1333 esac | |
1334 | |
1335 case "$canonical" in | |
1336 *-hp-hpux7* ) opsys=hpux ;; | |
1337 *-hp-hpux8* ) opsys=hpux8 ;; | |
1338 *-hp-hpux9* ) opsys=hpux9 ;; | |
1339 *-hp-hpux10* ) opsys=hpux10 ;; | |
1340 *-hp-hpux11* ) opsys=hpux11 ;; | |
1341 * ) opsys=hpux ;; | |
1342 esac | |
1343 | |
1344 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then | |
1345 echo " xemacs will be linked with \"strcat.o\"" | |
1346 fi ;; esac | |
1347 | |
1348 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \ | |
1349 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi | |
1350 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E" | |
1351 | |
1352 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac | |
1353 ;; | |
1354 | |
1355 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;; | |
1356 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;; | |
1357 | |
1358 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;; | |
1359 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;; | |
1360 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;; | |
1361 romp-ibm-aos* ) opsys=bsd4-3 ;; | |
1362 romp-ibm-bsd* ) opsys=bsd4-3 ;; | |
1363 romp-ibm-mach* ) opsys=mach-bsd4-3 ;; | |
1364 | |
1365 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;; | |
1366 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;; | |
1367 | |
1368 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;; | |
1369 | |
1370 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;; | |
1371 | |
1372 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;; | |
1373 | |
1374 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;; | |
1375 | |
1376 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;; | |
1377 | |
1378 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;; | |
1379 | |
1380 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;; | |
1381 | |
1382 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;; | |
1383 | |
1384 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;; | |
1385 | |
1386 mips-mips-usg* ) machine=mips4 ;; | |
1387 mips-mips-riscos4 ) | |
1388 machine=mips4 | |
1389 NON_GNU_CC="cc -systype bsd43" | |
1390 NON_GNU_CPP="cc -systype bsd43 -E" | |
1391 case "$canonical" in | |
1392 mips-mips-riscos4* ) opsys=bsd4-3 ;; | |
1393 mips-mips-riscos5* ) opsys=riscos5 ;; | |
1394 esac | |
1395 ;; | |
1396 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;; | |
1397 mips-mips-* ) machine=mips opsys=usg5-2-2 ;; | |
1398 | |
1399 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;; | |
1400 | |
1401 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;; | |
1402 | |
1403 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;; | |
1404 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;; | |
1405 | |
1406 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;; | |
1407 | |
1408 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;; | |
1409 | |
1410 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;; | |
1411 | |
1412 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;; | |
1413 | |
1414 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;; | |
1415 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;; | |
1416 | |
1417 mips-siemens-sysv* | mips-sni-sysv*) | |
1418 machine=mips-siemens opsys=usg5-4 | |
1419 NON_GNU_CC=/usr/ccs/bin/cc | |
1420 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1421 ;; | |
1422 | |
1423 mips-nec-sysv*) | |
1424 machine=mips-nec | |
1425 NON_GNU_CC=/usr/ccs/bin/cc | |
1426 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1427 ;; | |
1428 | |
1429 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;; | |
1430 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;; | |
1431 mips-sgi-irix3.* ) opsys=irix3-3 ;; | |
1432 mips-sgi-irix4.* ) opsys=irix4-0 ;; | |
1433 mips-sgi-irix6* ) opsys=irix6-0 ;; | |
1434 mips-sgi-irix5.1* ) opsys=irix5-1 ;; | |
1435 mips-sgi-irix5.2* ) opsys=irix5-2 ;; | |
1436 mips-sgi-irix5.* ) opsys=irix5-3 ;; | |
1437 mips-sgi-irix* ) opsys=irix5-0 ;; | |
1438 | |
1439 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;; | |
1440 *-sony-news* ) opsys=newsos5 ;; | |
1441 | |
1442 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;; | |
1443 | |
1444 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* ) | |
1445 case "$canonical" in | |
1446 m68*-sunos1* ) machine=sun1 ;; | |
1447 m68*-sunos2* ) machine=sun2 ;; | |
1448 m68* ) machine=sun3 ;; | |
1449 i*86*-sun-sunos[34]* ) machine=sun386 ;; | |
1450 i*86-*-* ) machine=intel386 ;; | |
1451 rs6000* ) machine=rs6000 ;; | |
1452 esac | |
1453 | |
1454 case "$canonical" in *-sunos5*) | |
1455 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;; | |
1456 esac | |
1457 | |
1458 case "$canonical" in | |
1459 *-sunos4* ) | |
1460 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;; | |
1461 : ;; | |
1462 *-solaris2* ) | |
1463 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp | |
1464 RANLIB=':' ;; | |
1465 esac | |
1466 | |
1467 case "$canonical" in | |
1468 *-solaris* ) | |
1469 opsys=sol2 | |
1470 os_release_major=`uname -r | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\1/'` | |
1471 os_release_minor=`uname -r | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\2/'` | |
1472 case "$os_release_minor" in [0-9]) | |
1473 os_release_minor="0${os_release_minor}";; | |
1474 esac | |
1475 os_release="${os_release_major}${os_release_minor}" | |
1476 { test "$extra_verbose" = "yes" && cat << EOF | |
1477 Defining OS_RELEASE = $os_release | |
1478 EOF | |
1479 cat >> confdefs.h <<EOF | |
1480 #define OS_RELEASE $os_release | |
1481 EOF | |
1482 } | |
1483 ;; | |
1484 | |
1485 i*86-*-sunos4* ) opsys=sunos4-0 ;; | |
1486 *-sunos4.0* ) opsys=sunos4-0 ;; | |
1487 *-sunos4.1.2* ) opsys=sunos4-1-2 ;; | |
1488 *-sunos4.1.3* ) opsys=sunos4-1-3 ;; | |
1489 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;; | |
1490 *-sunos4* | *-sunos ) opsys=sunos4-1 ;; | |
1491 *-mach* ) opsys=mach-bsd4-3 ;; | |
1492 * ) opsys=bsd4-2 ;; | |
1493 esac | |
1494 | |
1495 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac | |
1496 | |
1497 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC="" | |
1498 ;; | |
1499 | |
1500 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;; | |
1501 | |
1502 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;; | |
1503 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;; | |
1504 | |
1505 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;; | |
1506 | |
1507 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;; | |
1508 | |
1509 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;; | |
1510 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;; | |
1511 | |
1512 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;; | |
1513 | |
1514 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;; | |
1515 | |
1516 vax-dec-* ) | |
1517 case "$canonical" in | |
1518 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
1519 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
1520 *-mach* ) opsys=mach-bsd4-3 ;; | |
1521 esac | |
1522 ;; | |
1523 | |
1524 ns16k-whitechapel-* ) machine=mg1 ;; | |
1525 | |
1526 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;; | |
1527 | |
1528 i[3-9]86-*-* ) | |
1529 machine=intel386 | |
1530 case "$canonical" in | |
1531 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; | |
1532 *-isc2.2* ) opsys=isc2-2 ;; | |
1533 *-isc4.0* ) opsys=isc4-0 ;; | |
1534 *-isc4.* ) opsys=isc4-1 | |
1535 GCC_TEST_OPTIONS=-posix | |
1536 NON_GCC_TEST_OPTIONS=-Xp | |
1537 ;; | |
1538 *-isc* ) opsys=isc3-0 ;; | |
1539 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;; | |
1540 *-esix* ) opsys=esix ;; | |
1541 *-mach* ) opsys=mach-bsd4-3 ;; | |
1542 *-xenix* ) opsys=xenix ;; | |
1543 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;; | |
1544 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;; | |
1545 *-bsdi4* ) opsys=bsdos4 ;; | |
1546 *-bsdi3* ) opsys=bsdos3 ;; | |
1547 *-bsdi2.1* ) opsys=bsdos2-1 ;; | |
1548 *-bsdi2* ) opsys=bsdos2 ;; | |
1549 *-sco3.2v5* ) opsys=sco5 ;; | |
1550 *-sysv5* ) opsys=sco7 ;; | |
1551 *-386bsd* ) opsys=386bsd ;; | |
1552 *-freebsd* ) opsys=freebsd ;; | |
1553 *-nextstep* ) opsys=nextstep ;; | |
1554 *-pc-cygwin* ) opsys=cygwin32 ;; | |
1555 *-pc-mingw* ) opsys=mingw32 ; | |
1556 test -z "$with_tty" && with_tty="no";; | |
1557 esac | |
1558 ;; | |
1559 | |
1560 m68k-*-linux* ) machine=m68k opsys=linux ;; | |
1561 | |
1562 esac | |
1563 | |
1564 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'` | |
1565 | |
1566 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` | |
1567 | |
1568 if test -r "${srcdir}/src/m/${machine}.h"; then | |
1569 machfile="m/${machine}.h" | |
1570 { test "$extra_verbose" = "yes" && cat << EOF | |
1571 Defining config_machfile = "$machfile" | |
1572 EOF | |
1573 cat >> confdefs.h <<EOF | |
1574 #define config_machfile "$machfile" | |
1575 EOF | |
1576 } | |
1577 | |
1578 else | |
1579 echo "XEmacs has no builtin knowledge of \`$machine' machines." | |
1580 echo "Using configure-time autodetection only." | |
1581 fi | |
1582 | |
1583 if test -r "${srcdir}/src/s/${opsys}.h"; then | |
1584 opsysfile="s/${opsys}.h" | |
1585 { test "$extra_verbose" = "yes" && cat << EOF | |
1586 Defining config_opsysfile = "$opsysfile" | |
1587 EOF | |
1588 cat >> confdefs.h <<EOF | |
1589 #define config_opsysfile "$opsysfile" | |
1590 EOF | |
1591 } | |
1592 | |
1593 else | |
1594 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems." | |
1595 echo "Using configure-time autodetection only." | |
1596 fi | |
1597 | |
1598 | |
1599 if test -z "$pdump"; then | |
1600 case "$opsys" in | |
1601 linux* ) pdump=yes ;; darwin ) pdump=yes ;; cygwin* ) pdump=yes ;; * ) pdump=no ;; | |
1602 esac | |
1603 fi | |
1604 | |
1605 if test -z "$dynamic"; then | |
1606 case "$opsys" in | |
1607 hpux* | sunos4* ) dynamic=no ;; | |
1608 *) dynamic=yes ;; | |
1609 esac | |
1610 fi | |
1611 if test "$dynamic" = "yes"; then | |
1612 case "$opsys" in | |
1613 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;; | |
1614 decosf* ) ld_call_shared="-call_shared" ;; | |
1615 darwin ) { test "$extra_verbose" = "yes" && cat << \EOF | |
1616 Defining DLSYM_NEEDS_UNDERSCORE | |
1617 EOF | |
1618 cat >> confdefs.h <<\EOF | |
1619 #define DLSYM_NEEDS_UNDERSCORE 1 | |
1620 EOF | |
1621 } | |
1622 ;; | |
1623 esac | |
1624 else case "$opsys" in | |
1625 sol2 ) | |
1626 echo "Static linking is not supported on Solaris 2." | |
1627 echo "Rerun configure without specifying --dynamic=no." | |
1628 exit 1 ;; | |
1629 linux ) ld_call_shared="-Bstatic" ;; | |
1630 decosf* ) ld_call_shared="-non_shared" ;; | |
1631 esac | |
1632 fi | |
1633 | |
1634 case "$opsys" in | |
1635 aix* ) NON_GNU_CC=xlc ;; darwin ) RANLIB="ranlib -c" ;; esac | |
1636 | |
1637 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'` | |
1638 { test "$extra_verbose" = "yes" && cat << EOF | |
1639 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher | |
1640 EOF | |
1641 cat >> confdefs.h <<EOF | |
1642 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher | |
1643 EOF | |
1644 } | |
1645 | |
1646 | |
1647 | |
1648 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias | |
1649 if test "$with_workshop $with_tooltalk" = "yes no"; then | |
1650 (echo "$progname: Usage error:" | |
1651 echo " " "--with-workshop requires --with-tooltalk" | |
1652 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | |
1653 elif test "$with_tooltalk" = "no" ; then with_workshop=no | |
1654 elif test "$with_workshop" = "yes"; then with_tooltalk=yes | |
1655 fi | |
1656 | |
1657 if test "$with_workshop" = "yes"; then | |
1658 { test "$extra_verbose" = "yes" && cat << \EOF | |
1659 Defining SUNPRO | |
1660 EOF | |
1661 cat >> confdefs.h <<\EOF | |
1662 #define SUNPRO 1 | |
1663 EOF | |
1664 } | |
1665 | |
1666 fi | |
1667 | |
1668 if test "$with_clash_detection" != "no"; then | |
1669 { test "$extra_verbose" = "yes" && cat << \EOF | |
1670 Defining CLASH_DETECTION | |
1671 EOF | |
1672 cat >> confdefs.h <<\EOF | |
1673 #define CLASH_DETECTION 1 | |
1674 EOF | |
1675 } | |
1676 | |
1677 fi | |
1678 | |
1679 test -n "$compiler" && CC="$compiler" | |
1680 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac | |
1681 fi | |
1682 | |
1683 test "${cflags-unset}" != unset && CFLAGS="$cflags" | |
1684 if test "${CFLAGS-unset}" != unset | |
1685 then cflags_specified=yes; | |
1686 else cflags_specified=no; | |
1687 fi | |
1688 | |
1689 if test "${cflags_warning-unset}" != unset | |
1690 then cflags_warning_specified=yes; | |
1691 else cflags_warning_specified=no; | |
1692 fi | |
1693 | |
1694 if test "${cflags_optimization-unset}" != unset | |
1695 then cflags_optimization_specified=yes; | |
1696 else cflags_optimization_specified=no; | |
1697 fi | |
1698 | |
1699 if test "${cflags_debugging-unset}" != unset | |
1700 then cflags_debugging_specified=yes; | |
1701 else cflags_debugging_specified=no; | |
1702 fi | |
1703 | |
1704 xe_save_CFLAGS="$CFLAGS" | |
1705 | |
1706 # Extract the first word of "gcc", so it can be a program name with args. | |
1707 set dummy gcc; ac_word=$2 | |
1708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1709 echo "configure:1710: checking for $ac_word" >&5 | |
1710 | |
1711 if test -n "$CC"; then | |
1712 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1713 else | |
1714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1715 ac_dummy="$PATH" | |
1716 for ac_dir in $ac_dummy; do | |
1717 test -z "$ac_dir" && ac_dir=. | |
1718 if test -f $ac_dir/$ac_word; then | |
1719 ac_cv_prog_CC="gcc" | |
1720 break | |
1721 fi | |
1722 done | |
1723 IFS="$ac_save_ifs" | |
1724 fi | |
1725 CC="$ac_cv_prog_CC" | |
1726 if test -n "$CC"; then | |
1727 echo "$ac_t""$CC" 1>&6 | |
1728 else | |
1729 echo "$ac_t""no" 1>&6 | |
1730 fi | |
1731 | |
1732 if test -z "$CC"; then | |
1733 # Extract the first word of "cc", so it can be a program name with args. | |
1734 set dummy cc; ac_word=$2 | |
1735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1736 echo "configure:1737: checking for $ac_word" >&5 | |
1737 | |
1738 if test -n "$CC"; then | |
1739 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1740 else | |
1741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1742 ac_prog_rejected=no | |
1743 ac_dummy="$PATH" | |
1744 for ac_dir in $ac_dummy; do | |
1745 test -z "$ac_dir" && ac_dir=. | |
1746 if test -f $ac_dir/$ac_word; then | |
1747 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1748 ac_prog_rejected=yes | |
1749 continue | |
1750 fi | |
1751 ac_cv_prog_CC="cc" | |
1752 break | |
1753 fi | |
1754 done | |
1755 IFS="$ac_save_ifs" | |
1756 if test $ac_prog_rejected = yes; then | |
1757 # We found a bogon in the path, so make sure we never use it. | |
1758 set dummy $ac_cv_prog_CC | |
1759 shift | |
1760 if test $# -gt 0; then | |
1761 # We chose a different compiler from the bogus one. | |
1762 # However, it has the same basename, so the bogon will be chosen | |
1763 # first if we set CC to just the basename; use the full file name. | |
1764 shift | |
1765 set dummy "$ac_dir/$ac_word" "$@" | |
1766 shift | |
1767 ac_cv_prog_CC="$@" | |
1768 fi | |
1769 fi | |
1770 fi | |
1771 CC="$ac_cv_prog_CC" | |
1772 if test -n "$CC"; then | |
1773 echo "$ac_t""$CC" 1>&6 | |
1774 else | |
1775 echo "$ac_t""no" 1>&6 | |
1776 fi | |
1777 | |
1778 if test -z "$CC"; then | |
1779 case "`uname -s`" in | |
1780 *win32* | *WIN32*) | |
1781 # Extract the first word of "cl", so it can be a program name with args. | |
1782 set dummy cl; ac_word=$2 | |
1783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1784 echo "configure:1785: checking for $ac_word" >&5 | |
1785 | |
1786 if test -n "$CC"; then | |
1787 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1788 else | |
1789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1790 ac_dummy="$PATH" | |
1791 for ac_dir in $ac_dummy; do | |
1792 test -z "$ac_dir" && ac_dir=. | |
1793 if test -f $ac_dir/$ac_word; then | |
1794 ac_cv_prog_CC="cl" | |
1795 break | |
1796 fi | |
1797 done | |
1798 IFS="$ac_save_ifs" | |
1799 fi | |
1800 CC="$ac_cv_prog_CC" | |
1801 if test -n "$CC"; then | |
1802 echo "$ac_t""$CC" 1>&6 | |
1803 else | |
1804 echo "$ac_t""no" 1>&6 | |
1805 fi | |
1806 ;; | |
1807 esac | |
1808 fi | |
1809 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1810 fi | |
1811 | |
1812 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
1813 echo "configure:1814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
1814 | |
1815 ac_ext=c | |
1816 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' | |
1817 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' | |
1818 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' | |
1819 ac_cpp='$CPP '"$xe_cppflags" | |
1820 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' | |
1821 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | |
1822 cross_compiling=no | |
1823 | |
1824 cat > conftest.$ac_ext << EOF | |
1825 | |
1826 #line 1827 "configure" | |
1827 #include "confdefs.h" | |
1828 | |
1829 main(){return(0);} | |
1830 EOF | |
1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1832 ac_cv_prog_cc_works=yes | |
1833 # If we can't run a trivial program, we are probably using a cross compiler. | |
1834 if (./conftest; exit) 2>/dev/null; then | |
1835 ac_cv_prog_cc_cross=no | |
1836 else | |
1837 ac_cv_prog_cc_cross=yes | |
1838 fi | |
1839 else | |
1840 echo "configure: failed program was:" >&5 | |
1841 cat conftest.$ac_ext >&5 | |
1842 ac_cv_prog_cc_works=no | |
1843 fi | |
1844 rm -fr conftest* | |
1845 ac_ext=c | |
1846 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' | |
1847 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' | |
1848 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' | |
1849 ac_cpp='$CPP '"$xe_cppflags" | |
1850 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' | |
1851 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | |
1852 cross_compiling=no | |
1853 | |
1854 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1855 if test $ac_cv_prog_cc_works = no; then | |
1856 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1857 fi | |
1858 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
1859 echo "configure:1860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
1860 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
1861 cross_compiling=$ac_cv_prog_cc_cross | |
1862 | |
1863 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
1864 echo "configure:1865: checking whether we are using GNU C" >&5 | |
1865 | |
1866 cat > conftest.c <<EOF | |
1867 #ifdef __GNUC__ | |
1868 yes; | |
1869 #endif | |
1870 EOF | |
1871 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
1872 ac_cv_prog_gcc=yes | |
1873 else | |
1874 ac_cv_prog_gcc=no | |
1875 fi | |
1876 | |
1877 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1878 | |
1879 if test $ac_cv_prog_gcc = yes; then | |
1880 GCC=yes | |
1881 else | |
1882 GCC= | |
1883 fi | |
1884 | |
1885 ac_test_CFLAGS="${CFLAGS+set}" | |
1886 ac_save_CFLAGS="$CFLAGS" | |
1887 CFLAGS= | |
1888 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
1889 echo "configure:1890: checking whether ${CC-cc} accepts -g" >&5 | |
1890 | |
1891 echo 'void f(){}' > conftest.c | |
1892 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1893 ac_cv_prog_cc_g=yes | |
1894 else | |
1895 ac_cv_prog_cc_g=no | |
1896 fi | |
1897 rm -f conftest* | |
1898 | |
1899 | |
1900 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1901 if test "$ac_test_CFLAGS" = set; then | |
1902 CFLAGS="$ac_save_CFLAGS" | |
1903 elif test $ac_cv_prog_cc_g = yes; then | |
1904 if test "$GCC" = yes; then | |
1905 CFLAGS="-g -O2" | |
1906 else | |
1907 CFLAGS="-g" | |
1908 fi | |
1909 else | |
1910 if test "$GCC" = yes; then | |
1911 CFLAGS="-O2" | |
1912 else | |
1913 CFLAGS= | |
1914 fi | |
1915 fi | |
1916 | |
1917 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then | |
1918 CC=${NON_GNU_CC-cc} | |
1919 # Extract the first word of "gcc", so it can be a program name with args. | |
1920 set dummy gcc; ac_word=$2 | |
1921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1922 echo "configure:1923: checking for $ac_word" >&5 | |
1923 | |
1924 if test -n "$CC"; then | |
1925 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1926 else | |
1927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1928 ac_dummy="$PATH" | |
1929 for ac_dir in $ac_dummy; do | |
1930 test -z "$ac_dir" && ac_dir=. | |
1931 if test -f $ac_dir/$ac_word; then | |
1932 ac_cv_prog_CC="gcc" | |
1933 break | |
1934 fi | |
1935 done | |
1936 IFS="$ac_save_ifs" | |
1937 fi | |
1938 CC="$ac_cv_prog_CC" | |
1939 if test -n "$CC"; then | |
1940 echo "$ac_t""$CC" 1>&6 | |
1941 else | |
1942 echo "$ac_t""no" 1>&6 | |
1943 fi | |
1944 | |
1945 if test -z "$CC"; then | |
1946 # Extract the first word of "cc", so it can be a program name with args. | |
1947 set dummy cc; ac_word=$2 | |
1948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1949 echo "configure:1950: checking for $ac_word" >&5 | |
1950 | |
1951 if test -n "$CC"; then | |
1952 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1953 else | |
1954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1955 ac_prog_rejected=no | |
1956 ac_dummy="$PATH" | |
1957 for ac_dir in $ac_dummy; do | |
1958 test -z "$ac_dir" && ac_dir=. | |
1959 if test -f $ac_dir/$ac_word; then | |
1960 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1961 ac_prog_rejected=yes | |
1962 continue | |
1963 fi | |
1964 ac_cv_prog_CC="cc" | |
1965 break | |
1966 fi | |
1967 done | |
1968 IFS="$ac_save_ifs" | |
1969 if test $ac_prog_rejected = yes; then | |
1970 # We found a bogon in the path, so make sure we never use it. | |
1971 set dummy $ac_cv_prog_CC | |
1972 shift | |
1973 if test $# -gt 0; then | |
1974 # We chose a different compiler from the bogus one. | |
1975 # However, it has the same basename, so the bogon will be chosen | |
1976 # first if we set CC to just the basename; use the full file name. | |
1977 shift | |
1978 set dummy "$ac_dir/$ac_word" "$@" | |
1979 shift | |
1980 ac_cv_prog_CC="$@" | |
1981 fi | |
1982 fi | |
1983 fi | |
1984 CC="$ac_cv_prog_CC" | |
1985 if test -n "$CC"; then | |
1986 echo "$ac_t""$CC" 1>&6 | |
1987 else | |
1988 echo "$ac_t""no" 1>&6 | |
1989 fi | |
1990 | |
1991 if test -z "$CC"; then | |
1992 case "`uname -s`" in | |
1993 *win32* | *WIN32*) | |
1994 # Extract the first word of "cl", so it can be a program name with args. | |
1995 set dummy cl; ac_word=$2 | |
1996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1997 echo "configure:1998: checking for $ac_word" >&5 | |
1998 | |
1999 if test -n "$CC"; then | |
2000 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2001 else | |
2002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2003 ac_dummy="$PATH" | |
2004 for ac_dir in $ac_dummy; do | |
2005 test -z "$ac_dir" && ac_dir=. | |
2006 if test -f $ac_dir/$ac_word; then | |
2007 ac_cv_prog_CC="cl" | |
2008 break | |
2009 fi | |
2010 done | |
2011 IFS="$ac_save_ifs" | |
2012 fi | |
2013 CC="$ac_cv_prog_CC" | |
2014 if test -n "$CC"; then | |
2015 echo "$ac_t""$CC" 1>&6 | |
2016 else | |
2017 echo "$ac_t""no" 1>&6 | |
2018 fi | |
2019 ;; | |
2020 esac | |
2021 fi | |
2022 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
2023 fi | |
2024 | |
2025 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
2026 echo "configure:2027: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
2027 | |
2028 ac_ext=c | |
2029 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' | |
2030 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' | |
2031 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' | |
2032 ac_cpp='$CPP '"$xe_cppflags" | |
2033 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' | |
2034 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | |
2035 cross_compiling=no | |
2036 | |
2037 cat > conftest.$ac_ext << EOF | |
2038 | |
2039 #line 2040 "configure" | |
2040 #include "confdefs.h" | |
2041 | |
2042 main(){return(0);} | |
2043 EOF | |
2044 if { (eval echo configure:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2045 ac_cv_prog_cc_works=yes | |
2046 # If we can't run a trivial program, we are probably using a cross compiler. | |
2047 if (./conftest; exit) 2>/dev/null; then | |
2048 ac_cv_prog_cc_cross=no | |
2049 else | |
2050 ac_cv_prog_cc_cross=yes | |
2051 fi | |
2052 else | |
2053 echo "configure: failed program was:" >&5 | |
2054 cat conftest.$ac_ext >&5 | |
2055 ac_cv_prog_cc_works=no | |
2056 fi | |
2057 rm -fr conftest* | |
2058 ac_ext=c | |
2059 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' | |
2060 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' | |
2061 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' | |
2062 ac_cpp='$CPP '"$xe_cppflags" | |
2063 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' | |
2064 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | |
2065 cross_compiling=no | |
2066 | |
2067 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
2068 if test $ac_cv_prog_cc_works = no; then | |
2069 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
2070 fi | |
2071 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
2072 echo "configure:2073: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
2073 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
2074 cross_compiling=$ac_cv_prog_cc_cross | |
2075 | |
2076 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
2077 echo "configure:2078: checking whether we are using GNU C" >&5 | |
2078 | |
2079 cat > conftest.c <<EOF | |
2080 #ifdef __GNUC__ | |
2081 yes; | |
2082 #endif | |
2083 EOF | |
2084 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
2085 ac_cv_prog_gcc=yes | |
2086 else | |
2087 ac_cv_prog_gcc=no | |
2088 fi | |
2089 | |
2090 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
2091 | |
2092 if test $ac_cv_prog_gcc = yes; then | |
2093 GCC=yes | |
2094 else | |
2095 GCC= | |
2096 fi | |
2097 | |
2098 ac_test_CFLAGS="${CFLAGS+set}" | |
2099 ac_save_CFLAGS="$CFLAGS" | |
2100 CFLAGS= | |
2101 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
2102 echo "configure:2103: checking whether ${CC-cc} accepts -g" >&5 | |
2103 | |
2104 echo 'void f(){}' > conftest.c | |
2105 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
2106 ac_cv_prog_cc_g=yes | |
2107 else | |
2108 ac_cv_prog_cc_g=no | |
2109 fi | |
2110 rm -f conftest* | |
2111 | |
2112 | |
2113 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
2114 if test "$ac_test_CFLAGS" = set; then | |
2115 CFLAGS="$ac_save_CFLAGS" | |
2116 elif test $ac_cv_prog_cc_g = yes; then | |
2117 if test "$GCC" = yes; then | |
2118 CFLAGS="-g -O2" | |
2119 else | |
2120 CFLAGS="-g" | |
2121 fi | |
2122 else | |
2123 if test "$GCC" = yes; then | |
2124 CFLAGS="-O2" | |
2125 else | |
2126 CFLAGS= | |
2127 fi | |
2128 fi | |
2129 | |
2130 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then | |
2131 CC=gcc | |
2132 # Extract the first word of "gcc", so it can be a program name with args. | |
2133 set dummy gcc; ac_word=$2 | |
2134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2135 echo "configure:2136: checking for $ac_word" >&5 | |
2136 | |
2137 if test -n "$CC"; then | |
2138 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2139 else | |
2140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2141 ac_dummy="$PATH" | |
2142 for ac_dir in $ac_dummy; do | |
2143 test -z "$ac_dir" && ac_dir=. | |
2144 if test -f $ac_dir/$ac_word; then | |
2145 ac_cv_prog_CC="gcc" | |
2146 break | |
2147 fi | |
2148 done | |
2149 IFS="$ac_save_ifs" | |
2150 fi | |
2151 CC="$ac_cv_prog_CC" | |
2152 if test -n "$CC"; then | |
2153 echo "$ac_t""$CC" 1>&6 | |
2154 else | |
2155 echo "$ac_t""no" 1>&6 | |
2156 fi | |
2157 | |
2158 if test -z "$CC"; then | |
2159 # Extract the first word of "cc", so it can be a program name with args. | |
2160 set dummy cc; ac_word=$2 | |
2161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2162 echo "configure:2163: checking for $ac_word" >&5 | |
2163 | |
2164 if test -n "$CC"; then | |
2165 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2166 else | |
2167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2168 ac_prog_rejected=no | |
2169 ac_dummy="$PATH" | |
2170 for ac_dir in $ac_dummy; do | |
2171 test -z "$ac_dir" && ac_dir=. | |
2172 if test -f $ac_dir/$ac_word; then | |
2173 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2174 ac_prog_rejected=yes | |
2175 continue | |
2176 fi | |
2177 ac_cv_prog_CC="cc" | |
2178 break | |
2179 fi | |
2180 done | |
2181 IFS="$ac_save_ifs" | |
2182 if test $ac_prog_rejected = yes; then | |
2183 # We found a bogon in the path, so make sure we never use it. | |
2184 set dummy $ac_cv_prog_CC | |
2185 shift | |
2186 if test $# -gt 0; then | |
2187 # We chose a different compiler from the bogus one. | |
2188 # However, it has the same basename, so the bogon will be chosen | |
2189 # first if we set CC to just the basename; use the full file name. | |
2190 shift | |
2191 set dummy "$ac_dir/$ac_word" "$@" | |
2192 shift | |
2193 ac_cv_prog_CC="$@" | |
2194 fi | |
2195 fi | |
2196 fi | |
2197 CC="$ac_cv_prog_CC" | |
2198 if test -n "$CC"; then | |
2199 echo "$ac_t""$CC" 1>&6 | |
2200 else | |
2201 echo "$ac_t""no" 1>&6 | |
2202 fi | |
2203 | |
2204 if test -z "$CC"; then | |
2205 case "`uname -s`" in | |
2206 *win32* | *WIN32*) | |
2207 # Extract the first word of "cl", so it can be a program name with args. | |
2208 set dummy cl; ac_word=$2 | |
2209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2210 echo "configure:2211: checking for $ac_word" >&5 | |
2211 | |
2212 if test -n "$CC"; then | |
2213 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2214 else | |
2215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2216 ac_dummy="$PATH" | |
2217 for ac_dir in $ac_dummy; do | |
2218 test -z "$ac_dir" && ac_dir=. | |
2219 if test -f $ac_dir/$ac_word; then | |
2220 ac_cv_prog_CC="cl" | |
2221 break | |
2222 fi | |
2223 done | |
2224 IFS="$ac_save_ifs" | |
2225 fi | |
2226 CC="$ac_cv_prog_CC" | |
2227 if test -n "$CC"; then | |
2228 echo "$ac_t""$CC" 1>&6 | |
2229 else | |
2230 echo "$ac_t""no" 1>&6 | |
2231 fi | |
2232 ;; | |
2233 esac | |
2234 fi | |
2235 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
2236 fi | |
2237 | |
2238 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
2239 echo "configure:2240: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
2240 | |
2241 ac_ext=c | |
2242 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' | |
2243 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' | |
2244 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' | |
2245 ac_cpp='$CPP '"$xe_cppflags" | |
2246 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' | |
2247 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | |
2248 cross_compiling=no | |
2249 | |
2250 cat > conftest.$ac_ext << EOF | |
2251 | |
2252 #line 2253 "configure" | |
2253 #include "confdefs.h" | |
2254 | |
2255 main(){return(0);} | |
2256 EOF | |
2257 if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2258 ac_cv_prog_cc_works=yes | |
2259 # If we can't run a trivial program, we are probably using a cross compiler. | |
2260 if (./conftest; exit) 2>/dev/null; then | |
2261 ac_cv_prog_cc_cross=no | |
2262 else | |
2263 ac_cv_prog_cc_cross=yes | |
2264 fi | |
2265 else | |
2266 echo "configure: failed program was:" >&5 | |
2267 cat conftest.$ac_ext >&5 | |
2268 ac_cv_prog_cc_works=no | |
2269 fi | |
2270 rm -fr conftest* | |
2271 ac_ext=c | |
2272 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' | |
2273 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' | |
2274 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' | |
2275 ac_cpp='$CPP '"$xe_cppflags" | |
2276 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' | |
2277 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | |
2278 cross_compiling=no | |
2279 | |
2280 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
2281 if test $ac_cv_prog_cc_works = no; then | |
2282 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
2283 fi | |
2284 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
2285 echo "configure:2286: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
2286 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
2287 cross_compiling=$ac_cv_prog_cc_cross | |
2288 | |
2289 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
2290 echo "configure:2291: checking whether we are using GNU C" >&5 | |
2291 | |
2292 cat > conftest.c <<EOF | |
2293 #ifdef __GNUC__ | |
2294 yes; | |
2295 #endif | |
2296 EOF | |
2297 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
2298 ac_cv_prog_gcc=yes | |
2299 else | |
2300 ac_cv_prog_gcc=no | |
2301 fi | |
2302 | |
2303 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
2304 | |
2305 if test $ac_cv_prog_gcc = yes; then | |
2306 GCC=yes | |
2307 else | |
2308 GCC= | |
2309 fi | |
2310 | |
2311 ac_test_CFLAGS="${CFLAGS+set}" | |
2312 ac_save_CFLAGS="$CFLAGS" | |
2313 CFLAGS= | |
2314 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
2315 echo "configure:2316: checking whether ${CC-cc} accepts -g" >&5 | |
2316 | |
2317 echo 'void f(){}' > conftest.c | |
2318 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
2319 ac_cv_prog_cc_g=yes | |
2320 else | |
2321 ac_cv_prog_cc_g=no | |
2322 fi | |
2323 rm -f conftest* | |
2324 | |
2325 | |
2326 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
2327 if test "$ac_test_CFLAGS" = set; then | |
2328 CFLAGS="$ac_save_CFLAGS" | |
2329 elif test $ac_cv_prog_cc_g = yes; then | |
2330 if test "$GCC" = yes; then | |
2331 CFLAGS="-g -O2" | |
2332 else | |
2333 CFLAGS="-g" | |
2334 fi | |
2335 else | |
2336 if test "$GCC" = yes; then | |
2337 CFLAGS="-O2" | |
2338 else | |
2339 CFLAGS= | |
2340 fi | |
2341 fi | |
2342 | |
2343 fi | |
2344 CFLAGS="$xe_save_CFLAGS" | |
2345 | |
2346 if test "$GCC" = "yes"; then | |
2347 cat > conftest.$ac_ext <<EOF | |
2348 #line 2349 "configure" | |
2349 #include "confdefs.h" | |
2350 int main () { | |
2351 #if __GNUC__ >= 3 | |
2352 return 11; | |
2353 #else | |
2354 return 0; | |
2355 #endif | |
2356 } | |
2357 EOF | |
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
2359 then | |
2360 : | |
2361 else | |
2362 conftest_rc="$?" | |
2363 echo "configure: failed program was:" >&5 | |
2364 cat conftest.$ac_ext >&5 | |
2365 rm -fr conftest* | |
2366 case "$conftest_rc" in | |
2367 11) echo "You appear to be using GCC version 3 or above."; __GCC3=yes ;; | |
2368 esac | |
2369 fi | |
2370 rm -fr conftest* | |
2371 fi | |
2372 | |
2373 | |
2374 | |
2375 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler" | |
2376 : ${XEMACS_CC:="$CC"} | |
2377 | |
2378 | |
2379 test -n "$CPP" -a -d "$CPP" && CPP= | |
2380 | |
2381 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" | |
2382 | |
2383 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
2384 echo "configure:2385: checking how to run the C preprocessor" >&5 | |
2385 # On Suns, sometimes $CPP names a directory. | |
2386 if test -n "$CPP" && test -d "$CPP"; then | |
2387 CPP= | |
2388 fi | |
2389 if test -z "$CPP"; then | |
2390 | |
2391 # This must be in double quotes, not single quotes, because CPP may get | |
2392 # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2393 CPP="${CC-cc} -E" | |
2394 # On the NeXT, cc -E runs the code through the compiler's parser, | |
2395 # not just through cpp. | |
2396 cat > conftest.$ac_ext <<EOF | |
2397 #line 2398 "configure" | |
2398 #include "confdefs.h" | |
2399 #include <assert.h> | |
2400 Syntax Error | |
2401 EOF | |
2402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2403 { (eval echo configure:2404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2405 if test -z "$ac_err"; then | |
2406 : | |
2407 else | |
2408 echo "$ac_err" >&5 | |
2409 echo "configure: failed program was:" >&5 | |
2410 cat conftest.$ac_ext >&5 | |
2411 rm -rf conftest* | |
2412 CPP="${CC-cc} -E -traditional-cpp" | |
2413 cat > conftest.$ac_ext <<EOF | |
2414 #line 2415 "configure" | |
2415 #include "confdefs.h" | |
2416 #include <assert.h> | |
2417 Syntax Error | |
2418 EOF | |
2419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2420 { (eval echo configure:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2422 if test -z "$ac_err"; then | |
2423 : | |
2424 else | |
2425 echo "$ac_err" >&5 | |
2426 echo "configure: failed program was:" >&5 | |
2427 cat conftest.$ac_ext >&5 | |
2428 rm -rf conftest* | |
2429 CPP="${CC-cc} -nologo -E" | |
2430 cat > conftest.$ac_ext <<EOF | |
2431 #line 2432 "configure" | |
2432 #include "confdefs.h" | |
2433 #include <assert.h> | |
2434 Syntax Error | |
2435 EOF | |
2436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2437 { (eval echo configure:2438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2439 if test -z "$ac_err"; then | |
2440 : | |
2441 else | |
2442 echo "$ac_err" >&5 | |
2443 echo "configure: failed program was:" >&5 | |
2444 cat conftest.$ac_ext >&5 | |
2445 rm -rf conftest* | |
2446 CPP=/lib/cpp | |
2447 fi | |
2448 rm -f conftest* | |
2449 fi | |
2450 rm -f conftest* | |
2451 fi | |
2452 rm -f conftest* | |
2453 ac_cv_prog_CPP="$CPP" | |
2454 CPP="$ac_cv_prog_CPP" | |
2455 else | |
2456 ac_cv_prog_CPP="$CPP" | |
2457 fi | |
2458 echo "$ac_t""$CPP" 1>&6 | |
2459 | |
2460 | |
2461 | |
2462 echo $ac_n "checking for AIX""... $ac_c" 1>&6 | |
2463 echo "configure:2464: checking for AIX" >&5 | |
2464 cat > conftest.$ac_ext <<EOF | |
2465 #line 2466 "configure" | |
2466 #include "confdefs.h" | |
2467 #ifdef _AIX | |
2468 yes | |
2469 #endif | |
2470 | |
2471 EOF | |
2472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2473 egrep "yes" >/dev/null 2>&1; then | |
2474 rm -rf conftest* | |
2475 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF | |
2476 Defining _ALL_SOURCE | |
2477 EOF | |
2478 cat >> confdefs.h <<\EOF | |
2479 #define _ALL_SOURCE 1 | |
2480 EOF | |
2481 } | |
2482 | |
2483 else | |
2484 rm -rf conftest* | |
2485 echo "$ac_t""no" 1>&6 | |
2486 fi | |
2487 rm -f conftest* | |
2488 | |
2489 | |
2490 | |
2491 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 | |
2492 echo "configure:2493: checking for GNU libc" >&5 | |
2493 cat > conftest.$ac_ext <<EOF | |
2494 #line 2495 "configure" | |
2495 #include "confdefs.h" | |
2496 #include <features.h> | |
2497 int main() { | |
2498 | |
2499 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) | |
2500 #error Not a GNU libc system :-( | |
2501 ******* ======= ******** &&&&&&&& | |
2502 #endif | |
2503 | |
2504 ; return 0; } | |
2505 EOF | |
2506 if { (eval echo configure:2507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2507 rm -rf conftest* | |
2508 have_glibc=yes | |
2509 else | |
2510 echo "configure: failed program was:" >&5 | |
2511 cat conftest.$ac_ext >&5 | |
2512 rm -rf conftest* | |
2513 have_glibc=no | |
2514 fi | |
2515 rm -f conftest* | |
2516 echo "$ac_t""$have_glibc" 1>&6 | |
2517 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
2518 Defining _GNU_SOURCE | |
2519 EOF | |
2520 cat >> confdefs.h <<\EOF | |
2521 #define _GNU_SOURCE 1 | |
2522 EOF | |
2523 } | |
2524 | |
2525 | |
2526 case "$opsys" in | |
2527 sol2) | |
2528 { test "$extra_verbose" = "yes" && cat << \EOF | |
2529 Defining __EXTENSIONS__ | |
2530 EOF | |
2531 cat >> confdefs.h <<\EOF | |
2532 #define __EXTENSIONS__ 1 | |
2533 EOF | |
2534 } | |
2535 | |
2536 if test "$os_release" -ge 505; then | |
2537 { test "$extra_verbose" = "yes" && cat << \EOF | |
2538 Defining _XOPEN_SOURCE = 500 | |
2539 EOF | |
2540 cat >> confdefs.h <<\EOF | |
2541 #define _XOPEN_SOURCE 500 | |
2542 EOF | |
2543 } | |
2544 | |
2545 { test "$extra_verbose" = "yes" && cat << \EOF | |
2546 Defining _XOPEN_SOURCE_EXTENDED | |
2547 EOF | |
2548 cat >> confdefs.h <<\EOF | |
2549 #define _XOPEN_SOURCE_EXTENDED 1 | |
2550 EOF | |
2551 } | |
2552 | |
2553 fi ;; | |
2554 linux) | |
2555 { test "$extra_verbose" = "yes" && cat << \EOF | |
2556 Defining _POSIX_C_SOURCE = 199506L | |
2557 EOF | |
2558 cat >> confdefs.h <<\EOF | |
2559 #define _POSIX_C_SOURCE 199506L | |
2560 EOF | |
2561 } | |
2562 | |
2563 { test "$extra_verbose" = "yes" && cat << \EOF | |
2564 Defining _XOPEN_SOURCE = 500 | |
2565 EOF | |
2566 cat >> confdefs.h <<\EOF | |
2567 #define _XOPEN_SOURCE 500 | |
2568 EOF | |
2569 } | |
2570 | |
2571 { test "$extra_verbose" = "yes" && cat << \EOF | |
2572 Defining _XOPEN_SOURCE_EXTENDED | |
2573 EOF | |
2574 cat >> confdefs.h <<\EOF | |
2575 #define _XOPEN_SOURCE_EXTENDED 1 | |
2576 EOF | |
2577 } | |
2578 | |
2579 ;; | |
2580 freebsd4*) | |
2581 { test "$extra_verbose" = "yes" && cat << \EOF | |
2582 Defining _POSIX_C_SOURCE = 199506L | |
2583 EOF | |
2584 cat >> confdefs.h <<\EOF | |
2585 #define _POSIX_C_SOURCE 199506L | |
2586 EOF | |
2587 } | |
2588 | |
2589 { test "$extra_verbose" = "yes" && cat << \EOF | |
2590 Defining _XOPEN_SOURCE = 500 | |
2591 EOF | |
2592 cat >> confdefs.h <<\EOF | |
2593 #define _XOPEN_SOURCE 500 | |
2594 EOF | |
2595 } | |
2596 | |
2597 ;; | |
2598 esac | |
2599 | |
2600 cat > conftest.$ac_ext <<EOF | |
2601 #line 2602 "configure" | |
2602 #include "confdefs.h" | |
2603 int main () { | |
2604 #if defined __SUNPRO_C | |
2605 return 11; | |
2606 #elif defined __DECC | |
2607 return 12; | |
2608 #elif defined __USLC__ && defined __SCO_VERSION__ | |
2609 return 13; | |
2610 #elif defined __INTEL_COMPILER | |
2611 return 14; | |
2612 #else | |
2613 return 0; | |
2614 #endif | |
2615 } | |
2616 EOF | |
2617 if { (eval echo configure:2618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
2618 then | |
2619 : | |
2620 else | |
2621 conftest_rc="$?" | |
2622 echo "configure: failed program was:" >&5 | |
2623 cat conftest.$ac_ext >&5 | |
2624 rm -fr conftest* | |
2625 case "$conftest_rc" in | |
2626 11) echo "You appear to be using the SunPro C compiler." ; __SUNPRO_C=yes ;; | |
2627 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;; | |
2628 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;; | |
2629 14) echo "You appear to be using the Intel C++ compiler."; __ICC=yes | |
2630 GCC=no ;; | |
2631 esac | |
2632 fi | |
2633 rm -fr conftest* | |
2634 | |
2635 | |
2636 | |
2637 | |
2638 echo "Extracting information from the machine- and system-dependent headers..." | |
2639 | |
2640 tempcname="conftest.c" | |
2641 | |
2642 | |
2643 | |
2644 cat > $tempcname < confdefs.h | |
2645 cat >> $tempcname <<EOF | |
2646 #define NOT_C_CODE | |
2647 #define C_SWITCH_SITE | |
2648 #define C_SWITCH_X_SITE | |
2649 #define LD_SWITCH_SITE | |
2650 #define LD_SWITCH_X_SITE | |
2651 #define LD_SWITCH_X_SITE_AUX | |
2652 #define OS_RELEASE $os_release | |
2653 | |
2654 #ifdef config_opsysfile | |
2655 #include "$srcdir/src/$opsysfile" | |
2656 #endif | |
2657 | |
2658 #ifdef config_machfile | |
2659 #include "$srcdir/src/$machfile" | |
2660 #endif | |
2661 | |
2662 #ifndef LIBS_MACHINE | |
2663 #define LIBS_MACHINE | |
2664 #endif | |
2665 configure___ libs_machine=LIBS_MACHINE | |
2666 | |
2667 #ifndef LIBS_SYSTEM | |
2668 #define LIBS_SYSTEM | |
2669 #endif | |
2670 configure___ libs_system=LIBS_SYSTEM | |
2671 | |
2672 #ifndef LIBS_TERMCAP | |
2673 #define LIBS_TERMCAP | |
2674 #endif | |
2675 configure___ libs_termcap=LIBS_TERMCAP | |
2676 | |
2677 #ifndef LIB_STANDARD | |
2678 #define LIB_STANDARD | |
2679 #endif | |
2680 configure___ libs_standard=LIB_STANDARD | |
2681 | |
2682 | |
2683 #ifndef OBJECTS_MACHINE | |
2684 #define OBJECTS_MACHINE | |
2685 #endif | |
2686 configure___ objects_machine=OBJECTS_MACHINE | |
2687 | |
2688 #ifndef OBJECTS_SYSTEM | |
2689 #define OBJECTS_SYSTEM | |
2690 #endif | |
2691 configure___ objects_system=OBJECTS_SYSTEM | |
2692 | |
2693 | |
2694 #ifndef C_SWITCH_MACHINE | |
2695 #define C_SWITCH_MACHINE | |
2696 #endif | |
2697 configure___ c_switch_machine=C_SWITCH_MACHINE | |
2698 | |
2699 #ifndef C_SWITCH_SYSTEM | |
2700 #define C_SWITCH_SYSTEM | |
2701 #endif | |
2702 configure___ c_switch_system=C_SWITCH_SYSTEM | |
2703 | |
2704 | |
2705 #ifndef LD_SWITCH_MACHINE | |
2706 #define LD_SWITCH_MACHINE | |
2707 #endif | |
2708 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
2709 | |
2710 #ifndef LD_SWITCH_SYSTEM | |
2711 #define LD_SWITCH_SYSTEM | |
2712 #endif | |
2713 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
2714 | |
2715 | |
2716 #ifndef UNEXEC | |
2717 #define UNEXEC | |
2718 #endif | |
2719 configure___ unexec=UNEXEC | |
2720 | |
2721 | |
2722 #ifndef SYSTEM_TYPE | |
2723 #define SYSTEM_TYPE | |
2724 #endif | |
2725 configure___ system_type=SYSTEM_TYPE | |
2726 | |
2727 | |
2728 #ifndef LD_SWITCH_SHARED | |
2729 #define LD_SWITCH_SHARED "-c" | |
2730 #endif | |
2731 configure___ ld_switch_shared=LD_SWITCH_SHARED | |
2732 | |
2733 | |
2734 #define ORDINARY_LD "\$(CC) \$(CFLAGS)" | |
2735 configure___ ordinary_ld=ORDINARY_LD | |
2736 | |
2737 #ifdef ORDINARY_LINK | |
2738 #define LD ORDINARY_LD | |
2739 #else /* no ORDINARY LINK */ | |
2740 #ifdef COFF_ENCAPSULATE | |
2741 #define LD "\$(CC) -nostdlib" | |
2742 #else /* not COFF_ENCAPSULATE */ | |
2743 #ifdef LINKER | |
2744 #define LD LINKER | |
2745 #else /* ! defined (LINKER) */ | |
2746 #define LD "ld" | |
2747 #endif /* ! defined (LINKER) */ | |
2748 #endif /* ! defined (COFF_ENCAPSULATE) */ | |
2749 #endif /* not ORDINARY_LINK */ | |
2750 configure___ ld=LD | |
2751 | |
2752 #ifndef LIB_GCC | |
2753 #define LIB_GCC | |
2754 #endif | |
2755 configure___ lib_gcc=LIB_GCC | |
2756 | |
2757 #ifndef LD_TEXT_START_ADDR | |
2758 #define LD_TEXT_START_ADDR | |
2759 #endif | |
2760 configure___ ld_text_start_addr=LD_TEXT_START_ADDR | |
2761 | |
2762 | |
2763 #if ! defined (ORDINARY_LINK) && !defined (START_FILES) | |
2764 #ifdef NO_REMAP | |
2765 #ifdef COFF_ENCAPSULATE | |
2766 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o" | |
2767 #else /* ! defined (COFF_ENCAPSULATE) */ | |
2768 #define START_FILES "pre-crt0.o /lib/crt0.o" | |
2769 #endif /* ! defined (COFF_ENCAPSULATE) */ | |
2770 #else /* ! defined (NO_REMAP) */ | |
2771 #define START_FILES "ecrt0.o" | |
2772 #endif /* ! defined (NO_REMAP) */ | |
2773 #endif /* no ORDINARY_LINK */ | |
2774 #ifndef START_FILES | |
2775 #define START_FILES | |
2776 #endif | |
2777 configure___ start_files=START_FILES | |
2778 | |
2779 #ifdef ORDINARY_LINK | |
2780 configure___ ordinary_link=yes | |
2781 #else | |
2782 configure___ ordinary_link=no | |
2783 #endif | |
2784 | |
2785 #ifdef SYSTEM_MALLOC | |
2786 configure___ system_malloc=yes | |
2787 #else | |
2788 configure___ system_malloc=no | |
2789 #endif | |
2790 | |
2791 #ifdef TERMINFO | |
2792 configure___ have_terminfo=yes | |
2793 #else | |
2794 configure___ have_terminfo=no | |
2795 #endif | |
2796 | |
2797 #ifdef MAIL_USE_FLOCK | |
2798 configure___ mail_use_flock=yes | |
2799 #else | |
2800 configure___ mail_use_flock=no | |
2801 #endif | |
2802 | |
2803 #ifdef MAIL_USE_LOCKF | |
2804 configure___ mail_use_lockf=yes | |
2805 #else | |
2806 configure___ mail_use_lockf=no | |
2807 #endif | |
2808 | |
2809 #ifdef MAIL_USE_LOCKING | |
2810 configure___ mail_use_locking=yes | |
2811 #else | |
2812 configure___ mail_use_locking=no | |
2813 #endif | |
2814 | |
2815 #ifdef HAVE_WIN32_PROCESSES | |
2816 configure___ win32_processes=yes | |
2817 #else | |
2818 configure___ win32_processes=no | |
2819 #endif | |
2820 | |
2821 EOF | |
2822 | |
2823 CPP=`eval "echo $CPP $CPPFLAGS"` | |
2824 eval `$CPP -Isrc $tempcname \ | |
2825 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"` | |
2826 | |
2827 rm $tempcname | |
2828 | |
2829 test -z "$system_type" && \ | |
2830 { test "$extra_verbose" = "yes" && cat << EOF | |
2831 Defining SYSTEM_TYPE = "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" | |
2832 EOF | |
2833 cat >> confdefs.h <<EOF | |
2834 #define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" | |
2835 EOF | |
2836 } | |
2837 | |
2838 | |
2839 test -z "$unexec" && pdump=yes | |
2840 | |
2841 if test "$pdump" = "yes"; then | |
2842 ordinary_link="yes" | |
2843 ld="${ordinary_ld}" | |
2844 start_files= | |
2845 libs_standard= | |
2846 unexec= | |
2847 lib_gcc= | |
2848 fi | |
2849 | |
2850 test "$extra_verbose" = "yes" && \ | |
2851 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 mail_using_locking; do eval "echo \"$var = '\$$var'\""; done && echo "" | |
2852 | |
2853 case "$opsys" in mingw* | cygwin*) | |
2854 cygwin_include=`eval "gcc -print-file-name=libc.a"` ; | |
2855 cygwin_include=`eval "dirname $cygwin_include"` ; | |
2856 cygwin_include="-I$cygwin_include/../include" ; | |
2857 extra_includes="$cygwin_include/mingw $cygwin_include" ; | |
2858 case "$opsys" in mingw*) | |
2859 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;; | |
2860 esac | |
2861 ;; | |
2862 esac | |
2863 | |
2864 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" | |
2865 | |
2866 | |
2867 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi | |
2868 | |
2869 if test "$__USLC__" = yes; then | |
2870 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6 | |
2871 echo "configure:2872: checking for whether the -Kalloca compiler flag is needed" >&5 | |
2872 need_kalloca=no | |
2873 cat > conftest.$ac_ext <<EOF | |
2874 #line 2875 "configure" | |
2875 #include "confdefs.h" | |
2876 | |
2877 int main() { | |
2878 void *x = alloca(4); | |
2879 ; return 0; } | |
2880 EOF | |
2881 if { (eval echo configure:2882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2882 rm -rf conftest* | |
2883 : | |
2884 else | |
2885 echo "configure: failed program was:" >&5 | |
2886 cat conftest.$ac_ext >&5 | |
2887 rm -rf conftest* | |
2888 | |
2889 xe_save_c_switch_system="$c_switch_system" | |
2890 c_switch_system="$c_switch_system -Kalloca" | |
2891 cat > conftest.$ac_ext <<EOF | |
2892 #line 2893 "configure" | |
2893 #include "confdefs.h" | |
2894 | |
2895 int main() { | |
2896 void *x = alloca(4); | |
2897 ; return 0; } | |
2898 EOF | |
2899 if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2900 rm -rf conftest* | |
2901 need_kalloca=yes | |
2902 else | |
2903 echo "configure: failed program was:" >&5 | |
2904 cat conftest.$ac_ext >&5 | |
2905 fi | |
2906 rm -f conftest* | |
2907 c_switch_system="$xe_save_c_switch_system" | |
2908 fi | |
2909 rm -f conftest* | |
2910 echo "$ac_t""$need_kalloca" 1>&6 | |
2911 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 | |
2912 fi | |
2913 | |
2914 if test "$CC" != "$XEMACS_CC"; then | |
2915 if test "$XEMACS_CC" = "g++" -a "$GCC" != "yes"; then | |
2916 echo "configure: warning: CC and g++ are mismatched; XE_CFLAGS may be wrong" 1>&2 | |
2917 xemacs_cc_cc_mismatch=yes | |
2918 elif test -n "$GCC" -a "$XEMACS_CC" != "g++"; then | |
2919 echo "configure: warning: gcc and XEMACS_CC are mismatched; XE_CFLAGS may be wrong" 1>&2 | |
2920 xemacs_cc_cc_mismatch=yes | |
2921 else | |
2922 xemacs_cc_cc_mismatch=no | |
2923 fi | |
2924 fi | |
2925 | |
2926 | |
2927 if test -z "$with_optimization" ; then | |
2928 if test -n "$emacs_is_beta" ; then | |
2929 with_optimization=no | |
2930 else | |
2931 with_optimization=yes | |
2932 fi | |
2933 fi | |
2934 | |
2935 | |
2936 echo $ac_n "checking for preferred optimization flags""... $ac_c" 1>&6 | |
2937 echo "configure:2938: checking for preferred optimization flags" >&5 | |
2938 if test "$with_optimization" = "yes" ; then | |
2939 if test "$cflags_optimization_specified" = "no"; then | |
2940 if test "$GCC" = "yes"; then | |
2941 cflags_optimization="-O3" | |
2942 elif test "$__SUNPRO_C" = "yes"; then | |
2943 case "$opsys" in | |
2944 sol2 ) cflags_optimization="-xO4" ;; | |
2945 sunos4* ) cflags_optimization="-xO2" ;; | |
2946 esac | |
2947 elif test "$__DECC" = "yes"; then | |
2948 cflags_optimization="-O3" | |
2949 elif test "$CC" = "xlc"; then | |
2950 cflags_optimization="-O3 -qstrict -qnoansialias -qlibansi -qmaxmem=20000" | |
2951 elif test "$__ICC" = "yes"; then | |
2952 cflags_optimization="-O3 -Ob2" | |
2953 else | |
2954 cflags_optimization="-O" ; fi | |
2955 fi | |
2956 else | |
2957 cflags_optimization= | |
2958 fi | |
2959 | |
2960 echo "$ac_t""${cflags_optimization}" 1>&6 | |
2961 | |
2962 | |
2963 echo $ac_n "checking for preferred debugging flags""... $ac_c" 1>&6 | |
2964 echo "configure:2965: checking for preferred debugging flags" >&5 | |
2965 if test "$cflags_debugging_specified" = "no"; then | |
2966 cflags_debugging="-g" | |
2967 | |
2968 debugging_ok_with_optimization=no | |
2969 if test "$GCC" = "yes" -o "$CC" = "xlc" -o "$__ICC" = "yes"; then | |
2970 debugging_ok_with_optimization=yes | |
2971 fi | |
2972 | |
2973 if test "$with_optimization" = "yes" -a "$debugging_ok_with_optimization" = "no"; then | |
2974 cflags_debugging= | |
2975 fi | |
2976 fi | |
2977 echo "$ac_t""${cflags_debugging}" 1>&6 | |
2978 | |
2979 | |
2980 echo $ac_n "checking for preferred warning flags for XEMACS_CC""... $ac_c" 1>&6 | |
2981 echo "configure:2982: checking for preferred warning flags for XEMACS_CC" >&5 | |
2982 | |
2983 xe_cflags_warning="" | |
2984 | |
2985 if test "$cflags_warning_specified" = "no"; then | |
2986 if test "$__SUNPRO_C" = "yes"; then | |
2987 case "$opsys" in | |
2988 sol2 ) cflags_warning="-v" ;; | |
2989 esac | |
2990 elif test "$CC" = "xlc"; then | |
2991 cflags_warning="-qinfo" | |
2992 elif test "$GCC" = "yes"; then | |
2993 cflags_warning="-Wall -Wno-switch -Wundef" | |
2994 | |
2995 cflags_warning="$cflags_warning -Wsign-compare -Wno-char-subscripts" | |
2996 test "$__GCC3" = "yes" && cflags_warning="$cflags_warning -Wpacked" | |
2997 test "$have_glibc" != "yes" && \ | |
2998 cflags_warning="$cflags_warning -Wpointer-arith" | |
2999 if test "$xemacs_compiler" = "g++"; then | |
3000 xe_cflags_warning="$cflags_warning -Weffc++" | |
3001 elif test "$__GCC3" = "yes"; then | |
3002 xe_cflags_warning="$cflags_warning -Wunused-parameter" | |
3003 fi | |
3004 cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations" | |
3005 cflags_warning="$cflags_warning -Wmissing-prototypes -Wstrict-prototypes" | |
3006 elif test "$__ICC" = "yes"; then | |
3007 cflags_warning="-Wall -w1 -we147" | |
3008 fi | |
3009 fi | |
3010 test -z "$xe_cflags_warning" && xe_cflags_warning="$cflags_warning" | |
3011 echo "$ac_t""${xe_cflags_warning}" 1>&6 | |
3012 | |
3013 echo $ac_n "checking for preferred warning flags for CC""... $ac_c" 1>&6 | |
3014 echo "configure:3015: checking for preferred warning flags for CC" >&5 | |
3015 echo "$ac_t""${cflags_warning}" 1>&6 | |
3016 | |
3017 | |
3018 echo $ac_n "checking for remaining CFLAGS""... $ac_c" 1>&6 | |
3019 echo "configure:3020: checking for remaining CFLAGS" >&5 | |
3020 | |
3021 if test "$cflags_specified" = "no"; then | |
3022 if test "$CC" = "xlc"; then | |
3023 CFLAGS="-qro" | |
3024 fi | |
3025 fi | |
3026 echo "$ac_t""${CFLAGS}" 1>&6 | |
3027 | |
3028 | |
3029 XE_CFLAGS="$xe_cflags_warning $cflags_debugging $cflags_optimization $CFLAGS" | |
3030 CFLAGS="$cflags_warning $cflags_debugging $cflags_optimization $CFLAGS" | |
3031 | |
3032 echo $ac_n "checking total value of XE_CFLAGS""... $ac_c" 1>&6 | |
3033 echo "configure:3034: checking total value of XE_CFLAGS" >&5 | |
3034 echo "$ac_t""${XE_CFLAGS}" 1>&6 | |
3035 echo $ac_n "checking total value of CFLAGS""... $ac_c" 1>&6 | |
3036 echo "configure:3037: checking total value of CFLAGS" >&5 | |
3037 echo "$ac_t""${CFLAGS}" 1>&6 | |
3038 | |
3039 if test "$GCC" = "yes"; then | |
3040 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6 | |
3041 echo "configure:3042: checking for buggy gcc versions" >&5 | |
3042 GCC_VERSION=`$CC --version` | |
3043 case `uname -s`:`uname -m`:$GCC_VERSION in | |
3044 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) | |
3045 case "$CFLAGS" in | |
3046 *-O2*|*-O3*) | |
3047 case "$CFLAGS" in | |
3048 *-fno-schedule-insns*) ;; | |
3049 *) | |
3050 echo "$ac_t""yes" 1>&6 | |
3051 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2 | |
3052 echo "configure: warning: without also using -fno-schedule-insns." 1>&2 | |
3053 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; } | |
3054 ;; | |
3055 esac | |
3056 ;; | |
3057 esac | |
3058 ;; | |
3059 Linux:alpha:egcs-2.91.*) | |
3060 echo "$ac_t""yes" 1>&6 | |
3061 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2 | |
3062 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2 | |
3063 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; } | |
3064 ;; | |
3065 *:i*86*:2.7.2*) | |
3066 case "$CFLAGS" in | |
3067 *-O2*|*-O3*) | |
3068 case "$GCC_VERSION" in | |
3069 2.7.2) | |
3070 case "$CFLAGS" in | |
3071 *-fno-strength-reduce*) ;; | |
3072 *) | |
3073 echo "$ac_t""yes" 1>&6 | |
3074 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2 | |
3075 echo "configure: warning: -fno-strength-reduce." 1>&2 | |
3076 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; } | |
3077 ;; | |
3078 esac | |
3079 ;; | |
3080 esac | |
3081 case "$CFLAGS" in | |
3082 *-fno-caller-saves*) ;; | |
3083 *) | |
3084 echo "$ac_t""yes" 1>&6 | |
3085 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2 | |
3086 echo "configure: warning: -fno-caller-saves." 1>&2 | |
3087 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; } | |
3088 ;; | |
3089 esac | |
3090 ;; | |
3091 esac | |
3092 ;; | |
3093 esac | |
3094 echo "$ac_t""no" 1>&6 | |
3095 fi | |
3096 | |
3097 if test "$pdump" != "yes"; then | |
3098 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6 | |
3099 echo "configure:3100: checking for \"-z nocombreloc\" linker flag" >&5 | |
3100 case "`ld --help 2>&1`" in | |
3101 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6 | |
3102 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;; | |
3103 *) echo "$ac_t""no" 1>&6 ;; | |
3104 esac | |
3105 fi | |
3106 | |
3107 | |
3108 | |
3109 if test "$GCC" = "yes"; then | |
3110 set x $ld_switch_system; shift; ld_switch_system="" | |
3111 while test -n "$1"; do | |
3112 case $1 in | |
3113 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;; | |
3114 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;; | |
3115 -Xlinker* ) ;; | |
3116 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;; | |
3117 esac | |
3118 shift | |
3119 done | |
3120 fi | |
3121 | |
3122 if test "$GCC" = "yes"; then | |
3123 set x $ld_switch_machine; shift; ld_switch_machine="" | |
3124 while test -n "$1"; do | |
3125 case $1 in | |
3126 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;; | |
3127 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;; | |
3128 -Xlinker* ) ;; | |
3129 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;; | |
3130 esac | |
3131 shift | |
3132 done | |
3133 fi | |
3134 | |
3135 if test "$GCC" = "yes"; then | |
3136 set x $ld_switch_site; shift; ld_switch_site="" | |
3137 while test -n "$1"; do | |
3138 case $1 in | |
3139 -L | -l | -u ) ld_switch_site="$ld_switch_site $1 $2"; shift ;; | |
3140 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_site="$ld_switch_site $1" ;; | |
3141 -Xlinker* ) ;; | |
3142 * ) ld_switch_site="$ld_switch_site -Xlinker $1" ;; | |
3143 esac | |
3144 shift | |
3145 done | |
3146 fi | |
3147 | |
3148 if test "$GCC" = "yes"; then | |
3149 set x $LDFLAGS; shift; LDFLAGS="" | |
3150 while test -n "$1"; do | |
3151 case $1 in | |
3152 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;; | |
3153 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;; | |
3154 -Xlinker* ) ;; | |
3155 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;; | |
3156 esac | |
3157 shift | |
3158 done | |
3159 fi | |
3160 | |
3161 if test "$GCC" = "yes"; then | |
3162 set x $ld_call_shared; shift; ld_call_shared="" | |
3163 while test -n "$1"; do | |
3164 case $1 in | |
3165 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;; | |
3166 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;; | |
3167 -Xlinker* ) ;; | |
3168 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;; | |
3169 esac | |
3170 shift | |
3171 done | |
3172 fi | |
3173 | |
3174 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then | |
3175 echo " xemacs will be linked with \"$objects_machine\"" | |
3176 fi | |
3177 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then | |
3178 echo " xemacs will be linked with \"$objects_system\"" | |
3179 fi | |
3180 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then | |
3181 echo " xemacs will be linked with \"$unexec\"" | |
3182 fi | |
3183 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then | |
3184 echo " xemacs will be linked with \"dumper.o\"" | |
3185 fi | |
3186 | |
3187 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 | |
3188 echo "configure:3189: checking for dynodump" >&5 | |
3189 if test "$unexec" != "unexsol2.o"; then | |
3190 echo "$ac_t""no" 1>&6 | |
3191 else | |
3192 echo "$ac_t""yes" 1>&6 | |
3193 { test "$extra_verbose" = "yes" && cat << \EOF | |
3194 Defining DYNODUMP | |
3195 EOF | |
3196 cat >> confdefs.h <<\EOF | |
3197 #define DYNODUMP 1 | |
3198 EOF | |
3199 } | |
3200 | |
3201 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi | |
3202 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi | |
3203 case "$machine" in | |
3204 sparc ) dynodump_arch=sparc ;; | |
3205 *86* ) dynodump_arch=i386 ;; | |
3206 powerpc ) dynodump_arch=ppc ;; | |
3207 esac | |
3208 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 | |
3209 fi | |
3210 | |
3211 | |
3212 | |
3213 if test "$unexec" = "unexaix.o"; then | |
3214 if test "$dynamic" = "no"; then | |
3215 start_flags="-Wl,-bnso,-bnodelcsect" | |
3216 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}" | |
3217 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do | |
3218 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi | |
3219 done | |
3220 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do | |
3221 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi | |
3222 done | |
3223 | |
3224 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 | |
3225 echo "configure:3226: checking for terminateAndUnload in -lC" >&5 | |
3226 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` | |
3227 | |
3228 xe_check_libs=" -lC " | |
3229 cat > conftest.$ac_ext <<EOF | |
3230 #line 3231 "configure" | |
3231 #include "confdefs.h" | |
3232 /* Override any gcc2 internal prototype to avoid an error. */ | |
3233 /* We use char because int might match the return type of a gcc2 | |
3234 builtin and then its argument prototype would still apply. */ | |
3235 char terminateAndUnload(); | |
3236 | |
3237 int main() { | |
3238 terminateAndUnload() | |
3239 ; return 0; } | |
3240 EOF | |
3241 if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3242 rm -rf conftest* | |
3243 eval "ac_cv_lib_$ac_lib_var=yes" | |
3244 else | |
3245 echo "configure: failed program was:" >&5 | |
3246 cat conftest.$ac_ext >&5 | |
3247 rm -rf conftest* | |
3248 eval "ac_cv_lib_$ac_lib_var=no" | |
3249 fi | |
3250 rm -f conftest* | |
3251 xe_check_libs="" | |
3252 | |
3253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
3254 echo "$ac_t""yes" 1>&6 | |
3255 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi | |
3256 else | |
3257 echo "$ac_t""no" 1>&6 | |
3258 fi | |
3259 | |
3260 | |
3261 fi | |
3262 elif test -n "$ld_text_start_addr"; then | |
3263 start_flags="-T $ld_text_start_addr -e __start" | |
3264 fi | |
3265 | |
3266 | |
3267 | |
3268 | |
3269 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then | |
3270 test -z "$linker" && linker='$(CC) -nostdlib' | |
3271 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`' | |
3272 fi | |
3273 test "$GCC" != "yes" && lib_gcc= | |
3274 | |
3275 | |
3276 | |
3277 | |
3278 compiler_version="" | |
3279 gcc_compiler_specs="" | |
3280 libc_version="" | |
3281 | |
3282 echo $ac_n "checking for compiler version information""... $ac_c" 1>&6 | |
3283 echo "configure:3284: checking for compiler version information" >&5 | |
3284 | |
3285 if test "$GCC" = "yes"; then | |
3286 compiler_version=`$XEMACS_CC --version | head -1` | |
3287 gcc_compiler_specs=`$XEMACS_CC -v 2>&1 | sed 's/.* \([^ ]\)/\1/' | head -1` | |
3288 else case "$XEMACS_CC" in | |
3289 ic*) | |
3290 compiler_version=`icc -V 2>&1 | head -1` | |
3291 ;; | |
3292 *) case "$canonical" in | |
3293 *-*-aix* ) | |
3294 realcc=`which $XEMACS_CC` | |
3295 if test -L $realcc ; then | |
3296 ccdir=`dirname $realcc` | |
3297 ccprog=`/bin/ls -l $realcc | sed 's/.* \([^ ]\)/\1/'` | |
3298 case $ccprog in | |
3299 */*) realcc=$ccprog;; | |
3300 *) realcc=$ccdir/$ccprog;; | |
3301 esac | |
3302 fi | |
3303 lpp=`lslpp -wqc $realcc | cut -f2 -d:` | |
3304 if test ! -z "$lpp" ; then | |
3305 lppstr=`lslpp -Lqc $lpp` | |
3306 lpplev=`echo "$lppstr" | cut -f3 -d:` | |
3307 lppdesc=`echo "$lppstr" | cut -f8 -d:` | |
3308 fi | |
3309 if test ! -z "$lpplev" ; then | |
3310 compiler_version="$lpp $lpplev - $lppdesc" | |
3311 fi | |
3312 ;; | |
3313 | |
3314 *-*-solaris*) | |
3315 compiler_version=`$XEMACS_CC -V 2>&1 | head -1` | |
3316 ;; | |
3317 | |
3318 alpha*-dec-osf*) | |
3319 compiler_version=`$XEMACS_CC -V | tr '\n' ' '` | |
3320 ;; | |
3321 | |
3322 mips-sgi-irix*) | |
3323 compiler_version=`$XEMACS_CC -version` | |
3324 ;; | |
3325 esac | |
3326 esac | |
3327 fi | |
3328 | |
3329 if test -z "$compiler_version"; then | |
3330 compiler_version="detection failed (please report this)" | |
3331 fi | |
3332 | |
3333 echo $ac_n "checking for standard C library version information""... $ac_c" 1>&6 | |
3334 echo "configure:3335: checking for standard C library version information" >&5 | |
3335 | |
3336 case "$canonical" in | |
3337 *-*-linux*) | |
3338 if test -f /etc/redhat-release ; then | |
3339 libc_version=`rpm -q glibc` | |
3340 elif test -f /etc/debian_version ; then | |
3341 libc_version=`dpkg-query --showformat='${version}' --show libc6` | |
3342 libc_version="GNU libc $libc_version (Debian)" | |
3343 fi | |
3344 if test -z "$libc_version"; then | |
3345 libc_version=`ls /lib/libc-*.so | sed -e 's,/lib/libc-\(.*\)\.so,\1,'` | |
3346 fi | |
3347 ;; | |
3348 | |
3349 *-*-aix*) | |
3350 libc_version="bos.rte.libc `lslpp -Lqc bos.rte.libc | cut -f3 -d:`" | |
3351 ;; | |
3352 | |
3353 *-*-solaris*) | |
3354 libc=`pkginfo -l SUNWcsl | grep VERSION: | awk '{print $2}'` | |
3355 libc_version="SUNWcsl $libc" | |
3356 | |
3357 ;; | |
3358 | |
3359 mips-sgi-irix*) | |
3360 libc_version="IRIX libc `uname -sRm`" | |
3361 ;; | |
3362 | |
3363 alpha*-dec-osf*) | |
3364 (cd /usr/.smdb.; | |
3365 libc_version=` grep -h libc.so *.inv | awk '$9 == "f" {print $12}' | tr '\n' ','` | |
3366 ) | |
3367 ;; | |
3368 esac | |
3369 | |
3370 if test -z "libc_version"; then | |
3371 libc_version="detection failed (please report this)" | |
3372 fi | |
3373 | |
3374 | |
3375 | |
3376 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac | |
3377 if test -n "$site_libraries"; then | |
3378 for arg in $site_libraries; do | |
3379 case "$arg" in | |
3380 -* ) ;; | |
3381 * ) test -d "$arg" || \ | |
3382 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; } | |
3383 arg="-L${arg}" ;; | |
3384 esac | |
3385 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi | |
3386 done | |
3387 fi | |
3388 | |
3389 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac | |
3390 if test -n "$site_includes"; then | |
3391 for arg in $site_includes; do | |
3392 case "$arg" in | |
3393 -* ) ;; | |
3394 * ) test -d "$arg" || \ | |
3395 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; } | |
3396 arg="-I${arg}" ;; | |
3397 esac | |
3398 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi | |
3399 done | |
3400 fi | |
3401 | |
3402 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac | |
3403 if test -n "$site_prefixes"; then | |
3404 for dir in $site_prefixes; do | |
3405 lib_dir="${dir}/lib" | |
3406 inc_dir="${dir}/include" | |
3407 if test ! -d "$dir"; then | |
3408 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; } | |
3409 elif test ! -d "$lib_dir"; then | |
3410 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; } | |
3411 else | |
3412 if test -d "$inc_dir"; then | |
3413 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 | |
3414 fi | |
3415 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 | |
3416 fi | |
3417 done | |
3418 fi | |
3419 | |
3420 | |
3421 for dir in "/usr/ccs/lib"; do | |
3422 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 | |
3423 done | |
3424 | |
3425 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac | |
3426 if test -n "$site_runtime_libraries"; then | |
3427 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`" | |
3428 export LD_RUN_PATH | |
3429 fi | |
3430 | |
3431 | |
3432 | |
3433 | |
3434 | |
3435 if test -n "$add_runtime_path"; then :; | |
3436 elif test "$dynamic" = "no"; then add_runtime_path=no | |
3437 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes | |
3438 else case "$opsys" in | |
3439 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;; | |
3440 * ) add_runtime_path=no ;; | |
3441 esac | |
3442 fi | |
3443 | |
3444 if test "$add_runtime_path" = "yes"; then | |
3445 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 | |
3446 echo "configure:3447: checking "for runtime libraries flag"" >&5 | |
3447 case "$opsys" in | |
3448 sol2 ) dash_r="-R" ;; | |
3449 decosf* | linux* | irix*) dash_r="-rpath " ;; | |
3450 *) | |
3451 dash_r="" | |
3452 for try_dash_r in "-R" "-R " "-rpath "; do | |
3453 xe_check_libs="${try_dash_r}/no/such/file-or-directory" | |
3454 | |
3455 if test "$GCC" = "yes"; then | |
3456 set x $xe_check_libs; shift; xe_check_libs="" | |
3457 while test -n "$1"; do | |
3458 case $1 in | |
3459 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;; | |
3460 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;; | |
3461 -Xlinker* ) ;; | |
3462 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;; | |
3463 esac | |
3464 shift | |
3465 done | |
3466 fi | |
3467 cat > conftest.$ac_ext <<EOF | |
3468 #line 3469 "configure" | |
3469 #include "confdefs.h" | |
3470 | |
3471 int main() { | |
3472 | |
3473 ; return 0; } | |
3474 EOF | |
3475 if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3476 rm -rf conftest* | |
3477 dash_r="$try_dash_r" | |
3478 else | |
3479 echo "configure: failed program was:" >&5 | |
3480 cat conftest.$ac_ext >&5 | |
3481 fi | |
3482 rm -f conftest* | |
3483 xe_check_libs="" | |
3484 test -n "$dash_r" && break | |
3485 done ;; | |
3486 esac | |
3487 if test -n "$dash_r"; | |
3488 then echo "$ac_t"""\"${dash_r}\""" 1>&6 | |
3489 else echo "$ac_t""NONE" 1>&6 | |
3490 fi | |
3491 fi | |
3492 | |
3493 xe_add_unique_runpath_dir=' | |
3494 xe_add_p=yes | |
3495 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no | |
3496 done | |
3497 if test "$xe_add_p" = "yes"; then | |
3498 test -n "$runpath" && runpath="${runpath}:" | |
3499 runpath="${runpath}${xe_runpath_dir}" | |
3500 runpath_dirs="$runpath_dirs $xe_runpath_dir" | |
3501 fi' | |
3502 | |
3503 | |
3504 | |
3505 | |
3506 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then | |
3507 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"` | |
3508 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"` | |
3509 | |
3510 runpath="" runpath_dirs="" | |
3511 if test -n "$LD_RUN_PATH"; then | |
3512 runpath="$LD_RUN_PATH" | |
3513 elif test "$GCC" = "yes"; then | |
3514 ld_switch_run_save="$ld_switch_run"; ld_switch_run="" | |
3515 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c | |
3516 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' | |
3517 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do | |
3518 case "$arg" in P,* | -L* | -R* ) | |
3519 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do | |
3520 { | |
3521 xe_runpath_dir="$dir" | |
3522 test "$xe_runpath_dir" != "/lib" -a \ | |
3523 "$xe_runpath_dir" != "/usr/lib" -a \ | |
3524 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \ | |
3525 eval "$xe_add_unique_runpath_dir" | |
3526 } | |
3527 done ;; | |
3528 esac | |
3529 done | |
3530 ld_switch_run="$ld_switch_run_save" | |
3531 rm -f conftest* | |
3532 else | |
3533 for arg in $ld_switch_site $ld_switch_x_site; do | |
3534 case "$arg" in -L*) { | |
3535 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'` | |
3536 test "$xe_runpath_dir" != "/lib" -a \ | |
3537 "$xe_runpath_dir" != "/usr/lib" -a \ | |
3538 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \ | |
3539 eval "$xe_add_unique_runpath_dir" | |
3540 };; esac | |
3541 done | |
3542 if test "$opsys $need_motif" = "sol2 yes"; then | |
3543 xe_runpath_dir="/opt/SUNWdt/lib"; | |
3544 eval "$xe_add_unique_runpath_dir"; | |
3545 fi | |
3546 fi | |
3547 if test -n "$runpath"; then | |
3548 ld_switch_run="${dash_r}${runpath}" | |
3549 | |
3550 if test "$GCC" = "yes"; then | |
3551 set x $ld_switch_run; shift; ld_switch_run="" | |
3552 while test -n "$1"; do | |
3553 case $1 in | |
3554 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;; | |
3555 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;; | |
3556 -Xlinker* ) ;; | |
3557 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;; | |
3558 esac | |
3559 shift | |
3560 done | |
3561 fi | |
3562 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" | |
3563 fi | |
3564 fi | |
3565 | |
3566 | |
3567 | |
3568 GNU_MALLOC=yes | |
3569 if test "$with_dlmalloc" != "no"; then | |
3570 doug_lea_malloc=yes | |
3571 else | |
3572 doug_lea_malloc=no | |
3573 fi | |
3574 after_morecore_hook_exists=yes | |
3575 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | |
3576 echo "configure:3577: checking for malloc_set_state" >&5 | |
3577 | |
3578 cat > conftest.$ac_ext <<EOF | |
3579 #line 3580 "configure" | |
3580 #include "confdefs.h" | |
3581 /* System header to define __stub macros and hopefully few prototypes, | |
3582 which can conflict with char malloc_set_state(); below. */ | |
3583 #include <assert.h> | |
3584 /* Override any gcc2 internal prototype to avoid an error. */ | |
3585 /* We use char because int might match the return type of a gcc2 | |
3586 builtin and then its argument prototype would still apply. */ | |
3587 char malloc_set_state(); | |
3588 | |
3589 int main() { | |
3590 | |
3591 /* The GNU C library defines this for functions which it implements | |
3592 to always fail with ENOSYS. Some functions are actually named | |
3593 something starting with __ and the normal name is an alias. */ | |
3594 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
3595 choke me | |
3596 #else | |
3597 malloc_set_state(); | |
3598 #endif | |
3599 | |
3600 ; return 0; } | |
3601 EOF | |
3602 if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3603 rm -rf conftest* | |
3604 eval "ac_cv_func_malloc_set_state=yes" | |
3605 else | |
3606 echo "configure: failed program was:" >&5 | |
3607 cat conftest.$ac_ext >&5 | |
3608 rm -rf conftest* | |
3609 eval "ac_cv_func_malloc_set_state=no" | |
3610 fi | |
3611 rm -f conftest* | |
3612 | |
3613 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then | |
3614 echo "$ac_t""yes" 1>&6 | |
3615 : | |
3616 else | |
3617 echo "$ac_t""no" 1>&6 | |
3618 doug_lea_malloc=no | |
3619 fi | |
3620 | |
3621 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | |
3622 echo "configure:3623: checking whether __after_morecore_hook exists" >&5 | |
3623 cat > conftest.$ac_ext <<EOF | |
3624 #line 3625 "configure" | |
3625 #include "confdefs.h" | |
3626 extern void (* __after_morecore_hook)(); | |
3627 int main() { | |
3628 __after_morecore_hook = 0 | |
3629 ; return 0; } | |
3630 EOF | |
3631 if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3632 rm -rf conftest* | |
3633 echo "$ac_t""yes" 1>&6 | |
3634 else | |
3635 echo "configure: failed program was:" >&5 | |
3636 cat conftest.$ac_ext >&5 | |
3637 rm -rf conftest* | |
3638 echo "$ac_t""no" 1>&6 | |
3639 after_morecore_hook_exists=no | |
3640 fi | |
3641 rm -f conftest* | |
3642 if test "$system_malloc" = "yes" ; then | |
3643 GNU_MALLOC=no | |
3644 GNU_MALLOC_reason=" | |
3645 - The GNU allocators don't work with this system configuration." | |
3646 elif test "$with_system_malloc" = "yes" ; then | |
3647 GNU_MALLOC=no | |
3648 GNU_MALLOC_reason=" | |
3649 - User chose not to use GNU allocators." | |
3650 elif test "$with_debug_malloc" = "yes" ; then | |
3651 GNU_MALLOC=no | |
3652 GNU_MALLOC_reason=" | |
3653 - User chose to use Debugging Malloc." | |
3654 fi | |
3655 | |
3656 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then | |
3657 GNU_MALLOC_reason=" | |
3658 - Using Doug Lea's new malloc from the GNU C Library." | |
3659 { test "$extra_verbose" = "yes" && cat << \EOF | |
3660 Defining DOUG_LEA_MALLOC | |
3661 EOF | |
3662 cat >> confdefs.h <<\EOF | |
3663 #define DOUG_LEA_MALLOC 1 | |
3664 EOF | |
3665 } | |
3666 | |
3667 if test "$after_morecore_hook_exists" = "no" ; then | |
3668 GNU_MALLOC_reason=" | |
3669 - Using Doug Lea's new malloc from the Linux C Library." | |
3670 { test "$extra_verbose" = "yes" && cat << \EOF | |
3671 Defining _NO_MALLOC_WARNING_ | |
3672 EOF | |
3673 cat >> confdefs.h <<\EOF | |
3674 #define _NO_MALLOC_WARNING_ 1 | |
3675 EOF | |
3676 } | |
3677 | |
3678 fi | |
3679 fi | |
3680 | |
3681 | |
3682 | |
3683 | |
3684 # Extract the first word of "ranlib", so it can be a program name with args. | |
3685 set dummy ranlib; ac_word=$2 | |
3686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3687 echo "configure:3688: checking for $ac_word" >&5 | |
3688 | |
3689 if test -n "$RANLIB"; then | |
3690 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3691 else | |
3692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3693 ac_dummy="$PATH" | |
3694 for ac_dir in $ac_dummy; do | |
3695 test -z "$ac_dir" && ac_dir=. | |
3696 if test -f $ac_dir/$ac_word; then | |
3697 ac_cv_prog_RANLIB="ranlib" | |
3698 break | |
3699 fi | |
3700 done | |
3701 IFS="$ac_save_ifs" | |
3702 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
3703 fi | |
3704 RANLIB="$ac_cv_prog_RANLIB" | |
3705 if test -n "$RANLIB"; then | |
3706 echo "$ac_t""$RANLIB" 1>&6 | |
3707 else | |
3708 echo "$ac_t""no" 1>&6 | |
3709 fi | |
3710 | |
3711 ac_aux_dir= | |
3712 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
3713 if test -f $ac_dir/install-sh; then | |
3714 ac_aux_dir=$ac_dir | |
3715 ac_install_sh="$ac_aux_dir/install-sh -c" | |
3716 break | |
3717 elif test -f $ac_dir/install.sh; then | |
3718 ac_aux_dir=$ac_dir | |
3719 ac_install_sh="$ac_aux_dir/install.sh -c" | |
3720 break | |
3721 fi | |
3722 done | |
3723 if test -z "$ac_aux_dir"; then | |
3724 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
3725 fi | |
3726 ac_config_guess=$ac_aux_dir/config.guess | |
3727 ac_config_sub=$ac_aux_dir/config.sub | |
3728 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
3729 | |
3730 # Find a good install program. We prefer a C program (faster), | |
3731 # so one script is as good as another. But avoid the broken or | |
3732 # incompatible versions: | |
3733 # SysV /etc/install, /usr/sbin/install | |
3734 # SunOS /usr/etc/install | |
3735 # IRIX /sbin/install | |
3736 # AIX /bin/install | |
3737 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3738 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3739 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3740 # ./install, which can be erroneously created by make from ./install.sh. | |
3741 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
3742 echo "configure:3743: checking for a BSD compatible install" >&5 | |
3743 if test -z "$INSTALL"; then | |
3744 | |
3745 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
3746 for ac_dir in $PATH; do | |
3747 # Account for people who put trailing slashes in PATH elements. | |
3748 case "$ac_dir/" in | |
3749 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
3750 *) | |
3751 # OSF1 and SCO ODT 3.0 have their own names for install. | |
3752 # Don't use installbsd from OSF since it installs stuff as root | |
3753 # by default. | |
3754 for ac_prog in ginstall scoinst install; do | |
3755 if test -f $ac_dir/$ac_prog; then | |
3756 if test $ac_prog = install && | |
3757 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
3758 # AIX install. It has an incompatible calling convention. | |
3759 : | |
3760 else | |
3761 ac_cv_path_install="$ac_dir/$ac_prog -c" | |
3762 break 2 | |
3763 fi | |
3764 fi | |
3765 done | |
3766 ;; | |
3767 esac | |
3768 done | |
3769 IFS="$ac_save_IFS" | |
3770 | |
3771 if test "${ac_cv_path_install+set}" = set; then | |
3772 INSTALL="$ac_cv_path_install" | |
3773 else | |
3774 # As a last resort, use the slow shell script. We don't cache a | |
3775 # path for INSTALL within a source directory, because that will | |
3776 # break other packages using the cache if that directory is | |
3777 # removed, or if the path is relative. | |
3778 INSTALL="$ac_install_sh" | |
3779 fi | |
3780 fi | |
3781 echo "$ac_t""$INSTALL" 1>&6 | |
3782 | |
3783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3784 # It thinks the first close brace ends the variable substitution. | |
3785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3786 | |
3787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
3788 | |
3789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3790 | |
3791 for ac_prog in 'bison -y' byacc | |
3792 do | |
3793 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3794 set dummy $ac_prog; ac_word=$2 | |
3795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3796 echo "configure:3797: checking for $ac_word" >&5 | |
3797 | |
3798 if test -n "$YACC"; then | |
3799 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
3800 else | |
3801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3802 ac_dummy="$PATH" | |
3803 for ac_dir in $ac_dummy; do | |
3804 test -z "$ac_dir" && ac_dir=. | |
3805 if test -f $ac_dir/$ac_word; then | |
3806 ac_cv_prog_YACC="$ac_prog" | |
3807 break | |
3808 fi | |
3809 done | |
3810 IFS="$ac_save_ifs" | |
3811 fi | |
3812 YACC="$ac_cv_prog_YACC" | |
3813 if test -n "$YACC"; then | |
3814 echo "$ac_t""$YACC" 1>&6 | |
3815 else | |
3816 echo "$ac_t""no" 1>&6 | |
3817 fi | |
3818 | |
3819 test -n "$YACC" && break | |
3820 done | |
3821 test -n "$YACC" || YACC="yacc" | |
3822 | |
3823 | |
3824 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h wchar.h mach/mach.h sys/param.h sys/pstat.h sys/resource.h sys/time.h sys/timeb.h sys/times.h sys/un.h sys/vlimit.h ulimit.h unistd.h | |
3825 do | |
3826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3828 echo "configure:3829: checking for $ac_hdr" >&5 | |
3829 | |
3830 cat > conftest.$ac_ext <<EOF | |
3831 #line 3832 "configure" | |
3832 #include "confdefs.h" | |
3833 #include <$ac_hdr> | |
3834 EOF | |
3835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3836 { (eval echo configure:3837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
3837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
3838 if test -z "$ac_err"; then | |
3839 rm -rf conftest* | |
3840 eval "ac_cv_header_$ac_safe=yes" | |
3841 else | |
3842 echo "$ac_err" >&5 | |
3843 echo "configure: failed program was:" >&5 | |
3844 cat conftest.$ac_ext >&5 | |
3845 rm -rf conftest* | |
3846 eval "ac_cv_header_$ac_safe=no" | |
3847 fi | |
3848 rm -f conftest* | |
3849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3850 echo "$ac_t""yes" 1>&6 | |
3851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3852 { test "$extra_verbose" = "yes" && cat << EOF | |
3853 Defining $ac_tr_hdr | |
3854 EOF | |
3855 cat >> confdefs.h <<EOF | |
3856 #define $ac_tr_hdr 1 | |
3857 EOF | |
3858 } | |
3859 | |
3860 else | |
3861 echo "$ac_t""no" 1>&6 | |
3862 fi | |
3863 done | |
3864 | |
3865 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | |
3866 echo "configure:3867: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
3867 | |
3868 cat > conftest.$ac_ext <<EOF | |
3869 #line 3870 "configure" | |
3870 #include "confdefs.h" | |
3871 #include <sys/types.h> | |
3872 #include <sys/wait.h> | |
3873 #ifndef WEXITSTATUS | |
3874 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
3875 #endif | |
3876 #ifndef WIFEXITED | |
3877 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
3878 #endif | |
3879 int main() { | |
3880 int s; | |
3881 wait (&s); | |
3882 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
3883 ; return 0; } | |
3884 EOF | |
3885 if { (eval echo configure:3886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3886 rm -rf conftest* | |
3887 ac_cv_header_sys_wait_h=yes | |
3888 else | |
3889 echo "configure: failed program was:" >&5 | |
3890 cat conftest.$ac_ext >&5 | |
3891 rm -rf conftest* | |
3892 ac_cv_header_sys_wait_h=no | |
3893 fi | |
3894 rm -f conftest* | |
3895 | |
3896 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
3897 if test $ac_cv_header_sys_wait_h = yes; then | |
3898 { test "$extra_verbose" = "yes" && cat << \EOF | |
3899 Defining HAVE_SYS_WAIT_H | |
3900 EOF | |
3901 cat >> confdefs.h <<\EOF | |
3902 #define HAVE_SYS_WAIT_H 1 | |
3903 EOF | |
3904 } | |
3905 | |
3906 fi | |
3907 | |
3908 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
3909 echo "configure:3910: checking for ANSI C header files" >&5 | |
3910 | |
3911 cat > conftest.$ac_ext <<EOF | |
3912 #line 3913 "configure" | |
3913 #include "confdefs.h" | |
3914 #include <stdlib.h> | |
3915 #include <stdarg.h> | |
3916 #include <string.h> | |
3917 #include <float.h> | |
3918 EOF | |
3919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3920 { (eval echo configure:3921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
3921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
3922 if test -z "$ac_err"; then | |
3923 rm -rf conftest* | |
3924 ac_cv_header_stdc=yes | |
3925 else | |
3926 echo "$ac_err" >&5 | |
3927 echo "configure: failed program was:" >&5 | |
3928 cat conftest.$ac_ext >&5 | |
3929 rm -rf conftest* | |
3930 ac_cv_header_stdc=no | |
3931 fi | |
3932 rm -f conftest* | |
3933 | |
3934 if test $ac_cv_header_stdc = yes; then | |
3935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3936 cat > conftest.$ac_ext <<EOF | |
3937 #line 3938 "configure" | |
3938 #include "confdefs.h" | |
3939 #include <string.h> | |
3940 EOF | |
3941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3942 egrep "memchr" >/dev/null 2>&1; then | |
3943 : | |
3944 else | |
3945 rm -rf conftest* | |
3946 ac_cv_header_stdc=no | |
3947 fi | |
3948 rm -f conftest* | |
3949 | |
3950 fi | |
3951 | |
3952 if test $ac_cv_header_stdc = yes; then | |
3953 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3954 cat > conftest.$ac_ext <<EOF | |
3955 #line 3956 "configure" | |
3956 #include "confdefs.h" | |
3957 #include <stdlib.h> | |
3958 EOF | |
3959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3960 egrep "free" >/dev/null 2>&1; then | |
3961 : | |
3962 else | |
3963 rm -rf conftest* | |
3964 ac_cv_header_stdc=no | |
3965 fi | |
3966 rm -f conftest* | |
3967 | |
3968 fi | |
3969 | |
3970 if test $ac_cv_header_stdc = yes; then | |
3971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3972 cat > conftest.$ac_ext <<EOF | |
3973 #line 3974 "configure" | |
3974 #include "confdefs.h" | |
3975 #include <ctype.h> | |
3976 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3977 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3979 int main () { int i; for (i = 0; i < 256; i++) | |
3980 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
3981 exit (0); } | |
3982 | |
3983 EOF | |
3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
3985 then | |
3986 : | |
3987 else | |
3988 conftest_rc="$?" | |
3989 echo "configure: failed program was:" >&5 | |
3990 cat conftest.$ac_ext >&5 | |
3991 rm -fr conftest* | |
3992 ac_cv_header_stdc=no | |
3993 fi | |
3994 rm -fr conftest* | |
3995 fi | |
3996 | |
3997 echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
3998 if test $ac_cv_header_stdc = yes; then | |
3999 { test "$extra_verbose" = "yes" && cat << \EOF | |
4000 Defining STDC_HEADERS | |
4001 EOF | |
4002 cat >> confdefs.h <<\EOF | |
4003 #define STDC_HEADERS 1 | |
4004 EOF | |
4005 } | |
4006 | |
4007 fi | |
4008 | |
4009 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
4010 echo "configure:4011: checking whether time.h and sys/time.h may both be included" >&5 | |
4011 | |
4012 cat > conftest.$ac_ext <<EOF | |
4013 #line 4014 "configure" | |
4014 #include "confdefs.h" | |
4015 #include <sys/types.h> | |
4016 #include <sys/time.h> | |
4017 #include <time.h> | |
4018 int main() { | |
4019 struct tm *tp; | |
4020 ; return 0; } | |
4021 EOF | |
4022 if { (eval echo configure:4023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4023 rm -rf conftest* | |
4024 ac_cv_header_time=yes | |
4025 else | |
4026 echo "configure: failed program was:" >&5 | |
4027 cat conftest.$ac_ext >&5 | |
4028 rm -rf conftest* | |
4029 ac_cv_header_time=no | |
4030 fi | |
4031 rm -f conftest* | |
4032 | |
4033 echo "$ac_t""$ac_cv_header_time" 1>&6 | |
4034 if test $ac_cv_header_time = yes; then | |
4035 { test "$extra_verbose" = "yes" && cat << \EOF | |
4036 Defining TIME_WITH_SYS_TIME | |
4037 EOF | |
4038 cat >> confdefs.h <<\EOF | |
4039 #define TIME_WITH_SYS_TIME 1 | |
4040 EOF | |
4041 } | |
4042 | |
4043 fi | |
4044 | |
4045 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
4046 echo "configure:4047: checking for sys_siglist declaration in signal.h or unistd.h" >&5 | |
4047 | |
4048 cat > conftest.$ac_ext <<EOF | |
4049 #line 4050 "configure" | |
4050 #include "confdefs.h" | |
4051 #include <sys/types.h> | |
4052 #include <signal.h> | |
4053 /* NetBSD declares sys_siglist in unistd.h. */ | |
4054 #ifdef HAVE_UNISTD_H | |
4055 #include <unistd.h> | |
4056 #endif | |
4057 int main() { | |
4058 char *msg = *(sys_siglist + 1); | |
4059 ; return 0; } | |
4060 EOF | |
4061 if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4062 rm -rf conftest* | |
4063 ac_cv_decl_sys_siglist=yes | |
4064 else | |
4065 echo "configure: failed program was:" >&5 | |
4066 cat conftest.$ac_ext >&5 | |
4067 rm -rf conftest* | |
4068 ac_cv_decl_sys_siglist=no | |
4069 fi | |
4070 rm -f conftest* | |
4071 | |
4072 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
4073 if test $ac_cv_decl_sys_siglist = yes; then | |
4074 { test "$extra_verbose" = "yes" && cat << \EOF | |
4075 Defining SYS_SIGLIST_DECLARED | |
4076 EOF | |
4077 cat >> confdefs.h <<\EOF | |
4078 #define SYS_SIGLIST_DECLARED 1 | |
4079 EOF | |
4080 } | |
4081 | |
4082 fi | |
4083 | |
4084 | |
4085 | |
4086 echo $ac_n "checking for utime""... $ac_c" 1>&6 | |
4087 echo "configure:4088: checking for utime" >&5 | |
4088 cat > conftest.$ac_ext <<EOF | |
4089 #line 4090 "configure" | |
4090 #include "confdefs.h" | |
4091 #include <sys/types.h> | |
4092 #include <utime.h> | |
4093 int main() { | |
4094 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x); | |
4095 ; return 0; } | |
4096 EOF | |
4097 if { (eval echo configure:4098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4098 rm -rf conftest* | |
4099 echo "$ac_t""yes" 1>&6 | |
4100 { test "$extra_verbose" = "yes" && cat << \EOF | |
4101 Defining HAVE_UTIME | |
4102 EOF | |
4103 cat >> confdefs.h <<\EOF | |
4104 #define HAVE_UTIME 1 | |
4105 EOF | |
4106 } | |
4107 | |
4108 else | |
4109 echo "configure: failed program was:" >&5 | |
4110 cat conftest.$ac_ext >&5 | |
4111 rm -rf conftest* | |
4112 echo "$ac_t""no" 1>&6 | |
4113 for ac_func in utimes | |
4114 do | |
4115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4116 echo "configure:4117: checking for $ac_func" >&5 | |
4117 | |
4118 cat > conftest.$ac_ext <<EOF | |
4119 #line 4120 "configure" | |
4120 #include "confdefs.h" | |
4121 /* System header to define __stub macros and hopefully few prototypes, | |
4122 which can conflict with char $ac_func(); below. */ | |
4123 #include <assert.h> | |
4124 /* Override any gcc2 internal prototype to avoid an error. */ | |
4125 /* We use char because int might match the return type of a gcc2 | |
4126 builtin and then its argument prototype would still apply. */ | |
4127 char $ac_func(); | |
4128 | |
4129 int main() { | |
4130 | |
4131 /* The GNU C library defines this for functions which it implements | |
4132 to always fail with ENOSYS. Some functions are actually named | |
4133 something starting with __ and the normal name is an alias. */ | |
4134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4135 choke me | |
4136 #else | |
4137 $ac_func(); | |
4138 #endif | |
4139 | |
4140 ; return 0; } | |
4141 EOF | |
4142 if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4143 rm -rf conftest* | |
4144 eval "ac_cv_func_$ac_func=yes" | |
4145 else | |
4146 echo "configure: failed program was:" >&5 | |
4147 cat conftest.$ac_ext >&5 | |
4148 rm -rf conftest* | |
4149 eval "ac_cv_func_$ac_func=no" | |
4150 fi | |
4151 rm -f conftest* | |
4152 | |
4153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4154 echo "$ac_t""yes" 1>&6 | |
4155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4156 { test "$extra_verbose" = "yes" && cat << EOF | |
4157 Defining $ac_tr_func | |
4158 EOF | |
4159 cat >> confdefs.h <<EOF | |
4160 #define $ac_tr_func 1 | |
4161 EOF | |
4162 } | |
4163 | |
4164 else | |
4165 echo "$ac_t""no" 1>&6 | |
4166 fi | |
4167 done | |
4168 | |
4169 fi | |
4170 rm -f conftest* | |
4171 | |
4172 | |
4173 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
4174 echo "configure:4175: checking return type of signal handlers" >&5 | |
4175 | |
4176 cat > conftest.$ac_ext <<EOF | |
4177 #line 4178 "configure" | |
4178 #include "confdefs.h" | |
4179 #include <sys/types.h> | |
4180 #include <signal.h> | |
4181 #ifdef signal | |
4182 #undef signal | |
4183 #endif | |
4184 #ifdef __cplusplus | |
4185 extern "C" void (*signal (int, void (*)(int)))(int); | |
4186 #else | |
4187 void (*signal ()) (); | |
4188 #endif | |
4189 | |
4190 int main() { | |
4191 int i; | |
4192 ; return 0; } | |
4193 EOF | |
4194 if { (eval echo configure:4195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4195 rm -rf conftest* | |
4196 ac_cv_type_signal=void | |
4197 else | |
4198 echo "configure: failed program was:" >&5 | |
4199 cat conftest.$ac_ext >&5 | |
4200 rm -rf conftest* | |
4201 ac_cv_type_signal=int | |
4202 fi | |
4203 rm -f conftest* | |
4204 | |
4205 echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
4206 { test "$extra_verbose" = "yes" && cat << EOF | |
4207 Defining RETSIGTYPE = $ac_cv_type_signal | |
4208 EOF | |
4209 cat >> confdefs.h <<EOF | |
4210 #define RETSIGTYPE $ac_cv_type_signal | |
4211 EOF | |
4212 } | |
4213 | |
4214 | |
4215 echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
4216 echo "configure:4217: checking for size_t" >&5 | |
4217 | |
4218 cat > conftest.$ac_ext <<EOF | |
4219 #line 4220 "configure" | |
4220 #include "confdefs.h" | |
4221 #include <sys/types.h> | |
4222 #if STDC_HEADERS | |
4223 #include <stdlib.h> | |
4224 #include <stddef.h> | |
4225 #endif | |
4226 EOF | |
4227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4228 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
4229 rm -rf conftest* | |
4230 ac_cv_type_size_t=yes | |
4231 else | |
4232 rm -rf conftest* | |
4233 ac_cv_type_size_t=no | |
4234 fi | |
4235 rm -f conftest* | |
4236 | |
4237 echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
4238 if test $ac_cv_type_size_t = no; then | |
4239 { test "$extra_verbose" = "yes" && cat << \EOF | |
4240 Defining size_t = unsigned | |
4241 EOF | |
4242 cat >> confdefs.h <<\EOF | |
4243 #define size_t unsigned | |
4244 EOF | |
4245 } | |
4246 | |
4247 fi | |
4248 | |
4249 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
4250 echo "configure:4251: checking for pid_t" >&5 | |
4251 | |
4252 cat > conftest.$ac_ext <<EOF | |
4253 #line 4254 "configure" | |
4254 #include "confdefs.h" | |
4255 #include <sys/types.h> | |
4256 #if STDC_HEADERS | |
4257 #include <stdlib.h> | |
4258 #include <stddef.h> | |
4259 #endif | |
4260 EOF | |
4261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4262 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
4263 rm -rf conftest* | |
4264 ac_cv_type_pid_t=yes | |
4265 else | |
4266 rm -rf conftest* | |
4267 ac_cv_type_pid_t=no | |
4268 fi | |
4269 rm -f conftest* | |
4270 | |
4271 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
4272 if test $ac_cv_type_pid_t = no; then | |
4273 { test "$extra_verbose" = "yes" && cat << \EOF | |
4274 Defining pid_t = int | |
4275 EOF | |
4276 cat >> confdefs.h <<\EOF | |
4277 #define pid_t int | |
4278 EOF | |
4279 } | |
4280 | |
4281 fi | |
4282 | |
4283 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
4284 echo "configure:4285: checking for uid_t in sys/types.h" >&5 | |
4285 | |
4286 cat > conftest.$ac_ext <<EOF | |
4287 #line 4288 "configure" | |
4288 #include "confdefs.h" | |
4289 #include <sys/types.h> | |
4290 EOF | |
4291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4292 egrep "uid_t" >/dev/null 2>&1; then | |
4293 rm -rf conftest* | |
4294 ac_cv_type_uid_t=yes | |
4295 else | |
4296 rm -rf conftest* | |
4297 ac_cv_type_uid_t=no | |
4298 fi | |
4299 rm -f conftest* | |
4300 | |
4301 | |
4302 echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
4303 if test $ac_cv_type_uid_t = no; then | |
4304 { test "$extra_verbose" = "yes" && cat << \EOF | |
4305 Defining uid_t = int | |
4306 EOF | |
4307 cat >> confdefs.h <<\EOF | |
4308 #define uid_t int | |
4309 EOF | |
4310 } | |
4311 | |
4312 { test "$extra_verbose" = "yes" && cat << \EOF | |
4313 Defining gid_t = int | |
4314 EOF | |
4315 cat >> confdefs.h <<\EOF | |
4316 #define gid_t int | |
4317 EOF | |
4318 } | |
4319 | |
4320 fi | |
4321 | |
4322 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
4323 echo "configure:4324: checking for mode_t" >&5 | |
4324 | |
4325 cat > conftest.$ac_ext <<EOF | |
4326 #line 4327 "configure" | |
4327 #include "confdefs.h" | |
4328 #include <sys/types.h> | |
4329 #if STDC_HEADERS | |
4330 #include <stdlib.h> | |
4331 #include <stddef.h> | |
4332 #endif | |
4333 EOF | |
4334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4335 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
4336 rm -rf conftest* | |
4337 ac_cv_type_mode_t=yes | |
4338 else | |
4339 rm -rf conftest* | |
4340 ac_cv_type_mode_t=no | |
4341 fi | |
4342 rm -f conftest* | |
4343 | |
4344 echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
4345 if test $ac_cv_type_mode_t = no; then | |
4346 { test "$extra_verbose" = "yes" && cat << \EOF | |
4347 Defining mode_t = int | |
4348 EOF | |
4349 cat >> confdefs.h <<\EOF | |
4350 #define mode_t int | |
4351 EOF | |
4352 } | |
4353 | |
4354 fi | |
4355 | |
4356 echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
4357 echo "configure:4358: checking for off_t" >&5 | |
4358 | |
4359 cat > conftest.$ac_ext <<EOF | |
4360 #line 4361 "configure" | |
4361 #include "confdefs.h" | |
4362 #include <sys/types.h> | |
4363 #if STDC_HEADERS | |
4364 #include <stdlib.h> | |
4365 #include <stddef.h> | |
4366 #endif | |
4367 EOF | |
4368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4369 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
4370 rm -rf conftest* | |
4371 ac_cv_type_off_t=yes | |
4372 else | |
4373 rm -rf conftest* | |
4374 ac_cv_type_off_t=no | |
4375 fi | |
4376 rm -f conftest* | |
4377 | |
4378 echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
4379 if test $ac_cv_type_off_t = no; then | |
4380 { test "$extra_verbose" = "yes" && cat << \EOF | |
4381 Defining off_t = long | |
4382 EOF | |
4383 cat >> confdefs.h <<\EOF | |
4384 #define off_t long | |
4385 EOF | |
4386 } | |
4387 | |
4388 fi | |
4389 | |
4390 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 | |
4391 echo "configure:4392: checking for ssize_t" >&5 | |
4392 | |
4393 cat > conftest.$ac_ext <<EOF | |
4394 #line 4395 "configure" | |
4395 #include "confdefs.h" | |
4396 #include <sys/types.h> | |
4397 #if STDC_HEADERS | |
4398 #include <stdlib.h> | |
4399 #include <stddef.h> | |
4400 #endif | |
4401 EOF | |
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4403 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
4404 rm -rf conftest* | |
4405 ac_cv_type_ssize_t=yes | |
4406 else | |
4407 rm -rf conftest* | |
4408 ac_cv_type_ssize_t=no | |
4409 fi | |
4410 rm -f conftest* | |
4411 | |
4412 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 | |
4413 if test $ac_cv_type_ssize_t = no; then | |
4414 { test "$extra_verbose" = "yes" && cat << \EOF | |
4415 Defining ssize_t = int | |
4416 EOF | |
4417 cat >> confdefs.h <<\EOF | |
4418 #define ssize_t int | |
4419 EOF | |
4420 } | |
4421 | |
4422 fi | |
4423 | |
4424 | |
4425 if test "$ac_cv_header_inttypes_h" != "yes"; then | |
4426 echo $ac_n "checking for intptr_t in sys/types.h""... $ac_c" 1>&6 | |
4427 echo "configure:4428: checking for intptr_t in sys/types.h" >&5 | |
4428 cat > conftest.$ac_ext <<EOF | |
4429 #line 4430 "configure" | |
4430 #include "confdefs.h" | |
4431 #include <sys/types.h> | |
4432 intptr_t x; | |
4433 | |
4434 int main() { | |
4435 | |
4436 ; return 0; } | |
4437 EOF | |
4438 if { (eval echo configure:4439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4439 rm -rf conftest* | |
4440 echo "$ac_t""yes" 1>&6 | |
4441 { test "$extra_verbose" = "yes" && cat << \EOF | |
4442 Defining HAVE_INTPTR_T_IN_SYS_TYPES_H = 1 | |
4443 EOF | |
4444 cat >> confdefs.h <<\EOF | |
4445 #define HAVE_INTPTR_T_IN_SYS_TYPES_H 1 | |
4446 EOF | |
4447 } | |
4448 | |
4449 else | |
4450 echo "configure: failed program was:" >&5 | |
4451 cat conftest.$ac_ext >&5 | |
4452 rm -rf conftest* | |
4453 echo "$ac_t""no" 1>&6 | |
4454 fi | |
4455 rm -f conftest* | |
4456 fi | |
4457 | |
4458 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 | |
4459 echo "configure:4460: checking for socklen_t" >&5 | |
4460 cat > conftest.$ac_ext <<EOF | |
4461 #line 4462 "configure" | |
4462 #include "confdefs.h" | |
4463 #include <sys/types.h> | |
4464 #include <sys/socket.h> | |
4465 socklen_t x; | |
4466 | |
4467 int main() { | |
4468 | |
4469 ; return 0; } | |
4470 EOF | |
4471 if { (eval echo configure:4472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4472 rm -rf conftest* | |
4473 echo "$ac_t""yes" 1>&6 | |
4474 else | |
4475 echo "configure: failed program was:" >&5 | |
4476 cat conftest.$ac_ext >&5 | |
4477 rm -rf conftest* | |
4478 | |
4479 cat > conftest.$ac_ext <<EOF | |
4480 #line 4481 "configure" | |
4481 #include "confdefs.h" | |
4482 #include <sys/types.h> | |
4483 #include <sys/socket.h> | |
4484 int accept (int, struct sockaddr *, size_t *); | |
4485 | |
4486 int main() { | |
4487 | |
4488 ; return 0; } | |
4489 EOF | |
4490 if { (eval echo configure:4491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4491 rm -rf conftest* | |
4492 | |
4493 echo "$ac_t""size_t" 1>&6 | |
4494 { test "$extra_verbose" = "yes" && cat << \EOF | |
4495 Defining socklen_t = size_t | |
4496 EOF | |
4497 cat >> confdefs.h <<\EOF | |
4498 #define socklen_t size_t | |
4499 EOF | |
4500 } | |
4501 | |
4502 else | |
4503 echo "configure: failed program was:" >&5 | |
4504 cat conftest.$ac_ext >&5 | |
4505 rm -rf conftest* | |
4506 | |
4507 echo "$ac_t""int" 1>&6 | |
4508 { test "$extra_verbose" = "yes" && cat << \EOF | |
4509 Defining socklen_t = int | |
4510 EOF | |
4511 cat >> confdefs.h <<\EOF | |
4512 #define socklen_t int | |
4513 EOF | |
4514 } | |
4515 | |
4516 fi | |
4517 rm -f conftest* | |
4518 fi | |
4519 rm -f conftest* | |
4520 | |
4521 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 | |
4522 echo "configure:4523: checking for struct timeval" >&5 | |
4523 cat > conftest.$ac_ext <<EOF | |
4524 #line 4525 "configure" | |
4525 #include "confdefs.h" | |
4526 #ifdef TIME_WITH_SYS_TIME | |
4527 #include <sys/time.h> | |
4528 #include <time.h> | |
4529 #else | |
4530 #ifdef HAVE_SYS_TIME_H | |
4531 #include <sys/time.h> | |
4532 #else | |
4533 #include <time.h> | |
4534 #endif | |
4535 #endif | |
4536 int main() { | |
4537 static struct timeval x; x.tv_sec = x.tv_usec; | |
4538 ; return 0; } | |
4539 EOF | |
4540 if { (eval echo configure:4541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4541 rm -rf conftest* | |
4542 echo "$ac_t""yes" 1>&6 | |
4543 HAVE_TIMEVAL=yes | |
4544 { test "$extra_verbose" = "yes" && cat << \EOF | |
4545 Defining HAVE_TIMEVAL | |
4546 EOF | |
4547 cat >> confdefs.h <<\EOF | |
4548 #define HAVE_TIMEVAL 1 | |
4549 EOF | |
4550 } | |
4551 | |
4552 else | |
4553 echo "configure: failed program was:" >&5 | |
4554 cat conftest.$ac_ext >&5 | |
4555 rm -rf conftest* | |
4556 echo "$ac_t""no" 1>&6 | |
4557 HAVE_TIMEVAL=no | |
4558 fi | |
4559 rm -f conftest* | |
4560 | |
4561 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | |
4562 echo "configure:4563: checking whether struct tm is in sys/time.h or time.h" >&5 | |
4563 | |
4564 cat > conftest.$ac_ext <<EOF | |
4565 #line 4566 "configure" | |
4566 #include "confdefs.h" | |
4567 #include <sys/types.h> | |
4568 #include <time.h> | |
4569 int main() { | |
4570 struct tm *tp; tp->tm_sec; | |
4571 ; return 0; } | |
4572 EOF | |
4573 if { (eval echo configure:4574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4574 rm -rf conftest* | |
4575 ac_cv_struct_tm=time.h | |
4576 else | |
4577 echo "configure: failed program was:" >&5 | |
4578 cat conftest.$ac_ext >&5 | |
4579 rm -rf conftest* | |
4580 ac_cv_struct_tm=sys/time.h | |
4581 fi | |
4582 rm -f conftest* | |
4583 | |
4584 echo "$ac_t""$ac_cv_struct_tm" 1>&6 | |
4585 if test $ac_cv_struct_tm = sys/time.h; then | |
4586 { test "$extra_verbose" = "yes" && cat << \EOF | |
4587 Defining TM_IN_SYS_TIME | |
4588 EOF | |
4589 cat >> confdefs.h <<\EOF | |
4590 #define TM_IN_SYS_TIME 1 | |
4591 EOF | |
4592 } | |
4593 | |
4594 fi | |
4595 | |
4596 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | |
4597 echo "configure:4598: checking for tm_zone in struct tm" >&5 | |
4598 | |
4599 cat > conftest.$ac_ext <<EOF | |
4600 #line 4601 "configure" | |
4601 #include "confdefs.h" | |
4602 #include <sys/types.h> | |
4603 #include <$ac_cv_struct_tm> | |
4604 int main() { | |
4605 struct tm tm; tm.tm_zone; | |
4606 ; return 0; } | |
4607 EOF | |
4608 if { (eval echo configure:4609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4609 rm -rf conftest* | |
4610 ac_cv_struct_tm_zone=yes | |
4611 else | |
4612 echo "configure: failed program was:" >&5 | |
4613 cat conftest.$ac_ext >&5 | |
4614 rm -rf conftest* | |
4615 ac_cv_struct_tm_zone=no | |
4616 fi | |
4617 rm -f conftest* | |
4618 | |
4619 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | |
4620 if test "$ac_cv_struct_tm_zone" = yes; then | |
4621 { test "$extra_verbose" = "yes" && cat << \EOF | |
4622 Defining HAVE_TM_ZONE | |
4623 EOF | |
4624 cat >> confdefs.h <<\EOF | |
4625 #define HAVE_TM_ZONE 1 | |
4626 EOF | |
4627 } | |
4628 | |
4629 else | |
4630 echo $ac_n "checking for tzname""... $ac_c" 1>&6 | |
4631 echo "configure:4632: checking for tzname" >&5 | |
4632 | |
4633 cat > conftest.$ac_ext <<EOF | |
4634 #line 4635 "configure" | |
4635 #include "confdefs.h" | |
4636 #include <time.h> | |
4637 #ifndef tzname /* For SGI. */ | |
4638 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
4639 #endif | |
4640 int main() { | |
4641 atoi(*tzname); | |
4642 ; return 0; } | |
4643 EOF | |
4644 if { (eval echo configure:4645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4645 rm -rf conftest* | |
4646 ac_cv_var_tzname=yes | |
4647 else | |
4648 echo "configure: failed program was:" >&5 | |
4649 cat conftest.$ac_ext >&5 | |
4650 rm -rf conftest* | |
4651 ac_cv_var_tzname=no | |
4652 fi | |
4653 rm -f conftest* | |
4654 | |
4655 echo "$ac_t""$ac_cv_var_tzname" 1>&6 | |
4656 if test $ac_cv_var_tzname = yes; then | |
4657 { test "$extra_verbose" = "yes" && cat << \EOF | |
4658 Defining HAVE_TZNAME | |
4659 EOF | |
4660 cat >> confdefs.h <<\EOF | |
4661 #define HAVE_TZNAME 1 | |
4662 EOF | |
4663 } | |
4664 | |
4665 fi | |
4666 fi | |
4667 | |
4668 | |
4669 echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
4670 echo "configure:4671: checking for working const" >&5 | |
4671 | |
4672 cat > conftest.$ac_ext <<EOF | |
4673 #line 4674 "configure" | |
4674 #include "confdefs.h" | |
4675 | |
4676 int main() { | |
4677 | |
4678 /* Ultrix mips cc rejects this. */ | |
4679 typedef int charset[2]; const charset x; | |
4680 /* SunOS 4.1.1 cc rejects this. */ | |
4681 char const *const *ccp; | |
4682 char **p; | |
4683 /* NEC SVR4.0.2 mips cc rejects this. */ | |
4684 struct point {int x, y;}; | |
4685 static struct point const zero = {0,0}; | |
4686 /* AIX XL C 1.02.0.0 rejects this. | |
4687 It does not let you subtract one const X* pointer from another in an arm | |
4688 of an if-expression whose if-part is not a constant expression */ | |
4689 const char *g = "string"; | |
4690 ccp = &g + (g ? g-g : 0); | |
4691 /* HPUX 7.0 cc rejects these. */ | |
4692 ++ccp; | |
4693 p = (char**) ccp; | |
4694 ccp = (char const *const *) p; | |
4695 { /* SCO 3.2v4 cc rejects this. */ | |
4696 char *t; | |
4697 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4698 | |
4699 *t++ = 0; | |
4700 } | |
4701 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4702 int x[] = {25, 17}; | |
4703 const int *foo = &x[0]; | |
4704 ++foo; | |
4705 } | |
4706 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4707 typedef const int *iptr; | |
4708 iptr p = 0; | |
4709 ++p; | |
4710 } | |
4711 { /* AIX XL C 1.02.0.0 rejects this saying | |
4712 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4713 struct s { int j; const int *ap[3]; }; | |
4714 struct s *b; b->j = 5; | |
4715 } | |
4716 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4717 const int foo = 10; | |
4718 } | |
4719 | |
4720 ; return 0; } | |
4721 EOF | |
4722 if { (eval echo configure:4723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4723 rm -rf conftest* | |
4724 ac_cv_c_const=yes | |
4725 else | |
4726 echo "configure: failed program was:" >&5 | |
4727 cat conftest.$ac_ext >&5 | |
4728 rm -rf conftest* | |
4729 ac_cv_c_const=no | |
4730 fi | |
4731 rm -f conftest* | |
4732 | |
4733 echo "$ac_t""$ac_cv_c_const" 1>&6 | |
4734 if test $ac_cv_c_const = no; then | |
4735 { test "$extra_verbose" = "yes" && cat << \EOF | |
4736 Defining const = | |
4737 EOF | |
4738 cat >> confdefs.h <<\EOF | |
4739 #define const | |
4740 EOF | |
4741 } | |
4742 | |
4743 fi | |
4744 | |
4745 | |
4746 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
4747 echo "configure:4748: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
4748 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
4749 | |
4750 cat > conftestmake <<\EOF | |
4751 all: | |
4752 @echo 'ac_maketemp="${MAKE}"' | |
4753 EOF | |
4754 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
4755 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
4756 if test -n "$ac_maketemp"; then | |
4757 eval ac_cv_prog_make_${ac_make}_set=yes | |
4758 else | |
4759 eval ac_cv_prog_make_${ac_make}_set=no | |
4760 fi | |
4761 rm -f conftestmake | |
4762 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
4763 echo "$ac_t""yes" 1>&6 | |
4764 SET_MAKE= | |
4765 else | |
4766 echo "$ac_t""no" 1>&6 | |
4767 SET_MAKE="MAKE=${MAKE-make}" | |
4768 fi | |
4769 | |
4770 | |
4771 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
4772 echo "configure:4773: checking whether byte ordering is bigendian" >&5 | |
4773 | |
4774 ac_cv_c_bigendian=unknown | |
4775 # See if sys/param.h defines the BYTE_ORDER macro. | |
4776 cat > conftest.$ac_ext <<EOF | |
4777 #line 4778 "configure" | |
4778 #include "confdefs.h" | |
4779 #include <sys/types.h> | |
4780 #include <sys/param.h> | |
4781 int main() { | |
4782 | |
4783 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
4784 bogus endian macros | |
4785 #endif | |
4786 ; return 0; } | |
4787 EOF | |
4788 if { (eval echo configure:4789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4789 rm -rf conftest* | |
4790 # It does; now see whether it defined to BIG_ENDIAN or not. | |
4791 cat > conftest.$ac_ext <<EOF | |
4792 #line 4793 "configure" | |
4793 #include "confdefs.h" | |
4794 #include <sys/types.h> | |
4795 #include <sys/param.h> | |
4796 int main() { | |
4797 | |
4798 #if BYTE_ORDER != BIG_ENDIAN | |
4799 not big endian | |
4800 #endif | |
4801 ; return 0; } | |
4802 EOF | |
4803 if { (eval echo configure:4804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4804 rm -rf conftest* | |
4805 ac_cv_c_bigendian=yes | |
4806 else | |
4807 echo "configure: failed program was:" >&5 | |
4808 cat conftest.$ac_ext >&5 | |
4809 rm -rf conftest* | |
4810 ac_cv_c_bigendian=no | |
4811 fi | |
4812 rm -f conftest* | |
4813 else | |
4814 echo "configure: failed program was:" >&5 | |
4815 cat conftest.$ac_ext >&5 | |
4816 fi | |
4817 rm -f conftest* | |
4818 if test $ac_cv_c_bigendian = unknown; then | |
4819 cat > conftest.$ac_ext <<EOF | |
4820 #line 4821 "configure" | |
4821 #include "confdefs.h" | |
4822 main () { | |
4823 /* Are we little or big endian? From Harbison&Steele. */ | |
4824 union | |
4825 { | |
4826 long l; | |
4827 char c[sizeof (long)]; | |
4828 } u; | |
4829 u.l = 1; | |
4830 exit (u.c[sizeof (long) - 1] == 1); | |
4831 } | |
4832 EOF | |
4833 if { (eval echo configure:4834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
4834 then | |
4835 ac_cv_c_bigendian=no | |
4836 else | |
4837 conftest_rc="$?" | |
4838 echo "configure: failed program was:" >&5 | |
4839 cat conftest.$ac_ext >&5 | |
4840 rm -fr conftest* | |
4841 ac_cv_c_bigendian=yes | |
4842 fi | |
4843 rm -fr conftest* | |
4844 fi | |
4845 | |
4846 echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
4847 if test $ac_cv_c_bigendian = yes; then | |
4848 { test "$extra_verbose" = "yes" && cat << \EOF | |
4849 Defining WORDS_BIGENDIAN | |
4850 EOF | |
4851 cat >> confdefs.h <<\EOF | |
4852 #define WORDS_BIGENDIAN 1 | |
4853 EOF | |
4854 } | |
4855 | |
4856 fi | |
4857 | |
4858 | |
4859 echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
4860 echo "configure:4861: checking size of short" >&5 | |
4861 | |
4862 cat > conftest.$ac_ext <<EOF | |
4863 #line 4864 "configure" | |
4864 #include "confdefs.h" | |
4865 #include <stdio.h> | |
4866 main() | |
4867 { | |
4868 FILE *f=fopen("conftestval", "w"); | |
4869 if (!f) exit(1); | |
4870 fprintf(f, "%d\n", sizeof(short)); | |
4871 exit(0); | |
4872 } | |
4873 EOF | |
4874 if { (eval echo configure:4875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
4875 then | |
4876 ac_cv_sizeof_short=`cat conftestval` | |
4877 else | |
4878 conftest_rc="$?" | |
4879 echo "configure: failed program was:" >&5 | |
4880 cat conftest.$ac_ext >&5 | |
4881 rm -fr conftest* | |
4882 ac_cv_sizeof_short=0 | |
4883 fi | |
4884 rm -fr conftest* | |
4885 echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
4886 { test "$extra_verbose" = "yes" && cat << EOF | |
4887 Defining SIZEOF_SHORT = $ac_cv_sizeof_short | |
4888 EOF | |
4889 cat >> confdefs.h <<EOF | |
4890 #define SIZEOF_SHORT $ac_cv_sizeof_short | |
4891 EOF | |
4892 } | |
4893 | |
4894 | |
4895 if test "$ac_cv_sizeof_short" = 0; then | |
4896 echo "" | |
4897 echo "*** PANIC *** Configure tests are not working - compiler is broken." | |
4898 echo "*** PANIC *** Please examine config.log for compilation errors." | |
4899 exit 1 | |
4900 fi | |
4901 echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
4902 echo "configure:4903: checking size of int" >&5 | |
4903 | |
4904 cat > conftest.$ac_ext <<EOF | |
4905 #line 4906 "configure" | |
4906 #include "confdefs.h" | |
4907 #include <stdio.h> | |
4908 main() | |
4909 { | |
4910 FILE *f=fopen("conftestval", "w"); | |
4911 if (!f) exit(1); | |
4912 fprintf(f, "%d\n", sizeof(int)); | |
4913 exit(0); | |
4914 } | |
4915 EOF | |
4916 if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
4917 then | |
4918 ac_cv_sizeof_int=`cat conftestval` | |
4919 else | |
4920 conftest_rc="$?" | |
4921 echo "configure: failed program was:" >&5 | |
4922 cat conftest.$ac_ext >&5 | |
4923 rm -fr conftest* | |
4924 ac_cv_sizeof_int=0 | |
4925 fi | |
4926 rm -fr conftest* | |
4927 echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
4928 { test "$extra_verbose" = "yes" && cat << EOF | |
4929 Defining SIZEOF_INT = $ac_cv_sizeof_int | |
4930 EOF | |
4931 cat >> confdefs.h <<EOF | |
4932 #define SIZEOF_INT $ac_cv_sizeof_int | |
4933 EOF | |
4934 } | |
4935 | |
4936 | |
4937 echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
4938 echo "configure:4939: checking size of long" >&5 | |
4939 | |
4940 cat > conftest.$ac_ext <<EOF | |
4941 #line 4942 "configure" | |
4942 #include "confdefs.h" | |
4943 #include <stdio.h> | |
4944 main() | |
4945 { | |
4946 FILE *f=fopen("conftestval", "w"); | |
4947 if (!f) exit(1); | |
4948 fprintf(f, "%d\n", sizeof(long)); | |
4949 exit(0); | |
4950 } | |
4951 EOF | |
4952 if { (eval echo configure:4953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
4953 then | |
4954 ac_cv_sizeof_long=`cat conftestval` | |
4955 else | |
4956 conftest_rc="$?" | |
4957 echo "configure: failed program was:" >&5 | |
4958 cat conftest.$ac_ext >&5 | |
4959 rm -fr conftest* | |
4960 ac_cv_sizeof_long=0 | |
4961 fi | |
4962 rm -fr conftest* | |
4963 echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
4964 { test "$extra_verbose" = "yes" && cat << EOF | |
4965 Defining SIZEOF_LONG = $ac_cv_sizeof_long | |
4966 EOF | |
4967 cat >> confdefs.h <<EOF | |
4968 #define SIZEOF_LONG $ac_cv_sizeof_long | |
4969 EOF | |
4970 } | |
4971 | |
4972 | |
4973 echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
4974 echo "configure:4975: checking size of long long" >&5 | |
4975 | |
4976 cat > conftest.$ac_ext <<EOF | |
4977 #line 4978 "configure" | |
4978 #include "confdefs.h" | |
4979 #include <stdio.h> | |
4980 main() | |
4981 { | |
4982 FILE *f=fopen("conftestval", "w"); | |
4983 if (!f) exit(1); | |
4984 fprintf(f, "%d\n", sizeof(long long)); | |
4985 exit(0); | |
4986 } | |
4987 EOF | |
4988 if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
4989 then | |
4990 ac_cv_sizeof_long_long=`cat conftestval` | |
4991 else | |
4992 conftest_rc="$?" | |
4993 echo "configure: failed program was:" >&5 | |
4994 cat conftest.$ac_ext >&5 | |
4995 rm -fr conftest* | |
4996 ac_cv_sizeof_long_long=0 | |
4997 fi | |
4998 rm -fr conftest* | |
4999 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
5000 { test "$extra_verbose" = "yes" && cat << EOF | |
5001 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long | |
5002 EOF | |
5003 cat >> confdefs.h <<EOF | |
5004 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
5005 EOF | |
5006 } | |
5007 | |
5008 | |
5009 echo $ac_n "checking size of void *""... $ac_c" 1>&6 | |
5010 echo "configure:5011: checking size of void *" >&5 | |
5011 | |
5012 cat > conftest.$ac_ext <<EOF | |
5013 #line 5014 "configure" | |
5014 #include "confdefs.h" | |
5015 #include <stdio.h> | |
5016 main() | |
5017 { | |
5018 FILE *f=fopen("conftestval", "w"); | |
5019 if (!f) exit(1); | |
5020 fprintf(f, "%d\n", sizeof(void *)); | |
5021 exit(0); | |
5022 } | |
5023 EOF | |
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
5025 then | |
5026 ac_cv_sizeof_void_p=`cat conftestval` | |
5027 else | |
5028 conftest_rc="$?" | |
5029 echo "configure: failed program was:" >&5 | |
5030 cat conftest.$ac_ext >&5 | |
5031 rm -fr conftest* | |
5032 ac_cv_sizeof_void_p=0 | |
5033 fi | |
5034 rm -fr conftest* | |
5035 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 | |
5036 { test "$extra_verbose" = "yes" && cat << EOF | |
5037 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p | |
5038 EOF | |
5039 cat >> confdefs.h <<EOF | |
5040 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
5041 EOF | |
5042 } | |
5043 | |
5044 | |
5045 echo $ac_n "checking size of double""... $ac_c" 1>&6 | |
5046 echo "configure:5047: checking size of double" >&5 | |
5047 | |
5048 cat > conftest.$ac_ext <<EOF | |
5049 #line 5050 "configure" | |
5050 #include "confdefs.h" | |
5051 #include <stdio.h> | |
5052 main() | |
5053 { | |
5054 FILE *f=fopen("conftestval", "w"); | |
5055 if (!f) exit(1); | |
5056 fprintf(f, "%d\n", sizeof(double)); | |
5057 exit(0); | |
5058 } | |
5059 EOF | |
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
5061 then | |
5062 ac_cv_sizeof_double=`cat conftestval` | |
5063 else | |
5064 conftest_rc="$?" | |
5065 echo "configure: failed program was:" >&5 | |
5066 cat conftest.$ac_ext >&5 | |
5067 rm -fr conftest* | |
5068 ac_cv_sizeof_double=0 | |
5069 fi | |
5070 rm -fr conftest* | |
5071 echo "$ac_t""$ac_cv_sizeof_double" 1>&6 | |
5072 { test "$extra_verbose" = "yes" && cat << EOF | |
5073 Defining SIZEOF_DOUBLE = $ac_cv_sizeof_double | |
5074 EOF | |
5075 cat >> confdefs.h <<EOF | |
5076 #define SIZEOF_DOUBLE $ac_cv_sizeof_double | |
5077 EOF | |
5078 } | |
5079 | |
5080 | |
5081 | |
5082 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | |
5083 echo "configure:5084: checking for long file names" >&5 | |
5084 | |
5085 ac_cv_sys_long_file_names=yes | |
5086 # Test for long file names in all the places we know might matter: | |
5087 # . the current directory, where building will happen | |
5088 # $prefix/lib where we will be installing things | |
5089 # $exec_prefix/lib likewise | |
5090 # eval it to expand exec_prefix. | |
5091 # $TMPDIR if set, where it might want to write temporary files | |
5092 # if $TMPDIR is not set: | |
5093 # /tmp where it might want to write temporary files | |
5094 # /var/tmp likewise | |
5095 # /usr/tmp likewise | |
5096 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
5097 ac_tmpdirs="$TMPDIR" | |
5098 else | |
5099 ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
5100 fi | |
5101 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
5102 test -d $ac_dir || continue | |
5103 test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
5104 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null | |
5105 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null | |
5106 val=`cat $ac_dir/conftest9012345 2>/dev/null` | |
5107 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then | |
5108 ac_cv_sys_long_file_names=no | |
5109 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
5110 break | |
5111 fi | |
5112 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
5113 done | |
5114 | |
5115 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 | |
5116 if test $ac_cv_sys_long_file_names = yes; then | |
5117 { test "$extra_verbose" = "yes" && cat << \EOF | |
5118 Defining HAVE_LONG_FILE_NAMES | |
5119 EOF | |
5120 cat >> confdefs.h <<\EOF | |
5121 #define HAVE_LONG_FILE_NAMES 1 | |
5122 EOF | |
5123 } | |
5124 | |
5125 fi | |
5126 | |
5127 | |
5128 echo $ac_n "checking for sin""... $ac_c" 1>&6 | |
5129 echo "configure:5130: checking for sin" >&5 | |
5130 | |
5131 cat > conftest.$ac_ext <<EOF | |
5132 #line 5133 "configure" | |
5133 #include "confdefs.h" | |
5134 /* System header to define __stub macros and hopefully few prototypes, | |
5135 which can conflict with char sin(); below. */ | |
5136 #include <assert.h> | |
5137 /* Override any gcc2 internal prototype to avoid an error. */ | |
5138 /* We use char because int might match the return type of a gcc2 | |
5139 builtin and then its argument prototype would still apply. */ | |
5140 char sin(); | |
5141 | |
5142 int main() { | |
5143 | |
5144 /* The GNU C library defines this for functions which it implements | |
5145 to always fail with ENOSYS. Some functions are actually named | |
5146 something starting with __ and the normal name is an alias. */ | |
5147 #if defined (__stub_sin) || defined (__stub___sin) | |
5148 choke me | |
5149 #else | |
5150 sin(); | |
5151 #endif | |
5152 | |
5153 ; return 0; } | |
5154 EOF | |
5155 if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5156 rm -rf conftest* | |
5157 eval "ac_cv_func_sin=yes" | |
5158 else | |
5159 echo "configure: failed program was:" >&5 | |
5160 cat conftest.$ac_ext >&5 | |
5161 rm -rf conftest* | |
5162 eval "ac_cv_func_sin=no" | |
5163 fi | |
5164 rm -f conftest* | |
5165 | |
5166 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then | |
5167 echo "$ac_t""yes" 1>&6 | |
5168 : | |
5169 else | |
5170 echo "$ac_t""no" 1>&6 | |
5171 | |
5172 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 | |
5173 echo "configure:5174: checking for sin in -lm" >&5 | |
5174 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` | |
5175 | |
5176 xe_check_libs=" -lm " | |
5177 cat > conftest.$ac_ext <<EOF | |
5178 #line 5179 "configure" | |
5179 #include "confdefs.h" | |
5180 /* Override any gcc2 internal prototype to avoid an error. */ | |
5181 /* We use char because int might match the return type of a gcc2 | |
5182 builtin and then its argument prototype would still apply. */ | |
5183 char sin(); | |
5184 | |
5185 int main() { | |
5186 sin() | |
5187 ; return 0; } | |
5188 EOF | |
5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5190 rm -rf conftest* | |
5191 eval "ac_cv_lib_$ac_lib_var=yes" | |
5192 else | |
5193 echo "configure: failed program was:" >&5 | |
5194 cat conftest.$ac_ext >&5 | |
5195 rm -rf conftest* | |
5196 eval "ac_cv_lib_$ac_lib_var=no" | |
5197 fi | |
5198 rm -f conftest* | |
5199 xe_check_libs="" | |
5200 | |
5201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
5202 echo "$ac_t""yes" 1>&6 | |
5203 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \ | |
5204 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5205 { test "$extra_verbose" = "yes" && cat << EOF | |
5206 Defining $ac_tr_lib | |
5207 EOF | |
5208 cat >> confdefs.h <<EOF | |
5209 #define $ac_tr_lib 1 | |
5210 EOF | |
5211 } | |
5212 | |
5213 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi | |
5214 | |
5215 else | |
5216 echo "$ac_t""no" 1>&6 | |
5217 fi | |
5218 | |
5219 | |
5220 fi | |
5221 | |
5222 | |
5223 cat > conftest.$ac_ext <<EOF | |
5224 #line 5225 "configure" | |
5225 #include "confdefs.h" | |
5226 #include <math.h> | |
5227 int main() { | |
5228 return atanh(1.0) + asinh(1.0) + acosh(1.0); | |
5229 ; return 0; } | |
5230 EOF | |
5231 if { (eval echo configure:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5232 rm -rf conftest* | |
5233 { test "$extra_verbose" = "yes" && cat << \EOF | |
5234 Defining HAVE_INVERSE_HYPERBOLIC | |
5235 EOF | |
5236 cat >> confdefs.h <<\EOF | |
5237 #define HAVE_INVERSE_HYPERBOLIC 1 | |
5238 EOF | |
5239 } | |
5240 | |
5241 else | |
5242 echo "configure: failed program was:" >&5 | |
5243 cat conftest.$ac_ext >&5 | |
5244 fi | |
5245 rm -f conftest* | |
5246 | |
5247 for ac_func in mkstemp | |
5248 do | |
5249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5250 echo "configure:5251: checking for $ac_func" >&5 | |
5251 | |
5252 cat > conftest.$ac_ext <<EOF | |
5253 #line 5254 "configure" | |
5254 #include "confdefs.h" | |
5255 /* System header to define __stub macros and hopefully few prototypes, | |
5256 which can conflict with char $ac_func(); below. */ | |
5257 #include <assert.h> | |
5258 /* Override any gcc2 internal prototype to avoid an error. */ | |
5259 /* We use char because int might match the return type of a gcc2 | |
5260 builtin and then its argument prototype would still apply. */ | |
5261 char $ac_func(); | |
5262 | |
5263 int main() { | |
5264 | |
5265 /* The GNU C library defines this for functions which it implements | |
5266 to always fail with ENOSYS. Some functions are actually named | |
5267 something starting with __ and the normal name is an alias. */ | |
5268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5269 choke me | |
5270 #else | |
5271 $ac_func(); | |
5272 #endif | |
5273 | |
5274 ; return 0; } | |
5275 EOF | |
5276 if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5277 rm -rf conftest* | |
5278 eval "ac_cv_func_$ac_func=yes" | |
5279 else | |
5280 echo "configure: failed program was:" >&5 | |
5281 cat conftest.$ac_ext >&5 | |
5282 rm -rf conftest* | |
5283 eval "ac_cv_func_$ac_func=no" | |
5284 fi | |
5285 rm -f conftest* | |
5286 | |
5287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5288 echo "$ac_t""yes" 1>&6 | |
5289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5290 { test "$extra_verbose" = "yes" && cat << EOF | |
5291 Defining $ac_tr_func | |
5292 EOF | |
5293 cat >> confdefs.h <<EOF | |
5294 #define $ac_tr_func 1 | |
5295 EOF | |
5296 } | |
5297 | |
5298 else | |
5299 echo "$ac_t""no" 1>&6 | |
5300 fi | |
5301 done | |
5302 | |
5303 | |
5304 echo "checking type of mail spool file locking" 1>&6 | |
5305 echo "configure:5306: checking type of mail spool file locking" >&5 | |
5306 for ac_func in lockf flock | |
5307 do | |
5308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5309 echo "configure:5310: checking for $ac_func" >&5 | |
5310 | |
5311 cat > conftest.$ac_ext <<EOF | |
5312 #line 5313 "configure" | |
5313 #include "confdefs.h" | |
5314 /* System header to define __stub macros and hopefully few prototypes, | |
5315 which can conflict with char $ac_func(); below. */ | |
5316 #include <assert.h> | |
5317 /* Override any gcc2 internal prototype to avoid an error. */ | |
5318 /* We use char because int might match the return type of a gcc2 | |
5319 builtin and then its argument prototype would still apply. */ | |
5320 char $ac_func(); | |
5321 | |
5322 int main() { | |
5323 | |
5324 /* The GNU C library defines this for functions which it implements | |
5325 to always fail with ENOSYS. Some functions are actually named | |
5326 something starting with __ and the normal name is an alias. */ | |
5327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5328 choke me | |
5329 #else | |
5330 $ac_func(); | |
5331 #endif | |
5332 | |
5333 ; return 0; } | |
5334 EOF | |
5335 if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5336 rm -rf conftest* | |
5337 eval "ac_cv_func_$ac_func=yes" | |
5338 else | |
5339 echo "configure: failed program was:" >&5 | |
5340 cat conftest.$ac_ext >&5 | |
5341 rm -rf conftest* | |
5342 eval "ac_cv_func_$ac_func=no" | |
5343 fi | |
5344 rm -f conftest* | |
5345 | |
5346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5347 echo "$ac_t""yes" 1>&6 | |
5348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5349 { test "$extra_verbose" = "yes" && cat << EOF | |
5350 Defining $ac_tr_func | |
5351 EOF | |
5352 cat >> confdefs.h <<EOF | |
5353 #define $ac_tr_func 1 | |
5354 EOF | |
5355 } | |
5356 | |
5357 else | |
5358 echo "$ac_t""no" 1>&6 | |
5359 fi | |
5360 done | |
5361 | |
5362 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock | |
5363 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf | |
5364 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking | |
5365 if test -z "$mail_locking"; then | |
5366 case "$opsys" in cygwin* | mingw*) | |
5367 mail_locking=pop ;; | |
5368 esac | |
5369 fi | |
5370 | |
5371 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF | |
5372 Defining MAIL_LOCK_LOCKF | |
5373 EOF | |
5374 cat >> confdefs.h <<\EOF | |
5375 #define MAIL_LOCK_LOCKF 1 | |
5376 EOF | |
5377 } | |
5378 | |
5379 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF | |
5380 Defining MAIL_LOCK_FLOCK | |
5381 EOF | |
5382 cat >> confdefs.h <<\EOF | |
5383 #define MAIL_LOCK_FLOCK 1 | |
5384 EOF | |
5385 } | |
5386 | |
5387 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF | |
5388 Defining MAIL_LOCK_LOCKING | |
5389 EOF | |
5390 cat >> confdefs.h <<\EOF | |
5391 #define MAIL_LOCK_LOCKING 1 | |
5392 EOF | |
5393 } | |
5394 | |
5395 elif test "$mail_locking" = "pop"; then | |
5396 with_pop=yes | |
5397 mail_locking= | |
5398 elif test "$mail_locking" = "mmdf"; then { test "$extra_verbose" = "yes" && cat << \EOF | |
5399 Defining MAIL_LOCK_MMDF | |
5400 EOF | |
5401 cat >> confdefs.h <<\EOF | |
5402 #define MAIL_LOCK_MMDF 1 | |
5403 EOF | |
5404 } | |
5405 | |
5406 else mail_locking="file"; { test "$extra_verbose" = "yes" && cat << \EOF | |
5407 Defining MAIL_LOCK_DOT | |
5408 EOF | |
5409 cat >> confdefs.h <<\EOF | |
5410 #define MAIL_LOCK_DOT 1 | |
5411 EOF | |
5412 } | |
5413 | |
5414 fi | |
5415 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \ | |
5416 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; } | |
5417 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \ | |
5418 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; } | |
5419 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \ | |
5420 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } | |
5421 | |
5422 case "$opsys" in decosf*) | |
5423 | |
5424 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | |
5425 echo "configure:5426: checking for cma_open in -lpthreads" >&5 | |
5426 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` | |
5427 | |
5428 xe_check_libs=" -lpthreads " | |
5429 cat > conftest.$ac_ext <<EOF | |
5430 #line 5431 "configure" | |
5431 #include "confdefs.h" | |
5432 /* Override any gcc2 internal prototype to avoid an error. */ | |
5433 /* We use char because int might match the return type of a gcc2 | |
5434 builtin and then its argument prototype would still apply. */ | |
5435 char cma_open(); | |
5436 | |
5437 int main() { | |
5438 cma_open() | |
5439 ; return 0; } | |
5440 EOF | |
5441 if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5442 rm -rf conftest* | |
5443 eval "ac_cv_lib_$ac_lib_var=yes" | |
5444 else | |
5445 echo "configure: failed program was:" >&5 | |
5446 cat conftest.$ac_ext >&5 | |
5447 rm -rf conftest* | |
5448 eval "ac_cv_lib_$ac_lib_var=no" | |
5449 fi | |
5450 rm -f conftest* | |
5451 xe_check_libs="" | |
5452 | |
5453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
5454 echo "$ac_t""yes" 1>&6 | |
5455 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5457 { test "$extra_verbose" = "yes" && cat << EOF | |
5458 Defining $ac_tr_lib | |
5459 EOF | |
5460 cat >> confdefs.h <<EOF | |
5461 #define $ac_tr_lib 1 | |
5462 EOF | |
5463 } | |
5464 | |
5465 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi | |
5466 | |
5467 else | |
5468 echo "$ac_t""no" 1>&6 | |
5469 fi | |
5470 | |
5471 | |
5472 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ | |
5473 c_switch_site="$c_switch_site -threads" ;; | |
5474 esac | |
5475 | |
5476 | |
5477 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 | |
5478 echo "configure:5479: checking whether the -xildoff compiler flag is required" >&5 | |
5479 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then | |
5480 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; | |
5481 then echo "$ac_t""no" 1>&6; | |
5482 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 | |
5483 fi | |
5484 else echo "$ac_t""no" 1>&6 | |
5485 fi | |
5486 | |
5487 if test "$opsys" = "sol2"; then | |
5488 if test "$os_release" -ge 506; then | |
5489 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 | |
5490 echo "configure:5491: checking for \"-z ignore\" linker flag" >&5 | |
5491 case "`ld -h 2>&1`" in | |
5492 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 | |
5493 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; | |
5494 *) echo "$ac_t""no" 1>&6 ;; | |
5495 esac | |
5496 fi | |
5497 fi | |
5498 | |
5499 | |
5500 echo "checking "for specified window system"" 1>&6 | |
5501 echo "configure:5502: checking "for specified window system"" >&5 | |
5502 | |
5503 | |
5504 GNOME_CONFIG=no | |
5505 GTK_CONFIG=no | |
5506 | |
5507 if test "$with_gnome" != "no"; then | |
5508 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6 | |
5509 echo "configure:5510: checking for GNOME configuration script" >&5 | |
5510 for possible in gnome-config | |
5511 do | |
5512 possible_version=`${possible} --version 2> /dev/null` | |
5513 if test "x${possible_version}" != "x"; then | |
5514 GNOME_CONFIG="${possible}" | |
5515 with_gnome=yes | |
5516 with_gtk=yes | |
5517 break | |
5518 fi | |
5519 done | |
5520 echo "$ac_t""${GNOME_CONFIG}" 1>&6 | |
5521 fi | |
5522 | |
5523 if test "${GNOME_CONFIG}" != "no"; then | |
5524 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui` | |
5525 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui` | |
5526 { test "$extra_verbose" = "yes" && cat << \EOF | |
5527 Defining HAVE_GNOME | |
5528 EOF | |
5529 cat >> confdefs.h <<\EOF | |
5530 #define HAVE_GNOME 1 | |
5531 EOF | |
5532 } | |
5533 | |
5534 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi | |
5535 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi | |
5536 fi | |
5537 | |
5538 if test "$with_gtk" != "no";then | |
5539 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6 | |
5540 echo "configure:5541: checking for GTK configuration script" >&5 | |
5541 for possible in gtk12-config gtk14-config gtk-config | |
5542 do | |
5543 possible_version=`${possible} --version 2> /dev/null` | |
5544 if test "x${possible_version}" != "x"; then | |
5545 GTK_CONFIG="${possible}" | |
5546 case "${possible_version}" in | |
5547 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;; | |
5548 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;; | |
5549 1.2.*) | |
5550 with_gtk=yes | |
5551 break | |
5552 ;; | |
5553 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;; | |
5554 esac | |
5555 fi | |
5556 done | |
5557 echo "$ac_t""${GTK_CONFIG}" 1>&6 | |
5558 fi | |
5559 | |
5560 if test "${GTK_CONFIG}" != "no"; then | |
5561 echo $ac_n "checking gtk version""... $ac_c" 1>&6 | |
5562 echo "configure:5563: checking gtk version" >&5 | |
5563 GTK_VERSION=`${GTK_CONFIG} --version` | |
5564 echo "$ac_t""${GTK_VERSION}" 1>&6 | |
5565 | |
5566 echo $ac_n "checking gtk libs""... $ac_c" 1>&6 | |
5567 echo "configure:5568: checking gtk libs" >&5 | |
5568 GTK_LIBS=`${GTK_CONFIG} --libs` | |
5569 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi | |
5570 echo "$ac_t""${GTK_LIBS}" 1>&6 | |
5571 | |
5572 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6 | |
5573 echo "configure:5574: checking gtk cflags" >&5 | |
5574 GTK_CFLAGS=`${GTK_CONFIG} --cflags` | |
5575 if test "$GCC" = "yes"; then | |
5576 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow" | |
5577 fi | |
5578 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi | |
5579 echo "$ac_t""${GTK_CFLAGS}" 1>&6 | |
5580 | |
5581 | |
5582 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6 | |
5583 echo "configure:5584: checking for main in -lgdk_imlib" >&5 | |
5584 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'` | |
5585 | |
5586 xe_check_libs=" -lgdk_imlib " | |
5587 cat > conftest.$ac_ext <<EOF | |
5588 #line 5589 "configure" | |
5589 #include "confdefs.h" | |
5590 | |
5591 int main() { | |
5592 main() | |
5593 ; return 0; } | |
5594 EOF | |
5595 if { (eval echo configure:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5596 rm -rf conftest* | |
5597 eval "ac_cv_lib_$ac_lib_var=yes" | |
5598 else | |
5599 echo "configure: failed program was:" >&5 | |
5600 cat conftest.$ac_ext >&5 | |
5601 rm -rf conftest* | |
5602 eval "ac_cv_lib_$ac_lib_var=no" | |
5603 fi | |
5604 rm -f conftest* | |
5605 xe_check_libs="" | |
5606 | |
5607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
5608 echo "$ac_t""yes" 1>&6 | |
5609 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi | |
5610 else | |
5611 echo "$ac_t""no" 1>&6 | |
5612 fi | |
5613 | |
5614 | |
5615 | |
5616 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6 | |
5617 echo "configure:5618: checking for Imlib_init in -lImlib" >&5 | |
5618 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'` | |
5619 | |
5620 xe_check_libs=" -lImlib " | |
5621 cat > conftest.$ac_ext <<EOF | |
5622 #line 5623 "configure" | |
5623 #include "confdefs.h" | |
5624 /* Override any gcc2 internal prototype to avoid an error. */ | |
5625 /* We use char because int might match the return type of a gcc2 | |
5626 builtin and then its argument prototype would still apply. */ | |
5627 char Imlib_init(); | |
5628 | |
5629 int main() { | |
5630 Imlib_init() | |
5631 ; return 0; } | |
5632 EOF | |
5633 if { (eval echo configure:5634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5634 rm -rf conftest* | |
5635 eval "ac_cv_lib_$ac_lib_var=yes" | |
5636 else | |
5637 echo "configure: failed program was:" >&5 | |
5638 cat conftest.$ac_ext >&5 | |
5639 rm -rf conftest* | |
5640 eval "ac_cv_lib_$ac_lib_var=no" | |
5641 fi | |
5642 rm -f conftest* | |
5643 xe_check_libs="" | |
5644 | |
5645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
5646 echo "$ac_t""yes" 1>&6 | |
5647 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi | |
5648 else | |
5649 echo "$ac_t""no" 1>&6 | |
5650 fi | |
5651 | |
5652 | |
5653 for ac_func in gdk_imlib_init | |
5654 do | |
5655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5656 echo "configure:5657: checking for $ac_func" >&5 | |
5657 | |
5658 cat > conftest.$ac_ext <<EOF | |
5659 #line 5660 "configure" | |
5660 #include "confdefs.h" | |
5661 /* System header to define __stub macros and hopefully few prototypes, | |
5662 which can conflict with char $ac_func(); below. */ | |
5663 #include <assert.h> | |
5664 /* Override any gcc2 internal prototype to avoid an error. */ | |
5665 /* We use char because int might match the return type of a gcc2 | |
5666 builtin and then its argument prototype would still apply. */ | |
5667 char $ac_func(); | |
5668 | |
5669 int main() { | |
5670 | |
5671 /* The GNU C library defines this for functions which it implements | |
5672 to always fail with ENOSYS. Some functions are actually named | |
5673 something starting with __ and the normal name is an alias. */ | |
5674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5675 choke me | |
5676 #else | |
5677 $ac_func(); | |
5678 #endif | |
5679 | |
5680 ; return 0; } | |
5681 EOF | |
5682 if { (eval echo configure:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5683 rm -rf conftest* | |
5684 eval "ac_cv_func_$ac_func=yes" | |
5685 else | |
5686 echo "configure: failed program was:" >&5 | |
5687 cat conftest.$ac_ext >&5 | |
5688 rm -rf conftest* | |
5689 eval "ac_cv_func_$ac_func=no" | |
5690 fi | |
5691 rm -f conftest* | |
5692 | |
5693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5694 echo "$ac_t""yes" 1>&6 | |
5695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5696 { test "$extra_verbose" = "yes" && cat << EOF | |
5697 Defining $ac_tr_func | |
5698 EOF | |
5699 cat >> confdefs.h <<EOF | |
5700 #define $ac_tr_func 1 | |
5701 EOF | |
5702 } | |
5703 | |
5704 else | |
5705 echo "$ac_t""no" 1>&6 | |
5706 fi | |
5707 done | |
5708 | |
5709 | |
5710 { test "$extra_verbose" = "yes" && cat << \EOF | |
5711 Defining HAVE_XPM | |
5712 EOF | |
5713 cat >> confdefs.h <<\EOF | |
5714 #define HAVE_XPM 1 | |
5715 EOF | |
5716 } | |
5717 | |
5718 { test "$extra_verbose" = "yes" && cat << \EOF | |
5719 Defining HAVE_GTK | |
5720 EOF | |
5721 cat >> confdefs.h <<\EOF | |
5722 #define HAVE_GTK 1 | |
5723 EOF | |
5724 } | |
5725 | |
5726 | |
5727 | |
5728 window_system=gtk | |
5729 with_gtk=yes | |
5730 if test "$with_x11" != "no"; then | |
5731 echo "configure: warning: Configuring GTK, forcing with_x11 to no" 1>&2 | |
5732 with_x11=no | |
5733 fi | |
5734 | |
5735 for feature in scrollbars toolbars menubars dialogs widgets | |
5736 do | |
5737 eval "feature_value=\${with_${feature}}" | |
5738 case "${feature_value}" in | |
5739 yes|no|gtk|"" ) | |
5740 ;; | |
5741 * ) | |
5742 feature_conflict_with_gtk=yes | |
5743 echo "configure: warning: --with-${feature}=${feature_value} is incompatible with --with-gtk" 1>&2 ;; | |
5744 esac | |
5745 done | |
5746 if test "${feature_conflict_with_gtk}" = "yes"; then | |
5747 { echo "Error:" "One or more GUI toolkit features conflict with GTK" >&2; exit 1; } | |
5748 fi | |
5749 | |
5750 test "${with_scrollbars}" != "no" && with_scrollbars=gtk | |
5751 test "${with_toolbars}" != "no" && with_toolbars=gtk | |
5752 test "${with_menubars}" != "no" && with_menubars=gtk | |
5753 test "${with_dialogs}" != "no" && with_dialogs=gtk | |
5754 test "${with_widgets}" != "no" && with_widgets=gtk | |
5755 | |
5756 OLD_CFLAGS="${CFLAGS}" | |
5757 OLD_CPPFLAGS="${CPPFLAGS}" | |
5758 OLD_LDFLAGS="${LDFLAGS}" | |
5759 CFLAGS="${GTK_CFLAGS} ${CFLAGS}" | |
5760 CPPFLAGS="${GTK_CFLAGS} ${CFLAGS}" | |
5761 LDFLAGS="${LDFLAGS} ${GTK_LIBS}" | |
5762 for ac_hdr in glade/glade.h glade.h | |
5763 do | |
5764 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5765 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5766 echo "configure:5767: checking for $ac_hdr" >&5 | |
5767 | |
5768 cat > conftest.$ac_ext <<EOF | |
5769 #line 5770 "configure" | |
5770 #include "confdefs.h" | |
5771 #include <$ac_hdr> | |
5772 EOF | |
5773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5774 { (eval echo configure:5775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
5775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
5776 if test -z "$ac_err"; then | |
5777 rm -rf conftest* | |
5778 eval "ac_cv_header_$ac_safe=yes" | |
5779 else | |
5780 echo "$ac_err" >&5 | |
5781 echo "configure: failed program was:" >&5 | |
5782 cat conftest.$ac_ext >&5 | |
5783 rm -rf conftest* | |
5784 eval "ac_cv_header_$ac_safe=no" | |
5785 fi | |
5786 rm -f conftest* | |
5787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5788 echo "$ac_t""yes" 1>&6 | |
5789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5790 { test "$extra_verbose" = "yes" && cat << EOF | |
5791 Defining $ac_tr_hdr | |
5792 EOF | |
5793 cat >> confdefs.h <<EOF | |
5794 #define $ac_tr_hdr 1 | |
5795 EOF | |
5796 } | |
5797 | |
5798 else | |
5799 echo "$ac_t""no" 1>&6 | |
5800 fi | |
5801 done | |
5802 | |
5803 | |
5804 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6 | |
5805 echo "configure:5806: checking for main in -lxml" >&5 | |
5806 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'` | |
5807 | |
5808 xe_check_libs=" -lxml " | |
5809 cat > conftest.$ac_ext <<EOF | |
5810 #line 5811 "configure" | |
5811 #include "confdefs.h" | |
5812 | |
5813 int main() { | |
5814 main() | |
5815 ; return 0; } | |
5816 EOF | |
5817 if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5818 rm -rf conftest* | |
5819 eval "ac_cv_lib_$ac_lib_var=yes" | |
5820 else | |
5821 echo "configure: failed program was:" >&5 | |
5822 cat conftest.$ac_ext >&5 | |
5823 rm -rf conftest* | |
5824 eval "ac_cv_lib_$ac_lib_var=no" | |
5825 fi | |
5826 rm -f conftest* | |
5827 xe_check_libs="" | |
5828 | |
5829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
5830 echo "$ac_t""yes" 1>&6 | |
5831 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi | |
5832 else | |
5833 echo "$ac_t""no" 1>&6 | |
5834 fi | |
5835 | |
5836 | |
5837 | |
5838 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6 | |
5839 echo "configure:5840: checking for main in -lglade" >&5 | |
5840 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'` | |
5841 | |
5842 xe_check_libs=" -lglade " | |
5843 cat > conftest.$ac_ext <<EOF | |
5844 #line 5845 "configure" | |
5845 #include "confdefs.h" | |
5846 | |
5847 int main() { | |
5848 main() | |
5849 ; return 0; } | |
5850 EOF | |
5851 if { (eval echo configure:5852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5852 rm -rf conftest* | |
5853 eval "ac_cv_lib_$ac_lib_var=yes" | |
5854 else | |
5855 echo "configure: failed program was:" >&5 | |
5856 cat conftest.$ac_ext >&5 | |
5857 rm -rf conftest* | |
5858 eval "ac_cv_lib_$ac_lib_var=no" | |
5859 fi | |
5860 rm -f conftest* | |
5861 xe_check_libs="" | |
5862 | |
5863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
5864 echo "$ac_t""yes" 1>&6 | |
5865 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi | |
5866 else | |
5867 echo "$ac_t""no" 1>&6 | |
5868 fi | |
5869 | |
5870 | |
5871 | |
5872 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6 | |
5873 echo "configure:5874: checking for main in -lglade-gnome" >&5 | |
5874 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'` | |
5875 | |
5876 xe_check_libs=" -lglade-gnome " | |
5877 cat > conftest.$ac_ext <<EOF | |
5878 #line 5879 "configure" | |
5879 #include "confdefs.h" | |
5880 | |
5881 int main() { | |
5882 main() | |
5883 ; return 0; } | |
5884 EOF | |
5885 if { (eval echo configure:5886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5886 rm -rf conftest* | |
5887 eval "ac_cv_lib_$ac_lib_var=yes" | |
5888 else | |
5889 echo "configure: failed program was:" >&5 | |
5890 cat conftest.$ac_ext >&5 | |
5891 rm -rf conftest* | |
5892 eval "ac_cv_lib_$ac_lib_var=no" | |
5893 fi | |
5894 rm -f conftest* | |
5895 xe_check_libs="" | |
5896 | |
5897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
5898 echo "$ac_t""yes" 1>&6 | |
5899 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi | |
5900 else | |
5901 echo "$ac_t""no" 1>&6 | |
5902 fi | |
5903 | |
5904 | |
5905 cat > conftest.$ac_ext <<EOF | |
5906 #line 5907 "configure" | |
5907 #include "confdefs.h" | |
5908 #include <glade/glade-xml.h> | |
5909 EOF | |
5910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5911 egrep "char \*txtdomain;" >/dev/null 2>&1; then | |
5912 rm -rf conftest* | |
5913 echo "$ac_t""yes" 1>&6 | |
5914 { test "$extra_verbose" = "yes" && cat << \EOF | |
5915 Defining LIBGLADE_XML_TXTDOMAIN = 1 | |
5916 EOF | |
5917 cat >> confdefs.h <<\EOF | |
5918 #define LIBGLADE_XML_TXTDOMAIN 1 | |
5919 EOF | |
5920 } | |
5921 | |
5922 else | |
5923 rm -rf conftest* | |
5924 echo "$ac_t""no" 1>&6 | |
5925 fi | |
5926 rm -f conftest* | |
5927 | |
5928 CFLAGS="${OLD_CFLAGS}" | |
5929 CPPFLAGS="${OLD_CPPFLAGS}" | |
5930 LDFLAGS="${OLD_LDFLAGS}" | |
5931 fi | |
5932 | |
5933 | |
5934 if test "$with_x11" != "no"; then | |
5935 test "$x_includes $x_libraries" != "NONE NONE" && \ | |
5936 window_system=x11 with_x11=yes | |
5937 | |
5938 | |
5939 if test "$x_includes $x_libraries" = "NONE NONE" \ | |
5940 -a -n "$OPENWINHOME" \ | |
5941 -a "$OPENWINHOME" != "/usr/openwin" \ | |
5942 -a -d "$OPENWINHOME"; then | |
5943 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib" | |
5944 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include" | |
5945 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include" | |
5946 fi | |
5947 | |
5948 if test "$x_includes" = "NONE"; then | |
5949 for dir in "/usr/X11" "/usr/X11R6"; do | |
5950 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi | |
5951 done | |
5952 fi | |
5953 | |
5954 if test "$x_libraries" = "NONE"; then | |
5955 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do | |
5956 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi | |
5957 done | |
5958 fi | |
5959 | |
5960 # If we find X, set shell vars x_includes and x_libraries to the | |
5961 # paths, otherwise set no_x=yes. | |
5962 # Uses ac_ vars as temps to allow command line to override cache and checks. | |
5963 # --without-x overrides everything else, but does not touch the cache. | |
5964 echo $ac_n "checking for X""... $ac_c" 1>&6 | |
5965 echo "configure:5966: checking for X" >&5 | |
5966 | |
5967 # Check whether --with-x or --without-x was given. | |
5968 if test "${with_x+set}" = set; then | |
5969 withval="$with_x" | |
5970 : | |
5971 fi | |
5972 | |
5973 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
5974 if test "x$with_x" = xno; then | |
5975 # The user explicitly disabled X. | |
5976 have_x=disabled | |
5977 else | |
5978 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
5979 # Both variables are already set. | |
5980 have_x=yes | |
5981 else | |
5982 | |
5983 # One or both of the vars are not set, and there is no cached value. | |
5984 ac_x_includes=NO ac_x_libraries=NO | |
5985 rm -fr conftestdir | |
5986 if mkdir conftestdir; then | |
5987 cd conftestdir | |
5988 # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
5989 cat > Imakefile <<'EOF' | |
5990 acfindx: | |
5991 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
5992 EOF | |
5993 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
5994 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5995 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
5996 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
5997 for ac_extension in a so sl; do | |
5998 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
5999 test -f $ac_im_libdir/libX11.$ac_extension; then | |
6000 ac_im_usrlibdir=$ac_im_libdir; break | |
6001 fi | |
6002 done | |
6003 # Screen out bogus values from the imake configuration. They are | |
6004 # bogus both because they are the default anyway, and because | |
6005 # using them would break gcc on systems where it needs fixed includes. | |
6006 case "$ac_im_incroot" in | |
6007 /usr/include) ;; | |
6008 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
6009 esac | |
6010 case "$ac_im_usrlibdir" in | |
6011 /usr/lib | /lib) ;; | |
6012 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
6013 esac | |
6014 fi | |
6015 cd .. | |
6016 rm -fr conftestdir | |
6017 fi | |
6018 | |
6019 if test "$ac_x_includes" = NO; then | |
6020 # Guess where to find include files, by looking for this one X11 .h file. | |
6021 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
6022 | |
6023 # First, try using that file with no special directory specified. | |
6024 cat > conftest.$ac_ext <<EOF | |
6025 #line 6026 "configure" | |
6026 #include "confdefs.h" | |
6027 #include <$x_direct_test_include> | |
6028 EOF | |
6029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6030 { (eval echo configure:6031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6032 if test -z "$ac_err"; then | |
6033 rm -rf conftest* | |
6034 # We can compile using X headers with no special include directory. | |
6035 ac_x_includes= | |
6036 else | |
6037 echo "$ac_err" >&5 | |
6038 echo "configure: failed program was:" >&5 | |
6039 cat conftest.$ac_ext >&5 | |
6040 rm -rf conftest* | |
6041 # Look for the header file in a standard set of common directories. | |
6042 # Check X11 before X11Rn because it is often a symlink to the current release. | |
6043 for ac_dir in \ | |
6044 /usr/X11/include \ | |
6045 /usr/X11R6/include \ | |
6046 /usr/X11R5/include \ | |
6047 /usr/X11R4/include \ | |
6048 \ | |
6049 /usr/include/X11 \ | |
6050 /usr/include/X11R6 \ | |
6051 /usr/include/X11R5 \ | |
6052 /usr/include/X11R4 \ | |
6053 \ | |
6054 /usr/local/X11/include \ | |
6055 /usr/local/X11R6/include \ | |
6056 /usr/local/X11R5/include \ | |
6057 /usr/local/X11R4/include \ | |
6058 \ | |
6059 /usr/local/include/X11 \ | |
6060 /usr/local/include/X11R6 \ | |
6061 /usr/local/include/X11R5 \ | |
6062 /usr/local/include/X11R4 \ | |
6063 \ | |
6064 /usr/X386/include \ | |
6065 /usr/x386/include \ | |
6066 /usr/XFree86/include/X11 \ | |
6067 \ | |
6068 /usr/include \ | |
6069 /usr/local/include \ | |
6070 /usr/unsupported/include \ | |
6071 /usr/athena/include \ | |
6072 /usr/local/x11r5/include \ | |
6073 /usr/lpp/Xamples/include \ | |
6074 \ | |
6075 /usr/openwin/include \ | |
6076 /usr/openwin/share/include \ | |
6077 ; \ | |
6078 do | |
6079 if test -r "$ac_dir/$x_direct_test_include"; then | |
6080 ac_x_includes=$ac_dir | |
6081 break | |
6082 fi | |
6083 done | |
6084 fi | |
6085 rm -f conftest* | |
6086 fi # $ac_x_includes = NO | |
6087 | |
6088 if test "$ac_x_libraries" = NO; then | |
6089 # Check for the libraries. | |
6090 | |
6091 test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
6092 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
6093 | |
6094 # See if we find them without any special options. | |
6095 # Don't add to $LIBS permanently. | |
6096 ac_save_LIBS="$LIBS" | |
6097 LIBS="-l$x_direct_test_library $LIBS" | |
6098 cat > conftest.$ac_ext <<EOF | |
6099 #line 6100 "configure" | |
6100 #include "confdefs.h" | |
6101 | |
6102 int main() { | |
6103 ${x_direct_test_function}() | |
6104 ; return 0; } | |
6105 EOF | |
6106 if { (eval echo configure:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6107 rm -rf conftest* | |
6108 LIBS="$ac_save_LIBS" | |
6109 # We can link X programs with no special library path. | |
6110 ac_x_libraries= | |
6111 else | |
6112 echo "configure: failed program was:" >&5 | |
6113 cat conftest.$ac_ext >&5 | |
6114 rm -rf conftest* | |
6115 LIBS="$ac_save_LIBS" | |
6116 # First see if replacing the include by lib works. | |
6117 # Check X11 before X11Rn because it is often a symlink to the current release. | |
6118 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
6119 /usr/X11/lib \ | |
6120 /usr/X11R6/lib \ | |
6121 /usr/X11R5/lib \ | |
6122 /usr/X11R4/lib \ | |
6123 \ | |
6124 /usr/lib/X11 \ | |
6125 /usr/lib/X11R6 \ | |
6126 /usr/lib/X11R5 \ | |
6127 /usr/lib/X11R4 \ | |
6128 \ | |
6129 /usr/local/X11/lib \ | |
6130 /usr/local/X11R6/lib \ | |
6131 /usr/local/X11R5/lib \ | |
6132 /usr/local/X11R4/lib \ | |
6133 \ | |
6134 /usr/local/lib/X11 \ | |
6135 /usr/local/lib/X11R6 \ | |
6136 /usr/local/lib/X11R5 \ | |
6137 /usr/local/lib/X11R4 \ | |
6138 \ | |
6139 /usr/X386/lib \ | |
6140 /usr/x386/lib \ | |
6141 /usr/XFree86/lib/X11 \ | |
6142 \ | |
6143 /usr/lib \ | |
6144 /usr/local/lib \ | |
6145 /usr/unsupported/lib \ | |
6146 /usr/athena/lib \ | |
6147 /usr/local/x11r5/lib \ | |
6148 /usr/lpp/Xamples/lib \ | |
6149 /lib/usr/lib/X11 \ | |
6150 \ | |
6151 /usr/openwin/lib \ | |
6152 /usr/openwin/share/lib \ | |
6153 ; \ | |
6154 do | |
6155 for ac_extension in a so sl; do | |
6156 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
6157 ac_x_libraries=$ac_dir | |
6158 break 2 | |
6159 fi | |
6160 done | |
6161 done | |
6162 fi | |
6163 rm -f conftest* | |
6164 fi # $ac_x_libraries = NO | |
6165 | |
6166 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
6167 # Didn't find X anywhere. Cache the known absence of X. | |
6168 ac_cv_have_x="have_x=no" | |
6169 else | |
6170 # Record where we found X for the cache. | |
6171 ac_cv_have_x="have_x=yes \ | |
6172 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
6173 fi | |
6174 fi | |
6175 eval "$ac_cv_have_x" | |
6176 fi # $with_x != no | |
6177 | |
6178 if test "$have_x" != yes; then | |
6179 echo "$ac_t""$have_x" 1>&6 | |
6180 no_x=yes | |
6181 else | |
6182 # If each of the values was on the command line, it overrides each guess. | |
6183 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
6184 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
6185 # Update the cache value to reflect the command line values. | |
6186 ac_cv_have_x="have_x=yes \ | |
6187 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
6188 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
6189 fi | |
6190 | |
6191 if test "$no_x" = yes; then | |
6192 # Not all programs may use this symbol, but it does not hurt to define it. | |
6193 { test "$extra_verbose" = "yes" && cat << \EOF | |
6194 Defining X_DISPLAY_MISSING | |
6195 EOF | |
6196 cat >> confdefs.h <<\EOF | |
6197 #define X_DISPLAY_MISSING 1 | |
6198 EOF | |
6199 } | |
6200 | |
6201 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
6202 else | |
6203 if test -n "$x_includes"; then | |
6204 X_CFLAGS="$X_CFLAGS -I$x_includes" | |
6205 fi | |
6206 | |
6207 # It would also be nice to do this for all -L options, not just this one. | |
6208 if test -n "$x_libraries"; then | |
6209 X_LIBS="$X_LIBS -L$x_libraries" | |
6210 # For Solaris; some versions of Sun CC require a space after -R and | |
6211 # others require no space. Words are not sufficient . . . . | |
6212 case "`(uname -sr) 2>/dev/null`" in | |
6213 "SunOS 5"*) | |
6214 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
6215 echo "configure:6216: checking whether -R must be followed by a space" >&5 | |
6216 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
6217 cat > conftest.$ac_ext <<EOF | |
6218 #line 6219 "configure" | |
6219 #include "confdefs.h" | |
6220 | |
6221 int main() { | |
6222 | |
6223 ; return 0; } | |
6224 EOF | |
6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6226 rm -rf conftest* | |
6227 ac_R_nospace=yes | |
6228 else | |
6229 echo "configure: failed program was:" >&5 | |
6230 cat conftest.$ac_ext >&5 | |
6231 rm -rf conftest* | |
6232 ac_R_nospace=no | |
6233 fi | |
6234 rm -f conftest* | |
6235 if test $ac_R_nospace = yes; then | |
6236 echo "$ac_t""no" 1>&6 | |
6237 X_LIBS="$X_LIBS -R$x_libraries" | |
6238 else | |
6239 LIBS="$ac_xsave_LIBS -R $x_libraries" | |
6240 cat > conftest.$ac_ext <<EOF | |
6241 #line 6242 "configure" | |
6242 #include "confdefs.h" | |
6243 | |
6244 int main() { | |
6245 | |
6246 ; return 0; } | |
6247 EOF | |
6248 if { (eval echo configure:6249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6249 rm -rf conftest* | |
6250 ac_R_space=yes | |
6251 else | |
6252 echo "configure: failed program was:" >&5 | |
6253 cat conftest.$ac_ext >&5 | |
6254 rm -rf conftest* | |
6255 ac_R_space=no | |
6256 fi | |
6257 rm -f conftest* | |
6258 if test $ac_R_space = yes; then | |
6259 echo "$ac_t""yes" 1>&6 | |
6260 X_LIBS="$X_LIBS -R $x_libraries" | |
6261 else | |
6262 echo "$ac_t""neither works" 1>&6 | |
6263 fi | |
6264 fi | |
6265 LIBS="$ac_xsave_LIBS" | |
6266 esac | |
6267 fi | |
6268 | |
6269 # Check for system-dependent libraries X programs must link with. | |
6270 # Do this before checking for the system-independent R6 libraries | |
6271 # (-lICE), since we may need -lsocket or whatever for X linking. | |
6272 | |
6273 if test "$ISC" = yes; then | |
6274 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
6275 else | |
6276 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
6277 # libraries were built with DECnet support. And karl@cs.umb.edu says | |
6278 # the Alpha needs dnet_stub (dnet does not exist). | |
6279 if test "$with_dnet" = "no" ; then | |
6280 ac_cv_lib_dnet_dnet_ntoa=no | |
6281 else | |
6282 | |
6283 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
6284 echo "configure:6285: checking for dnet_ntoa in -ldnet" >&5 | |
6285 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
6286 | |
6287 xe_check_libs=" -ldnet " | |
6288 cat > conftest.$ac_ext <<EOF | |
6289 #line 6290 "configure" | |
6290 #include "confdefs.h" | |
6291 /* Override any gcc2 internal prototype to avoid an error. */ | |
6292 /* We use char because int might match the return type of a gcc2 | |
6293 builtin and then its argument prototype would still apply. */ | |
6294 char dnet_ntoa(); | |
6295 | |
6296 int main() { | |
6297 dnet_ntoa() | |
6298 ; return 0; } | |
6299 EOF | |
6300 if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6301 rm -rf conftest* | |
6302 eval "ac_cv_lib_$ac_lib_var=yes" | |
6303 else | |
6304 echo "configure: failed program was:" >&5 | |
6305 cat conftest.$ac_ext >&5 | |
6306 rm -rf conftest* | |
6307 eval "ac_cv_lib_$ac_lib_var=no" | |
6308 fi | |
6309 rm -f conftest* | |
6310 xe_check_libs="" | |
6311 | |
6312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
6313 echo "$ac_t""yes" 1>&6 | |
6314 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
6315 else | |
6316 echo "$ac_t""no" 1>&6 | |
6317 fi | |
6318 | |
6319 fi | |
6320 | |
6321 if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
6322 | |
6323 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
6324 echo "configure:6325: checking for dnet_ntoa in -ldnet_stub" >&5 | |
6325 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
6326 | |
6327 xe_check_libs=" -ldnet_stub " | |
6328 cat > conftest.$ac_ext <<EOF | |
6329 #line 6330 "configure" | |
6330 #include "confdefs.h" | |
6331 /* Override any gcc2 internal prototype to avoid an error. */ | |
6332 /* We use char because int might match the return type of a gcc2 | |
6333 builtin and then its argument prototype would still apply. */ | |
6334 char dnet_ntoa(); | |
6335 | |
6336 int main() { | |
6337 dnet_ntoa() | |
6338 ; return 0; } | |
6339 EOF | |
6340 if { (eval echo configure:6341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6341 rm -rf conftest* | |
6342 eval "ac_cv_lib_$ac_lib_var=yes" | |
6343 else | |
6344 echo "configure: failed program was:" >&5 | |
6345 cat conftest.$ac_ext >&5 | |
6346 rm -rf conftest* | |
6347 eval "ac_cv_lib_$ac_lib_var=no" | |
6348 fi | |
6349 rm -f conftest* | |
6350 xe_check_libs="" | |
6351 | |
6352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
6353 echo "$ac_t""yes" 1>&6 | |
6354 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
6355 else | |
6356 echo "$ac_t""no" 1>&6 | |
6357 fi | |
6358 | |
6359 | |
6360 fi | |
6361 | |
6362 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
6363 # to get the SysV transport functions. | |
6364 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
6365 # needs -lnsl. | |
6366 # The nsl library prevents programs from opening the X display | |
6367 # on Irix 5.2, according to dickey@clark.net. | |
6368 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
6369 echo "configure:6370: checking for gethostbyname" >&5 | |
6370 | |
6371 cat > conftest.$ac_ext <<EOF | |
6372 #line 6373 "configure" | |
6373 #include "confdefs.h" | |
6374 /* System header to define __stub macros and hopefully few prototypes, | |
6375 which can conflict with char gethostbyname(); below. */ | |
6376 #include <assert.h> | |
6377 /* Override any gcc2 internal prototype to avoid an error. */ | |
6378 /* We use char because int might match the return type of a gcc2 | |
6379 builtin and then its argument prototype would still apply. */ | |
6380 char gethostbyname(); | |
6381 | |
6382 int main() { | |
6383 | |
6384 /* The GNU C library defines this for functions which it implements | |
6385 to always fail with ENOSYS. Some functions are actually named | |
6386 something starting with __ and the normal name is an alias. */ | |
6387 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
6388 choke me | |
6389 #else | |
6390 gethostbyname(); | |
6391 #endif | |
6392 | |
6393 ; return 0; } | |
6394 EOF | |
6395 if { (eval echo configure:6396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6396 rm -rf conftest* | |
6397 eval "ac_cv_func_gethostbyname=yes" | |
6398 else | |
6399 echo "configure: failed program was:" >&5 | |
6400 cat conftest.$ac_ext >&5 | |
6401 rm -rf conftest* | |
6402 eval "ac_cv_func_gethostbyname=no" | |
6403 fi | |
6404 rm -f conftest* | |
6405 | |
6406 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
6407 echo "$ac_t""yes" 1>&6 | |
6408 : | |
6409 else | |
6410 echo "$ac_t""no" 1>&6 | |
6411 fi | |
6412 | |
6413 if test $ac_cv_func_gethostbyname = no; then | |
6414 | |
6415 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
6416 echo "configure:6417: checking for gethostbyname in -lnsl" >&5 | |
6417 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
6418 | |
6419 xe_check_libs=" -lnsl " | |
6420 cat > conftest.$ac_ext <<EOF | |
6421 #line 6422 "configure" | |
6422 #include "confdefs.h" | |
6423 /* Override any gcc2 internal prototype to avoid an error. */ | |
6424 /* We use char because int might match the return type of a gcc2 | |
6425 builtin and then its argument prototype would still apply. */ | |
6426 char gethostbyname(); | |
6427 | |
6428 int main() { | |
6429 gethostbyname() | |
6430 ; return 0; } | |
6431 EOF | |
6432 if { (eval echo configure:6433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6433 rm -rf conftest* | |
6434 eval "ac_cv_lib_$ac_lib_var=yes" | |
6435 else | |
6436 echo "configure: failed program was:" >&5 | |
6437 cat conftest.$ac_ext >&5 | |
6438 rm -rf conftest* | |
6439 eval "ac_cv_lib_$ac_lib_var=no" | |
6440 fi | |
6441 rm -f conftest* | |
6442 xe_check_libs="" | |
6443 | |
6444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
6445 echo "$ac_t""yes" 1>&6 | |
6446 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
6447 else | |
6448 echo "$ac_t""no" 1>&6 | |
6449 fi | |
6450 | |
6451 | |
6452 fi | |
6453 | |
6454 # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
6455 # socket/setsockopt and other routines are undefined under SCO ODT | |
6456 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
6457 # on later versions), says simon@lia.di.epfl.ch: it contains | |
6458 # gethostby* variants that don't use the nameserver (or something). | |
6459 # -lsocket must be given before -lnsl if both are needed. | |
6460 # We assume that if connect needs -lnsl, so does gethostbyname. | |
6461 echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
6462 echo "configure:6463: checking for connect" >&5 | |
6463 | |
6464 cat > conftest.$ac_ext <<EOF | |
6465 #line 6466 "configure" | |
6466 #include "confdefs.h" | |
6467 /* System header to define __stub macros and hopefully few prototypes, | |
6468 which can conflict with char connect(); below. */ | |
6469 #include <assert.h> | |
6470 /* Override any gcc2 internal prototype to avoid an error. */ | |
6471 /* We use char because int might match the return type of a gcc2 | |
6472 builtin and then its argument prototype would still apply. */ | |
6473 char connect(); | |
6474 | |
6475 int main() { | |
6476 | |
6477 /* The GNU C library defines this for functions which it implements | |
6478 to always fail with ENOSYS. Some functions are actually named | |
6479 something starting with __ and the normal name is an alias. */ | |
6480 #if defined (__stub_connect) || defined (__stub___connect) | |
6481 choke me | |
6482 #else | |
6483 connect(); | |
6484 #endif | |
6485 | |
6486 ; return 0; } | |
6487 EOF | |
6488 if { (eval echo configure:6489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6489 rm -rf conftest* | |
6490 eval "ac_cv_func_connect=yes" | |
6491 else | |
6492 echo "configure: failed program was:" >&5 | |
6493 cat conftest.$ac_ext >&5 | |
6494 rm -rf conftest* | |
6495 eval "ac_cv_func_connect=no" | |
6496 fi | |
6497 rm -f conftest* | |
6498 | |
6499 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
6500 echo "$ac_t""yes" 1>&6 | |
6501 : | |
6502 else | |
6503 echo "$ac_t""no" 1>&6 | |
6504 fi | |
6505 | |
6506 if test $ac_cv_func_connect = no; then | |
6507 | |
6508 xe_msg_checking="for connect in -lsocket" | |
6509 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" | |
6510 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | |
6511 echo "configure:6512: checking "$xe_msg_checking"" >&5 | |
6512 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
6513 | |
6514 xe_check_libs=" -lsocket $X_EXTRA_LIBS" | |
6515 cat > conftest.$ac_ext <<EOF | |
6516 #line 6517 "configure" | |
6517 #include "confdefs.h" | |
6518 /* Override any gcc2 internal prototype to avoid an error. */ | |
6519 /* We use char because int might match the return type of a gcc2 | |
6520 builtin and then its argument prototype would still apply. */ | |
6521 char connect(); | |
6522 | |
6523 int main() { | |
6524 connect() | |
6525 ; return 0; } | |
6526 EOF | |
6527 if { (eval echo configure:6528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6528 rm -rf conftest* | |
6529 eval "ac_cv_lib_$ac_lib_var=yes" | |
6530 else | |
6531 echo "configure: failed program was:" >&5 | |
6532 cat conftest.$ac_ext >&5 | |
6533 rm -rf conftest* | |
6534 eval "ac_cv_lib_$ac_lib_var=no" | |
6535 fi | |
6536 rm -f conftest* | |
6537 xe_check_libs="" | |
6538 | |
6539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
6540 echo "$ac_t""yes" 1>&6 | |
6541 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
6542 else | |
6543 echo "$ac_t""no" 1>&6 | |
6544 fi | |
6545 | |
6546 | |
6547 fi | |
6548 | |
6549 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
6550 echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
6551 echo "configure:6552: checking for remove" >&5 | |
6552 | |
6553 cat > conftest.$ac_ext <<EOF | |
6554 #line 6555 "configure" | |
6555 #include "confdefs.h" | |
6556 /* System header to define __stub macros and hopefully few prototypes, | |
6557 which can conflict with char remove(); below. */ | |
6558 #include <assert.h> | |
6559 /* Override any gcc2 internal prototype to avoid an error. */ | |
6560 /* We use char because int might match the return type of a gcc2 | |
6561 builtin and then its argument prototype would still apply. */ | |
6562 char remove(); | |
6563 | |
6564 int main() { | |
6565 | |
6566 /* The GNU C library defines this for functions which it implements | |
6567 to always fail with ENOSYS. Some functions are actually named | |
6568 something starting with __ and the normal name is an alias. */ | |
6569 #if defined (__stub_remove) || defined (__stub___remove) | |
6570 choke me | |
6571 #else | |
6572 remove(); | |
6573 #endif | |
6574 | |
6575 ; return 0; } | |
6576 EOF | |
6577 if { (eval echo configure:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6578 rm -rf conftest* | |
6579 eval "ac_cv_func_remove=yes" | |
6580 else | |
6581 echo "configure: failed program was:" >&5 | |
6582 cat conftest.$ac_ext >&5 | |
6583 rm -rf conftest* | |
6584 eval "ac_cv_func_remove=no" | |
6585 fi | |
6586 rm -f conftest* | |
6587 | |
6588 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
6589 echo "$ac_t""yes" 1>&6 | |
6590 : | |
6591 else | |
6592 echo "$ac_t""no" 1>&6 | |
6593 fi | |
6594 | |
6595 if test $ac_cv_func_remove = no; then | |
6596 | |
6597 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
6598 echo "configure:6599: checking for remove in -lposix" >&5 | |
6599 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
6600 | |
6601 xe_check_libs=" -lposix " | |
6602 cat > conftest.$ac_ext <<EOF | |
6603 #line 6604 "configure" | |
6604 #include "confdefs.h" | |
6605 /* Override any gcc2 internal prototype to avoid an error. */ | |
6606 /* We use char because int might match the return type of a gcc2 | |
6607 builtin and then its argument prototype would still apply. */ | |
6608 char remove(); | |
6609 | |
6610 int main() { | |
6611 remove() | |
6612 ; return 0; } | |
6613 EOF | |
6614 if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6615 rm -rf conftest* | |
6616 eval "ac_cv_lib_$ac_lib_var=yes" | |
6617 else | |
6618 echo "configure: failed program was:" >&5 | |
6619 cat conftest.$ac_ext >&5 | |
6620 rm -rf conftest* | |
6621 eval "ac_cv_lib_$ac_lib_var=no" | |
6622 fi | |
6623 rm -f conftest* | |
6624 xe_check_libs="" | |
6625 | |
6626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
6627 echo "$ac_t""yes" 1>&6 | |
6628 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
6629 else | |
6630 echo "$ac_t""no" 1>&6 | |
6631 fi | |
6632 | |
6633 | |
6634 fi | |
6635 | |
6636 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
6637 echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
6638 echo "configure:6639: checking for shmat" >&5 | |
6639 | |
6640 cat > conftest.$ac_ext <<EOF | |
6641 #line 6642 "configure" | |
6642 #include "confdefs.h" | |
6643 /* System header to define __stub macros and hopefully few prototypes, | |
6644 which can conflict with char shmat(); below. */ | |
6645 #include <assert.h> | |
6646 /* Override any gcc2 internal prototype to avoid an error. */ | |
6647 /* We use char because int might match the return type of a gcc2 | |
6648 builtin and then its argument prototype would still apply. */ | |
6649 char shmat(); | |
6650 | |
6651 int main() { | |
6652 | |
6653 /* The GNU C library defines this for functions which it implements | |
6654 to always fail with ENOSYS. Some functions are actually named | |
6655 something starting with __ and the normal name is an alias. */ | |
6656 #if defined (__stub_shmat) || defined (__stub___shmat) | |
6657 choke me | |
6658 #else | |
6659 shmat(); | |
6660 #endif | |
6661 | |
6662 ; return 0; } | |
6663 EOF | |
6664 if { (eval echo configure:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6665 rm -rf conftest* | |
6666 eval "ac_cv_func_shmat=yes" | |
6667 else | |
6668 echo "configure: failed program was:" >&5 | |
6669 cat conftest.$ac_ext >&5 | |
6670 rm -rf conftest* | |
6671 eval "ac_cv_func_shmat=no" | |
6672 fi | |
6673 rm -f conftest* | |
6674 | |
6675 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
6676 echo "$ac_t""yes" 1>&6 | |
6677 : | |
6678 else | |
6679 echo "$ac_t""no" 1>&6 | |
6680 fi | |
6681 | |
6682 if test $ac_cv_func_shmat = no; then | |
6683 | |
6684 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
6685 echo "configure:6686: checking for shmat in -lipc" >&5 | |
6686 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
6687 | |
6688 xe_check_libs=" -lipc " | |
6689 cat > conftest.$ac_ext <<EOF | |
6690 #line 6691 "configure" | |
6691 #include "confdefs.h" | |
6692 /* Override any gcc2 internal prototype to avoid an error. */ | |
6693 /* We use char because int might match the return type of a gcc2 | |
6694 builtin and then its argument prototype would still apply. */ | |
6695 char shmat(); | |
6696 | |
6697 int main() { | |
6698 shmat() | |
6699 ; return 0; } | |
6700 EOF | |
6701 if { (eval echo configure:6702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6702 rm -rf conftest* | |
6703 eval "ac_cv_lib_$ac_lib_var=yes" | |
6704 else | |
6705 echo "configure: failed program was:" >&5 | |
6706 cat conftest.$ac_ext >&5 | |
6707 rm -rf conftest* | |
6708 eval "ac_cv_lib_$ac_lib_var=no" | |
6709 fi | |
6710 rm -f conftest* | |
6711 xe_check_libs="" | |
6712 | |
6713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
6714 echo "$ac_t""yes" 1>&6 | |
6715 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
6716 else | |
6717 echo "$ac_t""no" 1>&6 | |
6718 fi | |
6719 | |
6720 | |
6721 fi | |
6722 fi | |
6723 | |
6724 # Check for libraries that X11R6 Xt/Xaw programs need. | |
6725 ac_save_LDFLAGS="$LDFLAGS" | |
6726 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
6727 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
6728 # check for ICE first), but we must link in the order -lSM -lICE or | |
6729 # we get undefined symbols. So assume we have SM if we have ICE. | |
6730 # These have to be linked with before -lX11, unlike the other | |
6731 # libraries we check for below, so use a different variable. | |
6732 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
6733 | |
6734 xe_msg_checking="for IceConnectionNumber in -lICE" | |
6735 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" | |
6736 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | |
6737 echo "configure:6738: checking "$xe_msg_checking"" >&5 | |
6738 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
6739 | |
6740 xe_check_libs=" -lICE $X_EXTRA_LIBS" | |
6741 cat > conftest.$ac_ext <<EOF | |
6742 #line 6743 "configure" | |
6743 #include "confdefs.h" | |
6744 /* Override any gcc2 internal prototype to avoid an error. */ | |
6745 /* We use char because int might match the return type of a gcc2 | |
6746 builtin and then its argument prototype would still apply. */ | |
6747 char IceConnectionNumber(); | |
6748 | |
6749 int main() { | |
6750 IceConnectionNumber() | |
6751 ; return 0; } | |
6752 EOF | |
6753 if { (eval echo configure:6754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6754 rm -rf conftest* | |
6755 eval "ac_cv_lib_$ac_lib_var=yes" | |
6756 else | |
6757 echo "configure: failed program was:" >&5 | |
6758 cat conftest.$ac_ext >&5 | |
6759 rm -rf conftest* | |
6760 eval "ac_cv_lib_$ac_lib_var=no" | |
6761 fi | |
6762 rm -f conftest* | |
6763 xe_check_libs="" | |
6764 | |
6765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
6766 echo "$ac_t""yes" 1>&6 | |
6767 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
6768 else | |
6769 echo "$ac_t""no" 1>&6 | |
6770 fi | |
6771 | |
6772 | |
6773 LDFLAGS="$ac_save_LDFLAGS" | |
6774 | |
6775 fi | |
6776 # Autoconf claims to find X library and include dirs for us. | |
6777 if test "$no_x" = "yes" | |
6778 then with_x11=no window_system=none HAVE_X_WINDOWS=no | |
6779 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes | |
6780 fi | |
6781 fi | |
6782 | |
6783 | |
6784 if test "$with_x11" = "yes"; then | |
6785 { test "$extra_verbose" = "yes" && cat << \EOF | |
6786 Defining HAVE_X_WINDOWS | |
6787 EOF | |
6788 cat >> confdefs.h <<\EOF | |
6789 #define HAVE_X_WINDOWS 1 | |
6790 EOF | |
6791 } | |
6792 | |
6793 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi | |
6794 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi | |
6795 | |
6796 | |
6797 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` | |
6798 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 | |
6799 echo "configure:6800: checking for Xm/Xm.h" >&5 | |
6800 | |
6801 cat > conftest.$ac_ext <<EOF | |
6802 #line 6803 "configure" | |
6803 #include "confdefs.h" | |
6804 #include <Xm/Xm.h> | |
6805 EOF | |
6806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6807 { (eval echo configure:6808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6809 if test -z "$ac_err"; then | |
6810 rm -rf conftest* | |
6811 eval "ac_cv_header_$ac_safe=yes" | |
6812 else | |
6813 echo "$ac_err" >&5 | |
6814 echo "configure: failed program was:" >&5 | |
6815 cat conftest.$ac_ext >&5 | |
6816 rm -rf conftest* | |
6817 eval "ac_cv_header_$ac_safe=no" | |
6818 fi | |
6819 rm -f conftest* | |
6820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6821 echo "$ac_t""yes" 1>&6 | |
6822 | |
6823 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 | |
6824 echo "configure:6825: checking for XmStringFree in -lXm" >&5 | |
6825 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` | |
6826 | |
6827 xe_check_libs=" -lXm " | |
6828 cat > conftest.$ac_ext <<EOF | |
6829 #line 6830 "configure" | |
6830 #include "confdefs.h" | |
6831 /* Override any gcc2 internal prototype to avoid an error. */ | |
6832 /* We use char because int might match the return type of a gcc2 | |
6833 builtin and then its argument prototype would still apply. */ | |
6834 char XmStringFree(); | |
6835 | |
6836 int main() { | |
6837 XmStringFree() | |
6838 ; return 0; } | |
6839 EOF | |
6840 if { (eval echo configure:6841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6841 rm -rf conftest* | |
6842 eval "ac_cv_lib_$ac_lib_var=yes" | |
6843 else | |
6844 echo "configure: failed program was:" >&5 | |
6845 cat conftest.$ac_ext >&5 | |
6846 rm -rf conftest* | |
6847 eval "ac_cv_lib_$ac_lib_var=no" | |
6848 fi | |
6849 rm -f conftest* | |
6850 xe_check_libs="" | |
6851 | |
6852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
6853 echo "$ac_t""yes" 1>&6 | |
6854 got_motif=yes | |
6855 else | |
6856 echo "$ac_t""no" 1>&6 | |
6857 fi | |
6858 | |
6859 | |
6860 else | |
6861 echo "$ac_t""no" 1>&6 | |
6862 fi | |
6863 | |
6864 | |
6865 if test "$got_motif" != "yes"; then | |
6866 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \ | |
6867 "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do | |
6868 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'` | |
6869 if test -d "$lib_dir" -a -d "$inc_dir"; then | |
6870 case "$x_libraries" in *"$lib_dir"* ) ;; *) | |
6871 x_libraries="$lib_dir $x_libraries" | |
6872 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;; | |
6873 esac | |
6874 case "$x_includes" in "$inc_dir"* ) ;; *) | |
6875 x_includes="$inc_dir $x_includes" | |
6876 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;; | |
6877 esac | |
6878 break; fi | |
6879 done | |
6880 fi | |
6881 | |
6882 for rel in "X11R6" "X11R5" "X11R4"; do | |
6883 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include" | |
6884 if test -d "$lib_dir" -a -d "$inc_dir"; then | |
6885 case "$x_libraries" in *"$lib_dir"* ) ;; *) | |
6886 x_libraries="$x_libraries $lib_dir" | |
6887 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi | |
6888 esac | |
6889 case "$x_includes" in "$inc_dir"* ) ;; *) | |
6890 x_includes="$x_includes $inc_dir" | |
6891 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi | |
6892 esac | |
6893 break; fi | |
6894 done | |
6895 | |
6896 case "$opsys" in | |
6897 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 ;; | |
6898 esac | |
6899 | |
6900 ld_switch_x_site="$X_LIBS" | |
6901 | |
6902 | |
6903 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then | |
6904 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"` | |
6905 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"` | |
6906 | |
6907 runpath="" runpath_dirs="" | |
6908 if test -n "$LD_RUN_PATH"; then | |
6909 runpath="$LD_RUN_PATH" | |
6910 elif test "$GCC" = "yes"; then | |
6911 ld_switch_run_save="$ld_switch_run"; ld_switch_run="" | |
6912 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c | |
6913 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' | |
6914 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do | |
6915 case "$arg" in P,* | -L* | -R* ) | |
6916 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do | |
6917 { | |
6918 xe_runpath_dir="$dir" | |
6919 test "$xe_runpath_dir" != "/lib" -a \ | |
6920 "$xe_runpath_dir" != "/usr/lib" -a \ | |
6921 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \ | |
6922 eval "$xe_add_unique_runpath_dir" | |
6923 } | |
6924 done ;; | |
6925 esac | |
6926 done | |
6927 ld_switch_run="$ld_switch_run_save" | |
6928 rm -f conftest* | |
6929 else | |
6930 for arg in $ld_switch_site $ld_switch_x_site; do | |
6931 case "$arg" in -L*) { | |
6932 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'` | |
6933 test "$xe_runpath_dir" != "/lib" -a \ | |
6934 "$xe_runpath_dir" != "/usr/lib" -a \ | |
6935 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \ | |
6936 eval "$xe_add_unique_runpath_dir" | |
6937 };; esac | |
6938 done | |
6939 if test "$opsys $need_motif" = "sol2 yes"; then | |
6940 xe_runpath_dir="/opt/SUNWdt/lib"; | |
6941 eval "$xe_add_unique_runpath_dir"; | |
6942 fi | |
6943 fi | |
6944 if test -n "$runpath"; then | |
6945 ld_switch_run="${dash_r}${runpath}" | |
6946 | |
6947 if test "$GCC" = "yes"; then | |
6948 set x $ld_switch_run; shift; ld_switch_run="" | |
6949 while test -n "$1"; do | |
6950 case $1 in | |
6951 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;; | |
6952 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;; | |
6953 -Xlinker* ) ;; | |
6954 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;; | |
6955 esac | |
6956 shift | |
6957 done | |
6958 fi | |
6959 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" | |
6960 fi | |
6961 fi | |
6962 | |
6963 | |
6964 if test "$extra_verbose" = "yes"; then | |
6965 echo; echo "X11 compilation variables:" | |
6966 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done | |
6967 echo | |
6968 fi | |
6969 | |
6970 bitmapdirs= | |
6971 if test "$x_includes" != NONE; then | |
6972 for i in $x_includes; do | |
6973 if test -d "$i/bitmaps"; then | |
6974 bitmapdirs="$i/bitmaps:$bitmapdirs" | |
6975 fi | |
6976 if test -d "$i/X11/bitmaps"; then | |
6977 bitmapdirs="$i/X11/bitmaps:$bitmapdirs" | |
6978 fi | |
6979 done | |
6980 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//` | |
6981 fi | |
6982 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF | |
6983 Defining BITMAPDIR = "$bitmapdirs" | |
6984 EOF | |
6985 cat >> confdefs.h <<EOF | |
6986 #define BITMAPDIR "$bitmapdirs" | |
6987 EOF | |
6988 } | |
6989 | |
6990 | |
6991 echo "checking for X defines extracted by xmkmf" 1>&6 | |
6992 echo "configure:6993: checking for X defines extracted by xmkmf" >&5 | |
6993 rm -fr conftestdir | |
6994 if mkdir conftestdir; then | |
6995 cd conftestdir | |
6996 cat > Imakefile <<'EOF' | |
6997 xetest: | |
6998 @echo ${PROTO_DEFINES} ${STD_DEFINES} | |
6999 EOF | |
7000 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
7001 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7002 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make` | |
7003 fi | |
7004 cd .. | |
7005 rm -fr conftestdir | |
7006 for word in $xmkmf_defines; do | |
7007 case "$word" in | |
7008 -D__STDC__*) ;; | |
7009 -D* ) | |
7010 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'` | |
7011 case "$word" in | |
7012 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;; | |
7013 * ) val=1 ;; | |
7014 esac | |
7015 if grep "^#define $sym " confdefs.h >/dev/null; then :; else | |
7016 if test "$val" = "1" | |
7017 then { test "$extra_verbose" = "yes" && cat << EOF | |
7018 Defining $sym | |
7019 EOF | |
7020 cat >> confdefs.h <<EOF | |
7021 #define $sym 1 | |
7022 EOF | |
7023 } | |
7024 | |
7025 else { test "$extra_verbose" = "yes" && cat << EOF | |
7026 Defining $sym = $val | |
7027 EOF | |
7028 cat >> confdefs.h <<EOF | |
7029 #define $sym $val | |
7030 EOF | |
7031 } | |
7032 | |
7033 fi | |
7034 fi ;; | |
7035 esac | |
7036 done | |
7037 fi | |
7038 | |
7039 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` | |
7040 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 | |
7041 echo "configure:7042: checking for X11/Intrinsic.h" >&5 | |
7042 | |
7043 cat > conftest.$ac_ext <<EOF | |
7044 #line 7045 "configure" | |
7045 #include "confdefs.h" | |
7046 #include <X11/Intrinsic.h> | |
7047 EOF | |
7048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7049 { (eval echo configure:7050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7051 if test -z "$ac_err"; then | |
7052 rm -rf conftest* | |
7053 eval "ac_cv_header_$ac_safe=yes" | |
7054 else | |
7055 echo "$ac_err" >&5 | |
7056 echo "configure: failed program was:" >&5 | |
7057 cat conftest.$ac_ext >&5 | |
7058 rm -rf conftest* | |
7059 eval "ac_cv_header_$ac_safe=no" | |
7060 fi | |
7061 rm -f conftest* | |
7062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7063 echo "$ac_t""yes" 1>&6 | |
7064 : | |
7065 else | |
7066 echo "$ac_t""no" 1>&6 | |
7067 { echo "configure: error: Unable to find X11 header files." 1>&2; exit 1; } | |
7068 fi | |
7069 | |
7070 | |
7071 | |
7072 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 | |
7073 echo "configure:7074: checking for XOpenDisplay in -lX11" >&5 | |
7074 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` | |
7075 | |
7076 xe_check_libs=" -lX11 " | |
7077 cat > conftest.$ac_ext <<EOF | |
7078 #line 7079 "configure" | |
7079 #include "confdefs.h" | |
7080 /* Override any gcc2 internal prototype to avoid an error. */ | |
7081 /* We use char because int might match the return type of a gcc2 | |
7082 builtin and then its argument prototype would still apply. */ | |
7083 char XOpenDisplay(); | |
7084 | |
7085 int main() { | |
7086 XOpenDisplay() | |
7087 ; return 0; } | |
7088 EOF | |
7089 if { (eval echo configure:7090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7090 rm -rf conftest* | |
7091 eval "ac_cv_lib_$ac_lib_var=yes" | |
7092 else | |
7093 echo "configure: failed program was:" >&5 | |
7094 cat conftest.$ac_ext >&5 | |
7095 rm -rf conftest* | |
7096 eval "ac_cv_lib_$ac_lib_var=no" | |
7097 fi | |
7098 rm -f conftest* | |
7099 xe_check_libs="" | |
7100 | |
7101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
7102 echo "$ac_t""yes" 1>&6 | |
7103 have_lib_x11=yes | |
7104 else | |
7105 echo "$ac_t""no" 1>&6 | |
7106 fi | |
7107 | |
7108 | |
7109 if test "$have_lib_x11" != "yes"; then | |
7110 | |
7111 xe_msg_checking="for XGetFontProperty in -lX11" | |
7112 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" | |
7113 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | |
7114 echo "configure:7115: checking "$xe_msg_checking"" >&5 | |
7115 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` | |
7116 | |
7117 xe_check_libs=" -lX11 -b i486-linuxaout" | |
7118 cat > conftest.$ac_ext <<EOF | |
7119 #line 7120 "configure" | |
7120 #include "confdefs.h" | |
7121 /* Override any gcc2 internal prototype to avoid an error. */ | |
7122 /* We use char because int might match the return type of a gcc2 | |
7123 builtin and then its argument prototype would still apply. */ | |
7124 char XGetFontProperty(); | |
7125 | |
7126 int main() { | |
7127 XGetFontProperty() | |
7128 ; return 0; } | |
7129 EOF | |
7130 if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7131 rm -rf conftest* | |
7132 eval "ac_cv_lib_$ac_lib_var=yes" | |
7133 else | |
7134 echo "configure: failed program was:" >&5 | |
7135 cat conftest.$ac_ext >&5 | |
7136 rm -rf conftest* | |
7137 eval "ac_cv_lib_$ac_lib_var=no" | |
7138 fi | |
7139 rm -f conftest* | |
7140 xe_check_libs="" | |
7141 | |
7142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
7143 echo "$ac_t""yes" 1>&6 | |
7144 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site" | |
7145 else | |
7146 echo "$ac_t""no" 1>&6 | |
7147 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; } | |
7148 fi | |
7149 | |
7150 | |
7151 fi | |
7152 libs_x="-lX11" | |
7153 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" | |
7154 | |
7155 | |
7156 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 | |
7157 echo "configure:7158: checking for XShapeSelectInput in -lXext" >&5 | |
7158 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` | |
7159 | |
7160 xe_check_libs=" -lXext " | |
7161 cat > conftest.$ac_ext <<EOF | |
7162 #line 7163 "configure" | |
7163 #include "confdefs.h" | |
7164 /* Override any gcc2 internal prototype to avoid an error. */ | |
7165 /* We use char because int might match the return type of a gcc2 | |
7166 builtin and then its argument prototype would still apply. */ | |
7167 char XShapeSelectInput(); | |
7168 | |
7169 int main() { | |
7170 XShapeSelectInput() | |
7171 ; return 0; } | |
7172 EOF | |
7173 if { (eval echo configure:7174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7174 rm -rf conftest* | |
7175 eval "ac_cv_lib_$ac_lib_var=yes" | |
7176 else | |
7177 echo "configure: failed program was:" >&5 | |
7178 cat conftest.$ac_ext >&5 | |
7179 rm -rf conftest* | |
7180 eval "ac_cv_lib_$ac_lib_var=no" | |
7181 fi | |
7182 rm -f conftest* | |
7183 xe_check_libs="" | |
7184 | |
7185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
7186 echo "$ac_t""yes" 1>&6 | |
7187 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi | |
7188 else | |
7189 echo "$ac_t""no" 1>&6 | |
7190 fi | |
7191 | |
7192 | |
7193 | |
7194 | |
7195 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 | |
7196 echo "configure:7197: checking for XtOpenDisplay in -lXt" >&5 | |
7197 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` | |
7198 | |
7199 xe_check_libs=" -lXt " | |
7200 cat > conftest.$ac_ext <<EOF | |
7201 #line 7202 "configure" | |
7202 #include "confdefs.h" | |
7203 /* Override any gcc2 internal prototype to avoid an error. */ | |
7204 /* We use char because int might match the return type of a gcc2 | |
7205 builtin and then its argument prototype would still apply. */ | |
7206 char XtOpenDisplay(); | |
7207 | |
7208 int main() { | |
7209 XtOpenDisplay() | |
7210 ; return 0; } | |
7211 EOF | |
7212 if { (eval echo configure:7213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7213 rm -rf conftest* | |
7214 eval "ac_cv_lib_$ac_lib_var=yes" | |
7215 else | |
7216 echo "configure: failed program was:" >&5 | |
7217 cat conftest.$ac_ext >&5 | |
7218 rm -rf conftest* | |
7219 eval "ac_cv_lib_$ac_lib_var=no" | |
7220 fi | |
7221 rm -f conftest* | |
7222 xe_check_libs="" | |
7223 | |
7224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
7225 echo "$ac_t""yes" 1>&6 | |
7226 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi | |
7227 else | |
7228 echo "$ac_t""no" 1>&6 | |
7229 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; } | |
7230 fi | |
7231 | |
7232 | |
7233 | |
7234 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 | |
7235 echo "configure:7236: checking the version of X11 being used" >&5 | |
7236 cat > conftest.$ac_ext <<EOF | |
7237 #line 7238 "configure" | |
7238 #include "confdefs.h" | |
7239 #include <X11/Intrinsic.h> | |
7240 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } | |
7241 EOF | |
7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
7243 then | |
7244 ./conftest foobar; x11_release=$? | |
7245 else | |
7246 conftest_rc="$?" | |
7247 echo "configure: failed program was:" >&5 | |
7248 cat conftest.$ac_ext >&5 | |
7249 rm -fr conftest* | |
7250 x11_release=4 | |
7251 fi | |
7252 rm -fr conftest* | |
7253 echo "$ac_t""R${x11_release}" 1>&6 | |
7254 { test "$extra_verbose" = "yes" && cat << EOF | |
7255 Defining THIS_IS_X11R${x11_release} | |
7256 EOF | |
7257 cat >> confdefs.h <<EOF | |
7258 #define THIS_IS_X11R${x11_release} 1 | |
7259 EOF | |
7260 } | |
7261 | |
7262 | |
7263 if test "${x11_release}" = "4"; then | |
7264 case "$with_widgets" in | |
7265 "" | "no") with_widgets=no ;; | |
7266 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;; | |
7267 esac | |
7268 fi | |
7269 | |
7270 for ac_func in XConvertCase XtRegisterDrawable | |
7271 do | |
7272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
7273 echo "configure:7274: checking for $ac_func" >&5 | |
7274 | |
7275 cat > conftest.$ac_ext <<EOF | |
7276 #line 7277 "configure" | |
7277 #include "confdefs.h" | |
7278 /* System header to define __stub macros and hopefully few prototypes, | |
7279 which can conflict with char $ac_func(); below. */ | |
7280 #include <assert.h> | |
7281 /* Override any gcc2 internal prototype to avoid an error. */ | |
7282 /* We use char because int might match the return type of a gcc2 | |
7283 builtin and then its argument prototype would still apply. */ | |
7284 char $ac_func(); | |
7285 | |
7286 int main() { | |
7287 | |
7288 /* The GNU C library defines this for functions which it implements | |
7289 to always fail with ENOSYS. Some functions are actually named | |
7290 something starting with __ and the normal name is an alias. */ | |
7291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7292 choke me | |
7293 #else | |
7294 $ac_func(); | |
7295 #endif | |
7296 | |
7297 ; return 0; } | |
7298 EOF | |
7299 if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7300 rm -rf conftest* | |
7301 eval "ac_cv_func_$ac_func=yes" | |
7302 else | |
7303 echo "configure: failed program was:" >&5 | |
7304 cat conftest.$ac_ext >&5 | |
7305 rm -rf conftest* | |
7306 eval "ac_cv_func_$ac_func=no" | |
7307 fi | |
7308 rm -f conftest* | |
7309 | |
7310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7311 echo "$ac_t""yes" 1>&6 | |
7312 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7313 { test "$extra_verbose" = "yes" && cat << EOF | |
7314 Defining $ac_tr_func | |
7315 EOF | |
7316 cat >> confdefs.h <<EOF | |
7317 #define $ac_tr_func 1 | |
7318 EOF | |
7319 } | |
7320 | |
7321 else | |
7322 echo "$ac_t""no" 1>&6 | |
7323 fi | |
7324 done | |
7325 | |
7326 | |
7327 for ac_hdr in X11/Xlocale.h | |
7328 do | |
7329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
7331 echo "configure:7332: checking for $ac_hdr" >&5 | |
7332 | |
7333 cat > conftest.$ac_ext <<EOF | |
7334 #line 7335 "configure" | |
7335 #include "confdefs.h" | |
7336 #include <$ac_hdr> | |
7337 EOF | |
7338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7339 { (eval echo configure:7340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7341 if test -z "$ac_err"; then | |
7342 rm -rf conftest* | |
7343 eval "ac_cv_header_$ac_safe=yes" | |
7344 else | |
7345 echo "$ac_err" >&5 | |
7346 echo "configure: failed program was:" >&5 | |
7347 cat conftest.$ac_ext >&5 | |
7348 rm -rf conftest* | |
7349 eval "ac_cv_header_$ac_safe=no" | |
7350 fi | |
7351 rm -f conftest* | |
7352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7353 echo "$ac_t""yes" 1>&6 | |
7354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7355 { test "$extra_verbose" = "yes" && cat << EOF | |
7356 Defining $ac_tr_hdr | |
7357 EOF | |
7358 cat >> confdefs.h <<EOF | |
7359 #define $ac_tr_hdr 1 | |
7360 EOF | |
7361 } | |
7362 | |
7363 else | |
7364 echo "$ac_t""no" 1>&6 | |
7365 fi | |
7366 done | |
7367 | |
7368 | |
7369 for ac_func in XRegisterIMInstantiateCallback | |
7370 do | |
7371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
7372 echo "configure:7373: checking for $ac_func" >&5 | |
7373 | |
7374 cat > conftest.$ac_ext <<EOF | |
7375 #line 7376 "configure" | |
7376 #include "confdefs.h" | |
7377 /* System header to define __stub macros and hopefully few prototypes, | |
7378 which can conflict with char $ac_func(); below. */ | |
7379 #include <assert.h> | |
7380 /* Override any gcc2 internal prototype to avoid an error. */ | |
7381 /* We use char because int might match the return type of a gcc2 | |
7382 builtin and then its argument prototype would still apply. */ | |
7383 char $ac_func(); | |
7384 | |
7385 int main() { | |
7386 | |
7387 /* The GNU C library defines this for functions which it implements | |
7388 to always fail with ENOSYS. Some functions are actually named | |
7389 something starting with __ and the normal name is an alias. */ | |
7390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7391 choke me | |
7392 #else | |
7393 $ac_func(); | |
7394 #endif | |
7395 | |
7396 ; return 0; } | |
7397 EOF | |
7398 if { (eval echo configure:7399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7399 rm -rf conftest* | |
7400 eval "ac_cv_func_$ac_func=yes" | |
7401 else | |
7402 echo "configure: failed program was:" >&5 | |
7403 cat conftest.$ac_ext >&5 | |
7404 rm -rf conftest* | |
7405 eval "ac_cv_func_$ac_func=no" | |
7406 fi | |
7407 rm -f conftest* | |
7408 | |
7409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7410 echo "$ac_t""yes" 1>&6 | |
7411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7412 { test "$extra_verbose" = "yes" && cat << EOF | |
7413 Defining $ac_tr_func | |
7414 EOF | |
7415 cat >> confdefs.h <<EOF | |
7416 #define $ac_tr_func 1 | |
7417 EOF | |
7418 } | |
7419 | |
7420 else | |
7421 echo "$ac_t""no" 1>&6 | |
7422 fi | |
7423 done | |
7424 | |
7425 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 | |
7426 echo "configure:7427: checking for standard XRegisterIMInstantiateCallback prototype" >&5 | |
7427 cat > conftest.$ac_ext <<EOF | |
7428 #line 7429 "configure" | |
7429 #include "confdefs.h" | |
7430 | |
7431 #define NeedFunctionPrototypes 1 | |
7432 #include <X11/Xlib.h> | |
7433 extern Bool XRegisterIMInstantiateCallback( | |
7434 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*); | |
7435 | |
7436 int main() { | |
7437 | |
7438 ; return 0; } | |
7439 EOF | |
7440 if { (eval echo configure:7441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
7441 rm -rf conftest* | |
7442 echo "$ac_t""yes" 1>&6 | |
7443 else | |
7444 echo "configure: failed program was:" >&5 | |
7445 cat conftest.$ac_ext >&5 | |
7446 rm -rf conftest* | |
7447 echo "$ac_t""no" 1>&6 | |
7448 { test "$extra_verbose" = "yes" && cat << \EOF | |
7449 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE | |
7450 EOF | |
7451 cat >> confdefs.h <<\EOF | |
7452 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1 | |
7453 EOF | |
7454 } | |
7455 | |
7456 fi | |
7457 rm -f conftest* | |
7458 | |
7459 test -z "$with_xmu" && { | |
7460 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 | |
7461 echo "configure:7462: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 | |
7462 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` | |
7463 | |
7464 xe_check_libs=" -lXmu " | |
7465 cat > conftest.$ac_ext <<EOF | |
7466 #line 7467 "configure" | |
7467 #include "confdefs.h" | |
7468 /* Override any gcc2 internal prototype to avoid an error. */ | |
7469 /* We use char because int might match the return type of a gcc2 | |
7470 builtin and then its argument prototype would still apply. */ | |
7471 char XmuReadBitmapDataFromFile(); | |
7472 | |
7473 int main() { | |
7474 XmuReadBitmapDataFromFile() | |
7475 ; return 0; } | |
7476 EOF | |
7477 if { (eval echo configure:7478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7478 rm -rf conftest* | |
7479 eval "ac_cv_lib_$ac_lib_var=yes" | |
7480 else | |
7481 echo "configure: failed program was:" >&5 | |
7482 cat conftest.$ac_ext >&5 | |
7483 rm -rf conftest* | |
7484 eval "ac_cv_lib_$ac_lib_var=no" | |
7485 fi | |
7486 rm -f conftest* | |
7487 xe_check_libs="" | |
7488 | |
7489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
7490 echo "$ac_t""yes" 1>&6 | |
7491 with_xmu=yes | |
7492 else | |
7493 echo "$ac_t""no" 1>&6 | |
7494 with_xmu=no | |
7495 fi | |
7496 | |
7497 } | |
7498 if test "$with_xmu" = "no"; then | |
7499 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then | |
7500 echo " xemacs will be linked with \"xmu.o\"" | |
7501 fi | |
7502 else | |
7503 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi | |
7504 { test "$extra_verbose" = "yes" && cat << \EOF | |
7505 Defining HAVE_XMU | |
7506 EOF | |
7507 cat >> confdefs.h <<\EOF | |
7508 #define HAVE_XMU 1 | |
7509 EOF | |
7510 } | |
7511 | |
7512 fi | |
7513 | |
7514 | |
7515 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | |
7516 echo "configure:7517: checking for main in -lXbsd" >&5 | |
7517 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` | |
7518 | |
7519 xe_check_libs=" -lXbsd " | |
7520 cat > conftest.$ac_ext <<EOF | |
7521 #line 7522 "configure" | |
7522 #include "confdefs.h" | |
7523 | |
7524 int main() { | |
7525 main() | |
7526 ; return 0; } | |
7527 EOF | |
7528 if { (eval echo configure:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7529 rm -rf conftest* | |
7530 eval "ac_cv_lib_$ac_lib_var=yes" | |
7531 else | |
7532 echo "configure: failed program was:" >&5 | |
7533 cat conftest.$ac_ext >&5 | |
7534 rm -rf conftest* | |
7535 eval "ac_cv_lib_$ac_lib_var=no" | |
7536 fi | |
7537 rm -f conftest* | |
7538 xe_check_libs="" | |
7539 | |
7540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
7541 echo "$ac_t""yes" 1>&6 | |
7542 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi | |
7543 else | |
7544 echo "$ac_t""no" 1>&6 | |
7545 fi | |
7546 | |
7547 | |
7548 | |
7549 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then | |
7550 if test "$GCC" = "yes"; then | |
7551 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi | |
7552 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi | |
7553 else | |
7554 case "$CC" in | |
7555 "xlc" ) CC="xlc_r" ;; | |
7556 "xlC" ) CC="xlC_r" ;; | |
7557 "cc" ) CC="cc_r" ;; | |
7558 esac | |
7559 fi | |
7560 fi | |
7561 | |
7562 fi | |
7563 if test "$with_msw" != "no"; then | |
7564 echo "checking for MS-Windows" 1>&6 | |
7565 echo "configure:7566: checking for MS-Windows" >&5 | |
7566 | |
7567 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 | |
7568 echo "configure:7569: checking for main in -lgdi32" >&5 | |
7569 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` | |
7570 | |
7571 xe_check_libs=" -lgdi32 " | |
7572 cat > conftest.$ac_ext <<EOF | |
7573 #line 7574 "configure" | |
7574 #include "confdefs.h" | |
7575 | |
7576 int main() { | |
7577 main() | |
7578 ; return 0; } | |
7579 EOF | |
7580 if { (eval echo configure:7581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7581 rm -rf conftest* | |
7582 eval "ac_cv_lib_$ac_lib_var=yes" | |
7583 else | |
7584 echo "configure: failed program was:" >&5 | |
7585 cat conftest.$ac_ext >&5 | |
7586 rm -rf conftest* | |
7587 eval "ac_cv_lib_$ac_lib_var=no" | |
7588 fi | |
7589 rm -f conftest* | |
7590 xe_check_libs="" | |
7591 | |
7592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
7593 echo "$ac_t""yes" 1>&6 | |
7594 with_msw=yes | |
7595 else | |
7596 echo "$ac_t""no" 1>&6 | |
7597 fi | |
7598 | |
7599 | |
7600 if test "$with_msw" = "yes"; then | |
7601 { test "$extra_verbose" = "yes" && cat << \EOF | |
7602 Defining HAVE_MS_WINDOWS | |
7603 EOF | |
7604 cat >> confdefs.h <<\EOF | |
7605 #define HAVE_MS_WINDOWS 1 | |
7606 EOF | |
7607 } | |
7608 | |
7609 | |
7610 if test "$with_netinstall" = "yes"; then | |
7611 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi | |
7612 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi | |
7613 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi | |
7614 fi | |
7615 | |
7616 install_pp="$srcdir/lib-src/installexe.sh" | |
7617 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 | |
7618 if test "$with_dragndrop" != no; then | |
7619 dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi | |
7620 with_dragndrop=yes | |
7621 fi | |
7622 if test "$window_system" != x11; then | |
7623 window_system=msw | |
7624 test "$with_scrollbars" != "no" && with_scrollbars=msw | |
7625 test "$with_menubars" != "no" && with_menubars=msw | |
7626 test "$with_toolbars" != "no" && with_toolbars=msw | |
7627 test "$with_dialogs" != "no" && with_dialogs=msw | |
7628 test "$with_widgets" != "no" && with_widgets=msw | |
7629 fi | |
7630 cat > conftest.$ac_ext <<EOF | |
7631 #line 7632 "configure" | |
7632 #include "confdefs.h" | |
7633 #include <fcntl.h> | |
7634 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } | |
7635 EOF | |
7636 if { (eval echo configure:7637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
7637 then | |
7638 { test "$extra_verbose" = "yes" && cat << \EOF | |
7639 Defining HAVE_MSG_SELECT | |
7640 EOF | |
7641 cat >> confdefs.h <<\EOF | |
7642 #define HAVE_MSG_SELECT 1 | |
7643 EOF | |
7644 } | |
7645 | |
7646 else | |
7647 conftest_rc="$?" | |
7648 echo "configure: failed program was:" >&5 | |
7649 cat conftest.$ac_ext >&5 | |
7650 fi | |
7651 rm -fr conftest* | |
7652 fi | |
7653 fi | |
7654 | |
7655 | |
7656 | |
7657 test -z "$with_dragndrop" && with_dragndrop="$with_dragndrop_default" | |
7658 test -z "$window_system" && window_system="none" | |
7659 | |
7660 if test "$window_system" = "none"; then | |
7661 for feature in menubars scrollbars toolbars dialogs dragndrop xface | |
7662 do | |
7663 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then | |
7664 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2 | |
7665 fi | |
7666 eval "with_${feature}=no" | |
7667 done | |
7668 else | |
7669 test -z "$with_toolbars" && with_toolbars=yes | |
7670 fi | |
7671 | |
7672 if test "$with_msw" != "yes"; then | |
7673 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES | |
7674 do | |
7675 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then | |
7676 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2 | |
7677 fi | |
7678 eval "with_${feature}=no" | |
7679 done | |
7680 else | |
7681 : | |
7682 fi | |
7683 | |
7684 if test "$with_x11" != "yes"; then | |
7685 for feature in tooltalk cde offix wmcommand xim xmu nas_sound | |
7686 do | |
7687 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then | |
7688 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2 | |
7689 fi | |
7690 eval "with_${feature}=no" | |
7691 done | |
7692 fi | |
7693 | |
7694 if test "$with_x11" = "yes"; then | |
7695 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` | |
7696 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 | |
7697 echo "configure:7698: checking for X11/extensions/shape.h" >&5 | |
7698 | |
7699 cat > conftest.$ac_ext <<EOF | |
7700 #line 7701 "configure" | |
7701 #include "confdefs.h" | |
7702 #include <X11/extensions/shape.h> | |
7703 EOF | |
7704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7705 { (eval echo configure:7706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7707 if test -z "$ac_err"; then | |
7708 rm -rf conftest* | |
7709 eval "ac_cv_header_$ac_safe=yes" | |
7710 else | |
7711 echo "$ac_err" >&5 | |
7712 echo "configure: failed program was:" >&5 | |
7713 cat conftest.$ac_ext >&5 | |
7714 rm -rf conftest* | |
7715 eval "ac_cv_header_$ac_safe=no" | |
7716 fi | |
7717 rm -f conftest* | |
7718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7719 echo "$ac_t""yes" 1>&6 | |
7720 | |
7721 { test "$extra_verbose" = "yes" && cat << \EOF | |
7722 Defining HAVE_BALLOON_HELP | |
7723 EOF | |
7724 cat >> confdefs.h <<\EOF | |
7725 #define HAVE_BALLOON_HELP 1 | |
7726 EOF | |
7727 } | |
7728 | |
7729 | |
7730 else | |
7731 echo "$ac_t""no" 1>&6 | |
7732 fi | |
7733 | |
7734 fi | |
7735 | |
7736 bitmapdir= | |
7737 | |
7738 case "$window_system" in | |
7739 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; | |
7740 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;; | |
7741 gtk ) | |
7742 HAVE_X_WINDOWS=no | |
7743 test "$with_gnome" = "yes" && echo " Using GNOME." | |
7744 test "$with_gnome" = "no" && echo " Using GTK." | |
7745 ;; | |
7746 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;; | |
7747 esac | |
7748 | |
7749 case "$x_libraries" in *X11R4* ) | |
7750 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" | |
7751 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" | |
7752 esac | |
7753 | |
7754 echo "checking for WM_COMMAND option" 1>&6 | |
7755 echo "configure:7756: checking for WM_COMMAND option" >&5; | |
7756 if test "$with_wmcommand" != "no"; then | |
7757 { test "$extra_verbose" = "yes" && cat << \EOF | |
7758 Defining HAVE_WMCOMMAND | |
7759 EOF | |
7760 cat >> confdefs.h <<\EOF | |
7761 #define HAVE_WMCOMMAND 1 | |
7762 EOF | |
7763 } | |
7764 | |
7765 fi | |
7766 | |
7767 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no | |
7768 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` | |
7769 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 | |
7770 echo "configure:7771: checking for X11/Xauth.h" >&5 | |
7771 | |
7772 cat > conftest.$ac_ext <<EOF | |
7773 #line 7774 "configure" | |
7774 #include "confdefs.h" | |
7775 #include <X11/Xauth.h> | |
7776 EOF | |
7777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7778 { (eval echo configure:7779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7780 if test -z "$ac_err"; then | |
7781 rm -rf conftest* | |
7782 eval "ac_cv_header_$ac_safe=yes" | |
7783 else | |
7784 echo "$ac_err" >&5 | |
7785 echo "configure: failed program was:" >&5 | |
7786 cat conftest.$ac_ext >&5 | |
7787 rm -rf conftest* | |
7788 eval "ac_cv_header_$ac_safe=no" | |
7789 fi | |
7790 rm -f conftest* | |
7791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7792 echo "$ac_t""yes" 1>&6 | |
7793 : | |
7794 else | |
7795 echo "$ac_t""no" 1>&6 | |
7796 with_xauth=no | |
7797 fi | |
7798 } | |
7799 test -z "$with_xauth" && { | |
7800 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 | |
7801 echo "configure:7802: checking for XauGetAuthByAddr in -lXau" >&5 | |
7802 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` | |
7803 | |
7804 xe_check_libs=" -lXau " | |
7805 cat > conftest.$ac_ext <<EOF | |
7806 #line 7807 "configure" | |
7807 #include "confdefs.h" | |
7808 /* Override any gcc2 internal prototype to avoid an error. */ | |
7809 /* We use char because int might match the return type of a gcc2 | |
7810 builtin and then its argument prototype would still apply. */ | |
7811 char XauGetAuthByAddr(); | |
7812 | |
7813 int main() { | |
7814 XauGetAuthByAddr() | |
7815 ; return 0; } | |
7816 EOF | |
7817 if { (eval echo configure:7818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7818 rm -rf conftest* | |
7819 eval "ac_cv_lib_$ac_lib_var=yes" | |
7820 else | |
7821 echo "configure: failed program was:" >&5 | |
7822 cat conftest.$ac_ext >&5 | |
7823 rm -rf conftest* | |
7824 eval "ac_cv_lib_$ac_lib_var=no" | |
7825 fi | |
7826 rm -f conftest* | |
7827 xe_check_libs="" | |
7828 | |
7829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
7830 echo "$ac_t""yes" 1>&6 | |
7831 : | |
7832 else | |
7833 echo "$ac_t""no" 1>&6 | |
7834 with_xauth=no | |
7835 fi | |
7836 | |
7837 } | |
7838 test -z "$with_xauth" && with_xauth=yes | |
7839 if test "$with_xauth" = "yes"; then | |
7840 { test "$extra_verbose" = "yes" && cat << \EOF | |
7841 Defining HAVE_XAUTH | |
7842 EOF | |
7843 cat >> confdefs.h <<\EOF | |
7844 #define HAVE_XAUTH 1 | |
7845 EOF | |
7846 } | |
7847 | |
7848 | |
7849 T="" | |
7850 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 | |
7851 libs_xauth="$T" | |
7852 | |
7853 fi | |
7854 | |
7855 | |
7856 | |
7857 | |
7858 | |
7859 if test "$xemacs_compiler" = "g++"; then | |
7860 LIBSTDCPP=-lstdc++ | |
7861 else | |
7862 LIBSTDCPP= | |
7863 fi | |
7864 | |
7865 | |
7866 if test "$with_modules" != "no"; then | |
7867 echo "checking for module support" 1>&6 | |
7868 echo "configure:7869: checking for module support" >&5 | |
7869 | |
7870 case "$opsys" in | |
7871 mingw* | cygwin* ) have_dl=yes ;; | |
7872 darwin ) have_dl=yes | |
7873 { test "$extra_verbose" = "yes" && cat << \EOF | |
7874 Defining HAVE_DYLD | |
7875 EOF | |
7876 cat >> confdefs.h <<\EOF | |
7877 #define HAVE_DYLD 1 | |
7878 EOF | |
7879 } | |
7880 | |
7881 ;; | |
7882 * ) | |
7883 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` | |
7884 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 | |
7885 echo "configure:7886: checking for dlfcn.h" >&5 | |
7886 | |
7887 cat > conftest.$ac_ext <<EOF | |
7888 #line 7889 "configure" | |
7889 #include "confdefs.h" | |
7890 #include <dlfcn.h> | |
7891 EOF | |
7892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7893 { (eval echo configure:7894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7895 if test -z "$ac_err"; then | |
7896 rm -rf conftest* | |
7897 eval "ac_cv_header_$ac_safe=yes" | |
7898 else | |
7899 echo "$ac_err" >&5 | |
7900 echo "configure: failed program was:" >&5 | |
7901 cat conftest.$ac_ext >&5 | |
7902 rm -rf conftest* | |
7903 eval "ac_cv_header_$ac_safe=no" | |
7904 fi | |
7905 rm -f conftest* | |
7906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7907 echo "$ac_t""yes" 1>&6 | |
7908 | |
7909 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 | |
7910 echo "configure:7911: checking for dlopen in -lc" >&5 | |
7911 cat > conftest.$ac_ext <<EOF | |
7912 #line 7913 "configure" | |
7913 #include "confdefs.h" | |
7914 #include <dlfcn.h> | |
7915 int main() { | |
7916 dlopen ("", 0); | |
7917 ; return 0; } | |
7918 EOF | |
7919 if { (eval echo configure:7920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7920 rm -rf conftest* | |
7921 have_dl=yes | |
7922 else | |
7923 echo "configure: failed program was:" >&5 | |
7924 cat conftest.$ac_ext >&5 | |
7925 rm -rf conftest* | |
7926 | |
7927 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
7928 echo "configure:7929: checking for dlopen in -ldl" >&5 | |
7929 ac_save_LIBS="$LIBS" | |
7930 LIBS="$LIBS -ldl" | |
7931 cat > conftest.$ac_ext <<EOF | |
7932 #line 7933 "configure" | |
7933 #include "confdefs.h" | |
7934 #include <dlfcn.h> | |
7935 int main() { | |
7936 dlopen ("", 0); | |
7937 ; return 0; } | |
7938 EOF | |
7939 if { (eval echo configure:7940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7940 rm -rf conftest* | |
7941 have_dl=yes | |
7942 else | |
7943 echo "configure: failed program was:" >&5 | |
7944 cat conftest.$ac_ext >&5 | |
7945 rm -rf conftest* | |
7946 | |
7947 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 | |
7948 echo "configure:7949: checking for dlopen in -lsvld" >&5 | |
7949 LIBS="$ac_save_LIBS -lsvld" | |
7950 cat > conftest.$ac_ext <<EOF | |
7951 #line 7952 "configure" | |
7952 #include "confdefs.h" | |
7953 #include <dlfcn.h> | |
7954 int main() { | |
7955 dlopen ("", 0); | |
7956 ; return 0; } | |
7957 EOF | |
7958 if { (eval echo configure:7959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7959 rm -rf conftest* | |
7960 have_dl=yes | |
7961 else | |
7962 echo "configure: failed program was:" >&5 | |
7963 cat conftest.$ac_ext >&5 | |
7964 rm -rf conftest* | |
7965 LIBS="$ac_save_LIBS" | |
7966 fi | |
7967 rm -f conftest* | |
7968 fi | |
7969 rm -f conftest* | |
7970 fi | |
7971 rm -f conftest* | |
7972 else | |
7973 echo "$ac_t""no" 1>&6 | |
7974 fi | |
7975 | |
7976 if test "$have_dl" = "yes"; then | |
7977 { test "$extra_verbose" = "yes" && cat << \EOF | |
7978 Defining HAVE_DLOPEN | |
7979 EOF | |
7980 cat >> confdefs.h <<\EOF | |
7981 #define HAVE_DLOPEN 1 | |
7982 EOF | |
7983 } | |
7984 | |
7985 else | |
7986 ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'` | |
7987 echo $ac_n "checking for dl.h""... $ac_c" 1>&6 | |
7988 echo "configure:7989: checking for dl.h" >&5 | |
7989 | |
7990 cat > conftest.$ac_ext <<EOF | |
7991 #line 7992 "configure" | |
7992 #include "confdefs.h" | |
7993 #include <dl.h> | |
7994 EOF | |
7995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7996 { (eval echo configure:7997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7998 if test -z "$ac_err"; then | |
7999 rm -rf conftest* | |
8000 eval "ac_cv_header_$ac_safe=yes" | |
8001 else | |
8002 echo "$ac_err" >&5 | |
8003 echo "configure: failed program was:" >&5 | |
8004 cat conftest.$ac_ext >&5 | |
8005 rm -rf conftest* | |
8006 eval "ac_cv_header_$ac_safe=no" | |
8007 fi | |
8008 rm -f conftest* | |
8009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8010 echo "$ac_t""yes" 1>&6 | |
8011 | |
8012 echo $ac_n "checking for shl_load in -lc""... $ac_c" 1>&6 | |
8013 echo "configure:8014: checking for shl_load in -lc" >&5 | |
8014 cat > conftest.$ac_ext <<EOF | |
8015 #line 8016 "configure" | |
8016 #include "confdefs.h" | |
8017 #include <dl.h> | |
8018 int main() { | |
8019 shl_load ("", 0, 0); | |
8020 ; return 0; } | |
8021 EOF | |
8022 if { (eval echo configure:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8023 rm -rf conftest* | |
8024 have_dl=yes | |
8025 else | |
8026 echo "configure: failed program was:" >&5 | |
8027 cat conftest.$ac_ext >&5 | |
8028 rm -rf conftest* | |
8029 | |
8030 echo $ac_n "checking for shl_load in -ldl""... $ac_c" 1>&6 | |
8031 echo "configure:8032: checking for shl_load in -ldl" >&5 | |
8032 ac_save_LIBS="$LIBS" | |
8033 LIBS="$LIBS -ldld" | |
8034 cat > conftest.$ac_ext <<EOF | |
8035 #line 8036 "configure" | |
8036 #include "confdefs.h" | |
8037 #include <dl.h> | |
8038 int main() { | |
8039 shl_load ("", 0, 0); | |
8040 ; return 0; } | |
8041 EOF | |
8042 if { (eval echo configure:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8043 rm -rf conftest* | |
8044 have_dl=yes | |
8045 else | |
8046 echo "configure: failed program was:" >&5 | |
8047 cat conftest.$ac_ext >&5 | |
8048 rm -rf conftest* | |
8049 LIBS="$ac_save_LIBS" | |
8050 fi | |
8051 rm -f conftest* | |
8052 fi | |
8053 rm -f conftest* | |
8054 else | |
8055 echo "$ac_t""no" 1>&6 | |
8056 fi | |
8057 | |
8058 if test "$have_dl" = "yes"; then | |
8059 { test "$extra_verbose" = "yes" && cat << \EOF | |
8060 Defining HAVE_SHL_LOAD | |
8061 EOF | |
8062 cat >> confdefs.h <<\EOF | |
8063 #define HAVE_SHL_LOAD 1 | |
8064 EOF | |
8065 } | |
8066 | |
8067 else | |
8068 ac_safe=`echo "ltdl.h" | sed 'y%./+-%__p_%'` | |
8069 echo $ac_n "checking for ltdl.h""... $ac_c" 1>&6 | |
8070 echo "configure:8071: checking for ltdl.h" >&5 | |
8071 | |
8072 cat > conftest.$ac_ext <<EOF | |
8073 #line 8074 "configure" | |
8074 #include "confdefs.h" | |
8075 #include <ltdl.h> | |
8076 EOF | |
8077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8078 { (eval echo configure:8079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8080 if test -z "$ac_err"; then | |
8081 rm -rf conftest* | |
8082 eval "ac_cv_header_$ac_safe=yes" | |
8083 else | |
8084 echo "$ac_err" >&5 | |
8085 echo "configure: failed program was:" >&5 | |
8086 cat conftest.$ac_ext >&5 | |
8087 rm -rf conftest* | |
8088 eval "ac_cv_header_$ac_safe=no" | |
8089 fi | |
8090 rm -f conftest* | |
8091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8092 echo "$ac_t""yes" 1>&6 | |
8093 | |
8094 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6 | |
8095 echo "configure:8096: checking for lt_dlinit in -lltdl" >&5 | |
8096 ac_save_LIBS="$LIBS" | |
8097 LIBS="$LIBS -lltdl" | |
8098 cat > conftest.$ac_ext <<EOF | |
8099 #line 8100 "configure" | |
8100 #include "confdefs.h" | |
8101 #include <ltdl.h> | |
8102 int main() { | |
8103 lt_dlinit (); | |
8104 ; return 0; } | |
8105 EOF | |
8106 if { (eval echo configure:8107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8107 rm -rf conftest* | |
8108 have_dl=yes | |
8109 else | |
8110 echo "configure: failed program was:" >&5 | |
8111 cat conftest.$ac_ext >&5 | |
8112 rm -rf conftest* | |
8113 LIBS="$ac_save_LIBS" | |
8114 fi | |
8115 rm -f conftest* | |
8116 else | |
8117 echo "$ac_t""no" 1>&6 | |
8118 fi | |
8119 | |
8120 if test "$have_dl" = "yes"; then | |
8121 { test "$extra_verbose" = "yes" && cat << \EOF | |
8122 Defining HAVE_LTDL | |
8123 EOF | |
8124 cat >> confdefs.h <<\EOF | |
8125 #define HAVE_LTDL 1 | |
8126 EOF | |
8127 } | |
8128 | |
8129 fi | |
8130 fi | |
8131 fi | |
8132 ac_save_LIBS= | |
8133 esac | |
8134 | |
8135 if test -n "$have_dl"; then | |
8136 | |
8137 dll_ld= | |
8138 dll_ldflags= | |
8139 dll_cflags= | |
8140 dll_post= | |
8141 dll_ldo="-o" | |
8142 ld_dynamic_link_flags= | |
8143 xehost=$canonical | |
8144 xealias=$internal_configuration | |
8145 | |
8146 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 | |
8147 echo "configure:8148: checking how to build dynamic libraries for ${xehost}" >&5 | |
8148 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. | |
8149 case "$xehost" in | |
8150 *-*-linux-gnu*) ;; | |
8151 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` | |
8152 esac | |
8153 | |
8154 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
8155 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
8156 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
8157 | |
8158 case "$xehost_os" in | |
8159 aix3*) | |
8160 # AIX sometimes has problems with the GCC collect2 program. For some | |
8161 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8162 # vanish in a puff of smoke. | |
8163 if test "${COLLECT_NAMES+set}" != set; then | |
8164 COLLECT_NAMES= | |
8165 export COLLECT_NAMES | |
8166 fi | |
8167 ;; | |
8168 esac | |
8169 | |
8170 # Now see if the compiler is really GCC. | |
8171 if test "$GCC" = "yes"; then | |
8172 XEGCC=yes | |
8173 else | |
8174 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 | |
8175 echo "configure:8176: checking checking whether we are using GNU C" >&5 | |
8176 cat > conftest.$ac_ext <<EOF | |
8177 #line 8178 "configure" | |
8178 #include "confdefs.h" | |
8179 | |
8180 #ifdef __GNUC__ | |
8181 yes; | |
8182 #endif | |
8183 | |
8184 EOF | |
8185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8186 egrep "yes" >/dev/null 2>&1; then | |
8187 rm -rf conftest* | |
8188 XEGCC=yes | |
8189 else | |
8190 rm -rf conftest* | |
8191 XEGCC=no | |
8192 fi | |
8193 rm -f conftest* | |
8194 | |
8195 echo "$ac_t""${XEGCC}" 1>&6 | |
8196 fi | |
8197 | |
8198 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 | |
8199 echo "configure:8200: checking how to produce PIC code" >&5 | |
8200 wl= | |
8201 | |
8202 can_build_shared=yes | |
8203 if test "$XEGCC" = yes -o "$__ICC" = yes; then | |
8204 wl='-Wl,' | |
8205 | |
8206 case "$xehost_os" in | |
8207 aix[3-9]* | irix[5-9]* | osf[3-9]) | |
8208 # PIC is the default for these OSes. | |
8209 ;; | |
8210 | |
8211 *darwin*) dll_cflags='-dynamic' | |
8212 ;; | |
8213 | |
8214 os2*) | |
8215 # We can build DLLs from non-PIC. | |
8216 ;; | |
8217 amigaos*) | |
8218 # FIXME: we need at least 68020 code to build shared libraries, but | |
8219 # adding the `-m68020' flag to GCC prevents building anything better, | |
8220 # like `-m68040'. | |
8221 dll_cflags='-m68020 -resident32 -malways-restore-a4' | |
8222 ;; | |
8223 *cygwin* | *mingw* ) | |
8224 # PIC is the default | |
8225 ;; | |
8226 *) | |
8227 dll_cflags='-fPIC' | |
8228 ;; | |
8229 esac | |
8230 else | |
8231 # PORTME Check for PIC flags for the system compiler. | |
8232 case "$xehost_os" in | |
8233 hpux9* | hpux1[0-9]*) | |
8234 # Is there a better link_static_flag that works with the bundled CC? | |
8235 wl='-Wl,' | |
8236 dll_cflags='+Z' | |
8237 ;; | |
8238 | |
8239 irix[5-9]*) | |
8240 wl='-Wl,' | |
8241 # PIC (with -KPIC) is the default. | |
8242 ;; | |
8243 | |
8244 os2*) | |
8245 # We can build DLLs from non-PIC. | |
8246 ;; | |
8247 | |
8248 osf[3-9]*) | |
8249 # All OSF/1 code is PIC. | |
8250 wl='-Wl,' | |
8251 ;; | |
8252 | |
8253 aix[3-9]*) | |
8254 # All AIX code is PIC. | |
8255 wl='-Wl,' | |
8256 ;; | |
8257 | |
8258 sco3.2v5*) | |
8259 dll_cflags='-belf -Kpic' | |
8260 wl='-Wl,' | |
8261 ;; | |
8262 | |
8263 unixware*) | |
8264 dll_cflags="-KPIC" | |
8265 wl="-Wl," | |
8266 ;; | |
8267 | |
8268 sysv4*) | |
8269 dll_cflags="-KPIC" | |
8270 wl="-Wl," | |
8271 ;; | |
8272 | |
8273 sysv5*) | |
8274 dll_cflags="-KPIC" | |
8275 wl="-Wl," | |
8276 ;; | |
8277 | |
8278 solaris2*) | |
8279 dll_cflags='-KPIC' | |
8280 wl='-Wl,' | |
8281 ;; | |
8282 | |
8283 sunos4*) | |
8284 dll_cflags='-PIC' | |
8285 wl='-Qoption ld ' | |
8286 ;; | |
8287 | |
8288 uts4*) | |
8289 dll_cflags='-pic' | |
8290 ;; | |
8291 | |
8292 *) | |
8293 can_build_shared=no | |
8294 ;; | |
8295 esac | |
8296 fi | |
8297 | |
8298 if test -n "$dll_cflags"; then | |
8299 echo "$ac_t""${dll_cflags}" 1>&6 | |
8300 | |
8301 # Check to make sure the dll_cflags actually works. | |
8302 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 | |
8303 echo "configure:8304: checking if PIC flag ${dll_cflags} really works" >&5 | |
8304 save_CFLAGS="$CFLAGS" | |
8305 CFLAGS="$CFLAGS $dll_cflags -DPIC" | |
8306 cat > conftest.$ac_ext <<EOF | |
8307 #line 8308 "configure" | |
8308 #include "confdefs.h" | |
8309 | |
8310 int main() { | |
8311 int x=0; | |
8312 ; return 0; } | |
8313 EOF | |
8314 if { (eval echo configure:8315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
8315 rm -rf conftest* | |
8316 | |
8317 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also | |
8318 # reports no error. So, we need to grep stderr for (Bundled). | |
8319 if grep '(Bundled)' config.log >/dev/null; then | |
8320 echo "$ac_t""no" 1>&6 | |
8321 can_build_shared=no | |
8322 dll_cflags= | |
8323 else | |
8324 echo "$ac_t""yes" 1>&6 | |
8325 fi | |
8326 else | |
8327 echo "configure: failed program was:" >&5 | |
8328 cat conftest.$ac_ext >&5 | |
8329 rm -rf conftest* | |
8330 echo "$ac_t""no" 1>&6 | |
8331 can_build_shared=no | |
8332 dll_cflags= | |
8333 fi | |
8334 rm -f conftest* | |
8335 CFLAGS="$save_CFLAGS" | |
8336 else | |
8337 echo "$ac_t""none" 1>&6 | |
8338 fi | |
8339 | |
8340 if test "$can_build_shared" = "yes"; then | |
8341 cc_produces_so=no | |
8342 xldf= | |
8343 xcldf= | |
8344 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 | |
8345 echo "configure:8346: checking if C compiler can produce shared libraries" >&5 | |
8346 if test "$XEGCC" = yes -o "$__ICC" = yes; then | |
8347 case "$xehost_os" in | |
8348 *darwin*) | |
8349 xcldf='-bundle' | |
8350 xldf='-bundle -bundle_loader ../../src/xemacs' | |
8351 ;; | |
8352 *) | |
8353 xcldf="-shared" | |
8354 xldf="-shared" | |
8355 ;; | |
8356 esac | |
8357 else # Not using GCC | |
8358 case "$xehost_os" in | |
8359 aix[3-9]*) | |
8360 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc" | |
8361 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc" | |
8362 ;; | |
8363 | |
8364 freebsd2* | netbsd* | openbsd*) | |
8365 xldf="-Bshareable" | |
8366 xcldf="${wl}-Bshareable" | |
8367 ;; | |
8368 | |
8369 freebsd3*) | |
8370 xcldf="-shared" | |
8371 ;; | |
8372 | |
8373 hpux*) | |
8374 xldf="-b +s" | |
8375 xcldf="${wl}-b ${wl}+s" | |
8376 ;; | |
8377 | |
8378 irix[5-9]* | osf[3-9]*) | |
8379 xcldf="${wl}-shared" | |
8380 xldf="-shared" | |
8381 ;; | |
8382 | |
8383 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*) | |
8384 xcldf="-G" | |
8385 xldf="-G" | |
8386 ;; | |
8387 | |
8388 sunos4*) | |
8389 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic" | |
8390 xldf="-assert pure-text -Bstatic" | |
8391 ;; | |
8392 esac | |
8393 fi # End if if we are using gcc | |
8394 | |
8395 if test -n "$xcldf"; then | |
8396 save_LDFLAGS=$LDFLAGS | |
8397 save_LIBS=$LIBS | |
8398 save_xe_libs=$xe_libs | |
8399 LDFLAGS="$xcldf $LDFLAGS" | |
8400 LIBS= | |
8401 xe_libs= | |
8402 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | |
8403 cat > conftest.$ac_ext <<EOF | |
8404 #line 8405 "configure" | |
8405 #include "confdefs.h" | |
8406 | |
8407 int main() { | |
8408 int x=0; | |
8409 ; return 0; } | |
8410 EOF | |
8411 if { (eval echo configure:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8412 rm -rf conftest* | |
8413 cc_produces_so=yes | |
8414 else | |
8415 echo "configure: failed program was:" >&5 | |
8416 cat conftest.$ac_ext >&5 | |
8417 rm -rf conftest* | |
8418 cc_produces_so=no | |
8419 fi | |
8420 rm -f conftest* | |
8421 LDFLAGS=$save_LDFLAGS | |
8422 LIBS=$save_LIBS | |
8423 xe_libs=$save_xe_libs | |
8424 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | |
8425 else | |
8426 cc_produces_so=no | |
8427 fi | |
8428 echo "$ac_t""${cc_produces_so}" 1>&6 | |
8429 | |
8430 LTLD=$LD | |
8431 if test -z "$LTLD"; then | |
8432 ac_prog=ld | |
8433 if test "$XEGCC" = yes; then | |
8434 # Check if gcc -print-prog-name=ld gives a path. | |
8435 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
8436 echo "configure:8437: checking for ld used by GCC" >&5 | |
8437 ac_prog=`($CC -print-prog-name=ld) 2>&5` | |
8438 case "$ac_prog" in | |
8439 # Accept absolute paths. | |
8440 /*) | |
8441 if test -z "$LTLD"; then | |
8442 # case "$ac_prog" in | |
8443 # *gcc-lib*) LTLD="$CC" | |
8444 # ;; | |
8445 # *) | |
8446 LTLD="$ac_prog" | |
8447 # ;; | |
8448 # esac | |
8449 fi | |
8450 ;; | |
8451 "") | |
8452 # If it fails, then pretend we aren't using GCC. | |
8453 ac_prog=ld | |
8454 ;; | |
8455 *) | |
8456 # If it is relative, then search for the first ld in PATH. | |
8457 with_gnu_ld=unknown | |
8458 ;; | |
8459 esac | |
8460 else | |
8461 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
8462 echo "configure:8463: checking for GNU ld" >&5 | |
8463 fi | |
8464 | |
8465 if test -z "$LTLD"; then | |
8466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8467 for ac_dir in $PATH; do | |
8468 test -z "$ac_dir" && ac_dir=. | |
8469 if test -f "$ac_dir/$ac_prog"; then | |
8470 LTLD="$ac_dir/$ac_prog" | |
8471 # Check to see if the program is GNU ld. I'd rather use --version, | |
8472 # but apparently some GNU ld's only accept -v. | |
8473 # Break only if it was the GNU/non-GNU ld that we prefer. | |
8474 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
8475 xe_gnu_ld=yes | |
8476 else | |
8477 xe_gnu_ld=no | |
8478 fi | |
8479 fi | |
8480 done | |
8481 IFS="$ac_save_ifs" | |
8482 fi | |
8483 | |
8484 if test -n "$LTLD"; then | |
8485 echo "$ac_t""${LTLD}" 1>&6 | |
8486 else | |
8487 echo "$ac_t""no" 1>&6 | |
8488 fi | |
8489 | |
8490 if test -z "$LTLD" -a "$cc_produces_so" = no; then | |
8491 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; } | |
8492 exit 1 | |
8493 fi | |
8494 fi | |
8495 | |
8496 ld_dynamic_link_flags= | |
8497 | |
8498 # Check to see if it really is or isn't GNU ld. | |
8499 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 | |
8500 echo "configure:8501: checking if the linker is GNU ld" >&5 | |
8501 # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
8502 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
8503 xe_gnu_ld=yes | |
8504 else | |
8505 xe_gnu_ld=no | |
8506 fi | |
8507 echo "$ac_t""${xe_gnu_ld}" 1>&6 | |
8508 | |
8509 case "$xehost_os" in | |
8510 amigaos* | sunos4*) | |
8511 # On these operating systems, we should treat GNU ld like the system ld. | |
8512 gnu_ld_acts_native=yes | |
8513 ;; | |
8514 *) | |
8515 gnu_ld_acts_native=no | |
8516 ;; | |
8517 esac | |
8518 | |
8519 if test "$cc_produces_so" = "yes"; then | |
8520 dll_ld=$CC | |
8521 case "$xehost_os" in | |
8522 *darwin*) | |
8523 dll_ldflags=$xldf | |
8524 ;; | |
8525 *) | |
8526 dll_ldflags=$xcldf | |
8527 ;; | |
8528 esac | |
8529 can_build_shared=yes | |
8530 ld_shlibs=yes | |
8531 else | |
8532 # OK - only NOW do we futz about with ld. | |
8533 # See if the linker supports building shared libraries. | |
8534 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 | |
8535 echo "configure:8536: checking whether the linker supports shared libraries" >&5 | |
8536 dll_ld=$CC | |
8537 dll_ldflags=$LDFLAGS | |
8538 ld_shlibs=yes | |
8539 can_build_shared=yes | |
8540 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then | |
8541 # See if GNU ld supports shared libraries. | |
8542 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
8543 dll_ld=$CC | |
8544 dll_ldflags="-shared" | |
8545 ld_shlibs=yes | |
8546 else | |
8547 ld_shlibs=no | |
8548 fi | |
8549 else | |
8550 # PORTME fill in a description of your system's linker (not GNU ld) | |
8551 case "$xehost_os" in | |
8552 aix3*) | |
8553 dll_ld=$LTLD | |
8554 dll_ldflags=$xldf | |
8555 ;; | |
8556 | |
8557 aix[4-9]*) | |
8558 dll_ldflags=$xcldf | |
8559 ;; | |
8560 | |
8561 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8562 # support. Future versions do this automatically, but an explicit c++rt0.o | |
8563 # doesn't break anything, and helps significantly (at the cost of a little | |
8564 # extra space). | |
8565 freebsd2.2*) | |
8566 dll_ld=$LTLD | |
8567 dll_ldflags=$xldf | |
8568 dll_post="/usr/lib/c++rt0.o" | |
8569 ;; | |
8570 | |
8571 # Unfortunately, older versions of FreeBSD 2 don't have this feature. | |
8572 freebsd2*) | |
8573 dll_ld=$LTLD | |
8574 dll_ldflags="-Bshareable" | |
8575 ;; | |
8576 | |
8577 # FreeBSD 3, at last, uses gcc -shared to do shared libraries. | |
8578 freebsd3*) | |
8579 dll_ldflags="-shared" | |
8580 ;; | |
8581 | |
8582 hpux*) | |
8583 dll_ld=$LTLD | |
8584 dll_ldflags=$xldf | |
8585 ;; | |
8586 | |
8587 irix[5-9]*) | |
8588 dll_ld=$LTLD | |
8589 dll_ldflags=$xldf | |
8590 ;; | |
8591 | |
8592 netbsd*) | |
8593 # Tested with NetBSD 1.2 ld | |
8594 dll_ld=$LTLD | |
8595 dll_ldflags=$xldf | |
8596 ;; | |
8597 | |
8598 openbsd*) | |
8599 dll_ld=$LTLD | |
8600 dll_ldflags=$xldf | |
8601 ;; | |
8602 | |
8603 osf3* | osf4*) | |
8604 dll_ld=$LTLD | |
8605 dll_ldflags=$xldf | |
8606 ;; | |
8607 | |
8608 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text | |
8609 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*) | |
8610 dll_ld=$LTLD | |
8611 case "$dll_ld" in | |
8612 *gcc*) dll_ldflags="-shared" | |
8613 dll_ld=$CC | |
8614 ;; | |
8615 *) dll_ldflags="-G" | |
8616 ;; | |
8617 esac | |
8618 ;; | |
8619 | |
8620 sunos4*) | |
8621 if test "$XEGCC" = yes; then | |
8622 dll_ld=$CC | |
8623 else | |
8624 dll_ld=$LTLD | |
8625 fi | |
8626 dll_ldflags=$xldf | |
8627 ;; | |
8628 | |
8629 uts4*) | |
8630 dll_ld=$LTLD | |
8631 dll_ldflags="-G" | |
8632 ;; | |
8633 | |
8634 bsdi*) | |
8635 dll_ldflags="-r" | |
8636 dll_ld="shlicc2" | |
8637 ;; | |
8638 | |
8639 *) | |
8640 ld_shlibs=no | |
8641 can_build_shared=no | |
8642 ;; | |
8643 esac | |
8644 fi | |
8645 echo "$ac_t""${ld_shlibs}" 1>&6 | |
8646 if test "$ld_shlibs" = "no"; then | |
8647 can_build_shared=no | |
8648 fi | |
8649 fi # End of if cc_produces_so = no | |
8650 | |
8651 | |
8652 if test "$xe_gnu_ld" = yes; then | |
8653 if test "$ld_shlibs" = yes; then | |
8654 ld_dynamic_link_flags="${wl}-export-dynamic" | |
8655 fi | |
8656 fi | |
8657 | |
8658 if test -z "$ld_dynamic_link_flags"; then | |
8659 case "$xehost_os" in | |
8660 aix[3-9]*) | |
8661 ld_dynamic_link_flags= | |
8662 ;; | |
8663 | |
8664 *darwin*) | |
8665 ld_dynamic_link_flags= | |
8666 ;; | |
8667 | |
8668 freebsd2.2*) | |
8669 ld_dynamic_link_flags= | |
8670 ;; | |
8671 | |
8672 freebsd2*) | |
8673 ld_dynamic_link_flags= | |
8674 ;; | |
8675 | |
8676 freebsd3*) | |
8677 ld_dynamic_link_flags= | |
8678 ;; | |
8679 | |
8680 hpux*) | |
8681 ld_dynamic_link_flags="${wl}-E" | |
8682 ;; | |
8683 | |
8684 irix[5-9]*) | |
8685 ld_dynamic_link_flags= | |
8686 ;; | |
8687 | |
8688 netbsd*) | |
8689 ld_dynamic_link_flags= | |
8690 ;; | |
8691 | |
8692 openbsd*) | |
8693 ld_dynamic_link_flags= | |
8694 ;; | |
8695 | |
8696 osf3* | osf4*) | |
8697 ld_dynamic_link_flags= | |
8698 ;; | |
8699 | |
8700 solaris2* | solaris7*) | |
8701 ld_dynamic_link_flags= | |
8702 ;; | |
8703 | |
8704 sco3.2v5* | unixware* | sysv5* | sysv4*) | |
8705 ld_dynamic_link_flags="${wl}-Bexport" | |
8706 ;; | |
8707 | |
8708 sunos4*) | |
8709 ld_dynamic_link_flags= | |
8710 ;; | |
8711 | |
8712 uts4*) | |
8713 ld_dynamic_link_flags= | |
8714 ;; | |
8715 | |
8716 bsdi*) | |
8717 ld_dynamic_link_flags= | |
8718 ;; | |
8719 | |
8720 esac | |
8721 fi # End of if -z ld_dynamic_link_flags | |
8722 fi # End of if test "$can_build_shared" = "yes" | |
8723 | |
8724 | |
8725 | |
8726 | |
8727 | |
8728 | |
8729 | |
8730 | |
8731 fi | |
8732 | |
8733 if test "$can_build_shared" = "yes"; then | |
8734 { test "$extra_verbose" = "yes" && cat << \EOF | |
8735 Defining HAVE_SHLIB | |
8736 EOF | |
8737 cat >> confdefs.h <<\EOF | |
8738 #define HAVE_SHLIB 1 | |
8739 EOF | |
8740 } | |
8741 | |
8742 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi | |
8743 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi | |
8744 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi | |
8745 for ac_func in dlerror _dlerror | |
8746 do | |
8747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
8748 echo "configure:8749: checking for $ac_func" >&5 | |
8749 | |
8750 cat > conftest.$ac_ext <<EOF | |
8751 #line 8752 "configure" | |
8752 #include "confdefs.h" | |
8753 /* System header to define __stub macros and hopefully few prototypes, | |
8754 which can conflict with char $ac_func(); below. */ | |
8755 #include <assert.h> | |
8756 /* Override any gcc2 internal prototype to avoid an error. */ | |
8757 /* We use char because int might match the return type of a gcc2 | |
8758 builtin and then its argument prototype would still apply. */ | |
8759 char $ac_func(); | |
8760 | |
8761 int main() { | |
8762 | |
8763 /* The GNU C library defines this for functions which it implements | |
8764 to always fail with ENOSYS. Some functions are actually named | |
8765 something starting with __ and the normal name is an alias. */ | |
8766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8767 choke me | |
8768 #else | |
8769 $ac_func(); | |
8770 #endif | |
8771 | |
8772 ; return 0; } | |
8773 EOF | |
8774 if { (eval echo configure:8775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8775 rm -rf conftest* | |
8776 eval "ac_cv_func_$ac_func=yes" | |
8777 else | |
8778 echo "configure: failed program was:" >&5 | |
8779 cat conftest.$ac_ext >&5 | |
8780 rm -rf conftest* | |
8781 eval "ac_cv_func_$ac_func=no" | |
8782 fi | |
8783 rm -f conftest* | |
8784 | |
8785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8786 echo "$ac_t""yes" 1>&6 | |
8787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8788 { test "$extra_verbose" = "yes" && cat << EOF | |
8789 Defining $ac_tr_func | |
8790 EOF | |
8791 cat >> confdefs.h <<EOF | |
8792 #define $ac_tr_func 1 | |
8793 EOF | |
8794 } | |
8795 | |
8796 else | |
8797 echo "$ac_t""no" 1>&6 | |
8798 fi | |
8799 done | |
8800 | |
8801 with_modules=yes | |
8802 MOD_CC="../../lib-src/ellcc" | |
8803 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src" | |
8804 INSTALLPATH="\$(moduledir)" | |
8805 MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM} | |
8806 OBJECT_TO_BUILD="\$(MODNAME).ell" | |
8807 else | |
8808 if test "$with_modules" = "yes"; then | |
8809 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; } | |
8810 else | |
8811 echo " No module support." | |
8812 fi | |
8813 with_modules=no | |
8814 fi | |
8815 fi | |
8816 if test "$with_modules" != "yes"; then | |
8817 MOD_CC="$XEMACS_CC" | |
8818 MODCFLAGS="\$(XE_CFLAGS) -I../../src -I\$(srcdir)/../../src" | |
8819 INSTALLPATH="" | |
8820 MOD_INSTALL_PROGRAM="true" | |
8821 OBJECT_TO_BUILD="\$(MODNAME).o" | |
8822 fi | |
8823 MODARCHDIR= | |
8824 MAKE_DOCFILE="../../lib-src/make-docfile" | |
8825 | |
8826 | |
8827 | |
8828 | |
8829 | |
8830 | |
8831 | |
8832 | |
8833 | |
8834 if test "$with_tooltalk" != "no" ; then | |
8835 for dir in "" "Tt/" "desktop/" ; do | |
8836 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` | |
8837 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 | |
8838 echo "configure:8839: checking for ${dir}tt_c.h" >&5 | |
8839 | |
8840 cat > conftest.$ac_ext <<EOF | |
8841 #line 8842 "configure" | |
8842 #include "confdefs.h" | |
8843 #include <${dir}tt_c.h> | |
8844 EOF | |
8845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8846 { (eval echo configure:8847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8848 if test -z "$ac_err"; then | |
8849 rm -rf conftest* | |
8850 eval "ac_cv_header_$ac_safe=yes" | |
8851 else | |
8852 echo "$ac_err" >&5 | |
8853 echo "configure: failed program was:" >&5 | |
8854 cat conftest.$ac_ext >&5 | |
8855 rm -rf conftest* | |
8856 eval "ac_cv_header_$ac_safe=no" | |
8857 fi | |
8858 rm -f conftest* | |
8859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8860 echo "$ac_t""yes" 1>&6 | |
8861 tt_c_h_file="${dir}tt_c.h"; break | |
8862 else | |
8863 echo "$ac_t""no" 1>&6 | |
8864 fi | |
8865 | |
8866 done | |
8867 if test -z "$tt_c_h_file"; then | |
8868 if test "$with_tooltalk" = "yes"; then | |
8869 (echo "$progname: Usage error:" | |
8870 echo " " "Unable to find required tooltalk header files." | |
8871 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | |
8872 fi | |
8873 with_tooltalk=no | |
8874 fi | |
8875 fi | |
8876 if test "$with_tooltalk" != "no" ; then | |
8877 for extra_libs in "" "-lI18N -lce" "-lcxx"; do | |
8878 | |
8879 xe_msg_checking="for tt_message_create in -ltt" | |
8880 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" | |
8881 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | |
8882 echo "configure:8883: checking "$xe_msg_checking"" >&5 | |
8883 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` | |
8884 | |
8885 xe_check_libs=" -ltt $extra_libs" | |
8886 cat > conftest.$ac_ext <<EOF | |
8887 #line 8888 "configure" | |
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 tt_message_create(); | |
8893 | |
8894 int main() { | |
8895 tt_message_create() | |
8896 ; return 0; } | |
8897 EOF | |
8898 if { (eval echo configure:8899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
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 tt_libs="-ltt $extra_libs"; break | |
8913 else | |
8914 echo "$ac_t""no" 1>&6 | |
8915 : | |
8916 fi | |
8917 | |
8918 | |
8919 done | |
8920 if test -z "$tt_libs"; then | |
8921 if test "$with_tooltalk" = "yes"; then | |
8922 (echo "$progname: Usage error:" | |
8923 echo " " "Unable to find required tooltalk libraries." | |
8924 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | |
8925 fi | |
8926 with_tooltalk=no | |
8927 fi | |
8928 fi | |
8929 test -z "$with_tooltalk" && with_tooltalk=yes | |
8930 if test "$with_tooltalk" = "yes"; then | |
8931 { test "$extra_verbose" = "yes" && cat << \EOF | |
8932 Defining TOOLTALK | |
8933 EOF | |
8934 cat >> confdefs.h <<\EOF | |
8935 #define TOOLTALK 1 | |
8936 EOF | |
8937 } | |
8938 | |
8939 { test "$extra_verbose" = "yes" && cat << EOF | |
8940 Defining TT_C_H_FILE = "$tt_c_h_file" | |
8941 EOF | |
8942 cat >> confdefs.h <<EOF | |
8943 #define TT_C_H_FILE "$tt_c_h_file" | |
8944 EOF | |
8945 } | |
8946 | |
8947 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi | |
8948 fi | |
8949 | |
8950 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` | |
8951 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 | |
8952 echo "configure:8953: checking for Dt/Dt.h" >&5 | |
8953 | |
8954 cat > conftest.$ac_ext <<EOF | |
8955 #line 8956 "configure" | |
8956 #include "confdefs.h" | |
8957 #include <Dt/Dt.h> | |
8958 EOF | |
8959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8960 { (eval echo configure:8961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8962 if test -z "$ac_err"; then | |
8963 rm -rf conftest* | |
8964 eval "ac_cv_header_$ac_safe=yes" | |
8965 else | |
8966 echo "$ac_err" >&5 | |
8967 echo "configure: failed program was:" >&5 | |
8968 cat conftest.$ac_ext >&5 | |
8969 rm -rf conftest* | |
8970 eval "ac_cv_header_$ac_safe=no" | |
8971 fi | |
8972 rm -f conftest* | |
8973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8974 echo "$ac_t""yes" 1>&6 | |
8975 : | |
8976 else | |
8977 echo "$ac_t""no" 1>&6 | |
8978 with_cde=no | |
8979 fi | |
8980 } | |
8981 test -z "$with_cde" && { | |
8982 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 | |
8983 echo "configure:8984: checking for DtDndDragStart in -lDtSvc" >&5 | |
8984 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` | |
8985 | |
8986 xe_check_libs=" -lDtSvc " | |
8987 cat > conftest.$ac_ext <<EOF | |
8988 #line 8989 "configure" | |
8989 #include "confdefs.h" | |
8990 /* Override any gcc2 internal prototype to avoid an error. */ | |
8991 /* We use char because int might match the return type of a gcc2 | |
8992 builtin and then its argument prototype would still apply. */ | |
8993 char DtDndDragStart(); | |
8994 | |
8995 int main() { | |
8996 DtDndDragStart() | |
8997 ; return 0; } | |
8998 EOF | |
8999 if { (eval echo configure:9000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9000 rm -rf conftest* | |
9001 eval "ac_cv_lib_$ac_lib_var=yes" | |
9002 else | |
9003 echo "configure: failed program was:" >&5 | |
9004 cat conftest.$ac_ext >&5 | |
9005 rm -rf conftest* | |
9006 eval "ac_cv_lib_$ac_lib_var=no" | |
9007 fi | |
9008 rm -f conftest* | |
9009 xe_check_libs="" | |
9010 | |
9011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
9012 echo "$ac_t""yes" 1>&6 | |
9013 : | |
9014 else | |
9015 echo "$ac_t""no" 1>&6 | |
9016 with_cde=no | |
9017 fi | |
9018 | |
9019 } | |
9020 if test "$with_dragndrop" = "no" ; then | |
9021 if test "$with_cde" = "yes" ; then | |
9022 echo "configure: warning: --with-cde forced to \`no'; no generic Drag'n'Drop support" 1>&2 | |
9023 fi | |
9024 with_cde=no | |
9025 fi | |
9026 test -z "$with_cde" && with_cde=yes | |
9027 if test "$with_cde" = "yes" ; then | |
9028 { test "$extra_verbose" = "yes" && cat << \EOF | |
9029 Defining HAVE_CDE | |
9030 EOF | |
9031 cat >> confdefs.h <<\EOF | |
9032 #define HAVE_CDE 1 | |
9033 EOF | |
9034 } | |
9035 | |
9036 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi | |
9037 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi | |
9038 with_tooltalk=yes # CDE requires Tooltalk | |
9039 need_motif=yes # CDE requires Motif | |
9040 fi | |
9041 | |
9042 test "$window_system" != "x11" && with_offix=no | |
9043 if test "$with_xmu" != yes -a "$with_x11" = yes; then | |
9044 if test "$with_offix" = "yes" ; then | |
9045 echo "configure: warning: --with-offix forced to \`no'; no real Xmu support" 1>&2 | |
9046 fi | |
9047 with_offix=no | |
9048 fi | |
9049 if test "$with_dragndrop" = no; then | |
9050 if test "$with_offix" = "yes" ; then | |
9051 echo "configure: warning: --with-offix forced to \`no'; no generic Drag'n'Drop support" 1>&2 | |
9052 fi | |
9053 with_offix=no | |
9054 fi | |
9055 if test "$with_cde" = yes; then | |
9056 if test "$with_offix" = "yes" ; then | |
9057 echo "configure: warning: --with-offix forced to \`no'; CDE already found" 1>&2 | |
9058 fi | |
9059 with_offix=no | |
9060 fi | |
9061 test -z "$with_offix" && with_offix=no | |
9062 if test "$with_offix" = "yes"; then | |
9063 { test "$extra_verbose" = "yes" && cat << \EOF | |
9064 Defining HAVE_OFFIX_DND | |
9065 EOF | |
9066 cat >> confdefs.h <<\EOF | |
9067 #define HAVE_OFFIX_DND 1 | |
9068 EOF | |
9069 } | |
9070 | |
9071 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi | |
9072 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi | |
9073 fi | |
9074 if test "$with_gtk" = "yes"; then | |
9075 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi | |
9076 fi | |
9077 | |
9078 if test "$with_dragndrop" != "no" ; then | |
9079 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 | |
9080 echo "configure:9081: checking if drag and drop API is needed" >&5 | |
9081 if test -n "$dragndrop_proto" ; then | |
9082 with_dragndrop=yes | |
9083 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 | |
9084 { test "$extra_verbose" = "yes" && cat << \EOF | |
9085 Defining HAVE_DRAGNDROP | |
9086 EOF | |
9087 cat >> confdefs.h <<\EOF | |
9088 #define HAVE_DRAGNDROP 1 | |
9089 EOF | |
9090 } | |
9091 | |
9092 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi | |
9093 else | |
9094 with_dragndrop=no | |
9095 echo "$ac_t""no" 1>&6 | |
9096 fi | |
9097 fi | |
9098 | |
9099 echo "checking for LDAP" 1>&6 | |
9100 echo "configure:9101: checking for LDAP" >&5 | |
9101 ldap_libs= | |
9102 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` | |
9103 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 | |
9104 echo "configure:9105: checking for ldap.h" >&5 | |
9105 | |
9106 cat > conftest.$ac_ext <<EOF | |
9107 #line 9108 "configure" | |
9108 #include "confdefs.h" | |
9109 #include <ldap.h> | |
9110 EOF | |
9111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9112 { (eval echo configure:9113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
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 : | |
9128 else | |
9129 echo "$ac_t""no" 1>&6 | |
9130 with_ldap=no | |
9131 fi | |
9132 } | |
9133 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` | |
9134 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 | |
9135 echo "configure:9136: checking for lber.h" >&5 | |
9136 | |
9137 cat > conftest.$ac_ext <<EOF | |
9138 #line 9139 "configure" | |
9139 #include "confdefs.h" | |
9140 #include <lber.h> | |
9141 EOF | |
9142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9143 { (eval echo configure:9144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9145 if test -z "$ac_err"; then | |
9146 rm -rf conftest* | |
9147 eval "ac_cv_header_$ac_safe=yes" | |
9148 else | |
9149 echo "$ac_err" >&5 | |
9150 echo "configure: failed program was:" >&5 | |
9151 cat conftest.$ac_ext >&5 | |
9152 rm -rf conftest* | |
9153 eval "ac_cv_header_$ac_safe=no" | |
9154 fi | |
9155 rm -f conftest* | |
9156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9157 echo "$ac_t""yes" 1>&6 | |
9158 : | |
9159 else | |
9160 echo "$ac_t""no" 1>&6 | |
9161 with_ldap=no | |
9162 fi | |
9163 } | |
9164 if test "$with_ldap" != "no"; then | |
9165 | |
9166 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 | |
9167 echo "configure:9168: checking for ldap_search in -lldap" >&5 | |
9168 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` | |
9169 | |
9170 xe_check_libs=" -lldap " | |
9171 cat > conftest.$ac_ext <<EOF | |
9172 #line 9173 "configure" | |
9173 #include "confdefs.h" | |
9174 /* Override any gcc2 internal prototype to avoid an error. */ | |
9175 /* We use char because int might match the return type of a gcc2 | |
9176 builtin and then its argument prototype would still apply. */ | |
9177 char ldap_search(); | |
9178 | |
9179 int main() { | |
9180 ldap_search() | |
9181 ; return 0; } | |
9182 EOF | |
9183 if { (eval echo configure:9184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9184 rm -rf conftest* | |
9185 eval "ac_cv_lib_$ac_lib_var=yes" | |
9186 else | |
9187 echo "configure: failed program was:" >&5 | |
9188 cat conftest.$ac_ext >&5 | |
9189 rm -rf conftest* | |
9190 eval "ac_cv_lib_$ac_lib_var=no" | |
9191 fi | |
9192 rm -f conftest* | |
9193 xe_check_libs="" | |
9194 | |
9195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
9196 echo "$ac_t""yes" 1>&6 | |
9197 with_ldap=yes | |
9198 else | |
9199 echo "$ac_t""no" 1>&6 | |
9200 fi | |
9201 | |
9202 | |
9203 test "$with_ldap" != "yes" && { | |
9204 xe_msg_checking="for ldap_open in -lldap" | |
9205 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" | |
9206 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | |
9207 echo "configure:9208: checking "$xe_msg_checking"" >&5 | |
9208 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` | |
9209 | |
9210 xe_check_libs=" -lldap -llber" | |
9211 cat > conftest.$ac_ext <<EOF | |
9212 #line 9213 "configure" | |
9213 #include "confdefs.h" | |
9214 /* Override any gcc2 internal prototype to avoid an error. */ | |
9215 /* We use char because int might match the return type of a gcc2 | |
9216 builtin and then its argument prototype would still apply. */ | |
9217 char ldap_open(); | |
9218 | |
9219 int main() { | |
9220 ldap_open() | |
9221 ; return 0; } | |
9222 EOF | |
9223 if { (eval echo configure:9224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9224 rm -rf conftest* | |
9225 eval "ac_cv_lib_$ac_lib_var=yes" | |
9226 else | |
9227 echo "configure: failed program was:" >&5 | |
9228 cat conftest.$ac_ext >&5 | |
9229 rm -rf conftest* | |
9230 eval "ac_cv_lib_$ac_lib_var=no" | |
9231 fi | |
9232 rm -f conftest* | |
9233 xe_check_libs="" | |
9234 | |
9235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
9236 echo "$ac_t""yes" 1>&6 | |
9237 with_ldap=yes with_ldap_lber=yes | |
9238 else | |
9239 echo "$ac_t""no" 1>&6 | |
9240 fi | |
9241 | |
9242 } | |
9243 test "$with_ldap" != "yes" && { | |
9244 xe_msg_checking="for ldap_open in -lldap" | |
9245 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" | |
9246 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | |
9247 echo "configure:9248: checking "$xe_msg_checking"" >&5 | |
9248 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` | |
9249 | |
9250 xe_check_libs=" -lldap -llber -lkrb" | |
9251 cat > conftest.$ac_ext <<EOF | |
9252 #line 9253 "configure" | |
9253 #include "confdefs.h" | |
9254 /* Override any gcc2 internal prototype to avoid an error. */ | |
9255 /* We use char because int might match the return type of a gcc2 | |
9256 builtin and then its argument prototype would still apply. */ | |
9257 char ldap_open(); | |
9258 | |
9259 int main() { | |
9260 ldap_open() | |
9261 ; return 0; } | |
9262 EOF | |
9263 if { (eval echo configure:9264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9264 rm -rf conftest* | |
9265 eval "ac_cv_lib_$ac_lib_var=yes" | |
9266 else | |
9267 echo "configure: failed program was:" >&5 | |
9268 cat conftest.$ac_ext >&5 | |
9269 rm -rf conftest* | |
9270 eval "ac_cv_lib_$ac_lib_var=no" | |
9271 fi | |
9272 rm -f conftest* | |
9273 xe_check_libs="" | |
9274 | |
9275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
9276 echo "$ac_t""yes" 1>&6 | |
9277 with_ldap=yes with_ldap_lber=yes with_ldap_krb=yes | |
9278 else | |
9279 echo "$ac_t""no" 1>&6 | |
9280 fi | |
9281 | |
9282 } | |
9283 test "$with_ldap" != "yes" && { | |
9284 xe_msg_checking="for ldap_open in -lldap" | |
9285 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" | |
9286 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | |
9287 echo "configure:9288: checking "$xe_msg_checking"" >&5 | |
9288 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` | |
9289 | |
9290 xe_check_libs=" -lldap -llber -lkrb -ldes" | |
9291 cat > conftest.$ac_ext <<EOF | |
9292 #line 9293 "configure" | |
9293 #include "confdefs.h" | |
9294 /* Override any gcc2 internal prototype to avoid an error. */ | |
9295 /* We use char because int might match the return type of a gcc2 | |
9296 builtin and then its argument prototype would still apply. */ | |
9297 char ldap_open(); | |
9298 | |
9299 int main() { | |
9300 ldap_open() | |
9301 ; return 0; } | |
9302 EOF | |
9303 if { (eval echo configure:9304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9304 rm -rf conftest* | |
9305 eval "ac_cv_lib_$ac_lib_var=yes" | |
9306 else | |
9307 echo "configure: failed program was:" >&5 | |
9308 cat conftest.$ac_ext >&5 | |
9309 rm -rf conftest* | |
9310 eval "ac_cv_lib_$ac_lib_var=no" | |
9311 fi | |
9312 rm -f conftest* | |
9313 xe_check_libs="" | |
9314 | |
9315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
9316 echo "$ac_t""yes" 1>&6 | |
9317 with_ldap=yes with_ldap_lber=yes with_ldap_krb=yes with_ldap_des=yes | |
9318 else | |
9319 echo "$ac_t""no" 1>&6 | |
9320 fi | |
9321 | |
9322 } | |
9323 test "$with_ldap_lber" != "yes" && { | |
9324 echo $ac_n "checking for ber_pvt_opt_on in -llber""... $ac_c" 1>&6 | |
9325 echo "configure:9326: checking for ber_pvt_opt_on in -llber" >&5 | |
9326 ac_lib_var=`echo lber'_'ber_pvt_opt_on | sed 'y%./+-%__p_%'` | |
9327 | |
9328 xe_check_libs=" -llber " | |
9329 cat > conftest.$ac_ext <<EOF | |
9330 #line 9331 "configure" | |
9331 #include "confdefs.h" | |
9332 /* Override any gcc2 internal prototype to avoid an error. */ | |
9333 /* We use char because int might match the return type of a gcc2 | |
9334 builtin and then its argument prototype would still apply. */ | |
9335 char ber_pvt_opt_on(); | |
9336 | |
9337 int main() { | |
9338 ber_pvt_opt_on() | |
9339 ; return 0; } | |
9340 EOF | |
9341 if { (eval echo configure:9342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9342 rm -rf conftest* | |
9343 eval "ac_cv_lib_$ac_lib_var=yes" | |
9344 else | |
9345 echo "configure: failed program was:" >&5 | |
9346 cat conftest.$ac_ext >&5 | |
9347 rm -rf conftest* | |
9348 eval "ac_cv_lib_$ac_lib_var=no" | |
9349 fi | |
9350 rm -f conftest* | |
9351 xe_check_libs="" | |
9352 | |
9353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
9354 echo "$ac_t""yes" 1>&6 | |
9355 with_ldap_lber=yes | |
9356 else | |
9357 echo "$ac_t""no" 1>&6 | |
9358 fi | |
9359 | |
9360 } | |
9361 fi | |
9362 if test "$with_ldap" = "yes"; then | |
9363 { test "$extra_verbose" = "yes" && cat << \EOF | |
9364 Defining HAVE_LDAP | |
9365 EOF | |
9366 cat >> confdefs.h <<\EOF | |
9367 #define HAVE_LDAP 1 | |
9368 EOF | |
9369 } | |
9370 | |
9371 if test "$with_ldap_des" = "yes" ; then | |
9372 ldap_libs="-ldes $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$ldap_libs"; fi | |
9373 fi | |
9374 if test "$with_ldap_krb" = "yes" ; then | |
9375 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi | |
9376 fi | |
9377 if test "$with_ldap_lber" = "yes" ; then | |
9378 ldap_libs="-llber $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$ldap_libs"; fi | |
9379 fi | |
9380 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi | |
9381 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs" | |
9382 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result | |
9383 do | |
9384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9385 echo "configure:9386: checking for $ac_func" >&5 | |
9386 | |
9387 cat > conftest.$ac_ext <<EOF | |
9388 #line 9389 "configure" | |
9389 #include "confdefs.h" | |
9390 /* System header to define __stub macros and hopefully few prototypes, | |
9391 which can conflict with char $ac_func(); below. */ | |
9392 #include <assert.h> | |
9393 /* Override any gcc2 internal prototype to avoid an error. */ | |
9394 /* We use char because int might match the return type of a gcc2 | |
9395 builtin and then its argument prototype would still apply. */ | |
9396 char $ac_func(); | |
9397 | |
9398 int main() { | |
9399 | |
9400 /* The GNU C library defines this for functions which it implements | |
9401 to always fail with ENOSYS. Some functions are actually named | |
9402 something starting with __ and the normal name is an alias. */ | |
9403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9404 choke me | |
9405 #else | |
9406 $ac_func(); | |
9407 #endif | |
9408 | |
9409 ; return 0; } | |
9410 EOF | |
9411 if { (eval echo configure:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9412 rm -rf conftest* | |
9413 eval "ac_cv_func_$ac_func=yes" | |
9414 else | |
9415 echo "configure: failed program was:" >&5 | |
9416 cat conftest.$ac_ext >&5 | |
9417 rm -rf conftest* | |
9418 eval "ac_cv_func_$ac_func=no" | |
9419 fi | |
9420 rm -f conftest* | |
9421 | |
9422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9423 echo "$ac_t""yes" 1>&6 | |
9424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9425 { test "$extra_verbose" = "yes" && cat << EOF | |
9426 Defining $ac_tr_func | |
9427 EOF | |
9428 cat >> confdefs.h <<EOF | |
9429 #define $ac_tr_func 1 | |
9430 EOF | |
9431 } | |
9432 | |
9433 else | |
9434 echo "$ac_t""no" 1>&6 | |
9435 fi | |
9436 done | |
9437 | |
9438 LIBS="$save_LIBS" | |
9439 MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$MAKE_SUBDIR"; fi | |
9440 need_modules_common=yes | |
9441 if test "$with_modules" = "yes"; then | |
9442 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi | |
9443 fi | |
9444 fi | |
9445 | |
9446 | |
9447 postgresql_libs= | |
9448 if test "$with_postgresql" != "no"; then | |
9449 echo "checking for PostgreSQL" 1>&6 | |
9450 echo "configure:9451: checking for PostgreSQL" >&5 | |
9451 | |
9452 for header_dir in "" "pgsql/" "postgresql/"; do | |
9453 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'` | |
9454 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6 | |
9455 echo "configure:9456: checking for ${header_dir}libpq-fe.h" >&5 | |
9456 | |
9457 cat > conftest.$ac_ext <<EOF | |
9458 #line 9459 "configure" | |
9459 #include "confdefs.h" | |
9460 #include <${header_dir}libpq-fe.h> | |
9461 EOF | |
9462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9463 { (eval echo configure:9464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9465 if test -z "$ac_err"; then | |
9466 rm -rf conftest* | |
9467 eval "ac_cv_header_$ac_safe=yes" | |
9468 else | |
9469 echo "$ac_err" >&5 | |
9470 echo "configure: failed program was:" >&5 | |
9471 cat conftest.$ac_ext >&5 | |
9472 rm -rf conftest* | |
9473 eval "ac_cv_header_$ac_safe=no" | |
9474 fi | |
9475 rm -f conftest* | |
9476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9477 echo "$ac_t""yes" 1>&6 | |
9478 libpq_fe_h_file=${header_dir}libpq-fe.h; break | |
9479 else | |
9480 echo "$ac_t""no" 1>&6 | |
9481 fi | |
9482 | |
9483 done | |
9484 | |
9485 test -n "$libpq_fe_h_file" && { | |
9486 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6 | |
9487 echo "configure:9488: checking for PQconnectdb in -lpq" >&5 | |
9488 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'` | |
9489 | |
9490 xe_check_libs=" -lpq " | |
9491 cat > conftest.$ac_ext <<EOF | |
9492 #line 9493 "configure" | |
9493 #include "confdefs.h" | |
9494 /* Override any gcc2 internal prototype to avoid an error. */ | |
9495 /* We use char because int might match the return type of a gcc2 | |
9496 builtin and then its argument prototype would still apply. */ | |
9497 char PQconnectdb(); | |
9498 | |
9499 int main() { | |
9500 PQconnectdb() | |
9501 ; return 0; } | |
9502 EOF | |
9503 if { (eval echo configure:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9504 rm -rf conftest* | |
9505 eval "ac_cv_lib_$ac_lib_var=yes" | |
9506 else | |
9507 echo "configure: failed program was:" >&5 | |
9508 cat conftest.$ac_ext >&5 | |
9509 rm -rf conftest* | |
9510 eval "ac_cv_lib_$ac_lib_var=no" | |
9511 fi | |
9512 rm -f conftest* | |
9513 xe_check_libs="" | |
9514 | |
9515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
9516 echo "$ac_t""yes" 1>&6 | |
9517 have_libpq=yes | |
9518 else | |
9519 echo "$ac_t""no" 1>&6 | |
9520 fi | |
9521 | |
9522 } | |
9523 | |
9524 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then | |
9525 with_postgresql=yes | |
9526 { test "$extra_verbose" = "yes" && cat << \EOF | |
9527 Defining HAVE_POSTGRESQL | |
9528 EOF | |
9529 cat >> confdefs.h <<\EOF | |
9530 #define HAVE_POSTGRESQL 1 | |
9531 EOF | |
9532 } | |
9533 | |
9534 | |
9535 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 | |
9536 echo "configure:9537: checking for PQconnectStart in -lpq" >&5 | |
9537 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'` | |
9538 | |
9539 xe_check_libs=" -lpq " | |
9540 cat > conftest.$ac_ext <<EOF | |
9541 #line 9542 "configure" | |
9542 #include "confdefs.h" | |
9543 /* Override any gcc2 internal prototype to avoid an error. */ | |
9544 /* We use char because int might match the return type of a gcc2 | |
9545 builtin and then its argument prototype would still apply. */ | |
9546 char PQconnectStart(); | |
9547 | |
9548 int main() { | |
9549 PQconnectStart() | |
9550 ; return 0; } | |
9551 EOF | |
9552 if { (eval echo configure:9553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9553 rm -rf conftest* | |
9554 eval "ac_cv_lib_$ac_lib_var=yes" | |
9555 else | |
9556 echo "configure: failed program was:" >&5 | |
9557 cat conftest.$ac_ext >&5 | |
9558 rm -rf conftest* | |
9559 eval "ac_cv_lib_$ac_lib_var=no" | |
9560 fi | |
9561 rm -f conftest* | |
9562 xe_check_libs="" | |
9563 | |
9564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
9565 echo "$ac_t""yes" 1>&6 | |
9566 with_postgresqlv7=yes; | |
9567 { test "$extra_verbose" = "yes" && cat << \EOF | |
9568 Defining HAVE_POSTGRESQLV7 | |
9569 EOF | |
9570 cat >> confdefs.h <<\EOF | |
9571 #define HAVE_POSTGRESQLV7 1 | |
9572 EOF | |
9573 } | |
9574 | |
9575 else | |
9576 echo "$ac_t""no" 1>&6 | |
9577 fi | |
9578 | |
9579 | |
9580 { test "$extra_verbose" = "yes" && cat << EOF | |
9581 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file" | |
9582 EOF | |
9583 cat >> confdefs.h <<EOF | |
9584 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file" | |
9585 EOF | |
9586 } | |
9587 | |
9588 postgresql_libs="-lpq $postgresql_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$postgresql_libs"; fi | |
9589 MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$MAKE_SUBDIR"; fi | |
9590 need_modules_common=yes | |
9591 if test "$with_modules" = "yes"; then | |
9592 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi | |
9593 fi | |
9594 elif test "$with_postgresql" = "yes"; then | |
9595 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; } | |
9596 fi | |
9597 fi | |
9598 | |
9599 | |
9600 | |
9601 if test "$window_system" != "none"; then | |
9602 echo "checking for graphics libraries" 1>&6 | |
9603 echo "configure:9604: checking for graphics libraries" >&5 | |
9604 | |
9605 libpath_xpm= | |
9606 incpath_xpm= | |
9607 case "$opsys" in | |
9608 cygwin*) | |
9609 cygwin_top=`eval "gcc -print-file-name=libc.a"` ; | |
9610 cygwin_top=`eval "dirname ${cygwin_top}"`; | |
9611 cygwin_top="${cygwin_top}/.."; | |
9612 case "$window_system" in | |
9613 x11) ;; | |
9614 msw) libpath_xpm="-L${cygwin_top}/lib/noX" | |
9615 incpath_xpm="-I${cygwin_top}/include/noX" | |
9616 ;; | |
9617 gtk) ;; | |
9618 none) ;; | |
9619 *) ;; | |
9620 esac | |
9621 ;; | |
9622 *) ;; | |
9623 esac | |
9624 xpm_problem="" | |
9625 if test -z "$with_xpm"; then | |
9626 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi | |
9627 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi | |
9628 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 | |
9629 echo "configure:9630: checking for Xpm - no older than 3.4f" >&5 | |
9630 xe_check_libs=-lXpm | |
9631 cat > conftest.$ac_ext <<EOF | |
9632 #line 9633 "configure" | |
9633 #include "confdefs.h" | |
9634 #define XPM_NUMBERS | |
9635 #include <X11/xpm.h> | |
9636 int main(int c, char **v) { | |
9637 return c == 1 ? 0 : | |
9638 XpmIncludeVersion != XpmLibraryVersion() ? 1 : | |
9639 XpmIncludeVersion < 30406 ? 2 : 0 ;} | |
9640 EOF | |
9641 if { (eval echo configure:9642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
9642 then | |
9643 ./conftest dummy_arg; xpm_status=$?; | |
9644 if test "$xpm_status" = "0"; then | |
9645 with_xpm=yes; | |
9646 else | |
9647 with_xpm=no; | |
9648 if test "$xpm_status" = "1"; then | |
9649 xpm_problem="Xpm library version and header file version don't match!" | |
9650 elif test "$xpm_status" = "2"; then | |
9651 xpm_problem="Xpm library version is too old!" | |
9652 else | |
9653 xpm_problem="Internal xpm detection logic error!" | |
9654 fi | |
9655 echo " | |
9656 *** WARNING *** $xpm_problem | |
9657 I'm not touching that with a 10-foot pole! | |
9658 If you really want to use the installed version of Xpm, rerun | |
9659 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!" | |
9660 fi | |
9661 else | |
9662 conftest_rc="$?" | |
9663 echo "configure: failed program was:" >&5 | |
9664 cat conftest.$ac_ext >&5 | |
9665 rm -fr conftest* | |
9666 with_xpm=no | |
9667 fi | |
9668 rm -fr conftest* | |
9669 xe_check_libs= | |
9670 echo "$ac_t""$with_xpm" 1>&6 | |
9671 fi | |
9672 if test "$with_xpm" = "yes"; then | |
9673 { test "$extra_verbose" = "yes" && cat << \EOF | |
9674 Defining HAVE_XPM | |
9675 EOF | |
9676 cat >> confdefs.h <<\EOF | |
9677 #define HAVE_XPM 1 | |
9678 EOF | |
9679 } | |
9680 | |
9681 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi | |
9682 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi | |
9683 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi | |
9684 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 | |
9685 echo "configure:9686: checking for \"FOR_MSW\" xpm" >&5 | |
9686 xe_check_libs=-lXpm | |
9687 cat > conftest.$ac_ext <<EOF | |
9688 #line 9689 "configure" | |
9689 #include "confdefs.h" | |
9690 | |
9691 int main() { | |
9692 XpmCreatePixmapFromData() | |
9693 ; return 0; } | |
9694 EOF | |
9695 if { (eval echo configure:9696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9696 rm -rf conftest* | |
9697 xpm_for_msw=no | |
9698 else | |
9699 echo "configure: failed program was:" >&5 | |
9700 cat conftest.$ac_ext >&5 | |
9701 rm -rf conftest* | |
9702 xpm_for_msw=yes | |
9703 fi | |
9704 rm -f conftest* | |
9705 xe_check_libs= | |
9706 echo "$ac_t""$xpm_for_msw" 1>&6 | |
9707 if test "$xpm_for_msw" = "yes"; then | |
9708 { test "$extra_verbose" = "yes" && cat << \EOF | |
9709 Defining FOR_MSW | |
9710 EOF | |
9711 cat >> confdefs.h <<\EOF | |
9712 #define FOR_MSW 1 | |
9713 EOF | |
9714 } | |
9715 | |
9716 fi | |
9717 fi | |
9718 | |
9719 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` | |
9720 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 | |
9721 echo "configure:9722: checking for compface.h" >&5 | |
9722 | |
9723 cat > conftest.$ac_ext <<EOF | |
9724 #line 9725 "configure" | |
9725 #include "confdefs.h" | |
9726 #include <compface.h> | |
9727 EOF | |
9728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9729 { (eval echo configure:9730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9731 if test -z "$ac_err"; then | |
9732 rm -rf conftest* | |
9733 eval "ac_cv_header_$ac_safe=yes" | |
9734 else | |
9735 echo "$ac_err" >&5 | |
9736 echo "configure: failed program was:" >&5 | |
9737 cat conftest.$ac_ext >&5 | |
9738 rm -rf conftest* | |
9739 eval "ac_cv_header_$ac_safe=no" | |
9740 fi | |
9741 rm -f conftest* | |
9742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9743 echo "$ac_t""yes" 1>&6 | |
9744 : | |
9745 else | |
9746 echo "$ac_t""no" 1>&6 | |
9747 with_xface=no | |
9748 fi | |
9749 } | |
9750 test -z "$with_xface" && { | |
9751 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 | |
9752 echo "configure:9753: checking for UnGenFace in -lcompface" >&5 | |
9753 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` | |
9754 | |
9755 xe_check_libs=" -lcompface " | |
9756 cat > conftest.$ac_ext <<EOF | |
9757 #line 9758 "configure" | |
9758 #include "confdefs.h" | |
9759 /* Override any gcc2 internal prototype to avoid an error. */ | |
9760 /* We use char because int might match the return type of a gcc2 | |
9761 builtin and then its argument prototype would still apply. */ | |
9762 char UnGenFace(); | |
9763 | |
9764 int main() { | |
9765 UnGenFace() | |
9766 ; return 0; } | |
9767 EOF | |
9768 if { (eval echo configure:9769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9769 rm -rf conftest* | |
9770 eval "ac_cv_lib_$ac_lib_var=yes" | |
9771 else | |
9772 echo "configure: failed program was:" >&5 | |
9773 cat conftest.$ac_ext >&5 | |
9774 rm -rf conftest* | |
9775 eval "ac_cv_lib_$ac_lib_var=no" | |
9776 fi | |
9777 rm -f conftest* | |
9778 xe_check_libs="" | |
9779 | |
9780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
9781 echo "$ac_t""yes" 1>&6 | |
9782 : | |
9783 else | |
9784 echo "$ac_t""no" 1>&6 | |
9785 with_xface=no | |
9786 fi | |
9787 | |
9788 } | |
9789 test -z "$with_xface" && with_xface=yes | |
9790 if test "$with_xface" = "yes"; then | |
9791 { test "$extra_verbose" = "yes" && cat << \EOF | |
9792 Defining HAVE_XFACE | |
9793 EOF | |
9794 cat >> confdefs.h <<\EOF | |
9795 #define HAVE_XFACE 1 | |
9796 EOF | |
9797 } | |
9798 | |
9799 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi | |
9800 fi | |
9801 | |
9802 if test "$with_gif" != "no"; then | |
9803 with_gif="yes" | |
9804 { test "$extra_verbose" = "yes" && cat << \EOF | |
9805 Defining HAVE_GIF | |
9806 EOF | |
9807 cat >> confdefs.h <<\EOF | |
9808 #define HAVE_GIF 1 | |
9809 EOF | |
9810 } | |
9811 | |
9812 fi | |
9813 | |
9814 if test "$with_png $with_tiff" != "no no"; then | |
9815 | |
9816 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 | |
9817 echo "configure:9818: checking for inflate in -lc" >&5 | |
9818 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` | |
9819 | |
9820 xe_check_libs=" -lc " | |
9821 cat > conftest.$ac_ext <<EOF | |
9822 #line 9823 "configure" | |
9823 #include "confdefs.h" | |
9824 /* Override any gcc2 internal prototype to avoid an error. */ | |
9825 /* We use char because int might match the return type of a gcc2 | |
9826 builtin and then its argument prototype would still apply. */ | |
9827 char inflate(); | |
9828 | |
9829 int main() { | |
9830 inflate() | |
9831 ; return 0; } | |
9832 EOF | |
9833 if { (eval echo configure:9834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9834 rm -rf conftest* | |
9835 eval "ac_cv_lib_$ac_lib_var=yes" | |
9836 else | |
9837 echo "configure: failed program was:" >&5 | |
9838 cat conftest.$ac_ext >&5 | |
9839 rm -rf conftest* | |
9840 eval "ac_cv_lib_$ac_lib_var=no" | |
9841 fi | |
9842 rm -f conftest* | |
9843 xe_check_libs="" | |
9844 | |
9845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
9846 echo "$ac_t""yes" 1>&6 | |
9847 : | |
9848 else | |
9849 echo "$ac_t""no" 1>&6 | |
9850 | |
9851 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 | |
9852 echo "configure:9853: checking for inflate in -lz" >&5 | |
9853 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` | |
9854 | |
9855 xe_check_libs=" -lz " | |
9856 cat > conftest.$ac_ext <<EOF | |
9857 #line 9858 "configure" | |
9858 #include "confdefs.h" | |
9859 /* Override any gcc2 internal prototype to avoid an error. */ | |
9860 /* We use char because int might match the return type of a gcc2 | |
9861 builtin and then its argument prototype would still apply. */ | |
9862 char inflate(); | |
9863 | |
9864 int main() { | |
9865 inflate() | |
9866 ; return 0; } | |
9867 EOF | |
9868 if { (eval echo configure:9869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9869 rm -rf conftest* | |
9870 eval "ac_cv_lib_$ac_lib_var=yes" | |
9871 else | |
9872 echo "configure: failed program was:" >&5 | |
9873 cat conftest.$ac_ext >&5 | |
9874 rm -rf conftest* | |
9875 eval "ac_cv_lib_$ac_lib_var=no" | |
9876 fi | |
9877 rm -f conftest* | |
9878 xe_check_libs="" | |
9879 | |
9880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
9881 echo "$ac_t""yes" 1>&6 | |
9882 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi | |
9883 else | |
9884 echo "$ac_t""no" 1>&6 | |
9885 | |
9886 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 | |
9887 echo "configure:9888: checking for inflate in -lgz" >&5 | |
9888 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` | |
9889 | |
9890 xe_check_libs=" -lgz " | |
9891 cat > conftest.$ac_ext <<EOF | |
9892 #line 9893 "configure" | |
9893 #include "confdefs.h" | |
9894 /* Override any gcc2 internal prototype to avoid an error. */ | |
9895 /* We use char because int might match the return type of a gcc2 | |
9896 builtin and then its argument prototype would still apply. */ | |
9897 char inflate(); | |
9898 | |
9899 int main() { | |
9900 inflate() | |
9901 ; return 0; } | |
9902 EOF | |
9903 if { (eval echo configure:9904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9904 rm -rf conftest* | |
9905 eval "ac_cv_lib_$ac_lib_var=yes" | |
9906 else | |
9907 echo "configure: failed program was:" >&5 | |
9908 cat conftest.$ac_ext >&5 | |
9909 rm -rf conftest* | |
9910 eval "ac_cv_lib_$ac_lib_var=no" | |
9911 fi | |
9912 rm -f conftest* | |
9913 xe_check_libs="" | |
9914 | |
9915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
9916 echo "$ac_t""yes" 1>&6 | |
9917 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi | |
9918 else | |
9919 echo "$ac_t""no" 1>&6 | |
9920 fi | |
9921 | |
9922 | |
9923 fi | |
9924 | |
9925 | |
9926 fi | |
9927 | |
9928 | |
9929 fi | |
9930 | |
9931 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` | |
9932 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
9933 echo "configure:9934: checking for jpeglib.h" >&5 | |
9934 | |
9935 cat > conftest.$ac_ext <<EOF | |
9936 #line 9937 "configure" | |
9937 #include "confdefs.h" | |
9938 #include <jpeglib.h> | |
9939 EOF | |
9940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9941 { (eval echo configure:9942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9943 if test -z "$ac_err"; then | |
9944 rm -rf conftest* | |
9945 eval "ac_cv_header_$ac_safe=yes" | |
9946 else | |
9947 echo "$ac_err" >&5 | |
9948 echo "configure: failed program was:" >&5 | |
9949 cat conftest.$ac_ext >&5 | |
9950 rm -rf conftest* | |
9951 eval "ac_cv_header_$ac_safe=no" | |
9952 fi | |
9953 rm -f conftest* | |
9954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9955 echo "$ac_t""yes" 1>&6 | |
9956 : | |
9957 else | |
9958 echo "$ac_t""no" 1>&6 | |
9959 with_jpeg=no | |
9960 fi | |
9961 } | |
9962 test -z "$with_jpeg" && { | |
9963 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 | |
9964 echo "configure:9965: checking for jpeg_destroy_decompress in -ljpeg" >&5 | |
9965 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` | |
9966 | |
9967 xe_check_libs=" -ljpeg " | |
9968 cat > conftest.$ac_ext <<EOF | |
9969 #line 9970 "configure" | |
9970 #include "confdefs.h" | |
9971 /* Override any gcc2 internal prototype to avoid an error. */ | |
9972 /* We use char because int might match the return type of a gcc2 | |
9973 builtin and then its argument prototype would still apply. */ | |
9974 char jpeg_destroy_decompress(); | |
9975 | |
9976 int main() { | |
9977 jpeg_destroy_decompress() | |
9978 ; return 0; } | |
9979 EOF | |
9980 if { (eval echo configure:9981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9981 rm -rf conftest* | |
9982 eval "ac_cv_lib_$ac_lib_var=yes" | |
9983 else | |
9984 echo "configure: failed program was:" >&5 | |
9985 cat conftest.$ac_ext >&5 | |
9986 rm -rf conftest* | |
9987 eval "ac_cv_lib_$ac_lib_var=no" | |
9988 fi | |
9989 rm -f conftest* | |
9990 xe_check_libs="" | |
9991 | |
9992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
9993 echo "$ac_t""yes" 1>&6 | |
9994 : | |
9995 else | |
9996 echo "$ac_t""no" 1>&6 | |
9997 with_jpeg=no | |
9998 fi | |
9999 | |
10000 } | |
10001 test -z "$with_jpeg" && with_jpeg=yes | |
10002 if test "$with_jpeg" = "yes"; then | |
10003 { test "$extra_verbose" = "yes" && cat << \EOF | |
10004 Defining HAVE_JPEG | |
10005 EOF | |
10006 cat >> confdefs.h <<\EOF | |
10007 #define HAVE_JPEG 1 | |
10008 EOF | |
10009 } | |
10010 | |
10011 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi | |
10012 fi | |
10013 | |
10014 png_problem="" | |
10015 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 | |
10016 echo "configure:10017: checking for pow" >&5 | |
10017 | |
10018 cat > conftest.$ac_ext <<EOF | |
10019 #line 10020 "configure" | |
10020 #include "confdefs.h" | |
10021 /* System header to define __stub macros and hopefully few prototypes, | |
10022 which can conflict with char pow(); below. */ | |
10023 #include <assert.h> | |
10024 /* Override any gcc2 internal prototype to avoid an error. */ | |
10025 /* We use char because int might match the return type of a gcc2 | |
10026 builtin and then its argument prototype would still apply. */ | |
10027 char pow(); | |
10028 | |
10029 int main() { | |
10030 | |
10031 /* The GNU C library defines this for functions which it implements | |
10032 to always fail with ENOSYS. Some functions are actually named | |
10033 something starting with __ and the normal name is an alias. */ | |
10034 #if defined (__stub_pow) || defined (__stub___pow) | |
10035 choke me | |
10036 #else | |
10037 pow(); | |
10038 #endif | |
10039 | |
10040 ; return 0; } | |
10041 EOF | |
10042 if { (eval echo configure:10043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10043 rm -rf conftest* | |
10044 eval "ac_cv_func_pow=yes" | |
10045 else | |
10046 echo "configure: failed program was:" >&5 | |
10047 cat conftest.$ac_ext >&5 | |
10048 rm -rf conftest* | |
10049 eval "ac_cv_func_pow=no" | |
10050 fi | |
10051 rm -f conftest* | |
10052 | |
10053 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then | |
10054 echo "$ac_t""yes" 1>&6 | |
10055 : | |
10056 else | |
10057 echo "$ac_t""no" 1>&6 | |
10058 with_png=no | |
10059 fi | |
10060 } | |
10061 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
10062 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
10063 echo "configure:10064: checking for png.h" >&5 | |
10064 | |
10065 cat > conftest.$ac_ext <<EOF | |
10066 #line 10067 "configure" | |
10067 #include "confdefs.h" | |
10068 #include <png.h> | |
10069 EOF | |
10070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10071 { (eval echo configure:10072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10073 if test -z "$ac_err"; then | |
10074 rm -rf conftest* | |
10075 eval "ac_cv_header_$ac_safe=yes" | |
10076 else | |
10077 echo "$ac_err" >&5 | |
10078 echo "configure: failed program was:" >&5 | |
10079 cat conftest.$ac_ext >&5 | |
10080 rm -rf conftest* | |
10081 eval "ac_cv_header_$ac_safe=no" | |
10082 fi | |
10083 rm -f conftest* | |
10084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10085 echo "$ac_t""yes" 1>&6 | |
10086 : | |
10087 else | |
10088 echo "$ac_t""no" 1>&6 | |
10089 with_png=no | |
10090 fi | |
10091 } | |
10092 test -z "$with_png" && { | |
10093 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 | |
10094 echo "configure:10095: checking for png_read_image in -lpng" >&5 | |
10095 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` | |
10096 | |
10097 xe_check_libs=" -lpng " | |
10098 cat > conftest.$ac_ext <<EOF | |
10099 #line 10100 "configure" | |
10100 #include "confdefs.h" | |
10101 /* Override any gcc2 internal prototype to avoid an error. */ | |
10102 /* We use char because int might match the return type of a gcc2 | |
10103 builtin and then its argument prototype would still apply. */ | |
10104 char png_read_image(); | |
10105 | |
10106 int main() { | |
10107 png_read_image() | |
10108 ; return 0; } | |
10109 EOF | |
10110 if { (eval echo configure:10111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10111 rm -rf conftest* | |
10112 eval "ac_cv_lib_$ac_lib_var=yes" | |
10113 else | |
10114 echo "configure: failed program was:" >&5 | |
10115 cat conftest.$ac_ext >&5 | |
10116 rm -rf conftest* | |
10117 eval "ac_cv_lib_$ac_lib_var=no" | |
10118 fi | |
10119 rm -f conftest* | |
10120 xe_check_libs="" | |
10121 | |
10122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
10123 echo "$ac_t""yes" 1>&6 | |
10124 : | |
10125 else | |
10126 echo "$ac_t""no" 1>&6 | |
10127 with_png=no | |
10128 fi | |
10129 | |
10130 } | |
10131 if test -z "$with_png"; then | |
10132 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 | |
10133 echo "configure:10134: checking for workable png version information" >&5 | |
10134 xe_check_libs="-lpng -lz" | |
10135 cat > conftest.$ac_ext <<EOF | |
10136 #line 10137 "configure" | |
10137 #include "confdefs.h" | |
10138 #include <png.h> | |
10139 int main(int c, char **v) { | |
10140 if (c == 1) return 0; | |
10141 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; | |
10142 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} | |
10143 EOF | |
10144 if { (eval echo configure:10145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
10145 then | |
10146 ./conftest dummy_arg; png_status=$?; | |
10147 if test "$png_status" = "0"; then | |
10148 with_png=yes; | |
10149 else | |
10150 with_png=no; | |
10151 if test "$png_status" = "1"; then | |
10152 png_problem="PNG library version and header file don't match!" | |
10153 elif test "$png_status" = "2"; then | |
10154 png_problem="PNG library version too old (pre 1.0.2)!" | |
10155 fi | |
10156 echo " | |
10157 *** WARNING *** $png_problem | |
10158 I'm not touching that with a 10-foot pole! | |
10159 If you really want to use the installed version of libPNG, rerun | |
10160 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!" | |
10161 fi | |
10162 else | |
10163 conftest_rc="$?" | |
10164 echo "configure: failed program was:" >&5 | |
10165 cat conftest.$ac_ext >&5 | |
10166 rm -fr conftest* | |
10167 with_png=no | |
10168 fi | |
10169 rm -fr conftest* | |
10170 xe_check_libs= | |
10171 echo "$ac_t""$with_png" 1>&6 | |
10172 fi | |
10173 if test "$with_png" = "yes"; then | |
10174 { test "$extra_verbose" = "yes" && cat << \EOF | |
10175 Defining HAVE_PNG | |
10176 EOF | |
10177 cat >> confdefs.h <<\EOF | |
10178 #define HAVE_PNG 1 | |
10179 EOF | |
10180 } | |
10181 | |
10182 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi | |
10183 fi | |
10184 | |
10185 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
10186 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
10187 echo "configure:10188: checking for tiffio.h" >&5 | |
10188 | |
10189 cat > conftest.$ac_ext <<EOF | |
10190 #line 10191 "configure" | |
10191 #include "confdefs.h" | |
10192 #include <tiffio.h> | |
10193 EOF | |
10194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10195 { (eval echo configure:10196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10197 if test -z "$ac_err"; then | |
10198 rm -rf conftest* | |
10199 eval "ac_cv_header_$ac_safe=yes" | |
10200 else | |
10201 echo "$ac_err" >&5 | |
10202 echo "configure: failed program was:" >&5 | |
10203 cat conftest.$ac_ext >&5 | |
10204 rm -rf conftest* | |
10205 eval "ac_cv_header_$ac_safe=no" | |
10206 fi | |
10207 rm -f conftest* | |
10208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10209 echo "$ac_t""yes" 1>&6 | |
10210 : | |
10211 else | |
10212 echo "$ac_t""no" 1>&6 | |
10213 with_tiff=no | |
10214 fi | |
10215 } | |
10216 test -z "$with_tiff" && { | |
10217 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 | |
10218 echo "configure:10219: checking for TIFFClientOpen in -ltiff" >&5 | |
10219 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` | |
10220 | |
10221 xe_check_libs=" -ltiff " | |
10222 cat > conftest.$ac_ext <<EOF | |
10223 #line 10224 "configure" | |
10224 #include "confdefs.h" | |
10225 /* Override any gcc2 internal prototype to avoid an error. */ | |
10226 /* We use char because int might match the return type of a gcc2 | |
10227 builtin and then its argument prototype would still apply. */ | |
10228 char TIFFClientOpen(); | |
10229 | |
10230 int main() { | |
10231 TIFFClientOpen() | |
10232 ; return 0; } | |
10233 EOF | |
10234 if { (eval echo configure:10235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10235 rm -rf conftest* | |
10236 eval "ac_cv_lib_$ac_lib_var=yes" | |
10237 else | |
10238 echo "configure: failed program was:" >&5 | |
10239 cat conftest.$ac_ext >&5 | |
10240 rm -rf conftest* | |
10241 eval "ac_cv_lib_$ac_lib_var=no" | |
10242 fi | |
10243 rm -f conftest* | |
10244 xe_check_libs="" | |
10245 | |
10246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
10247 echo "$ac_t""yes" 1>&6 | |
10248 : | |
10249 else | |
10250 echo "$ac_t""no" 1>&6 | |
10251 with_tiff=no | |
10252 fi | |
10253 | |
10254 } | |
10255 test -z "$with_tiff" && with_tiff=yes | |
10256 if test "$with_tiff" = "yes"; then | |
10257 { test "$extra_verbose" = "yes" && cat << \EOF | |
10258 Defining HAVE_TIFF | |
10259 EOF | |
10260 cat >> confdefs.h <<\EOF | |
10261 #define HAVE_TIFF 1 | |
10262 EOF | |
10263 } | |
10264 | |
10265 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi | |
10266 fi | |
10267 fi | |
10268 | |
10269 | |
10270 if test "$with_gtk" = "yes"; then | |
10271 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` | |
10272 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 | |
10273 echo "configure:10274: checking for compface.h" >&5 | |
10274 | |
10275 cat > conftest.$ac_ext <<EOF | |
10276 #line 10277 "configure" | |
10277 #include "confdefs.h" | |
10278 #include <compface.h> | |
10279 EOF | |
10280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10281 { (eval echo configure:10282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10283 if test -z "$ac_err"; then | |
10284 rm -rf conftest* | |
10285 eval "ac_cv_header_$ac_safe=yes" | |
10286 else | |
10287 echo "$ac_err" >&5 | |
10288 echo "configure: failed program was:" >&5 | |
10289 cat conftest.$ac_ext >&5 | |
10290 rm -rf conftest* | |
10291 eval "ac_cv_header_$ac_safe=no" | |
10292 fi | |
10293 rm -f conftest* | |
10294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10295 echo "$ac_t""yes" 1>&6 | |
10296 : | |
10297 else | |
10298 echo "$ac_t""no" 1>&6 | |
10299 with_xface=no | |
10300 fi | |
10301 } | |
10302 test -z "$with_xface" && { | |
10303 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 | |
10304 echo "configure:10305: checking for UnGenFace in -lcompface" >&5 | |
10305 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` | |
10306 | |
10307 xe_check_libs=" -lcompface " | |
10308 cat > conftest.$ac_ext <<EOF | |
10309 #line 10310 "configure" | |
10310 #include "confdefs.h" | |
10311 /* Override any gcc2 internal prototype to avoid an error. */ | |
10312 /* We use char because int might match the return type of a gcc2 | |
10313 builtin and then its argument prototype would still apply. */ | |
10314 char UnGenFace(); | |
10315 | |
10316 int main() { | |
10317 UnGenFace() | |
10318 ; return 0; } | |
10319 EOF | |
10320 if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10321 rm -rf conftest* | |
10322 eval "ac_cv_lib_$ac_lib_var=yes" | |
10323 else | |
10324 echo "configure: failed program was:" >&5 | |
10325 cat conftest.$ac_ext >&5 | |
10326 rm -rf conftest* | |
10327 eval "ac_cv_lib_$ac_lib_var=no" | |
10328 fi | |
10329 rm -f conftest* | |
10330 xe_check_libs="" | |
10331 | |
10332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
10333 echo "$ac_t""yes" 1>&6 | |
10334 : | |
10335 else | |
10336 echo "$ac_t""no" 1>&6 | |
10337 with_xface=no | |
10338 fi | |
10339 | |
10340 } | |
10341 test -z "$with_xface" && with_xface=yes | |
10342 if test "$with_xface" = "yes"; then | |
10343 { test "$extra_verbose" = "yes" && cat << \EOF | |
10344 Defining HAVE_XFACE | |
10345 EOF | |
10346 cat >> confdefs.h <<\EOF | |
10347 #define HAVE_XFACE 1 | |
10348 EOF | |
10349 } | |
10350 | |
10351 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi | |
10352 fi | |
10353 fi | |
10354 | |
10355 | |
10356 | |
10357 if test "$with_x11" = "yes"; then | |
10358 echo "checking for X11 graphics libraries" 1>&6 | |
10359 echo "configure:10360: checking for X11 graphics libraries" >&5 | |
10360 fi | |
10361 | |
10362 case "$with_widgets" in | |
10363 "yes" | "athena") detect_athena=yes ;; | |
10364 *) detect_athena=no ;; | |
10365 esac | |
10366 | |
10367 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then | |
10368 echo "checking for the Athena widgets" 1>&6 | |
10369 echo "configure:10370: checking for the Athena widgets" >&5 | |
10370 | |
10371 case "$with_athena" in | |
10372 "xaw" | "") athena_variant=Xaw athena_3d=no ;; | |
10373 "3d") athena_variant=Xaw3d athena_3d=yes ;; | |
10374 "next") athena_variant=neXtaw athena_3d=yes ;; | |
10375 "95") athena_variant=Xaw95 athena_3d=yes ;; | |
10376 "xpm") athena_variant=XawXpm athena_3d=yes ;; | |
10377 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;; | |
10378 esac | |
10379 | |
10380 if test "$athena_3d" = "no"; then | |
10381 | |
10382 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 | |
10383 echo "configure:10384: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 | |
10384 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` | |
10385 | |
10386 xe_check_libs=" -l$athena_variant " | |
10387 cat > conftest.$ac_ext <<EOF | |
10388 #line 10389 "configure" | |
10389 #include "confdefs.h" | |
10390 /* Override any gcc2 internal prototype to avoid an error. */ | |
10391 /* We use char because int might match the return type of a gcc2 | |
10392 builtin and then its argument prototype would still apply. */ | |
10393 char XawScrollbarSetThumb(); | |
10394 | |
10395 int main() { | |
10396 XawScrollbarSetThumb() | |
10397 ; return 0; } | |
10398 EOF | |
10399 if { (eval echo configure:10400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10400 rm -rf conftest* | |
10401 eval "ac_cv_lib_$ac_lib_var=yes" | |
10402 else | |
10403 echo "configure: failed program was:" >&5 | |
10404 cat conftest.$ac_ext >&5 | |
10405 rm -rf conftest* | |
10406 eval "ac_cv_lib_$ac_lib_var=no" | |
10407 fi | |
10408 rm -f conftest* | |
10409 xe_check_libs="" | |
10410 | |
10411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
10412 echo "$ac_t""yes" 1>&6 | |
10413 | |
10414 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 | |
10415 echo "configure:10416: checking for threeDClassRec in -l$athena_variant" >&5 | |
10416 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` | |
10417 | |
10418 xe_check_libs=" -l$athena_variant " | |
10419 cat > conftest.$ac_ext <<EOF | |
10420 #line 10421 "configure" | |
10421 #include "confdefs.h" | |
10422 /* Override any gcc2 internal prototype to avoid an error. */ | |
10423 /* We use char because int might match the return type of a gcc2 | |
10424 builtin and then its argument prototype would still apply. */ | |
10425 char threeDClassRec(); | |
10426 | |
10427 int main() { | |
10428 threeDClassRec() | |
10429 ; return 0; } | |
10430 EOF | |
10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10432 rm -rf conftest* | |
10433 eval "ac_cv_lib_$ac_lib_var=yes" | |
10434 else | |
10435 echo "configure: failed program was:" >&5 | |
10436 cat conftest.$ac_ext >&5 | |
10437 rm -rf conftest* | |
10438 eval "ac_cv_lib_$ac_lib_var=no" | |
10439 fi | |
10440 rm -f conftest* | |
10441 xe_check_libs="" | |
10442 | |
10443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
10444 echo "$ac_t""yes" 1>&6 | |
10445 echo "configure: warning: Could not find a non-3d Athena widget library." 1>&2 | |
10446 else | |
10447 echo "$ac_t""no" 1>&6 | |
10448 athena_lib=$athena_variant | |
10449 fi | |
10450 | |
10451 | |
10452 | |
10453 else | |
10454 echo "$ac_t""no" 1>&6 | |
10455 echo "configure: warning: Could not find an Athena widget library." 1>&2 | |
10456 fi | |
10457 | |
10458 | |
10459 else | |
10460 | |
10461 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 | |
10462 echo "configure:10463: checking for threeDClassRec in -l$athena_variant" >&5 | |
10463 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` | |
10464 | |
10465 xe_check_libs=" -l$athena_variant " | |
10466 cat > conftest.$ac_ext <<EOF | |
10467 #line 10468 "configure" | |
10468 #include "confdefs.h" | |
10469 /* Override any gcc2 internal prototype to avoid an error. */ | |
10470 /* We use char because int might match the return type of a gcc2 | |
10471 builtin and then its argument prototype would still apply. */ | |
10472 char threeDClassRec(); | |
10473 | |
10474 int main() { | |
10475 threeDClassRec() | |
10476 ; return 0; } | |
10477 EOF | |
10478 if { (eval echo configure:10479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10479 rm -rf conftest* | |
10480 eval "ac_cv_lib_$ac_lib_var=yes" | |
10481 else | |
10482 echo "configure: failed program was:" >&5 | |
10483 cat conftest.$ac_ext >&5 | |
10484 rm -rf conftest* | |
10485 eval "ac_cv_lib_$ac_lib_var=no" | |
10486 fi | |
10487 rm -f conftest* | |
10488 xe_check_libs="" | |
10489 | |
10490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
10491 echo "$ac_t""yes" 1>&6 | |
10492 athena_lib=$athena_variant | |
10493 else | |
10494 echo "$ac_t""no" 1>&6 | |
10495 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 | |
10496 echo "configure:10497: checking for threeDClassRec in -lXaw" >&5 | |
10497 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` | |
10498 | |
10499 xe_check_libs=" -lXaw " | |
10500 cat > conftest.$ac_ext <<EOF | |
10501 #line 10502 "configure" | |
10502 #include "confdefs.h" | |
10503 /* Override any gcc2 internal prototype to avoid an error. */ | |
10504 /* We use char because int might match the return type of a gcc2 | |
10505 builtin and then its argument prototype would still apply. */ | |
10506 char threeDClassRec(); | |
10507 | |
10508 int main() { | |
10509 threeDClassRec() | |
10510 ; return 0; } | |
10511 EOF | |
10512 if { (eval echo configure:10513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10513 rm -rf conftest* | |
10514 eval "ac_cv_lib_$ac_lib_var=yes" | |
10515 else | |
10516 echo "configure: failed program was:" >&5 | |
10517 cat conftest.$ac_ext >&5 | |
10518 rm -rf conftest* | |
10519 eval "ac_cv_lib_$ac_lib_var=no" | |
10520 fi | |
10521 rm -f conftest* | |
10522 xe_check_libs="" | |
10523 | |
10524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
10525 echo "$ac_t""yes" 1>&6 | |
10526 athena_lib=Xaw; | |
10527 echo "configure: warning: Assuming that libXaw is actually $athena_variant." 1>&2; | |
10528 | |
10529 else | |
10530 echo "$ac_t""no" 1>&6 | |
10531 echo "configure: warning: Could not find a 3d Athena widget library that looked like $athena_variant." 1>&2 | |
10532 fi | |
10533 | |
10534 | |
10535 fi | |
10536 | |
10537 | |
10538 fi | |
10539 | |
10540 if test "$athena_3d" = "no"; then | |
10541 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` | |
10542 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 | |
10543 echo "configure:10544: checking for X11/Xaw/ThreeD.h" >&5 | |
10544 | |
10545 cat > conftest.$ac_ext <<EOF | |
10546 #line 10547 "configure" | |
10547 #include "confdefs.h" | |
10548 #include <X11/Xaw/ThreeD.h> | |
10549 EOF | |
10550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10551 { (eval echo configure:10552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10553 if test -z "$ac_err"; then | |
10554 rm -rf conftest* | |
10555 eval "ac_cv_header_$ac_safe=yes" | |
10556 else | |
10557 echo "$ac_err" >&5 | |
10558 echo "configure: failed program was:" >&5 | |
10559 cat conftest.$ac_ext >&5 | |
10560 rm -rf conftest* | |
10561 eval "ac_cv_header_$ac_safe=no" | |
10562 fi | |
10563 rm -f conftest* | |
10564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10565 echo "$ac_t""yes" 1>&6 | |
10566 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2 | |
10567 else | |
10568 echo "$ac_t""no" 1>&6 | |
10569 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` | |
10570 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 | |
10571 echo "configure:10572: checking for X11/Xaw/XawInit.h" >&5 | |
10572 | |
10573 cat > conftest.$ac_ext <<EOF | |
10574 #line 10575 "configure" | |
10575 #include "confdefs.h" | |
10576 #include <X11/Xaw/XawInit.h> | |
10577 EOF | |
10578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10579 { (eval echo configure:10580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10581 if test -z "$ac_err"; then | |
10582 rm -rf conftest* | |
10583 eval "ac_cv_header_$ac_safe=yes" | |
10584 else | |
10585 echo "$ac_err" >&5 | |
10586 echo "configure: failed program was:" >&5 | |
10587 cat conftest.$ac_ext >&5 | |
10588 rm -rf conftest* | |
10589 eval "ac_cv_header_$ac_safe=no" | |
10590 fi | |
10591 rm -f conftest* | |
10592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10593 echo "$ac_t""yes" 1>&6 | |
10594 athena_h_path=X11/Xaw | |
10595 else | |
10596 echo "$ac_t""no" 1>&6 | |
10597 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2 | |
10598 fi | |
10599 | |
10600 fi | |
10601 | |
10602 else | |
10603 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` | |
10604 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 | |
10605 echo "configure:10606: checking for X11/$athena_variant/XawInit.h" >&5 | |
10606 | |
10607 cat > conftest.$ac_ext <<EOF | |
10608 #line 10609 "configure" | |
10609 #include "confdefs.h" | |
10610 #include <X11/$athena_variant/XawInit.h> | |
10611 EOF | |
10612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10613 { (eval echo configure:10614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10615 if test -z "$ac_err"; then | |
10616 rm -rf conftest* | |
10617 eval "ac_cv_header_$ac_safe=yes" | |
10618 else | |
10619 echo "$ac_err" >&5 | |
10620 echo "configure: failed program was:" >&5 | |
10621 cat conftest.$ac_ext >&5 | |
10622 rm -rf conftest* | |
10623 eval "ac_cv_header_$ac_safe=no" | |
10624 fi | |
10625 rm -f conftest* | |
10626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10627 echo "$ac_t""yes" 1>&6 | |
10628 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` | |
10629 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 | |
10630 echo "configure:10631: checking for X11/$athena_variant/ThreeD.h" >&5 | |
10631 | |
10632 cat > conftest.$ac_ext <<EOF | |
10633 #line 10634 "configure" | |
10634 #include "confdefs.h" | |
10635 #include <X11/$athena_variant/ThreeD.h> | |
10636 EOF | |
10637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10638 { (eval echo configure:10639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10640 if test -z "$ac_err"; then | |
10641 rm -rf conftest* | |
10642 eval "ac_cv_header_$ac_safe=yes" | |
10643 else | |
10644 echo "$ac_err" >&5 | |
10645 echo "configure: failed program was:" >&5 | |
10646 cat conftest.$ac_ext >&5 | |
10647 rm -rf conftest* | |
10648 eval "ac_cv_header_$ac_safe=no" | |
10649 fi | |
10650 rm -f conftest* | |
10651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10652 echo "$ac_t""yes" 1>&6 | |
10653 athena_h_path=X11/$athena_variant | |
10654 else | |
10655 echo "$ac_t""no" 1>&6 | |
10656 fi | |
10657 | |
10658 else | |
10659 echo "$ac_t""no" 1>&6 | |
10660 fi | |
10661 | |
10662 | |
10663 if test -z "$athena_h_path"; then | |
10664 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` | |
10665 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 | |
10666 echo "configure:10667: checking for $athena_variant/XawInit.h" >&5 | |
10667 | |
10668 cat > conftest.$ac_ext <<EOF | |
10669 #line 10670 "configure" | |
10670 #include "confdefs.h" | |
10671 #include <$athena_variant/XawInit.h> | |
10672 EOF | |
10673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10674 { (eval echo configure:10675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10676 if test -z "$ac_err"; then | |
10677 rm -rf conftest* | |
10678 eval "ac_cv_header_$ac_safe=yes" | |
10679 else | |
10680 echo "$ac_err" >&5 | |
10681 echo "configure: failed program was:" >&5 | |
10682 cat conftest.$ac_ext >&5 | |
10683 rm -rf conftest* | |
10684 eval "ac_cv_header_$ac_safe=no" | |
10685 fi | |
10686 rm -f conftest* | |
10687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10688 echo "$ac_t""yes" 1>&6 | |
10689 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` | |
10690 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 | |
10691 echo "configure:10692: checking for $athena_variant/ThreeD.h" >&5 | |
10692 | |
10693 cat > conftest.$ac_ext <<EOF | |
10694 #line 10695 "configure" | |
10695 #include "confdefs.h" | |
10696 #include <$athena_variant/ThreeD.h> | |
10697 EOF | |
10698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10699 { (eval echo configure:10700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10701 if test -z "$ac_err"; then | |
10702 rm -rf conftest* | |
10703 eval "ac_cv_header_$ac_safe=yes" | |
10704 else | |
10705 echo "$ac_err" >&5 | |
10706 echo "configure: failed program was:" >&5 | |
10707 cat conftest.$ac_ext >&5 | |
10708 rm -rf conftest* | |
10709 eval "ac_cv_header_$ac_safe=no" | |
10710 fi | |
10711 rm -f conftest* | |
10712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10713 echo "$ac_t""yes" 1>&6 | |
10714 athena_h_path=$athena_variant | |
10715 else | |
10716 echo "$ac_t""no" 1>&6 | |
10717 fi | |
10718 | |
10719 else | |
10720 echo "$ac_t""no" 1>&6 | |
10721 fi | |
10722 | |
10723 fi | |
10724 | |
10725 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then | |
10726 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` | |
10727 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 | |
10728 echo "configure:10729: checking for X11/Xaw3d/XawInit.h" >&5 | |
10729 | |
10730 cat > conftest.$ac_ext <<EOF | |
10731 #line 10732 "configure" | |
10732 #include "confdefs.h" | |
10733 #include <X11/Xaw3d/XawInit.h> | |
10734 EOF | |
10735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10736 { (eval echo configure:10737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10738 if test -z "$ac_err"; then | |
10739 rm -rf conftest* | |
10740 eval "ac_cv_header_$ac_safe=yes" | |
10741 else | |
10742 echo "$ac_err" >&5 | |
10743 echo "configure: failed program was:" >&5 | |
10744 cat conftest.$ac_ext >&5 | |
10745 rm -rf conftest* | |
10746 eval "ac_cv_header_$ac_safe=no" | |
10747 fi | |
10748 rm -f conftest* | |
10749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10750 echo "$ac_t""yes" 1>&6 | |
10751 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` | |
10752 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 | |
10753 echo "configure:10754: checking for X11/Xaw3d/ThreeD.h" >&5 | |
10754 | |
10755 cat > conftest.$ac_ext <<EOF | |
10756 #line 10757 "configure" | |
10757 #include "confdefs.h" | |
10758 #include <X11/Xaw3d/ThreeD.h> | |
10759 EOF | |
10760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10761 { (eval echo configure:10762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10763 if test -z "$ac_err"; then | |
10764 rm -rf conftest* | |
10765 eval "ac_cv_header_$ac_safe=yes" | |
10766 else | |
10767 echo "$ac_err" >&5 | |
10768 echo "configure: failed program was:" >&5 | |
10769 cat conftest.$ac_ext >&5 | |
10770 rm -rf conftest* | |
10771 eval "ac_cv_header_$ac_safe=no" | |
10772 fi | |
10773 rm -f conftest* | |
10774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10775 echo "$ac_t""yes" 1>&6 | |
10776 | |
10777 echo "configure: warning: Assuming that X11/Xaw3d headers are suitable for $athena_variant." 1>&2 | |
10778 athena_h_path=X11/Xaw3d | |
10779 | |
10780 else | |
10781 echo "$ac_t""no" 1>&6 | |
10782 fi | |
10783 | |
10784 else | |
10785 echo "$ac_t""no" 1>&6 | |
10786 fi | |
10787 | |
10788 fi | |
10789 | |
10790 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then | |
10791 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` | |
10792 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 | |
10793 echo "configure:10794: checking for Xaw3d/XawInit.h" >&5 | |
10794 | |
10795 cat > conftest.$ac_ext <<EOF | |
10796 #line 10797 "configure" | |
10797 #include "confdefs.h" | |
10798 #include <Xaw3d/XawInit.h> | |
10799 EOF | |
10800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10801 { (eval echo configure:10802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10803 if test -z "$ac_err"; then | |
10804 rm -rf conftest* | |
10805 eval "ac_cv_header_$ac_safe=yes" | |
10806 else | |
10807 echo "$ac_err" >&5 | |
10808 echo "configure: failed program was:" >&5 | |
10809 cat conftest.$ac_ext >&5 | |
10810 rm -rf conftest* | |
10811 eval "ac_cv_header_$ac_safe=no" | |
10812 fi | |
10813 rm -f conftest* | |
10814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10815 echo "$ac_t""yes" 1>&6 | |
10816 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` | |
10817 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 | |
10818 echo "configure:10819: checking for Xaw3d/ThreeD.h" >&5 | |
10819 | |
10820 cat > conftest.$ac_ext <<EOF | |
10821 #line 10822 "configure" | |
10822 #include "confdefs.h" | |
10823 #include <Xaw3d/ThreeD.h> | |
10824 EOF | |
10825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10826 { (eval echo configure:10827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10828 if test -z "$ac_err"; then | |
10829 rm -rf conftest* | |
10830 eval "ac_cv_header_$ac_safe=yes" | |
10831 else | |
10832 echo "$ac_err" >&5 | |
10833 echo "configure: failed program was:" >&5 | |
10834 cat conftest.$ac_ext >&5 | |
10835 rm -rf conftest* | |
10836 eval "ac_cv_header_$ac_safe=no" | |
10837 fi | |
10838 rm -f conftest* | |
10839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10840 echo "$ac_t""yes" 1>&6 | |
10841 | |
10842 echo "configure: warning: Assuming that Xaw3d headers are suitable for $athena_variant." 1>&2 | |
10843 athena_h_path=Xaw3d | |
10844 | |
10845 else | |
10846 echo "$ac_t""no" 1>&6 | |
10847 fi | |
10848 | |
10849 else | |
10850 echo "$ac_t""no" 1>&6 | |
10851 fi | |
10852 | |
10853 fi | |
10854 | |
10855 if test -z "$athena_h_path"; then | |
10856 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` | |
10857 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 | |
10858 echo "configure:10859: checking for X11/Xaw/ThreeD.h" >&5 | |
10859 | |
10860 cat > conftest.$ac_ext <<EOF | |
10861 #line 10862 "configure" | |
10862 #include "confdefs.h" | |
10863 #include <X11/Xaw/ThreeD.h> | |
10864 EOF | |
10865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10866 { (eval echo configure:10867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10868 if test -z "$ac_err"; then | |
10869 rm -rf conftest* | |
10870 eval "ac_cv_header_$ac_safe=yes" | |
10871 else | |
10872 echo "$ac_err" >&5 | |
10873 echo "configure: failed program was:" >&5 | |
10874 cat conftest.$ac_ext >&5 | |
10875 rm -rf conftest* | |
10876 eval "ac_cv_header_$ac_safe=no" | |
10877 fi | |
10878 rm -f conftest* | |
10879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10880 echo "$ac_t""yes" 1>&6 | |
10881 | |
10882 echo "configure: warning: Assuming that X11/Xaw headers are suitable for $athena_variant." 1>&2 | |
10883 athena_h_path=X11/Xaw | |
10884 | |
10885 else | |
10886 echo "$ac_t""no" 1>&6 | |
10887 echo "configure: warning: Could not find a suitable 3d Athena header set." 1>&2 | |
10888 fi | |
10889 | |
10890 fi | |
10891 fi | |
10892 | |
10893 if test -n "$athena_lib" -a -n "$athena_h_path"; then | |
10894 have_xaw=yes | |
10895 else | |
10896 have_xaw=no | |
10897 fi | |
10898 | |
10899 else | |
10900 have_xaw=no | |
10901 fi | |
10902 if test "$with_x11" = "yes"; then | |
10903 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` | |
10904 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 | |
10905 echo "configure:10906: checking for Xm/Xm.h" >&5 | |
10906 | |
10907 cat > conftest.$ac_ext <<EOF | |
10908 #line 10909 "configure" | |
10909 #include "confdefs.h" | |
10910 #include <Xm/Xm.h> | |
10911 EOF | |
10912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10913 { (eval echo configure:10914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10915 if test -z "$ac_err"; then | |
10916 rm -rf conftest* | |
10917 eval "ac_cv_header_$ac_safe=yes" | |
10918 else | |
10919 echo "$ac_err" >&5 | |
10920 echo "configure: failed program was:" >&5 | |
10921 cat conftest.$ac_ext >&5 | |
10922 rm -rf conftest* | |
10923 eval "ac_cv_header_$ac_safe=no" | |
10924 fi | |
10925 rm -f conftest* | |
10926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10927 echo "$ac_t""yes" 1>&6 | |
10928 | |
10929 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 | |
10930 echo "configure:10931: checking for XmStringFree in -lXm" >&5 | |
10931 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` | |
10932 | |
10933 xe_check_libs=" -lXm " | |
10934 cat > conftest.$ac_ext <<EOF | |
10935 #line 10936 "configure" | |
10936 #include "confdefs.h" | |
10937 /* Override any gcc2 internal prototype to avoid an error. */ | |
10938 /* We use char because int might match the return type of a gcc2 | |
10939 builtin and then its argument prototype would still apply. */ | |
10940 char XmStringFree(); | |
10941 | |
10942 int main() { | |
10943 XmStringFree() | |
10944 ; return 0; } | |
10945 EOF | |
10946 if { (eval echo configure:10947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10947 rm -rf conftest* | |
10948 eval "ac_cv_lib_$ac_lib_var=yes" | |
10949 else | |
10950 echo "configure: failed program was:" >&5 | |
10951 cat conftest.$ac_ext >&5 | |
10952 rm -rf conftest* | |
10953 eval "ac_cv_lib_$ac_lib_var=no" | |
10954 fi | |
10955 rm -f conftest* | |
10956 xe_check_libs="" | |
10957 | |
10958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
10959 echo "$ac_t""yes" 1>&6 | |
10960 have_motif=yes | |
10961 else | |
10962 echo "$ac_t""no" 1>&6 | |
10963 have_motif=no | |
10964 fi | |
10965 | |
10966 | |
10967 else | |
10968 echo "$ac_t""no" 1>&6 | |
10969 have_motif=no | |
10970 fi | |
10971 | |
10972 | |
10973 if test "$have_motif" = "yes"; then | |
10974 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 | |
10975 echo "configure:10976: checking for Lesstif" >&5 | |
10976 cat > conftest.$ac_ext <<EOF | |
10977 #line 10978 "configure" | |
10978 #include "confdefs.h" | |
10979 #include <Xm/Xm.h> | |
10980 #ifdef LESSTIF_VERSION | |
10981 yes | |
10982 #endif | |
10983 | |
10984 EOF | |
10985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
10986 egrep "yes" >/dev/null 2>&1; then | |
10987 rm -rf conftest* | |
10988 have_lesstif=yes | |
10989 else | |
10990 rm -rf conftest* | |
10991 have_lesstif=no | |
10992 fi | |
10993 rm -f conftest* | |
10994 | |
10995 echo "$ac_t""$have_lesstif" 1>&6 | |
10996 fi | |
10997 | |
10998 fi | |
10999 | |
11000 case "$with_menubars" in "" | "yes" | "athena" ) | |
11001 with_menubars="lucid" ;; | |
11002 esac | |
11003 case "$with_dialogs" in "" | "yes" | "lucid" ) | |
11004 if test "$have_motif" = "yes"; then with_dialogs="motif" | |
11005 elif test "$have_xaw" = "yes"; then with_dialogs="athena" | |
11006 elif test "$with_msw" = "yes"; then with_dialogs="msw" | |
11007 else with_dialogs=no | |
11008 fi ;; | |
11009 esac | |
11010 case "$with_scrollbars" in "" | "yes" ) | |
11011 with_scrollbars="lucid" ;; | |
11012 esac | |
11013 case "$with_widgets" in "" | "yes" | "lucid") | |
11014 if test "$have_motif" = "yes"; then with_widgets="motif" | |
11015 elif test "$have_xaw" = "yes"; then with_widgets="athena" | |
11016 elif test "$with_msw" = "yes"; then with_widgets="msw" | |
11017 else with_widgets=no | |
11018 fi ;; | |
11019 esac | |
11020 | |
11021 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets" | |
11022 | |
11023 case "$all_widgets" in | |
11024 *athena* ) | |
11025 if test "$have_xaw" != "yes"; then | |
11026 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; } | |
11027 fi | |
11028 | |
11029 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi | |
11030 | |
11031 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi | |
11032 | |
11033 { test "$extra_verbose" = "yes" && cat << EOF | |
11034 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h" | |
11035 EOF | |
11036 cat >> confdefs.h <<EOF | |
11037 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h" | |
11038 EOF | |
11039 } | |
11040 | |
11041 { test "$extra_verbose" = "yes" && cat << EOF | |
11042 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h" | |
11043 EOF | |
11044 cat >> confdefs.h <<EOF | |
11045 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h" | |
11046 EOF | |
11047 } | |
11048 | |
11049 { test "$extra_verbose" = "yes" && cat << EOF | |
11050 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h" | |
11051 EOF | |
11052 cat >> confdefs.h <<EOF | |
11053 #define ATHENA_Form_h_ "$athena_h_path/Form.h" | |
11054 EOF | |
11055 } | |
11056 | |
11057 { test "$extra_verbose" = "yes" && cat << EOF | |
11058 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h" | |
11059 EOF | |
11060 cat >> confdefs.h <<EOF | |
11061 #define ATHENA_Command_h_ "$athena_h_path/Command.h" | |
11062 EOF | |
11063 } | |
11064 | |
11065 { test "$extra_verbose" = "yes" && cat << EOF | |
11066 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h" | |
11067 EOF | |
11068 cat >> confdefs.h <<EOF | |
11069 #define ATHENA_Label_h_ "$athena_h_path/Label.h" | |
11070 EOF | |
11071 } | |
11072 | |
11073 { test "$extra_verbose" = "yes" && cat << EOF | |
11074 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h" | |
11075 EOF | |
11076 cat >> confdefs.h <<EOF | |
11077 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h" | |
11078 EOF | |
11079 } | |
11080 | |
11081 { test "$extra_verbose" = "yes" && cat << EOF | |
11082 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h" | |
11083 EOF | |
11084 cat >> confdefs.h <<EOF | |
11085 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h" | |
11086 EOF | |
11087 } | |
11088 | |
11089 { test "$extra_verbose" = "yes" && cat << EOF | |
11090 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h" | |
11091 EOF | |
11092 cat >> confdefs.h <<EOF | |
11093 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h" | |
11094 EOF | |
11095 } | |
11096 | |
11097 { test "$extra_verbose" = "yes" && cat << EOF | |
11098 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h" | |
11099 EOF | |
11100 cat >> confdefs.h <<EOF | |
11101 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h" | |
11102 EOF | |
11103 } | |
11104 | |
11105 { test "$extra_verbose" = "yes" && cat << EOF | |
11106 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h" | |
11107 EOF | |
11108 cat >> confdefs.h <<EOF | |
11109 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h" | |
11110 EOF | |
11111 } | |
11112 | |
11113 | |
11114 { test "$extra_verbose" = "yes" && cat << \EOF | |
11115 Defining LWLIB_USES_ATHENA | |
11116 EOF | |
11117 cat >> confdefs.h <<\EOF | |
11118 #define LWLIB_USES_ATHENA 1 | |
11119 EOF | |
11120 } | |
11121 | |
11122 { test "$extra_verbose" = "yes" && cat << \EOF | |
11123 Defining NEED_ATHENA | |
11124 EOF | |
11125 cat >> confdefs.h <<\EOF | |
11126 #define NEED_ATHENA 1 | |
11127 EOF | |
11128 } | |
11129 | |
11130 need_athena="yes" | |
11131 | |
11132 if test "$athena_3d" = "yes"; then | |
11133 { test "$extra_verbose" = "yes" && cat << \EOF | |
11134 Defining HAVE_ATHENA_3D | |
11135 EOF | |
11136 cat >> confdefs.h <<\EOF | |
11137 #define HAVE_ATHENA_3D 1 | |
11138 EOF | |
11139 } | |
11140 | |
11141 fi | |
11142 ;; | |
11143 esac | |
11144 | |
11145 case "$all_widgets" in *motif* ) | |
11146 { test "$extra_verbose" = "yes" && cat << \EOF | |
11147 Defining LWLIB_USES_MOTIF | |
11148 EOF | |
11149 cat >> confdefs.h <<\EOF | |
11150 #define LWLIB_USES_MOTIF 1 | |
11151 EOF | |
11152 } | |
11153 | |
11154 { test "$extra_verbose" = "yes" && cat << \EOF | |
11155 Defining NEED_MOTIF | |
11156 EOF | |
11157 cat >> confdefs.h <<\EOF | |
11158 #define NEED_MOTIF 1 | |
11159 EOF | |
11160 } | |
11161 | |
11162 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi | |
11163 need_motif=yes ;; | |
11164 esac | |
11165 | |
11166 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi | |
11167 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi | |
11168 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi | |
11169 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \ | |
11170 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi | |
11171 case "$with_widgets" in athena* ) | |
11172 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;; | |
11173 esac | |
11174 case "$all_widgets" in *lucid* ) | |
11175 { test "$extra_verbose" = "yes" && cat << \EOF | |
11176 Defining NEED_LUCID | |
11177 EOF | |
11178 cat >> confdefs.h <<\EOF | |
11179 #define NEED_LUCID 1 | |
11180 EOF | |
11181 } | |
11182 | |
11183 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;; | |
11184 esac | |
11185 | |
11186 | |
11187 | |
11188 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11189 Defining LWLIB_SCROLLBARS_ATHENA | |
11190 EOF | |
11191 cat >> confdefs.h <<\EOF | |
11192 #define LWLIB_SCROLLBARS_ATHENA 1 | |
11193 EOF | |
11194 } | |
11195 | |
11196 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11197 Defining LWLIB_DIALOGS_ATHENA | |
11198 EOF | |
11199 cat >> confdefs.h <<\EOF | |
11200 #define LWLIB_DIALOGS_ATHENA 1 | |
11201 EOF | |
11202 } | |
11203 | |
11204 | |
11205 if test "$athena_3d" = "yes"; then | |
11206 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11207 Defining LWLIB_SCROLLBARS_ATHENA3D | |
11208 EOF | |
11209 cat >> confdefs.h <<\EOF | |
11210 #define LWLIB_SCROLLBARS_ATHENA3D 1 | |
11211 EOF | |
11212 } | |
11213 | |
11214 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11215 Defining LWLIB_DIALOGS_ATHENA3D | |
11216 EOF | |
11217 cat >> confdefs.h <<\EOF | |
11218 #define LWLIB_DIALOGS_ATHENA3D 1 | |
11219 EOF | |
11220 } | |
11221 | |
11222 fi | |
11223 | |
11224 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF | |
11225 Defining LWLIB_WIDGETS_ATHENA | |
11226 EOF | |
11227 cat >> confdefs.h <<\EOF | |
11228 #define LWLIB_WIDGETS_ATHENA 1 | |
11229 EOF | |
11230 } | |
11231 ;; esac | |
11232 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \ | |
11233 { test "$extra_verbose" = "yes" && cat << \EOF | |
11234 Defining LWLIB_TABS_LUCID | |
11235 EOF | |
11236 cat >> confdefs.h <<\EOF | |
11237 #define LWLIB_TABS_LUCID 1 | |
11238 EOF | |
11239 } | |
11240 | |
11241 | |
11242 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11243 Defining HAVE_MENUBARS | |
11244 EOF | |
11245 cat >> confdefs.h <<\EOF | |
11246 #define HAVE_MENUBARS 1 | |
11247 EOF | |
11248 } | |
11249 | |
11250 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11251 Defining HAVE_SCROLLBARS | |
11252 EOF | |
11253 cat >> confdefs.h <<\EOF | |
11254 #define HAVE_SCROLLBARS 1 | |
11255 EOF | |
11256 } | |
11257 | |
11258 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11259 Defining HAVE_DIALOGS | |
11260 EOF | |
11261 cat >> confdefs.h <<\EOF | |
11262 #define HAVE_DIALOGS 1 | |
11263 EOF | |
11264 } | |
11265 | |
11266 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11267 Defining HAVE_TOOLBARS | |
11268 EOF | |
11269 cat >> confdefs.h <<\EOF | |
11270 #define HAVE_TOOLBARS 1 | |
11271 EOF | |
11272 } | |
11273 | |
11274 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11275 Defining HAVE_WIDGETS | |
11276 EOF | |
11277 cat >> confdefs.h <<\EOF | |
11278 #define HAVE_WIDGETS 1 | |
11279 EOF | |
11280 } | |
11281 | |
11282 | |
11283 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11284 Defining LWLIB_MENUBARS_LUCID | |
11285 EOF | |
11286 cat >> confdefs.h <<\EOF | |
11287 #define LWLIB_MENUBARS_LUCID 1 | |
11288 EOF | |
11289 } | |
11290 | |
11291 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11292 Defining LWLIB_SCROLLBARS_LUCID | |
11293 EOF | |
11294 cat >> confdefs.h <<\EOF | |
11295 #define LWLIB_SCROLLBARS_LUCID 1 | |
11296 EOF | |
11297 } | |
11298 | |
11299 | |
11300 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11301 Defining LWLIB_MENUBARS_MOTIF | |
11302 EOF | |
11303 cat >> confdefs.h <<\EOF | |
11304 #define LWLIB_MENUBARS_MOTIF 1 | |
11305 EOF | |
11306 } | |
11307 | |
11308 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11309 Defining LWLIB_SCROLLBARS_MOTIF | |
11310 EOF | |
11311 cat >> confdefs.h <<\EOF | |
11312 #define LWLIB_SCROLLBARS_MOTIF 1 | |
11313 EOF | |
11314 } | |
11315 | |
11316 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11317 Defining LWLIB_DIALOGS_MOTIF | |
11318 EOF | |
11319 cat >> confdefs.h <<\EOF | |
11320 #define LWLIB_DIALOGS_MOTIF 1 | |
11321 EOF | |
11322 } | |
11323 | |
11324 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF | |
11325 Defining LWLIB_WIDGETS_MOTIF | |
11326 EOF | |
11327 cat >> confdefs.h <<\EOF | |
11328 #define LWLIB_WIDGETS_MOTIF 1 | |
11329 EOF | |
11330 } | |
11331 | |
11332 | |
11333 | |
11334 test -z "$with_mule" && with_mule=no | |
11335 | |
11336 | |
11337 if test "$with_default_eol_detection" = "yes"; then | |
11338 { test "$extra_verbose" = "yes" && cat << \EOF | |
11339 Defining HAVE_DEFAULT_EOL_DETECTION | |
11340 EOF | |
11341 cat >> confdefs.h <<\EOF | |
11342 #define HAVE_DEFAULT_EOL_DETECTION 1 | |
11343 EOF | |
11344 } | |
11345 | |
11346 fi | |
11347 | |
11348 if test "$with_mule" = "yes" ; then | |
11349 echo "checking for Mule-related features" 1>&6 | |
11350 echo "configure:11351: checking for Mule-related features" >&5 | |
11351 { test "$extra_verbose" = "yes" && cat << \EOF | |
11352 Defining MULE | |
11353 EOF | |
11354 cat >> confdefs.h <<\EOF | |
11355 #define MULE 1 | |
11356 EOF | |
11357 } | |
11358 | |
11359 | |
11360 for ac_hdr in libintl.h | |
11361 do | |
11362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
11364 echo "configure:11365: checking for $ac_hdr" >&5 | |
11365 | |
11366 cat > conftest.$ac_ext <<EOF | |
11367 #line 11368 "configure" | |
11368 #include "confdefs.h" | |
11369 #include <$ac_hdr> | |
11370 EOF | |
11371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11372 { (eval echo configure:11373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11374 if test -z "$ac_err"; then | |
11375 rm -rf conftest* | |
11376 eval "ac_cv_header_$ac_safe=yes" | |
11377 else | |
11378 echo "$ac_err" >&5 | |
11379 echo "configure: failed program was:" >&5 | |
11380 cat conftest.$ac_ext >&5 | |
11381 rm -rf conftest* | |
11382 eval "ac_cv_header_$ac_safe=no" | |
11383 fi | |
11384 rm -f conftest* | |
11385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11386 echo "$ac_t""yes" 1>&6 | |
11387 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11388 { test "$extra_verbose" = "yes" && cat << EOF | |
11389 Defining $ac_tr_hdr | |
11390 EOF | |
11391 cat >> confdefs.h <<EOF | |
11392 #define $ac_tr_hdr 1 | |
11393 EOF | |
11394 } | |
11395 | |
11396 else | |
11397 echo "$ac_t""no" 1>&6 | |
11398 fi | |
11399 done | |
11400 | |
11401 | |
11402 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 | |
11403 echo "configure:11404: checking for strerror in -lintl" >&5 | |
11404 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` | |
11405 | |
11406 xe_check_libs=" -lintl " | |
11407 cat > conftest.$ac_ext <<EOF | |
11408 #line 11409 "configure" | |
11409 #include "confdefs.h" | |
11410 /* Override any gcc2 internal prototype to avoid an error. */ | |
11411 /* We use char because int might match the return type of a gcc2 | |
11412 builtin and then its argument prototype would still apply. */ | |
11413 char strerror(); | |
11414 | |
11415 int main() { | |
11416 strerror() | |
11417 ; return 0; } | |
11418 EOF | |
11419 if { (eval echo configure:11420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11420 rm -rf conftest* | |
11421 eval "ac_cv_lib_$ac_lib_var=yes" | |
11422 else | |
11423 echo "configure: failed program was:" >&5 | |
11424 cat conftest.$ac_ext >&5 | |
11425 rm -rf conftest* | |
11426 eval "ac_cv_lib_$ac_lib_var=no" | |
11427 fi | |
11428 rm -f conftest* | |
11429 xe_check_libs="" | |
11430 | |
11431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
11432 echo "$ac_t""yes" 1>&6 | |
11433 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
11434 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
11435 { test "$extra_verbose" = "yes" && cat << EOF | |
11436 Defining $ac_tr_lib | |
11437 EOF | |
11438 cat >> confdefs.h <<EOF | |
11439 #define $ac_tr_lib 1 | |
11440 EOF | |
11441 } | |
11442 | |
11443 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi | |
11444 | |
11445 else | |
11446 echo "$ac_t""no" 1>&6 | |
11447 fi | |
11448 | |
11449 | |
11450 | |
11451 echo "checking for Mule input methods" 1>&6 | |
11452 echo "configure:11453: checking for Mule input methods" >&5 | |
11453 case "$with_xim" in "" | "yes" ) | |
11454 echo "checking for XIM" 1>&6 | |
11455 echo "configure:11456: checking for XIM" >&5 | |
11456 | |
11457 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 | |
11458 echo "configure:11459: checking for XOpenIM in -lX11" >&5 | |
11459 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` | |
11460 | |
11461 xe_check_libs=" -lX11 " | |
11462 cat > conftest.$ac_ext <<EOF | |
11463 #line 11464 "configure" | |
11464 #include "confdefs.h" | |
11465 /* Override any gcc2 internal prototype to avoid an error. */ | |
11466 /* We use char because int might match the return type of a gcc2 | |
11467 builtin and then its argument prototype would still apply. */ | |
11468 char XOpenIM(); | |
11469 | |
11470 int main() { | |
11471 XOpenIM() | |
11472 ; return 0; } | |
11473 EOF | |
11474 if { (eval echo configure:11475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11475 rm -rf conftest* | |
11476 eval "ac_cv_lib_$ac_lib_var=yes" | |
11477 else | |
11478 echo "configure: failed program was:" >&5 | |
11479 cat conftest.$ac_ext >&5 | |
11480 rm -rf conftest* | |
11481 eval "ac_cv_lib_$ac_lib_var=no" | |
11482 fi | |
11483 rm -f conftest* | |
11484 xe_check_libs="" | |
11485 | |
11486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
11487 echo "$ac_t""yes" 1>&6 | |
11488 with_xim=xlib | |
11489 else | |
11490 echo "$ac_t""no" 1>&6 | |
11491 with_xim=no | |
11492 fi | |
11493 | |
11494 | |
11495 if test "$have_motif $have_lesstif" = "yes no"; then | |
11496 | |
11497 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 | |
11498 echo "configure:11499: checking for XmImMbLookupString in -lXm" >&5 | |
11499 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` | |
11500 | |
11501 xe_check_libs=" -lXm " | |
11502 cat > conftest.$ac_ext <<EOF | |
11503 #line 11504 "configure" | |
11504 #include "confdefs.h" | |
11505 /* Override any gcc2 internal prototype to avoid an error. */ | |
11506 /* We use char because int might match the return type of a gcc2 | |
11507 builtin and then its argument prototype would still apply. */ | |
11508 char XmImMbLookupString(); | |
11509 | |
11510 int main() { | |
11511 XmImMbLookupString() | |
11512 ; return 0; } | |
11513 EOF | |
11514 if { (eval echo configure:11515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11515 rm -rf conftest* | |
11516 eval "ac_cv_lib_$ac_lib_var=yes" | |
11517 else | |
11518 echo "configure: failed program was:" >&5 | |
11519 cat conftest.$ac_ext >&5 | |
11520 rm -rf conftest* | |
11521 eval "ac_cv_lib_$ac_lib_var=no" | |
11522 fi | |
11523 rm -f conftest* | |
11524 xe_check_libs="" | |
11525 | |
11526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
11527 echo "$ac_t""yes" 1>&6 | |
11528 with_xim=motif | |
11529 else | |
11530 echo "$ac_t""no" 1>&6 | |
11531 fi | |
11532 | |
11533 | |
11534 fi ;; | |
11535 esac | |
11536 if test "$with_xim" != "no"; then | |
11537 { test "$extra_verbose" = "yes" && cat << \EOF | |
11538 Defining HAVE_XIM | |
11539 EOF | |
11540 cat >> confdefs.h <<\EOF | |
11541 #define HAVE_XIM 1 | |
11542 EOF | |
11543 } | |
11544 | |
11545 if test "$with_xim" = "xlib"; then | |
11546 { test "$extra_verbose" = "yes" && cat << \EOF | |
11547 Defining XIM_XLIB | |
11548 EOF | |
11549 cat >> confdefs.h <<\EOF | |
11550 #define XIM_XLIB 1 | |
11551 EOF | |
11552 } | |
11553 | |
11554 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then | |
11555 echo " xemacs will be linked with \"input-method-xlib.o\"" | |
11556 fi | |
11557 fi | |
11558 if test "$with_xim" = "motif"; then | |
11559 { test "$extra_verbose" = "yes" && cat << \EOF | |
11560 Defining XIM_MOTIF | |
11561 EOF | |
11562 cat >> confdefs.h <<\EOF | |
11563 #define XIM_MOTIF 1 | |
11564 EOF | |
11565 } | |
11566 | |
11567 need_motif=yes | |
11568 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then | |
11569 echo " xemacs will be linked with \"input-method-motif.o\"" | |
11570 fi | |
11571 fi | |
11572 if test "$with_xim" = "motif"; then | |
11573 with_xfs=no | |
11574 fi | |
11575 fi | |
11576 | |
11577 if test "$with_xfs" = "yes" ; then | |
11578 echo "checking for XFontSet" 1>&6 | |
11579 echo "configure:11580: checking for XFontSet" >&5 | |
11580 | |
11581 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 | |
11582 echo "configure:11583: checking for XmbDrawString in -lX11" >&5 | |
11583 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` | |
11584 | |
11585 xe_check_libs=" -lX11 " | |
11586 cat > conftest.$ac_ext <<EOF | |
11587 #line 11588 "configure" | |
11588 #include "confdefs.h" | |
11589 /* Override any gcc2 internal prototype to avoid an error. */ | |
11590 /* We use char because int might match the return type of a gcc2 | |
11591 builtin and then its argument prototype would still apply. */ | |
11592 char XmbDrawString(); | |
11593 | |
11594 int main() { | |
11595 XmbDrawString() | |
11596 ; return 0; } | |
11597 EOF | |
11598 if { (eval echo configure:11599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11599 rm -rf conftest* | |
11600 eval "ac_cv_lib_$ac_lib_var=yes" | |
11601 else | |
11602 echo "configure: failed program was:" >&5 | |
11603 cat conftest.$ac_ext >&5 | |
11604 rm -rf conftest* | |
11605 eval "ac_cv_lib_$ac_lib_var=no" | |
11606 fi | |
11607 rm -f conftest* | |
11608 xe_check_libs="" | |
11609 | |
11610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
11611 echo "$ac_t""yes" 1>&6 | |
11612 : | |
11613 else | |
11614 echo "$ac_t""no" 1>&6 | |
11615 with_xfs=no | |
11616 fi | |
11617 | |
11618 | |
11619 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then | |
11620 { test "$extra_verbose" = "yes" && cat << \EOF | |
11621 Defining USE_XFONTSET | |
11622 EOF | |
11623 cat >> confdefs.h <<\EOF | |
11624 #define USE_XFONTSET 1 | |
11625 EOF | |
11626 } | |
11627 | |
11628 if test "$with_xim" = "no" ; then | |
11629 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then | |
11630 echo " xemacs will be linked with \"input-method-xlib.o\"" | |
11631 fi | |
11632 fi | |
11633 fi | |
11634 fi | |
11635 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support | |
11636 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` | |
11637 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 | |
11638 echo "configure:11639: checking for wnn/jllib.h" >&5 | |
11639 | |
11640 cat > conftest.$ac_ext <<EOF | |
11641 #line 11642 "configure" | |
11642 #include "confdefs.h" | |
11643 #include <wnn/jllib.h> | |
11644 EOF | |
11645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11646 { (eval echo configure:11647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11648 if test -z "$ac_err"; then | |
11649 rm -rf conftest* | |
11650 eval "ac_cv_header_$ac_safe=yes" | |
11651 else | |
11652 echo "$ac_err" >&5 | |
11653 echo "configure: failed program was:" >&5 | |
11654 cat conftest.$ac_ext >&5 | |
11655 rm -rf conftest* | |
11656 eval "ac_cv_header_$ac_safe=no" | |
11657 fi | |
11658 rm -f conftest* | |
11659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11660 echo "$ac_t""yes" 1>&6 | |
11661 : | |
11662 else | |
11663 echo "$ac_t""no" 1>&6 | |
11664 with_wnn=no | |
11665 fi | |
11666 } | |
11667 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'` | |
11668 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6 | |
11669 echo "configure:11670: checking for wnn/commonhd.h" >&5 | |
11670 | |
11671 cat > conftest.$ac_ext <<EOF | |
11672 #line 11673 "configure" | |
11673 #include "confdefs.h" | |
11674 #include <wnn/commonhd.h> | |
11675 EOF | |
11676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11677 { (eval echo configure:11678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11679 if test -z "$ac_err"; then | |
11680 rm -rf conftest* | |
11681 eval "ac_cv_header_$ac_safe=yes" | |
11682 else | |
11683 echo "$ac_err" >&5 | |
11684 echo "configure: failed program was:" >&5 | |
11685 cat conftest.$ac_ext >&5 | |
11686 rm -rf conftest* | |
11687 eval "ac_cv_header_$ac_safe=no" | |
11688 fi | |
11689 rm -f conftest* | |
11690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11691 echo "$ac_t""yes" 1>&6 | |
11692 : | |
11693 else | |
11694 echo "$ac_t""no" 1>&6 | |
11695 with_wnn=no | |
11696 fi | |
11697 } | |
11698 if test "$with_wnn" != "no"; then | |
11699 for ac_func in crypt | |
11700 do | |
11701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
11702 echo "configure:11703: checking for $ac_func" >&5 | |
11703 | |
11704 cat > conftest.$ac_ext <<EOF | |
11705 #line 11706 "configure" | |
11706 #include "confdefs.h" | |
11707 /* System header to define __stub macros and hopefully few prototypes, | |
11708 which can conflict with char $ac_func(); below. */ | |
11709 #include <assert.h> | |
11710 /* Override any gcc2 internal prototype to avoid an error. */ | |
11711 /* We use char because int might match the return type of a gcc2 | |
11712 builtin and then its argument prototype would still apply. */ | |
11713 char $ac_func(); | |
11714 | |
11715 int main() { | |
11716 | |
11717 /* The GNU C library defines this for functions which it implements | |
11718 to always fail with ENOSYS. Some functions are actually named | |
11719 something starting with __ and the normal name is an alias. */ | |
11720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11721 choke me | |
11722 #else | |
11723 $ac_func(); | |
11724 #endif | |
11725 | |
11726 ; return 0; } | |
11727 EOF | |
11728 if { (eval echo configure:11729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11729 rm -rf conftest* | |
11730 eval "ac_cv_func_$ac_func=yes" | |
11731 else | |
11732 echo "configure: failed program was:" >&5 | |
11733 cat conftest.$ac_ext >&5 | |
11734 rm -rf conftest* | |
11735 eval "ac_cv_func_$ac_func=no" | |
11736 fi | |
11737 rm -f conftest* | |
11738 | |
11739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11740 echo "$ac_t""yes" 1>&6 | |
11741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11742 { test "$extra_verbose" = "yes" && cat << EOF | |
11743 Defining $ac_tr_func | |
11744 EOF | |
11745 cat >> confdefs.h <<EOF | |
11746 #define $ac_tr_func 1 | |
11747 EOF | |
11748 } | |
11749 | |
11750 else | |
11751 echo "$ac_t""no" 1>&6 | |
11752 fi | |
11753 done | |
11754 | |
11755 test "$ac_cv_func_crypt" != "yes" && { | |
11756 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 | |
11757 echo "configure:11758: checking for crypt in -lcrypt" >&5 | |
11758 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` | |
11759 | |
11760 xe_check_libs=" -lcrypt " | |
11761 cat > conftest.$ac_ext <<EOF | |
11762 #line 11763 "configure" | |
11763 #include "confdefs.h" | |
11764 /* Override any gcc2 internal prototype to avoid an error. */ | |
11765 /* We use char because int might match the return type of a gcc2 | |
11766 builtin and then its argument prototype would still apply. */ | |
11767 char crypt(); | |
11768 | |
11769 int main() { | |
11770 crypt() | |
11771 ; return 0; } | |
11772 EOF | |
11773 if { (eval echo configure:11774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11774 rm -rf conftest* | |
11775 eval "ac_cv_lib_$ac_lib_var=yes" | |
11776 else | |
11777 echo "configure: failed program was:" >&5 | |
11778 cat conftest.$ac_ext >&5 | |
11779 rm -rf conftest* | |
11780 eval "ac_cv_lib_$ac_lib_var=no" | |
11781 fi | |
11782 rm -f conftest* | |
11783 xe_check_libs="" | |
11784 | |
11785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
11786 echo "$ac_t""yes" 1>&6 | |
11787 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
11788 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
11789 { test "$extra_verbose" = "yes" && cat << EOF | |
11790 Defining $ac_tr_lib | |
11791 EOF | |
11792 cat >> confdefs.h <<EOF | |
11793 #define $ac_tr_lib 1 | |
11794 EOF | |
11795 } | |
11796 | |
11797 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi | |
11798 | |
11799 else | |
11800 echo "$ac_t""no" 1>&6 | |
11801 fi | |
11802 | |
11803 } | |
11804 fi | |
11805 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then | |
11806 | |
11807 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 | |
11808 echo "configure:11809: checking for jl_dic_list_e in -lwnn" >&5 | |
11809 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` | |
11810 | |
11811 xe_check_libs=" -lwnn " | |
11812 cat > conftest.$ac_ext <<EOF | |
11813 #line 11814 "configure" | |
11814 #include "confdefs.h" | |
11815 /* Override any gcc2 internal prototype to avoid an error. */ | |
11816 /* We use char because int might match the return type of a gcc2 | |
11817 builtin and then its argument prototype would still apply. */ | |
11818 char jl_dic_list_e(); | |
11819 | |
11820 int main() { | |
11821 jl_dic_list_e() | |
11822 ; return 0; } | |
11823 EOF | |
11824 if { (eval echo configure:11825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11825 rm -rf conftest* | |
11826 eval "ac_cv_lib_$ac_lib_var=yes" | |
11827 else | |
11828 echo "configure: failed program was:" >&5 | |
11829 cat conftest.$ac_ext >&5 | |
11830 rm -rf conftest* | |
11831 eval "ac_cv_lib_$ac_lib_var=no" | |
11832 fi | |
11833 rm -f conftest* | |
11834 xe_check_libs="" | |
11835 | |
11836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
11837 echo "$ac_t""yes" 1>&6 | |
11838 libwnn=wnn | |
11839 else | |
11840 echo "$ac_t""no" 1>&6 | |
11841 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 | |
11842 echo "configure:11843: checking for jl_dic_list_e in -lwnn4" >&5 | |
11843 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` | |
11844 | |
11845 xe_check_libs=" -lwnn4 " | |
11846 cat > conftest.$ac_ext <<EOF | |
11847 #line 11848 "configure" | |
11848 #include "confdefs.h" | |
11849 /* Override any gcc2 internal prototype to avoid an error. */ | |
11850 /* We use char because int might match the return type of a gcc2 | |
11851 builtin and then its argument prototype would still apply. */ | |
11852 char jl_dic_list_e(); | |
11853 | |
11854 int main() { | |
11855 jl_dic_list_e() | |
11856 ; return 0; } | |
11857 EOF | |
11858 if { (eval echo configure:11859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11859 rm -rf conftest* | |
11860 eval "ac_cv_lib_$ac_lib_var=yes" | |
11861 else | |
11862 echo "configure: failed program was:" >&5 | |
11863 cat conftest.$ac_ext >&5 | |
11864 rm -rf conftest* | |
11865 eval "ac_cv_lib_$ac_lib_var=no" | |
11866 fi | |
11867 rm -f conftest* | |
11868 xe_check_libs="" | |
11869 | |
11870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
11871 echo "$ac_t""yes" 1>&6 | |
11872 libwnn=wnn4 | |
11873 else | |
11874 echo "$ac_t""no" 1>&6 | |
11875 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 | |
11876 echo "configure:11877: checking for jl_dic_list_e in -lwnn6" >&5 | |
11877 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` | |
11878 | |
11879 xe_check_libs=" -lwnn6 " | |
11880 cat > conftest.$ac_ext <<EOF | |
11881 #line 11882 "configure" | |
11882 #include "confdefs.h" | |
11883 /* Override any gcc2 internal prototype to avoid an error. */ | |
11884 /* We use char because int might match the return type of a gcc2 | |
11885 builtin and then its argument prototype would still apply. */ | |
11886 char jl_dic_list_e(); | |
11887 | |
11888 int main() { | |
11889 jl_dic_list_e() | |
11890 ; return 0; } | |
11891 EOF | |
11892 if { (eval echo configure:11893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11893 rm -rf conftest* | |
11894 eval "ac_cv_lib_$ac_lib_var=yes" | |
11895 else | |
11896 echo "configure: failed program was:" >&5 | |
11897 cat conftest.$ac_ext >&5 | |
11898 rm -rf conftest* | |
11899 eval "ac_cv_lib_$ac_lib_var=no" | |
11900 fi | |
11901 rm -f conftest* | |
11902 xe_check_libs="" | |
11903 | |
11904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
11905 echo "$ac_t""yes" 1>&6 | |
11906 libwnn=wnn6 | |
11907 else | |
11908 echo "$ac_t""no" 1>&6 | |
11909 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 | |
11910 echo "configure:11911: checking for dic_list_e in -lwnn6_fromsrc" >&5 | |
11911 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` | |
11912 | |
11913 xe_check_libs=" -lwnn6_fromsrc " | |
11914 cat > conftest.$ac_ext <<EOF | |
11915 #line 11916 "configure" | |
11916 #include "confdefs.h" | |
11917 /* Override any gcc2 internal prototype to avoid an error. */ | |
11918 /* We use char because int might match the return type of a gcc2 | |
11919 builtin and then its argument prototype would still apply. */ | |
11920 char dic_list_e(); | |
11921 | |
11922 int main() { | |
11923 dic_list_e() | |
11924 ; return 0; } | |
11925 EOF | |
11926 if { (eval echo configure:11927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11927 rm -rf conftest* | |
11928 eval "ac_cv_lib_$ac_lib_var=yes" | |
11929 else | |
11930 echo "configure: failed program was:" >&5 | |
11931 cat conftest.$ac_ext >&5 | |
11932 rm -rf conftest* | |
11933 eval "ac_cv_lib_$ac_lib_var=no" | |
11934 fi | |
11935 rm -f conftest* | |
11936 xe_check_libs="" | |
11937 | |
11938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
11939 echo "$ac_t""yes" 1>&6 | |
11940 libwnn=wnn6_fromsrc | |
11941 else | |
11942 echo "$ac_t""no" 1>&6 | |
11943 with_wnn=no | |
11944 fi | |
11945 | |
11946 | |
11947 fi | |
11948 | |
11949 | |
11950 fi | |
11951 | |
11952 | |
11953 fi | |
11954 | |
11955 | |
11956 fi | |
11957 test -z "$with_wnn" && with_wnn=yes | |
11958 if test "$with_wnn" = "yes"; then | |
11959 { test "$extra_verbose" = "yes" && cat << \EOF | |
11960 Defining HAVE_WNN | |
11961 EOF | |
11962 cat >> confdefs.h <<\EOF | |
11963 #define HAVE_WNN 1 | |
11964 EOF | |
11965 } | |
11966 | |
11967 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi | |
11968 if test "$with_wnn6" != "no"; then | |
11969 | |
11970 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 | |
11971 echo "configure:11972: checking for jl_fi_dic_list in -l$libwnn" >&5 | |
11972 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` | |
11973 | |
11974 xe_check_libs=" -l$libwnn " | |
11975 cat > conftest.$ac_ext <<EOF | |
11976 #line 11977 "configure" | |
11977 #include "confdefs.h" | |
11978 /* Override any gcc2 internal prototype to avoid an error. */ | |
11979 /* We use char because int might match the return type of a gcc2 | |
11980 builtin and then its argument prototype would still apply. */ | |
11981 char jl_fi_dic_list(); | |
11982 | |
11983 int main() { | |
11984 jl_fi_dic_list() | |
11985 ; return 0; } | |
11986 EOF | |
11987 if { (eval echo configure:11988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11988 rm -rf conftest* | |
11989 eval "ac_cv_lib_$ac_lib_var=yes" | |
11990 else | |
11991 echo "configure: failed program was:" >&5 | |
11992 cat conftest.$ac_ext >&5 | |
11993 rm -rf conftest* | |
11994 eval "ac_cv_lib_$ac_lib_var=no" | |
11995 fi | |
11996 rm -f conftest* | |
11997 xe_check_libs="" | |
11998 | |
11999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
12000 echo "$ac_t""yes" 1>&6 | |
12001 with_wnn6=yes | |
12002 else | |
12003 echo "$ac_t""no" 1>&6 | |
12004 fi | |
12005 | |
12006 | |
12007 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
12008 Defining WNN6 | |
12009 EOF | |
12010 cat >> confdefs.h <<\EOF | |
12011 #define WNN6 1 | |
12012 EOF | |
12013 } | |
12014 | |
12015 fi | |
12016 fi | |
12017 | |
12018 canna_includes_found=no | |
12019 if test "$with_canna" != "no"; then | |
12020 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` | |
12021 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 | |
12022 echo "configure:12023: checking for canna/jrkanji.h" >&5 | |
12023 | |
12024 cat > conftest.$ac_ext <<EOF | |
12025 #line 12026 "configure" | |
12026 #include "confdefs.h" | |
12027 #include <canna/jrkanji.h> | |
12028 EOF | |
12029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12030 { (eval echo configure:12031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12032 if test -z "$ac_err"; then | |
12033 rm -rf conftest* | |
12034 eval "ac_cv_header_$ac_safe=yes" | |
12035 else | |
12036 echo "$ac_err" >&5 | |
12037 echo "configure: failed program was:" >&5 | |
12038 cat conftest.$ac_ext >&5 | |
12039 rm -rf conftest* | |
12040 eval "ac_cv_header_$ac_safe=no" | |
12041 fi | |
12042 rm -f conftest* | |
12043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12044 echo "$ac_t""yes" 1>&6 | |
12045 canna_includes_found=yes | |
12046 else | |
12047 echo "$ac_t""no" 1>&6 | |
12048 fi | |
12049 | |
12050 fi | |
12051 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \ | |
12052 -d "/usr/local/canna/include"; then | |
12053 save_c_switch_site="$c_switch_site" | |
12054 c_switch_site="$c_switch_site -I/usr/local/canna/include" | |
12055 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` | |
12056 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 | |
12057 echo "configure:12058: checking for canna/jrkanji.h" >&5 | |
12058 | |
12059 cat > conftest.$ac_ext <<EOF | |
12060 #line 12061 "configure" | |
12061 #include "confdefs.h" | |
12062 #include <canna/jrkanji.h> | |
12063 EOF | |
12064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12065 { (eval echo configure:12066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12067 if test -z "$ac_err"; then | |
12068 rm -rf conftest* | |
12069 eval "ac_cv_header_$ac_safe=yes" | |
12070 else | |
12071 echo "$ac_err" >&5 | |
12072 echo "configure: failed program was:" >&5 | |
12073 cat conftest.$ac_ext >&5 | |
12074 rm -rf conftest* | |
12075 eval "ac_cv_header_$ac_safe=no" | |
12076 fi | |
12077 rm -f conftest* | |
12078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12079 echo "$ac_t""yes" 1>&6 | |
12080 canna_includes_found=yes | |
12081 else | |
12082 echo "$ac_t""no" 1>&6 | |
12083 fi | |
12084 | |
12085 if test "$canna_includes_found" != "yes"; then | |
12086 c_switch_site="$save_c_switch_site" | |
12087 with_canna="no" | |
12088 fi | |
12089 fi | |
12090 | |
12091 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` | |
12092 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 | |
12093 echo "configure:12094: checking for canna/RK.h" >&5 | |
12094 | |
12095 cat > conftest.$ac_ext <<EOF | |
12096 #line 12097 "configure" | |
12097 #include "confdefs.h" | |
12098 #include <canna/RK.h> | |
12099 EOF | |
12100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12101 { (eval echo configure:12102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12103 if test -z "$ac_err"; then | |
12104 rm -rf conftest* | |
12105 eval "ac_cv_header_$ac_safe=yes" | |
12106 else | |
12107 echo "$ac_err" >&5 | |
12108 echo "configure: failed program was:" >&5 | |
12109 cat conftest.$ac_ext >&5 | |
12110 rm -rf conftest* | |
12111 eval "ac_cv_header_$ac_safe=no" | |
12112 fi | |
12113 rm -f conftest* | |
12114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12115 echo "$ac_t""yes" 1>&6 | |
12116 : | |
12117 else | |
12118 echo "$ac_t""no" 1>&6 | |
12119 with_canna=no | |
12120 fi | |
12121 } | |
12122 test -z "$with_canna" && { | |
12123 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 | |
12124 echo "configure:12125: checking for RkBgnBun in -lRKC" >&5 | |
12125 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` | |
12126 | |
12127 xe_check_libs=" -lRKC " | |
12128 cat > conftest.$ac_ext <<EOF | |
12129 #line 12130 "configure" | |
12130 #include "confdefs.h" | |
12131 /* Override any gcc2 internal prototype to avoid an error. */ | |
12132 /* We use char because int might match the return type of a gcc2 | |
12133 builtin and then its argument prototype would still apply. */ | |
12134 char RkBgnBun(); | |
12135 | |
12136 int main() { | |
12137 RkBgnBun() | |
12138 ; return 0; } | |
12139 EOF | |
12140 if { (eval echo configure:12141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12141 rm -rf conftest* | |
12142 eval "ac_cv_lib_$ac_lib_var=yes" | |
12143 else | |
12144 echo "configure: failed program was:" >&5 | |
12145 cat conftest.$ac_ext >&5 | |
12146 rm -rf conftest* | |
12147 eval "ac_cv_lib_$ac_lib_var=no" | |
12148 fi | |
12149 rm -f conftest* | |
12150 xe_check_libs="" | |
12151 | |
12152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
12153 echo "$ac_t""yes" 1>&6 | |
12154 : | |
12155 else | |
12156 echo "$ac_t""no" 1>&6 | |
12157 with_canna=no | |
12158 fi | |
12159 | |
12160 } | |
12161 test -z "$with_canna" && { | |
12162 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 | |
12163 echo "configure:12164: checking for jrKanjiControl in -lcanna" >&5 | |
12164 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` | |
12165 | |
12166 xe_check_libs=" -lcanna " | |
12167 cat > conftest.$ac_ext <<EOF | |
12168 #line 12169 "configure" | |
12169 #include "confdefs.h" | |
12170 /* Override any gcc2 internal prototype to avoid an error. */ | |
12171 /* We use char because int might match the return type of a gcc2 | |
12172 builtin and then its argument prototype would still apply. */ | |
12173 char jrKanjiControl(); | |
12174 | |
12175 int main() { | |
12176 jrKanjiControl() | |
12177 ; return 0; } | |
12178 EOF | |
12179 if { (eval echo configure:12180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12180 rm -rf conftest* | |
12181 eval "ac_cv_lib_$ac_lib_var=yes" | |
12182 else | |
12183 echo "configure: failed program was:" >&5 | |
12184 cat conftest.$ac_ext >&5 | |
12185 rm -rf conftest* | |
12186 eval "ac_cv_lib_$ac_lib_var=no" | |
12187 fi | |
12188 rm -f conftest* | |
12189 xe_check_libs="" | |
12190 | |
12191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
12192 echo "$ac_t""yes" 1>&6 | |
12193 : | |
12194 else | |
12195 echo "$ac_t""no" 1>&6 | |
12196 with_canna=no | |
12197 fi | |
12198 | |
12199 } | |
12200 test -z "$with_canna" && with_canna=yes | |
12201 if test "$with_canna" = "yes"; then | |
12202 { test "$extra_verbose" = "yes" && cat << \EOF | |
12203 Defining HAVE_CANNA | |
12204 EOF | |
12205 cat >> confdefs.h <<\EOF | |
12206 #define HAVE_CANNA 1 | |
12207 EOF | |
12208 } | |
12209 | |
12210 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi | |
12211 fi | |
12212 | |
12213 else for feature in xim canna wnn; do | |
12214 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then | |
12215 echo "configure: warning: --with-${feature} ignored: Not valid without Mule support" 1>&2 | |
12216 fi | |
12217 eval "with_${feature}=no" | |
12218 done | |
12219 fi | |
12220 | |
12221 if test "$need_motif" = "yes" ; then | |
12222 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi | |
12223 | |
12224 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 | |
12225 echo "configure:12226: checking for layout_object_getvalue in -li18n" >&5 | |
12226 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` | |
12227 | |
12228 xe_check_libs=" -li18n " | |
12229 cat > conftest.$ac_ext <<EOF | |
12230 #line 12231 "configure" | |
12231 #include "confdefs.h" | |
12232 /* Override any gcc2 internal prototype to avoid an error. */ | |
12233 /* We use char because int might match the return type of a gcc2 | |
12234 builtin and then its argument prototype would still apply. */ | |
12235 char layout_object_getvalue(); | |
12236 | |
12237 int main() { | |
12238 layout_object_getvalue() | |
12239 ; return 0; } | |
12240 EOF | |
12241 if { (eval echo configure:12242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12242 rm -rf conftest* | |
12243 eval "ac_cv_lib_$ac_lib_var=yes" | |
12244 else | |
12245 echo "configure: failed program was:" >&5 | |
12246 cat conftest.$ac_ext >&5 | |
12247 rm -rf conftest* | |
12248 eval "ac_cv_lib_$ac_lib_var=no" | |
12249 fi | |
12250 rm -f conftest* | |
12251 xe_check_libs="" | |
12252 | |
12253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
12254 echo "$ac_t""yes" 1>&6 | |
12255 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi | |
12256 else | |
12257 echo "$ac_t""no" 1>&6 | |
12258 fi | |
12259 | |
12260 | |
12261 | |
12262 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then | |
12263 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"` | |
12264 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"` | |
12265 | |
12266 runpath="" runpath_dirs="" | |
12267 if test -n "$LD_RUN_PATH"; then | |
12268 runpath="$LD_RUN_PATH" | |
12269 elif test "$GCC" = "yes"; then | |
12270 ld_switch_run_save="$ld_switch_run"; ld_switch_run="" | |
12271 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c | |
12272 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' | |
12273 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do | |
12274 case "$arg" in P,* | -L* | -R* ) | |
12275 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do | |
12276 { | |
12277 xe_runpath_dir="$dir" | |
12278 test "$xe_runpath_dir" != "/lib" -a \ | |
12279 "$xe_runpath_dir" != "/usr/lib" -a \ | |
12280 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \ | |
12281 eval "$xe_add_unique_runpath_dir" | |
12282 } | |
12283 done ;; | |
12284 esac | |
12285 done | |
12286 ld_switch_run="$ld_switch_run_save" | |
12287 rm -f conftest* | |
12288 else | |
12289 for arg in $ld_switch_site $ld_switch_x_site; do | |
12290 case "$arg" in -L*) { | |
12291 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'` | |
12292 test "$xe_runpath_dir" != "/lib" -a \ | |
12293 "$xe_runpath_dir" != "/usr/lib" -a \ | |
12294 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \ | |
12295 eval "$xe_add_unique_runpath_dir" | |
12296 };; esac | |
12297 done | |
12298 if test "$opsys $need_motif" = "sol2 yes"; then | |
12299 xe_runpath_dir="/opt/SUNWdt/lib"; | |
12300 eval "$xe_add_unique_runpath_dir"; | |
12301 fi | |
12302 fi | |
12303 if test -n "$runpath"; then | |
12304 ld_switch_run="${dash_r}${runpath}" | |
12305 | |
12306 if test "$GCC" = "yes"; then | |
12307 set x $ld_switch_run; shift; ld_switch_run="" | |
12308 while test -n "$1"; do | |
12309 case $1 in | |
12310 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;; | |
12311 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;; | |
12312 -Xlinker* ) ;; | |
12313 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;; | |
12314 esac | |
12315 shift | |
12316 done | |
12317 fi | |
12318 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" | |
12319 fi | |
12320 fi | |
12321 | |
12322 fi | |
12323 | |
12324 | |
12325 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp fsync ftime ftruncate getaddrinfo gethostname getnameinfo getpagesize getrlimit gettimeofday getcwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setsid sigblock sighold sigprocmask snprintf strerror strlwr strupr symlink tzset ulimit umask usleep vlimit vsnprintf waitpid wcscmp wcslen | |
12326 do | |
12327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
12328 echo "configure:12329: checking for $ac_func" >&5 | |
12329 | |
12330 cat > conftest.$ac_ext <<EOF | |
12331 #line 12332 "configure" | |
12332 #include "confdefs.h" | |
12333 /* System header to define __stub macros and hopefully few prototypes, | |
12334 which can conflict with char $ac_func(); below. */ | |
12335 #include <assert.h> | |
12336 /* Override any gcc2 internal prototype to avoid an error. */ | |
12337 /* We use char because int might match the return type of a gcc2 | |
12338 builtin and then its argument prototype would still apply. */ | |
12339 char $ac_func(); | |
12340 | |
12341 int main() { | |
12342 | |
12343 /* The GNU C library defines this for functions which it implements | |
12344 to always fail with ENOSYS. Some functions are actually named | |
12345 something starting with __ and the normal name is an alias. */ | |
12346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12347 choke me | |
12348 #else | |
12349 $ac_func(); | |
12350 #endif | |
12351 | |
12352 ; return 0; } | |
12353 EOF | |
12354 if { (eval echo configure:12355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12355 rm -rf conftest* | |
12356 eval "ac_cv_func_$ac_func=yes" | |
12357 else | |
12358 echo "configure: failed program was:" >&5 | |
12359 cat conftest.$ac_ext >&5 | |
12360 rm -rf conftest* | |
12361 eval "ac_cv_func_$ac_func=no" | |
12362 fi | |
12363 rm -f conftest* | |
12364 | |
12365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12366 echo "$ac_t""yes" 1>&6 | |
12367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12368 { test "$extra_verbose" = "yes" && cat << EOF | |
12369 Defining $ac_tr_func | |
12370 EOF | |
12371 cat >> confdefs.h <<EOF | |
12372 #define $ac_tr_func 1 | |
12373 EOF | |
12374 } | |
12375 | |
12376 else | |
12377 echo "$ac_t""no" 1>&6 | |
12378 fi | |
12379 done | |
12380 | |
12381 | |
12382 if test "$ac_cv_func_getaddrinfo" != "no" ; then | |
12383 case "$opsys" in | |
12384 hpux11 ) | |
12385 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2 | |
12386 ac_cv_func_getaddrinfo=no | |
12387 ;; | |
12388 esac | |
12389 fi | |
12390 | |
12391 | |
12392 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp | |
12393 do | |
12394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
12395 echo "configure:12396: checking for $ac_func" >&5 | |
12396 | |
12397 cat > conftest.$ac_ext <<EOF | |
12398 #line 12399 "configure" | |
12399 #include "confdefs.h" | |
12400 /* System header to define __stub macros and hopefully few prototypes, | |
12401 which can conflict with char $ac_func(); below. */ | |
12402 #include <assert.h> | |
12403 /* Override any gcc2 internal prototype to avoid an error. */ | |
12404 /* We use char because int might match the return type of a gcc2 | |
12405 builtin and then its argument prototype would still apply. */ | |
12406 char $ac_func(); | |
12407 | |
12408 int main() { | |
12409 | |
12410 /* The GNU C library defines this for functions which it implements | |
12411 to always fail with ENOSYS. Some functions are actually named | |
12412 something starting with __ and the normal name is an alias. */ | |
12413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12414 choke me | |
12415 #else | |
12416 $ac_func(); | |
12417 #endif | |
12418 | |
12419 ; return 0; } | |
12420 EOF | |
12421 if { (eval echo configure:12422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12422 rm -rf conftest* | |
12423 eval "ac_cv_func_$ac_func=yes" | |
12424 else | |
12425 echo "configure: failed program was:" >&5 | |
12426 cat conftest.$ac_ext >&5 | |
12427 rm -rf conftest* | |
12428 eval "ac_cv_func_$ac_func=no" | |
12429 fi | |
12430 rm -f conftest* | |
12431 | |
12432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12433 echo "$ac_t""yes" 1>&6 | |
12434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12435 { test "$extra_verbose" = "yes" && cat << EOF | |
12436 Defining $ac_tr_func | |
12437 EOF | |
12438 cat >> confdefs.h <<EOF | |
12439 #define $ac_tr_func 1 | |
12440 EOF | |
12441 } | |
12442 | |
12443 else | |
12444 echo "$ac_t""no" 1>&6 | |
12445 fi | |
12446 done | |
12447 | |
12448 | |
12449 echo $ac_n "checking for openpty""... $ac_c" 1>&6 | |
12450 echo "configure:12451: checking for openpty" >&5 | |
12451 | |
12452 cat > conftest.$ac_ext <<EOF | |
12453 #line 12454 "configure" | |
12454 #include "confdefs.h" | |
12455 /* System header to define __stub macros and hopefully few prototypes, | |
12456 which can conflict with char openpty(); below. */ | |
12457 #include <assert.h> | |
12458 /* Override any gcc2 internal prototype to avoid an error. */ | |
12459 /* We use char because int might match the return type of a gcc2 | |
12460 builtin and then its argument prototype would still apply. */ | |
12461 char openpty(); | |
12462 | |
12463 int main() { | |
12464 | |
12465 /* The GNU C library defines this for functions which it implements | |
12466 to always fail with ENOSYS. Some functions are actually named | |
12467 something starting with __ and the normal name is an alias. */ | |
12468 #if defined (__stub_openpty) || defined (__stub___openpty) | |
12469 choke me | |
12470 #else | |
12471 openpty(); | |
12472 #endif | |
12473 | |
12474 ; return 0; } | |
12475 EOF | |
12476 if { (eval echo configure:12477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12477 rm -rf conftest* | |
12478 eval "ac_cv_func_openpty=yes" | |
12479 else | |
12480 echo "configure: failed program was:" >&5 | |
12481 cat conftest.$ac_ext >&5 | |
12482 rm -rf conftest* | |
12483 eval "ac_cv_func_openpty=no" | |
12484 fi | |
12485 rm -f conftest* | |
12486 | |
12487 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then | |
12488 echo "$ac_t""yes" 1>&6 | |
12489 have_openpty=yes | |
12490 else | |
12491 echo "$ac_t""no" 1>&6 | |
12492 | |
12493 | |
12494 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 | |
12495 echo "configure:12496: checking for openpty in -lutil" >&5 | |
12496 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` | |
12497 | |
12498 xe_check_libs=" -lutil " | |
12499 cat > conftest.$ac_ext <<EOF | |
12500 #line 12501 "configure" | |
12501 #include "confdefs.h" | |
12502 /* Override any gcc2 internal prototype to avoid an error. */ | |
12503 /* We use char because int might match the return type of a gcc2 | |
12504 builtin and then its argument prototype would still apply. */ | |
12505 char openpty(); | |
12506 | |
12507 int main() { | |
12508 openpty() | |
12509 ; return 0; } | |
12510 EOF | |
12511 if { (eval echo configure:12512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12512 rm -rf conftest* | |
12513 eval "ac_cv_lib_$ac_lib_var=yes" | |
12514 else | |
12515 echo "configure: failed program was:" >&5 | |
12516 cat conftest.$ac_ext >&5 | |
12517 rm -rf conftest* | |
12518 eval "ac_cv_lib_$ac_lib_var=no" | |
12519 fi | |
12520 rm -f conftest* | |
12521 xe_check_libs="" | |
12522 | |
12523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
12524 echo "$ac_t""yes" 1>&6 | |
12525 have_openpty=yes need_libutil=yes | |
12526 else | |
12527 echo "$ac_t""no" 1>&6 | |
12528 fi | |
12529 | |
12530 | |
12531 fi | |
12532 | |
12533 if test "$have_openpty" = "yes"; then | |
12534 { test "$extra_verbose" = "yes" && cat << \EOF | |
12535 Defining HAVE_OPENPTY | |
12536 EOF | |
12537 cat >> confdefs.h <<\EOF | |
12538 #define HAVE_OPENPTY 1 | |
12539 EOF | |
12540 } | |
12541 | |
12542 for ac_hdr in libutil.h util.h | |
12543 do | |
12544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12546 echo "configure:12547: checking for $ac_hdr" >&5 | |
12547 | |
12548 cat > conftest.$ac_ext <<EOF | |
12549 #line 12550 "configure" | |
12550 #include "confdefs.h" | |
12551 #include <$ac_hdr> | |
12552 EOF | |
12553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12554 { (eval echo configure:12555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12556 if test -z "$ac_err"; then | |
12557 rm -rf conftest* | |
12558 eval "ac_cv_header_$ac_safe=yes" | |
12559 else | |
12560 echo "$ac_err" >&5 | |
12561 echo "configure: failed program was:" >&5 | |
12562 cat conftest.$ac_ext >&5 | |
12563 rm -rf conftest* | |
12564 eval "ac_cv_header_$ac_safe=no" | |
12565 fi | |
12566 rm -f conftest* | |
12567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12568 echo "$ac_t""yes" 1>&6 | |
12569 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12570 { test "$extra_verbose" = "yes" && cat << EOF | |
12571 Defining $ac_tr_hdr | |
12572 EOF | |
12573 cat >> confdefs.h <<EOF | |
12574 #define $ac_tr_hdr 1 | |
12575 EOF | |
12576 } | |
12577 break | |
12578 else | |
12579 echo "$ac_t""no" 1>&6 | |
12580 fi | |
12581 done | |
12582 | |
12583 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi | |
12584 fi | |
12585 | |
12586 case "$opsys" in | |
12587 hpux*) for ac_hdr in sys/ptyio.h | |
12588 do | |
12589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12591 echo "configure:12592: checking for $ac_hdr" >&5 | |
12592 | |
12593 cat > conftest.$ac_ext <<EOF | |
12594 #line 12595 "configure" | |
12595 #include "confdefs.h" | |
12596 #include <$ac_hdr> | |
12597 EOF | |
12598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12599 { (eval echo configure:12600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12601 if test -z "$ac_err"; then | |
12602 rm -rf conftest* | |
12603 eval "ac_cv_header_$ac_safe=yes" | |
12604 else | |
12605 echo "$ac_err" >&5 | |
12606 echo "configure: failed program was:" >&5 | |
12607 cat conftest.$ac_ext >&5 | |
12608 rm -rf conftest* | |
12609 eval "ac_cv_header_$ac_safe=no" | |
12610 fi | |
12611 rm -f conftest* | |
12612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12613 echo "$ac_t""yes" 1>&6 | |
12614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12615 { test "$extra_verbose" = "yes" && cat << EOF | |
12616 Defining $ac_tr_hdr | |
12617 EOF | |
12618 cat >> confdefs.h <<EOF | |
12619 #define $ac_tr_hdr 1 | |
12620 EOF | |
12621 } | |
12622 | |
12623 else | |
12624 echo "$ac_t""no" 1>&6 | |
12625 fi | |
12626 done | |
12627 ;; | |
12628 *) for ac_hdr in pty.h | |
12629 do | |
12630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12632 echo "configure:12633: checking for $ac_hdr" >&5 | |
12633 | |
12634 cat > conftest.$ac_ext <<EOF | |
12635 #line 12636 "configure" | |
12636 #include "confdefs.h" | |
12637 #include <$ac_hdr> | |
12638 EOF | |
12639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12640 { (eval echo configure:12641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12642 if test -z "$ac_err"; then | |
12643 rm -rf conftest* | |
12644 eval "ac_cv_header_$ac_safe=yes" | |
12645 else | |
12646 echo "$ac_err" >&5 | |
12647 echo "configure: failed program was:" >&5 | |
12648 cat conftest.$ac_ext >&5 | |
12649 rm -rf conftest* | |
12650 eval "ac_cv_header_$ac_safe=no" | |
12651 fi | |
12652 rm -f conftest* | |
12653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12654 echo "$ac_t""yes" 1>&6 | |
12655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12656 { test "$extra_verbose" = "yes" && cat << EOF | |
12657 Defining $ac_tr_hdr | |
12658 EOF | |
12659 cat >> confdefs.h <<EOF | |
12660 #define $ac_tr_hdr 1 | |
12661 EOF | |
12662 } | |
12663 | |
12664 else | |
12665 echo "$ac_t""no" 1>&6 | |
12666 fi | |
12667 done | |
12668 | |
12669 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h | |
12670 do | |
12671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12673 echo "configure:12674: checking for $ac_hdr" >&5 | |
12674 | |
12675 cat > conftest.$ac_ext <<EOF | |
12676 #line 12677 "configure" | |
12677 #include "confdefs.h" | |
12678 #include <$ac_hdr> | |
12679 EOF | |
12680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12681 { (eval echo configure:12682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12683 if test -z "$ac_err"; then | |
12684 rm -rf conftest* | |
12685 eval "ac_cv_header_$ac_safe=yes" | |
12686 else | |
12687 echo "$ac_err" >&5 | |
12688 echo "configure: failed program was:" >&5 | |
12689 cat conftest.$ac_ext >&5 | |
12690 rm -rf conftest* | |
12691 eval "ac_cv_header_$ac_safe=no" | |
12692 fi | |
12693 rm -f conftest* | |
12694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12695 echo "$ac_t""yes" 1>&6 | |
12696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12697 { test "$extra_verbose" = "yes" && cat << EOF | |
12698 Defining $ac_tr_hdr | |
12699 EOF | |
12700 cat >> confdefs.h <<EOF | |
12701 #define $ac_tr_hdr 1 | |
12702 EOF | |
12703 } | |
12704 | |
12705 else | |
12706 echo "$ac_t""no" 1>&6 | |
12707 fi | |
12708 done | |
12709 | |
12710 ;; | |
12711 esac | |
12712 | |
12713 for ac_hdr in stropts.h | |
12714 do | |
12715 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12717 echo "configure:12718: checking for $ac_hdr" >&5 | |
12718 | |
12719 cat > conftest.$ac_ext <<EOF | |
12720 #line 12721 "configure" | |
12721 #include "confdefs.h" | |
12722 #include <$ac_hdr> | |
12723 EOF | |
12724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12725 { (eval echo configure:12726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12727 if test -z "$ac_err"; then | |
12728 rm -rf conftest* | |
12729 eval "ac_cv_header_$ac_safe=yes" | |
12730 else | |
12731 echo "$ac_err" >&5 | |
12732 echo "configure: failed program was:" >&5 | |
12733 cat conftest.$ac_ext >&5 | |
12734 rm -rf conftest* | |
12735 eval "ac_cv_header_$ac_safe=no" | |
12736 fi | |
12737 rm -f conftest* | |
12738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12739 echo "$ac_t""yes" 1>&6 | |
12740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12741 { test "$extra_verbose" = "yes" && cat << EOF | |
12742 Defining $ac_tr_hdr | |
12743 EOF | |
12744 cat >> confdefs.h <<EOF | |
12745 #define $ac_tr_hdr 1 | |
12746 EOF | |
12747 } | |
12748 | |
12749 else | |
12750 echo "$ac_t""no" 1>&6 | |
12751 fi | |
12752 done | |
12753 | |
12754 if test "$ac_cv_header_stropts_h" = "yes"; then | |
12755 for ac_func in isastream | |
12756 do | |
12757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
12758 echo "configure:12759: checking for $ac_func" >&5 | |
12759 | |
12760 cat > conftest.$ac_ext <<EOF | |
12761 #line 12762 "configure" | |
12762 #include "confdefs.h" | |
12763 /* System header to define __stub macros and hopefully few prototypes, | |
12764 which can conflict with char $ac_func(); below. */ | |
12765 #include <assert.h> | |
12766 /* Override any gcc2 internal prototype to avoid an error. */ | |
12767 /* We use char because int might match the return type of a gcc2 | |
12768 builtin and then its argument prototype would still apply. */ | |
12769 char $ac_func(); | |
12770 | |
12771 int main() { | |
12772 | |
12773 /* The GNU C library defines this for functions which it implements | |
12774 to always fail with ENOSYS. Some functions are actually named | |
12775 something starting with __ and the normal name is an alias. */ | |
12776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12777 choke me | |
12778 #else | |
12779 $ac_func(); | |
12780 #endif | |
12781 | |
12782 ; return 0; } | |
12783 EOF | |
12784 if { (eval echo configure:12785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12785 rm -rf conftest* | |
12786 eval "ac_cv_func_$ac_func=yes" | |
12787 else | |
12788 echo "configure: failed program was:" >&5 | |
12789 cat conftest.$ac_ext >&5 | |
12790 rm -rf conftest* | |
12791 eval "ac_cv_func_$ac_func=no" | |
12792 fi | |
12793 rm -f conftest* | |
12794 | |
12795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12796 echo "$ac_t""yes" 1>&6 | |
12797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12798 { test "$extra_verbose" = "yes" && cat << EOF | |
12799 Defining $ac_tr_func | |
12800 EOF | |
12801 cat >> confdefs.h <<EOF | |
12802 #define $ac_tr_func 1 | |
12803 EOF | |
12804 } | |
12805 | |
12806 else | |
12807 echo "$ac_t""no" 1>&6 | |
12808 fi | |
12809 done | |
12810 | |
12811 for ac_hdr in strtio.h | |
12812 do | |
12813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12815 echo "configure:12816: checking for $ac_hdr" >&5 | |
12816 | |
12817 cat > conftest.$ac_ext <<EOF | |
12818 #line 12819 "configure" | |
12819 #include "confdefs.h" | |
12820 #include <$ac_hdr> | |
12821 EOF | |
12822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12823 { (eval echo configure:12824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12825 if test -z "$ac_err"; then | |
12826 rm -rf conftest* | |
12827 eval "ac_cv_header_$ac_safe=yes" | |
12828 else | |
12829 echo "$ac_err" >&5 | |
12830 echo "configure: failed program was:" >&5 | |
12831 cat conftest.$ac_ext >&5 | |
12832 rm -rf conftest* | |
12833 eval "ac_cv_header_$ac_safe=no" | |
12834 fi | |
12835 rm -f conftest* | |
12836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12837 echo "$ac_t""yes" 1>&6 | |
12838 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12839 { test "$extra_verbose" = "yes" && cat << EOF | |
12840 Defining $ac_tr_hdr | |
12841 EOF | |
12842 cat >> confdefs.h <<EOF | |
12843 #define $ac_tr_hdr 1 | |
12844 EOF | |
12845 } | |
12846 | |
12847 else | |
12848 echo "$ac_t""no" 1>&6 | |
12849 fi | |
12850 done | |
12851 fi | |
12852 | |
12853 for ac_func in getloadavg | |
12854 do | |
12855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
12856 echo "configure:12857: checking for $ac_func" >&5 | |
12857 | |
12858 cat > conftest.$ac_ext <<EOF | |
12859 #line 12860 "configure" | |
12860 #include "confdefs.h" | |
12861 /* System header to define __stub macros and hopefully few prototypes, | |
12862 which can conflict with char $ac_func(); below. */ | |
12863 #include <assert.h> | |
12864 /* Override any gcc2 internal prototype to avoid an error. */ | |
12865 /* We use char because int might match the return type of a gcc2 | |
12866 builtin and then its argument prototype would still apply. */ | |
12867 char $ac_func(); | |
12868 | |
12869 int main() { | |
12870 | |
12871 /* The GNU C library defines this for functions which it implements | |
12872 to always fail with ENOSYS. Some functions are actually named | |
12873 something starting with __ and the normal name is an alias. */ | |
12874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12875 choke me | |
12876 #else | |
12877 $ac_func(); | |
12878 #endif | |
12879 | |
12880 ; return 0; } | |
12881 EOF | |
12882 if { (eval echo configure:12883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12883 rm -rf conftest* | |
12884 eval "ac_cv_func_$ac_func=yes" | |
12885 else | |
12886 echo "configure: failed program was:" >&5 | |
12887 cat conftest.$ac_ext >&5 | |
12888 rm -rf conftest* | |
12889 eval "ac_cv_func_$ac_func=no" | |
12890 fi | |
12891 rm -f conftest* | |
12892 | |
12893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12894 echo "$ac_t""yes" 1>&6 | |
12895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12896 { test "$extra_verbose" = "yes" && cat << EOF | |
12897 Defining $ac_tr_func | |
12898 EOF | |
12899 cat >> confdefs.h <<EOF | |
12900 #define $ac_tr_func 1 | |
12901 EOF | |
12902 } | |
12903 | |
12904 else | |
12905 echo "$ac_t""no" 1>&6 | |
12906 fi | |
12907 done | |
12908 | |
12909 | |
12910 if test "$ac_cv_func_getloadavg" = "yes"; then | |
12911 for ac_hdr in sys/loadavg.h | |
12912 do | |
12913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12915 echo "configure:12916: checking for $ac_hdr" >&5 | |
12916 | |
12917 cat > conftest.$ac_ext <<EOF | |
12918 #line 12919 "configure" | |
12919 #include "confdefs.h" | |
12920 #include <$ac_hdr> | |
12921 EOF | |
12922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12923 { (eval echo configure:12924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12925 if test -z "$ac_err"; then | |
12926 rm -rf conftest* | |
12927 eval "ac_cv_header_$ac_safe=yes" | |
12928 else | |
12929 echo "$ac_err" >&5 | |
12930 echo "configure: failed program was:" >&5 | |
12931 cat conftest.$ac_ext >&5 | |
12932 rm -rf conftest* | |
12933 eval "ac_cv_header_$ac_safe=no" | |
12934 fi | |
12935 rm -f conftest* | |
12936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12937 echo "$ac_t""yes" 1>&6 | |
12938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12939 { test "$extra_verbose" = "yes" && cat << EOF | |
12940 Defining $ac_tr_hdr | |
12941 EOF | |
12942 cat >> confdefs.h <<EOF | |
12943 #define $ac_tr_hdr 1 | |
12944 EOF | |
12945 } | |
12946 | |
12947 else | |
12948 echo "$ac_t""no" 1>&6 | |
12949 fi | |
12950 done | |
12951 | |
12952 else | |
12953 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then | |
12954 echo " xemacs will be linked with \"getloadavg.o\"" | |
12955 fi | |
12956 | |
12957 | |
12958 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 | |
12959 echo "configure:12960: checking for kstat_open in -lkstat" >&5 | |
12960 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` | |
12961 | |
12962 xe_check_libs=" -lkstat " | |
12963 cat > conftest.$ac_ext <<EOF | |
12964 #line 12965 "configure" | |
12965 #include "confdefs.h" | |
12966 /* Override any gcc2 internal prototype to avoid an error. */ | |
12967 /* We use char because int might match the return type of a gcc2 | |
12968 builtin and then its argument prototype would still apply. */ | |
12969 char kstat_open(); | |
12970 | |
12971 int main() { | |
12972 kstat_open() | |
12973 ; return 0; } | |
12974 EOF | |
12975 if { (eval echo configure:12976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12976 rm -rf conftest* | |
12977 eval "ac_cv_lib_$ac_lib_var=yes" | |
12978 else | |
12979 echo "configure: failed program was:" >&5 | |
12980 cat conftest.$ac_ext >&5 | |
12981 rm -rf conftest* | |
12982 eval "ac_cv_lib_$ac_lib_var=no" | |
12983 fi | |
12984 rm -f conftest* | |
12985 xe_check_libs="" | |
12986 | |
12987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
12988 echo "$ac_t""yes" 1>&6 | |
12989 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
12990 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
12991 { test "$extra_verbose" = "yes" && cat << EOF | |
12992 Defining $ac_tr_lib | |
12993 EOF | |
12994 cat >> confdefs.h <<EOF | |
12995 #define $ac_tr_lib 1 | |
12996 EOF | |
12997 } | |
12998 | |
12999 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi | |
13000 | |
13001 else | |
13002 echo "$ac_t""no" 1>&6 | |
13003 fi | |
13004 | |
13005 | |
13006 for ac_hdr in kstat.h | |
13007 do | |
13008 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13009 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
13010 echo "configure:13011: checking for $ac_hdr" >&5 | |
13011 | |
13012 cat > conftest.$ac_ext <<EOF | |
13013 #line 13014 "configure" | |
13014 #include "confdefs.h" | |
13015 #include <$ac_hdr> | |
13016 EOF | |
13017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13018 { (eval echo configure:13019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13020 if test -z "$ac_err"; then | |
13021 rm -rf conftest* | |
13022 eval "ac_cv_header_$ac_safe=yes" | |
13023 else | |
13024 echo "$ac_err" >&5 | |
13025 echo "configure: failed program was:" >&5 | |
13026 cat conftest.$ac_ext >&5 | |
13027 rm -rf conftest* | |
13028 eval "ac_cv_header_$ac_safe=no" | |
13029 fi | |
13030 rm -f conftest* | |
13031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13032 echo "$ac_t""yes" 1>&6 | |
13033 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13034 { test "$extra_verbose" = "yes" && cat << EOF | |
13035 Defining $ac_tr_hdr | |
13036 EOF | |
13037 cat >> confdefs.h <<EOF | |
13038 #define $ac_tr_hdr 1 | |
13039 EOF | |
13040 } | |
13041 | |
13042 else | |
13043 echo "$ac_t""no" 1>&6 | |
13044 fi | |
13045 done | |
13046 | |
13047 | |
13048 | |
13049 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 | |
13050 echo "configure:13051: checking for kvm_read in -lkvm" >&5 | |
13051 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` | |
13052 | |
13053 xe_check_libs=" -lkvm " | |
13054 cat > conftest.$ac_ext <<EOF | |
13055 #line 13056 "configure" | |
13056 #include "confdefs.h" | |
13057 /* Override any gcc2 internal prototype to avoid an error. */ | |
13058 /* We use char because int might match the return type of a gcc2 | |
13059 builtin and then its argument prototype would still apply. */ | |
13060 char kvm_read(); | |
13061 | |
13062 int main() { | |
13063 kvm_read() | |
13064 ; return 0; } | |
13065 EOF | |
13066 if { (eval echo configure:13067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13067 rm -rf conftest* | |
13068 eval "ac_cv_lib_$ac_lib_var=yes" | |
13069 else | |
13070 echo "configure: failed program was:" >&5 | |
13071 cat conftest.$ac_ext >&5 | |
13072 rm -rf conftest* | |
13073 eval "ac_cv_lib_$ac_lib_var=no" | |
13074 fi | |
13075 rm -f conftest* | |
13076 xe_check_libs="" | |
13077 | |
13078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
13079 echo "$ac_t""yes" 1>&6 | |
13080 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
13081 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
13082 { test "$extra_verbose" = "yes" && cat << EOF | |
13083 Defining $ac_tr_lib | |
13084 EOF | |
13085 cat >> confdefs.h <<EOF | |
13086 #define $ac_tr_lib 1 | |
13087 EOF | |
13088 } | |
13089 | |
13090 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi | |
13091 | |
13092 else | |
13093 echo "$ac_t""no" 1>&6 | |
13094 fi | |
13095 | |
13096 | |
13097 fi | |
13098 | |
13099 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | |
13100 echo "configure:13101: checking whether netdb declares h_errno" >&5 | |
13101 cat > conftest.$ac_ext <<EOF | |
13102 #line 13103 "configure" | |
13103 #include "confdefs.h" | |
13104 #include <netdb.h> | |
13105 int main() { | |
13106 return h_errno; | |
13107 ; return 0; } | |
13108 EOF | |
13109 if { (eval echo configure:13110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13110 rm -rf conftest* | |
13111 echo "$ac_t""yes" 1>&6 | |
13112 { test "$extra_verbose" = "yes" && cat << \EOF | |
13113 Defining HAVE_H_ERRNO | |
13114 EOF | |
13115 cat >> confdefs.h <<\EOF | |
13116 #define HAVE_H_ERRNO 1 | |
13117 EOF | |
13118 } | |
13119 | |
13120 else | |
13121 echo "configure: failed program was:" >&5 | |
13122 cat conftest.$ac_ext >&5 | |
13123 rm -rf conftest* | |
13124 echo "$ac_t""no" 1>&6 | |
13125 fi | |
13126 rm -f conftest* | |
13127 | |
13128 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 | |
13129 echo "configure:13130: checking for sigsetjmp" >&5 | |
13130 cat > conftest.$ac_ext <<EOF | |
13131 #line 13132 "configure" | |
13132 #include "confdefs.h" | |
13133 #include <setjmp.h> | |
13134 int main() { | |
13135 sigjmp_buf bar; sigsetjmp (bar, 0); | |
13136 ; return 0; } | |
13137 EOF | |
13138 if { (eval echo configure:13139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13139 rm -rf conftest* | |
13140 echo "$ac_t""yes" 1>&6 | |
13141 { test "$extra_verbose" = "yes" && cat << \EOF | |
13142 Defining HAVE_SIGSETJMP | |
13143 EOF | |
13144 cat >> confdefs.h <<\EOF | |
13145 #define HAVE_SIGSETJMP 1 | |
13146 EOF | |
13147 } | |
13148 | |
13149 else | |
13150 echo "configure: failed program was:" >&5 | |
13151 cat conftest.$ac_ext >&5 | |
13152 rm -rf conftest* | |
13153 echo "$ac_t""no" 1>&6 | |
13154 fi | |
13155 rm -f conftest* | |
13156 | |
13157 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | |
13158 echo "configure:13159: checking whether localtime caches TZ" >&5 | |
13159 | |
13160 if test "$ac_cv_func_tzset" = "yes"; then | |
13161 cat > conftest.$ac_ext <<EOF | |
13162 #line 13163 "configure" | |
13163 #include "confdefs.h" | |
13164 #include <time.h> | |
13165 #if STDC_HEADERS | |
13166 # include <stdlib.h> | |
13167 #endif | |
13168 extern char **environ; | |
13169 unset_TZ () | |
13170 { | |
13171 char **from, **to; | |
13172 for (to = from = environ; (*to = *from); from++) | |
13173 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
13174 to++; | |
13175 } | |
13176 char TZ_GMT0[] = "TZ=GMT0"; | |
13177 char TZ_PST8[] = "TZ=PST8"; | |
13178 main() | |
13179 { | |
13180 time_t now = time ((time_t *) 0); | |
13181 int hour_GMT0, hour_unset; | |
13182 if (putenv (TZ_GMT0) != 0) | |
13183 exit (1); | |
13184 hour_GMT0 = localtime (&now)->tm_hour; | |
13185 unset_TZ (); | |
13186 hour_unset = localtime (&now)->tm_hour; | |
13187 if (putenv (TZ_PST8) != 0) | |
13188 exit (1); | |
13189 if (localtime (&now)->tm_hour == hour_GMT0) | |
13190 exit (1); | |
13191 unset_TZ (); | |
13192 if (localtime (&now)->tm_hour != hour_unset) | |
13193 exit (1); | |
13194 exit (0); | |
13195 } | |
13196 EOF | |
13197 if { (eval echo configure:13198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
13198 then | |
13199 emacs_cv_localtime_cache=no | |
13200 else | |
13201 conftest_rc="$?" | |
13202 echo "configure: failed program was:" >&5 | |
13203 cat conftest.$ac_ext >&5 | |
13204 rm -fr conftest* | |
13205 emacs_cv_localtime_cache=yes | |
13206 fi | |
13207 rm -fr conftest* | |
13208 else | |
13209 # If we lack tzset, report that localtime does not cache TZ, | |
13210 # since we can't invalidate the cache if we don't have tzset. | |
13211 emacs_cv_localtime_cache=no | |
13212 fi | |
13213 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6 | |
13214 if test $emacs_cv_localtime_cache = yes; then | |
13215 { test "$extra_verbose" = "yes" && cat << \EOF | |
13216 Defining LOCALTIME_CACHE | |
13217 EOF | |
13218 cat >> confdefs.h <<\EOF | |
13219 #define LOCALTIME_CACHE 1 | |
13220 EOF | |
13221 } | |
13222 | |
13223 fi | |
13224 | |
13225 if test "$HAVE_TIMEVAL" = "yes"; then | |
13226 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 | |
13227 echo "configure:13228: checking whether gettimeofday accepts one or two arguments" >&5 | |
13228 cat > conftest.$ac_ext <<EOF | |
13229 #line 13230 "configure" | |
13230 #include "confdefs.h" | |
13231 | |
13232 #ifdef TIME_WITH_SYS_TIME | |
13233 #include <sys/time.h> | |
13234 #include <time.h> | |
13235 #else | |
13236 #ifdef HAVE_SYS_TIME_H | |
13237 #include <sys/time.h> | |
13238 #else | |
13239 #include <time.h> | |
13240 #endif | |
13241 #endif | |
13242 | |
13243 int main() { | |
13244 | |
13245 struct timeval time; | |
13246 gettimeofday (&time, 0); | |
13247 | |
13248 ; return 0; } | |
13249 EOF | |
13250 if { (eval echo configure:13251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13251 rm -rf conftest* | |
13252 echo "$ac_t""two" 1>&6 | |
13253 else | |
13254 echo "configure: failed program was:" >&5 | |
13255 cat conftest.$ac_ext >&5 | |
13256 rm -rf conftest* | |
13257 echo "$ac_t""one" 1>&6 | |
13258 { test "$extra_verbose" = "yes" && cat << \EOF | |
13259 Defining GETTIMEOFDAY_ONE_ARGUMENT | |
13260 EOF | |
13261 cat >> confdefs.h <<\EOF | |
13262 #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
13263 EOF | |
13264 } | |
13265 | |
13266 fi | |
13267 rm -f conftest* | |
13268 fi | |
13269 | |
13270 | |
13271 echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
13272 echo "configure:13273: checking for inline" >&5 | |
13273 | |
13274 ac_cv_c_inline=no | |
13275 for ac_kw in inline __inline__ __inline; do | |
13276 cat > conftest.$ac_ext <<EOF | |
13277 #line 13278 "configure" | |
13278 #include "confdefs.h" | |
13279 | |
13280 int main() { | |
13281 } $ac_kw foo() { | |
13282 ; return 0; } | |
13283 EOF | |
13284 if { (eval echo configure:13285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13285 rm -rf conftest* | |
13286 ac_cv_c_inline=$ac_kw; break | |
13287 else | |
13288 echo "configure: failed program was:" >&5 | |
13289 cat conftest.$ac_ext >&5 | |
13290 fi | |
13291 rm -f conftest* | |
13292 done | |
13293 | |
13294 | |
13295 echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
13296 case "$ac_cv_c_inline" in | |
13297 inline | yes) ;; | |
13298 no) { test "$extra_verbose" = "yes" && cat << \EOF | |
13299 Defining inline = | |
13300 EOF | |
13301 cat >> confdefs.h <<\EOF | |
13302 #define inline | |
13303 EOF | |
13304 } | |
13305 ;; | |
13306 *) { test "$extra_verbose" = "yes" && cat << EOF | |
13307 Defining inline = $ac_cv_c_inline | |
13308 EOF | |
13309 cat >> confdefs.h <<EOF | |
13310 #define inline $ac_cv_c_inline | |
13311 EOF | |
13312 } | |
13313 ;; | |
13314 esac | |
13315 | |
13316 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then | |
13317 echo " xemacs will be linked with \"inline.o\"" | |
13318 fi | |
13319 | |
13320 echo $ac_n "checking for typeof""... $ac_c" 1>&6 | |
13321 echo "configure:13322: checking for typeof" >&5 | |
13322 cat > conftest.$ac_ext <<EOF | |
13323 #line 13324 "configure" | |
13324 #include "confdefs.h" | |
13325 | |
13326 int main() { | |
13327 int i; __typeof__(i) j; | |
13328 ; return 0; } | |
13329 EOF | |
13330 if { (eval echo configure:13331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13331 rm -rf conftest* | |
13332 typeofname="__typeof__" | |
13333 else | |
13334 echo "configure: failed program was:" >&5 | |
13335 cat conftest.$ac_ext >&5 | |
13336 rm -rf conftest* | |
13337 cat > conftest.$ac_ext <<EOF | |
13338 #line 13339 "configure" | |
13339 #include "confdefs.h" | |
13340 | |
13341 int main() { | |
13342 int i; typeof(i) j; | |
13343 ; return 0; } | |
13344 EOF | |
13345 if { (eval echo configure:13346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13346 rm -rf conftest* | |
13347 typeofname="typeof" | |
13348 else | |
13349 echo "configure: failed program was:" >&5 | |
13350 cat conftest.$ac_ext >&5 | |
13351 rm -rf conftest* | |
13352 typeofname=no | |
13353 fi | |
13354 rm -f conftest* | |
13355 fi | |
13356 rm -f conftest* | |
13357 echo "$ac_t""$typeofname" 1>&6 | |
13358 if test "$typeofname" != "no"; then | |
13359 { test "$extra_verbose" = "yes" && cat << EOF | |
13360 Defining TYPEOF = $typeofname | |
13361 EOF | |
13362 cat >> confdefs.h <<EOF | |
13363 #define TYPEOF $typeofname | |
13364 EOF | |
13365 } | |
13366 | |
13367 fi | |
13368 | |
13369 | |
13370 if test "$__DECC" != "yes"; then | |
13371 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
13372 # for constant arguments. Useless! | |
13373 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
13374 echo "configure:13375: checking for working alloca.h" >&5 | |
13375 | |
13376 cat > conftest.$ac_ext <<EOF | |
13377 #line 13378 "configure" | |
13378 #include "confdefs.h" | |
13379 #include <alloca.h> | |
13380 int main() { | |
13381 char *p = alloca(2 * sizeof(int)); | |
13382 ; return 0; } | |
13383 EOF | |
13384 if { (eval echo configure:13385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13385 rm -rf conftest* | |
13386 ac_cv_header_alloca_h=yes | |
13387 else | |
13388 echo "configure: failed program was:" >&5 | |
13389 cat conftest.$ac_ext >&5 | |
13390 rm -rf conftest* | |
13391 ac_cv_header_alloca_h=no | |
13392 fi | |
13393 rm -f conftest* | |
13394 | |
13395 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
13396 if test $ac_cv_header_alloca_h = yes; then | |
13397 { test "$extra_verbose" = "yes" && cat << \EOF | |
13398 Defining HAVE_ALLOCA_H | |
13399 EOF | |
13400 cat >> confdefs.h <<\EOF | |
13401 #define HAVE_ALLOCA_H 1 | |
13402 EOF | |
13403 } | |
13404 | |
13405 fi | |
13406 | |
13407 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
13408 echo "configure:13409: checking for alloca" >&5 | |
13409 | |
13410 cat > conftest.$ac_ext <<EOF | |
13411 #line 13412 "configure" | |
13412 #include "confdefs.h" | |
13413 | |
13414 #ifdef __GNUC__ | |
13415 # define alloca __builtin_alloca | |
13416 #else | |
13417 # ifdef _MSC_VER | |
13418 # include <malloc.h> | |
13419 # define alloca _alloca | |
13420 # else | |
13421 # if HAVE_ALLOCA_H | |
13422 # include <alloca.h> | |
13423 # else | |
13424 # ifdef _AIX | |
13425 #pragma alloca | |
13426 # else | |
13427 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
13428 char *alloca (); | |
13429 # endif | |
13430 # endif | |
13431 # endif | |
13432 # endif | |
13433 #endif | |
13434 | |
13435 int main() { | |
13436 char *p = (char *) alloca(1); | |
13437 ; return 0; } | |
13438 EOF | |
13439 if { (eval echo configure:13440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13440 rm -rf conftest* | |
13441 ac_cv_func_alloca_works=yes | |
13442 else | |
13443 echo "configure: failed program was:" >&5 | |
13444 cat conftest.$ac_ext >&5 | |
13445 rm -rf conftest* | |
13446 ac_cv_func_alloca_works=no | |
13447 fi | |
13448 rm -f conftest* | |
13449 | |
13450 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
13451 if test $ac_cv_func_alloca_works = yes; then | |
13452 { test "$extra_verbose" = "yes" && cat << \EOF | |
13453 Defining HAVE_ALLOCA | |
13454 EOF | |
13455 cat >> confdefs.h <<\EOF | |
13456 #define HAVE_ALLOCA 1 | |
13457 EOF | |
13458 } | |
13459 | |
13460 fi | |
13461 | |
13462 if test $ac_cv_func_alloca_works = no; then | |
13463 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
13464 # that cause trouble. Some versions do not even contain alloca or | |
13465 # contain a buggy version. If you still want to use their alloca, | |
13466 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
13467 ALLOCA=alloca.${ac_objext} | |
13468 { test "$extra_verbose" = "yes" && cat << \EOF | |
13469 Defining C_ALLOCA | |
13470 EOF | |
13471 cat >> confdefs.h <<\EOF | |
13472 #define C_ALLOCA 1 | |
13473 EOF | |
13474 } | |
13475 | |
13476 | |
13477 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
13478 echo "configure:13479: checking whether alloca needs Cray hooks" >&5 | |
13479 | |
13480 cat > conftest.$ac_ext <<EOF | |
13481 #line 13482 "configure" | |
13482 #include "confdefs.h" | |
13483 #if defined(CRAY) && ! defined(CRAY2) | |
13484 webecray | |
13485 #else | |
13486 wenotbecray | |
13487 #endif | |
13488 | |
13489 EOF | |
13490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13491 egrep "webecray" >/dev/null 2>&1; then | |
13492 rm -rf conftest* | |
13493 ac_cv_os_cray=yes | |
13494 else | |
13495 rm -rf conftest* | |
13496 ac_cv_os_cray=no | |
13497 fi | |
13498 rm -f conftest* | |
13499 | |
13500 | |
13501 echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
13502 if test $ac_cv_os_cray = yes; then | |
13503 for ac_func in _getb67 GETB67 getb67; do | |
13504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
13505 echo "configure:13506: checking for $ac_func" >&5 | |
13506 | |
13507 cat > conftest.$ac_ext <<EOF | |
13508 #line 13509 "configure" | |
13509 #include "confdefs.h" | |
13510 /* System header to define __stub macros and hopefully few prototypes, | |
13511 which can conflict with char $ac_func(); below. */ | |
13512 #include <assert.h> | |
13513 /* Override any gcc2 internal prototype to avoid an error. */ | |
13514 /* We use char because int might match the return type of a gcc2 | |
13515 builtin and then its argument prototype would still apply. */ | |
13516 char $ac_func(); | |
13517 | |
13518 int main() { | |
13519 | |
13520 /* The GNU C library defines this for functions which it implements | |
13521 to always fail with ENOSYS. Some functions are actually named | |
13522 something starting with __ and the normal name is an alias. */ | |
13523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13524 choke me | |
13525 #else | |
13526 $ac_func(); | |
13527 #endif | |
13528 | |
13529 ; return 0; } | |
13530 EOF | |
13531 if { (eval echo configure:13532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13532 rm -rf conftest* | |
13533 eval "ac_cv_func_$ac_func=yes" | |
13534 else | |
13535 echo "configure: failed program was:" >&5 | |
13536 cat conftest.$ac_ext >&5 | |
13537 rm -rf conftest* | |
13538 eval "ac_cv_func_$ac_func=no" | |
13539 fi | |
13540 rm -f conftest* | |
13541 | |
13542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13543 echo "$ac_t""yes" 1>&6 | |
13544 { test "$extra_verbose" = "yes" && cat << EOF | |
13545 Defining CRAY_STACKSEG_END = $ac_func | |
13546 EOF | |
13547 cat >> confdefs.h <<EOF | |
13548 #define CRAY_STACKSEG_END $ac_func | |
13549 EOF | |
13550 } | |
13551 | |
13552 break | |
13553 else | |
13554 echo "$ac_t""no" 1>&6 | |
13555 fi | |
13556 | |
13557 done | |
13558 fi | |
13559 | |
13560 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
13561 echo "configure:13562: checking stack direction for C alloca" >&5 | |
13562 | |
13563 cat > conftest.$ac_ext <<EOF | |
13564 #line 13565 "configure" | |
13565 #include "confdefs.h" | |
13566 find_stack_direction () | |
13567 { | |
13568 static char *addr = 0; | |
13569 auto char dummy; | |
13570 if (addr == 0) | |
13571 { | |
13572 addr = &dummy; | |
13573 return find_stack_direction (); | |
13574 } | |
13575 else | |
13576 return (&dummy > addr) ? 1 : -1; | |
13577 } | |
13578 main () | |
13579 { | |
13580 exit (find_stack_direction() < 0); | |
13581 } | |
13582 EOF | |
13583 if { (eval echo configure:13584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
13584 then | |
13585 ac_cv_c_stack_direction=1 | |
13586 else | |
13587 conftest_rc="$?" | |
13588 echo "configure: failed program was:" >&5 | |
13589 cat conftest.$ac_ext >&5 | |
13590 rm -fr conftest* | |
13591 ac_cv_c_stack_direction=-1 | |
13592 fi | |
13593 rm -fr conftest* | |
13594 | |
13595 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
13596 { test "$extra_verbose" = "yes" && cat << EOF | |
13597 Defining STACK_DIRECTION = $ac_cv_c_stack_direction | |
13598 EOF | |
13599 cat >> confdefs.h <<EOF | |
13600 #define STACK_DIRECTION $ac_cv_c_stack_direction | |
13601 EOF | |
13602 } | |
13603 | |
13604 fi | |
13605 | |
13606 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then | |
13607 echo " xemacs will be linked with \"$ALLOCA\"" | |
13608 fi | |
13609 fi | |
13610 | |
13611 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6 | |
13612 echo "configure:13613: checking for working alloca in function calls" >&5 | |
13613 cat > conftest.$ac_ext <<EOF | |
13614 #line 13615 "configure" | |
13615 #include "confdefs.h" | |
13616 | |
13617 #if defined (__CYGWIN__) | |
13618 #include <alloca.h> | |
13619 #elif defined (__GNUC__) | |
13620 #define alloca __builtin_alloca | |
13621 #elif defined (__DECC) | |
13622 #include <alloca.h> | |
13623 #pragma intrinsic(alloca) | |
13624 #elif defined (HAVE_ALLOCA_H) | |
13625 #include <alloca.h> | |
13626 #elif defined (_AIX) | |
13627 #pragma alloca | |
13628 #elif ! defined (alloca) | |
13629 #ifdef C_ALLOCA | |
13630 #define alloca xemacs_c_alloca | |
13631 #else | |
13632 void *alloca (); | |
13633 #endif /* C_ALLOCA */ | |
13634 #endif /* !defined (alloca) */ | |
13635 | |
13636 void | |
13637 f1 (double a, void *ptr, int b) | |
13638 { | |
13639 unsigned char *ptr2 = (unsigned char *) ptr; | |
13640 if (ptr2[0] != 0xBF || ptr2[1] != 0xBF || ptr2[3000] != 0xBF) | |
13641 exit (1); | |
13642 if (a != 3.1415 || b != -5490) | |
13643 exit (1); | |
13644 } | |
13645 | |
13646 int | |
13647 f2 (short c, void *ptr, long e) | |
13648 { | |
13649 unsigned char *ptr2 = (unsigned char *) ptr; | |
13650 if (ptr2[0] != 0xFB || ptr2[1] != 0xFB || ptr2[1000] != 0xFB) | |
13651 exit (1); | |
13652 if (c != 665 || e != 776776776) | |
13653 exit (1); | |
13654 f1 (3.1415, memset (alloca (3001), 0xBF, 3001), -5490); | |
13655 return 42; | |
13656 } | |
13657 | |
13658 int | |
13659 main (int argc, char *argv[]) | |
13660 { | |
13661 if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42) | |
13662 return 1; | |
13663 return 0; | |
13664 } | |
13665 | |
13666 EOF | |
13667 if { (eval echo configure:13668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
13668 then | |
13669 working_alloca_in_function_calls=yes | |
13670 else | |
13671 conftest_rc="$?" | |
13672 echo "configure: failed program was:" >&5 | |
13673 cat conftest.$ac_ext >&5 | |
13674 rm -fr conftest* | |
13675 working_alloca_in_function_calls=no | |
13676 fi | |
13677 rm -fr conftest* | |
13678 echo "$ac_t""$working_alloca_in_function_calls" 1>&6 | |
13679 test "$working_alloca_in_function_calls" != "yes" && \ | |
13680 { test "$extra_verbose" = "yes" && cat << \EOF | |
13681 Defining BROKEN_ALLOCA_IN_FUNCTION_CALLS | |
13682 EOF | |
13683 cat >> confdefs.h <<\EOF | |
13684 #define BROKEN_ALLOCA_IN_FUNCTION_CALLS 1 | |
13685 EOF | |
13686 } | |
13687 | |
13688 | |
13689 echo $ac_n "checking for working scanf""... $ac_c" 1>&6 | |
13690 echo "configure:13691: checking for working scanf" >&5 | |
13691 cat > conftest.$ac_ext <<EOF | |
13692 #line 13693 "configure" | |
13693 #include "confdefs.h" | |
13694 | |
13695 int | |
13696 main (int argc, char **argv) | |
13697 { | |
13698 int ret, cp1, cp2, endcount; | |
13699 char *p = "0x7d 0x000E "; | |
13700 ret = sscanf (p, "%i %i%n", &cp1, &cp2, &endcount); | |
13701 /* endcount should be 13 but it's 11 in Cygwin newlib after 6/04; | |
13702 this breaks unicode.c */ | |
13703 return endcount != 13; | |
13704 } | |
13705 | |
13706 EOF | |
13707 if { (eval echo configure:13708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
13708 then | |
13709 working_scanf=yes | |
13710 else | |
13711 conftest_rc="$?" | |
13712 echo "configure: failed program was:" >&5 | |
13713 cat conftest.$ac_ext >&5 | |
13714 rm -fr conftest* | |
13715 working_scanf=no | |
13716 fi | |
13717 rm -fr conftest* | |
13718 echo "$ac_t""$working_scanf" 1>&6 | |
13719 test "$working_scanf" != "yes" && \ | |
13720 { test "$extra_verbose" = "yes" && cat << \EOF | |
13721 Defining CYGWIN_SCANF_BUG | |
13722 EOF | |
13723 cat >> confdefs.h <<\EOF | |
13724 #define CYGWIN_SCANF_BUG 1 | |
13725 EOF | |
13726 } | |
13727 | |
13728 | |
13729 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 | |
13730 echo "configure:13731: checking for working strcoll" >&5 | |
13731 | |
13732 cat > conftest.$ac_ext <<EOF | |
13733 #line 13734 "configure" | |
13734 #include "confdefs.h" | |
13735 #include <string.h> | |
13736 main () | |
13737 { | |
13738 exit (strcoll ("abc", "def") >= 0 || | |
13739 strcoll ("ABC", "DEF") >= 0 || | |
13740 strcoll ("123", "456") >= 0); | |
13741 } | |
13742 EOF | |
13743 if { (eval echo configure:13744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
13744 then | |
13745 ac_cv_func_strcoll_works=yes | |
13746 else | |
13747 conftest_rc="$?" | |
13748 echo "configure: failed program was:" >&5 | |
13749 cat conftest.$ac_ext >&5 | |
13750 rm -fr conftest* | |
13751 ac_cv_func_strcoll_works=no | |
13752 fi | |
13753 rm -fr conftest* | |
13754 | |
13755 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6 | |
13756 if test $ac_cv_func_strcoll_works = yes; then | |
13757 { test "$extra_verbose" = "yes" && cat << \EOF | |
13758 Defining HAVE_STRCOLL | |
13759 EOF | |
13760 cat >> confdefs.h <<\EOF | |
13761 #define HAVE_STRCOLL 1 | |
13762 EOF | |
13763 } | |
13764 | |
13765 fi | |
13766 | |
13767 | |
13768 for ac_func in getpgrp | |
13769 do | |
13770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
13771 echo "configure:13772: checking for $ac_func" >&5 | |
13772 | |
13773 cat > conftest.$ac_ext <<EOF | |
13774 #line 13775 "configure" | |
13775 #include "confdefs.h" | |
13776 /* System header to define __stub macros and hopefully few prototypes, | |
13777 which can conflict with char $ac_func(); below. */ | |
13778 #include <assert.h> | |
13779 /* Override any gcc2 internal prototype to avoid an error. */ | |
13780 /* We use char because int might match the return type of a gcc2 | |
13781 builtin and then its argument prototype would still apply. */ | |
13782 char $ac_func(); | |
13783 | |
13784 int main() { | |
13785 | |
13786 /* The GNU C library defines this for functions which it implements | |
13787 to always fail with ENOSYS. Some functions are actually named | |
13788 something starting with __ and the normal name is an alias. */ | |
13789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13790 choke me | |
13791 #else | |
13792 $ac_func(); | |
13793 #endif | |
13794 | |
13795 ; return 0; } | |
13796 EOF | |
13797 if { (eval echo configure:13798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13798 rm -rf conftest* | |
13799 eval "ac_cv_func_$ac_func=yes" | |
13800 else | |
13801 echo "configure: failed program was:" >&5 | |
13802 cat conftest.$ac_ext >&5 | |
13803 rm -rf conftest* | |
13804 eval "ac_cv_func_$ac_func=no" | |
13805 fi | |
13806 rm -f conftest* | |
13807 | |
13808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13809 echo "$ac_t""yes" 1>&6 | |
13810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13811 { test "$extra_verbose" = "yes" && cat << EOF | |
13812 Defining $ac_tr_func | |
13813 EOF | |
13814 cat >> confdefs.h <<EOF | |
13815 #define $ac_tr_func 1 | |
13816 EOF | |
13817 } | |
13818 | |
13819 else | |
13820 echo "$ac_t""no" 1>&6 | |
13821 fi | |
13822 done | |
13823 | |
13824 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 | |
13825 echo "configure:13826: checking whether getpgrp takes no argument" >&5 | |
13826 | |
13827 cat > conftest.$ac_ext <<EOF | |
13828 #line 13829 "configure" | |
13829 #include "confdefs.h" | |
13830 | |
13831 /* | |
13832 * If this system has a BSD-style getpgrp(), | |
13833 * which takes a pid argument, exit unsuccessfully. | |
13834 * | |
13835 * Snarfed from Chet Ramey's bash pgrp.c test program | |
13836 */ | |
13837 #include <stdio.h> | |
13838 #include <sys/types.h> | |
13839 | |
13840 int pid; | |
13841 int pg1, pg2, pg3, pg4; | |
13842 int ng, np, s, child; | |
13843 | |
13844 main() | |
13845 { | |
13846 pid = getpid(); | |
13847 pg1 = getpgrp(0); | |
13848 pg2 = getpgrp(); | |
13849 pg3 = getpgrp(pid); | |
13850 pg4 = getpgrp(1); | |
13851 | |
13852 /* | |
13853 * If all of these values are the same, it's pretty sure that | |
13854 * we're on a system that ignores getpgrp's first argument. | |
13855 */ | |
13856 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3) | |
13857 exit(0); | |
13858 | |
13859 child = fork(); | |
13860 if (child < 0) | |
13861 exit(1); | |
13862 else if (child == 0) { | |
13863 np = getpid(); | |
13864 /* | |
13865 * If this is Sys V, this will not work; pgrp will be | |
13866 * set to np because setpgrp just changes a pgrp to be | |
13867 * the same as the pid. | |
13868 */ | |
13869 setpgrp(np, pg1); | |
13870 ng = getpgrp(0); /* Same result for Sys V and BSD */ | |
13871 if (ng == pg1) { | |
13872 exit(1); | |
13873 } else { | |
13874 exit(0); | |
13875 } | |
13876 } else { | |
13877 wait(&s); | |
13878 exit(s>>8); | |
13879 } | |
13880 } | |
13881 | |
13882 EOF | |
13883 if { (eval echo configure:13884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
13884 then | |
13885 ac_cv_func_getpgrp_void=yes | |
13886 else | |
13887 conftest_rc="$?" | |
13888 echo "configure: failed program was:" >&5 | |
13889 cat conftest.$ac_ext >&5 | |
13890 rm -fr conftest* | |
13891 ac_cv_func_getpgrp_void=no | |
13892 fi | |
13893 rm -fr conftest* | |
13894 | |
13895 | |
13896 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6 | |
13897 if test $ac_cv_func_getpgrp_void = yes; then | |
13898 { test "$extra_verbose" = "yes" && cat << \EOF | |
13899 Defining GETPGRP_VOID | |
13900 EOF | |
13901 cat >> confdefs.h <<\EOF | |
13902 #define GETPGRP_VOID 1 | |
13903 EOF | |
13904 } | |
13905 | |
13906 fi | |
13907 | |
13908 | |
13909 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
13910 echo "configure:13911: checking for working mmap" >&5 | |
13911 case "$opsys" in ultrix* ) have_mmap=no ;; *) | |
13912 cat > conftest.$ac_ext <<EOF | |
13913 #line 13914 "configure" | |
13914 #include "confdefs.h" | |
13915 #include <stdio.h> | |
13916 #include <unistd.h> | |
13917 #include <fcntl.h> | |
13918 #include <sys/mman.h> | |
13919 | |
13920 #ifndef MAP_VARIABLE | |
13921 #define MAP_VARIABLE 0 | |
13922 #endif | |
13923 | |
13924 #ifndef MAP_FAILED | |
13925 #define MAP_FAILED -1 | |
13926 #endif | |
13927 | |
13928 int main (int argc, char *argv[]) | |
13929 { | |
13930 int fd = -1; | |
13931 caddr_t p; | |
13932 #ifndef MAP_ANONYMOUS | |
13933 fd = open ("/dev/zero", O_RDWR); | |
13934 if (fd < 0) | |
13935 return 1; | |
13936 #define MAP_ANONYMOUS 0 | |
13937 #endif | |
13938 if (mmap(0, 1024, PROT_READ | PROT_WRITE, | |
13939 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS, | |
13940 fd, 0) != (void *) MAP_FAILED) | |
13941 return 0; | |
13942 perror ("conftest: mmap failed"); | |
13943 return 1; | |
13944 } | |
13945 EOF | |
13946 if { (eval echo configure:13947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
13947 then | |
13948 have_mmap=yes | |
13949 else | |
13950 conftest_rc="$?" | |
13951 echo "configure: failed program was:" >&5 | |
13952 cat conftest.$ac_ext >&5 | |
13953 rm -fr conftest* | |
13954 have_mmap=no | |
13955 fi | |
13956 rm -fr conftest* ;; | |
13957 esac | |
13958 echo "$ac_t""$have_mmap" 1>&6 | |
13959 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
13960 Defining HAVE_MMAP | |
13961 EOF | |
13962 cat >> confdefs.h <<\EOF | |
13963 #define HAVE_MMAP 1 | |
13964 EOF | |
13965 } | |
13966 | |
13967 | |
13968 case "$opsys" in cygwin*) | |
13969 test "$rel_alloc" = "default" && rel_alloc=no ;; | |
13970 esac | |
13971 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no | |
13972 if test "$rel_alloc $have_mmap" = "default yes"; then | |
13973 if test "$doug_lea_malloc" = "yes"; then | |
13974 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 | |
13975 echo "configure:13976: checking for M_MMAP_THRESHOLD" >&5 | |
13976 cat > conftest.$ac_ext <<EOF | |
13977 #line 13978 "configure" | |
13978 #include "confdefs.h" | |
13979 #include <malloc.h> | |
13980 int main() { | |
13981 | |
13982 #ifndef M_MMAP_THRESHOLD | |
13983 #error No M_MMAP_THRESHOLD :-( | |
13984 !@+$%^&*_)(_ - unlikely to compile... | |
13985 #endif | |
13986 | |
13987 ; return 0; } | |
13988 EOF | |
13989 if { (eval echo configure:13990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13990 rm -rf conftest* | |
13991 rel_alloc=no; echo "$ac_t""yes" 1>&6; | |
13992 else | |
13993 echo "configure: failed program was:" >&5 | |
13994 cat conftest.$ac_ext >&5 | |
13995 rm -rf conftest* | |
13996 rel_alloc=yes; echo "$ac_t""no" 1>&6; | |
13997 fi | |
13998 rm -f conftest* | |
13999 else | |
14000 rel_alloc=yes | |
14001 fi | |
14002 fi | |
14003 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
14004 Defining REL_ALLOC | |
14005 EOF | |
14006 cat >> confdefs.h <<\EOF | |
14007 #define REL_ALLOC 1 | |
14008 EOF | |
14009 } | |
14010 | |
14011 | |
14012 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` | |
14013 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 | |
14014 echo "configure:14015: checking for termios.h" >&5 | |
14015 | |
14016 cat > conftest.$ac_ext <<EOF | |
14017 #line 14018 "configure" | |
14018 #include "confdefs.h" | |
14019 #include <termios.h> | |
14020 EOF | |
14021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14022 { (eval echo configure:14023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14024 if test -z "$ac_err"; then | |
14025 rm -rf conftest* | |
14026 eval "ac_cv_header_$ac_safe=yes" | |
14027 else | |
14028 echo "$ac_err" >&5 | |
14029 echo "configure: failed program was:" >&5 | |
14030 cat conftest.$ac_ext >&5 | |
14031 rm -rf conftest* | |
14032 eval "ac_cv_header_$ac_safe=no" | |
14033 fi | |
14034 rm -f conftest* | |
14035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14036 echo "$ac_t""yes" 1>&6 | |
14037 { test "$extra_verbose" = "yes" && cat << \EOF | |
14038 Defining HAVE_TERMIOS | |
14039 EOF | |
14040 cat >> confdefs.h <<\EOF | |
14041 #define HAVE_TERMIOS 1 | |
14042 EOF | |
14043 } | |
14044 | |
14045 { test "$extra_verbose" = "yes" && cat << \EOF | |
14046 Defining SIGNALS_VIA_CHARACTERS | |
14047 EOF | |
14048 cat >> confdefs.h <<\EOF | |
14049 #define SIGNALS_VIA_CHARACTERS 1 | |
14050 EOF | |
14051 } | |
14052 | |
14053 { test "$extra_verbose" = "yes" && cat << \EOF | |
14054 Defining NO_TERMIO | |
14055 EOF | |
14056 cat >> confdefs.h <<\EOF | |
14057 #define NO_TERMIO 1 | |
14058 EOF | |
14059 } | |
14060 | |
14061 else | |
14062 echo "$ac_t""no" 1>&6 | |
14063 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` | |
14064 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 | |
14065 echo "configure:14066: checking for termio.h" >&5 | |
14066 | |
14067 cat > conftest.$ac_ext <<EOF | |
14068 #line 14069 "configure" | |
14069 #include "confdefs.h" | |
14070 #include <termio.h> | |
14071 EOF | |
14072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14073 { (eval echo configure:14074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14075 if test -z "$ac_err"; then | |
14076 rm -rf conftest* | |
14077 eval "ac_cv_header_$ac_safe=yes" | |
14078 else | |
14079 echo "$ac_err" >&5 | |
14080 echo "configure: failed program was:" >&5 | |
14081 cat conftest.$ac_ext >&5 | |
14082 rm -rf conftest* | |
14083 eval "ac_cv_header_$ac_safe=no" | |
14084 fi | |
14085 rm -f conftest* | |
14086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14087 echo "$ac_t""yes" 1>&6 | |
14088 { test "$extra_verbose" = "yes" && cat << \EOF | |
14089 Defining HAVE_TERMIO | |
14090 EOF | |
14091 cat >> confdefs.h <<\EOF | |
14092 #define HAVE_TERMIO 1 | |
14093 EOF | |
14094 } | |
14095 | |
14096 else | |
14097 echo "$ac_t""no" 1>&6 | |
14098 fi | |
14099 | |
14100 fi | |
14101 | |
14102 | |
14103 | |
14104 echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
14105 echo "configure:14106: checking for socket" >&5 | |
14106 | |
14107 cat > conftest.$ac_ext <<EOF | |
14108 #line 14109 "configure" | |
14109 #include "confdefs.h" | |
14110 /* System header to define __stub macros and hopefully few prototypes, | |
14111 which can conflict with char socket(); below. */ | |
14112 #include <assert.h> | |
14113 /* Override any gcc2 internal prototype to avoid an error. */ | |
14114 /* We use char because int might match the return type of a gcc2 | |
14115 builtin and then its argument prototype would still apply. */ | |
14116 char socket(); | |
14117 | |
14118 int main() { | |
14119 | |
14120 /* The GNU C library defines this for functions which it implements | |
14121 to always fail with ENOSYS. Some functions are actually named | |
14122 something starting with __ and the normal name is an alias. */ | |
14123 #if defined (__stub_socket) || defined (__stub___socket) | |
14124 choke me | |
14125 #else | |
14126 socket(); | |
14127 #endif | |
14128 | |
14129 ; return 0; } | |
14130 EOF | |
14131 if { (eval echo configure:14132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14132 rm -rf conftest* | |
14133 eval "ac_cv_func_socket=yes" | |
14134 else | |
14135 echo "configure: failed program was:" >&5 | |
14136 cat conftest.$ac_ext >&5 | |
14137 rm -rf conftest* | |
14138 eval "ac_cv_func_socket=no" | |
14139 fi | |
14140 rm -f conftest* | |
14141 | |
14142 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
14143 echo "$ac_t""yes" 1>&6 | |
14144 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | |
14145 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | |
14146 echo "configure:14147: checking for netinet/in.h" >&5 | |
14147 | |
14148 cat > conftest.$ac_ext <<EOF | |
14149 #line 14150 "configure" | |
14150 #include "confdefs.h" | |
14151 #include <netinet/in.h> | |
14152 EOF | |
14153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14154 { (eval echo configure:14155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14156 if test -z "$ac_err"; then | |
14157 rm -rf conftest* | |
14158 eval "ac_cv_header_$ac_safe=yes" | |
14159 else | |
14160 echo "$ac_err" >&5 | |
14161 echo "configure: failed program was:" >&5 | |
14162 cat conftest.$ac_ext >&5 | |
14163 rm -rf conftest* | |
14164 eval "ac_cv_header_$ac_safe=no" | |
14165 fi | |
14166 rm -f conftest* | |
14167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14168 echo "$ac_t""yes" 1>&6 | |
14169 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | |
14170 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | |
14171 echo "configure:14172: checking for arpa/inet.h" >&5 | |
14172 | |
14173 cat > conftest.$ac_ext <<EOF | |
14174 #line 14175 "configure" | |
14175 #include "confdefs.h" | |
14176 #include <arpa/inet.h> | |
14177 EOF | |
14178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14179 { (eval echo configure:14180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14181 if test -z "$ac_err"; then | |
14182 rm -rf conftest* | |
14183 eval "ac_cv_header_$ac_safe=yes" | |
14184 else | |
14185 echo "$ac_err" >&5 | |
14186 echo "configure: failed program was:" >&5 | |
14187 cat conftest.$ac_ext >&5 | |
14188 rm -rf conftest* | |
14189 eval "ac_cv_header_$ac_safe=no" | |
14190 fi | |
14191 rm -f conftest* | |
14192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14193 echo "$ac_t""yes" 1>&6 | |
14194 | |
14195 { test "$extra_verbose" = "yes" && cat << \EOF | |
14196 Defining HAVE_SOCKETS | |
14197 EOF | |
14198 cat >> confdefs.h <<\EOF | |
14199 #define HAVE_SOCKETS 1 | |
14200 EOF | |
14201 } | |
14202 | |
14203 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 | |
14204 echo "configure:14205: checking "for sun_len member in struct sockaddr_un"" >&5 | |
14205 cat > conftest.$ac_ext <<EOF | |
14206 #line 14207 "configure" | |
14207 #include "confdefs.h" | |
14208 | |
14209 #include <sys/types.h> | |
14210 #include <sys/socket.h> | |
14211 #include <sys/un.h> | |
14212 | |
14213 int main() { | |
14214 static struct sockaddr_un x; x.sun_len = 1; | |
14215 ; return 0; } | |
14216 EOF | |
14217 if { (eval echo configure:14218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14218 rm -rf conftest* | |
14219 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF | |
14220 Defining HAVE_SOCKADDR_SUN_LEN | |
14221 EOF | |
14222 cat >> confdefs.h <<\EOF | |
14223 #define HAVE_SOCKADDR_SUN_LEN 1 | |
14224 EOF | |
14225 } | |
14226 | |
14227 else | |
14228 echo "configure: failed program was:" >&5 | |
14229 cat conftest.$ac_ext >&5 | |
14230 rm -rf conftest* | |
14231 echo "$ac_t""no" 1>&6 | |
14232 fi | |
14233 rm -f conftest* | |
14234 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 | |
14235 echo "configure:14236: checking "for ip_mreq struct in netinet/in.h"" >&5 | |
14236 cat > conftest.$ac_ext <<EOF | |
14237 #line 14238 "configure" | |
14238 #include "confdefs.h" | |
14239 | |
14240 #include <sys/types.h> | |
14241 #include <netinet/in.h> | |
14242 | |
14243 int main() { | |
14244 static struct ip_mreq x; | |
14245 ; return 0; } | |
14246 EOF | |
14247 if { (eval echo configure:14248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14248 rm -rf conftest* | |
14249 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF | |
14250 Defining HAVE_MULTICAST | |
14251 EOF | |
14252 cat >> confdefs.h <<\EOF | |
14253 #define HAVE_MULTICAST 1 | |
14254 EOF | |
14255 } | |
14256 | |
14257 else | |
14258 echo "configure: failed program was:" >&5 | |
14259 cat conftest.$ac_ext >&5 | |
14260 rm -rf conftest* | |
14261 echo "$ac_t""no" 1>&6 | |
14262 fi | |
14263 rm -f conftest* | |
14264 else | |
14265 echo "$ac_t""no" 1>&6 | |
14266 fi | |
14267 | |
14268 else | |
14269 echo "$ac_t""no" 1>&6 | |
14270 fi | |
14271 | |
14272 else | |
14273 echo "$ac_t""no" 1>&6 | |
14274 fi | |
14275 | |
14276 | |
14277 echo $ac_n "checking for msgget""... $ac_c" 1>&6 | |
14278 echo "configure:14279: checking for msgget" >&5 | |
14279 | |
14280 cat > conftest.$ac_ext <<EOF | |
14281 #line 14282 "configure" | |
14282 #include "confdefs.h" | |
14283 /* System header to define __stub macros and hopefully few prototypes, | |
14284 which can conflict with char msgget(); below. */ | |
14285 #include <assert.h> | |
14286 /* Override any gcc2 internal prototype to avoid an error. */ | |
14287 /* We use char because int might match the return type of a gcc2 | |
14288 builtin and then its argument prototype would still apply. */ | |
14289 char msgget(); | |
14290 | |
14291 int main() { | |
14292 | |
14293 /* The GNU C library defines this for functions which it implements | |
14294 to always fail with ENOSYS. Some functions are actually named | |
14295 something starting with __ and the normal name is an alias. */ | |
14296 #if defined (__stub_msgget) || defined (__stub___msgget) | |
14297 choke me | |
14298 #else | |
14299 msgget(); | |
14300 #endif | |
14301 | |
14302 ; return 0; } | |
14303 EOF | |
14304 if { (eval echo configure:14305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14305 rm -rf conftest* | |
14306 eval "ac_cv_func_msgget=yes" | |
14307 else | |
14308 echo "configure: failed program was:" >&5 | |
14309 cat conftest.$ac_ext >&5 | |
14310 rm -rf conftest* | |
14311 eval "ac_cv_func_msgget=no" | |
14312 fi | |
14313 rm -f conftest* | |
14314 | |
14315 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then | |
14316 echo "$ac_t""yes" 1>&6 | |
14317 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` | |
14318 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 | |
14319 echo "configure:14320: checking for sys/ipc.h" >&5 | |
14320 | |
14321 cat > conftest.$ac_ext <<EOF | |
14322 #line 14323 "configure" | |
14323 #include "confdefs.h" | |
14324 #include <sys/ipc.h> | |
14325 EOF | |
14326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14327 { (eval echo configure:14328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14329 if test -z "$ac_err"; then | |
14330 rm -rf conftest* | |
14331 eval "ac_cv_header_$ac_safe=yes" | |
14332 else | |
14333 echo "$ac_err" >&5 | |
14334 echo "configure: failed program was:" >&5 | |
14335 cat conftest.$ac_ext >&5 | |
14336 rm -rf conftest* | |
14337 eval "ac_cv_header_$ac_safe=no" | |
14338 fi | |
14339 rm -f conftest* | |
14340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14341 echo "$ac_t""yes" 1>&6 | |
14342 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` | |
14343 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 | |
14344 echo "configure:14345: checking for sys/msg.h" >&5 | |
14345 | |
14346 cat > conftest.$ac_ext <<EOF | |
14347 #line 14348 "configure" | |
14348 #include "confdefs.h" | |
14349 #include <sys/msg.h> | |
14350 EOF | |
14351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14352 { (eval echo configure:14353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14354 if test -z "$ac_err"; then | |
14355 rm -rf conftest* | |
14356 eval "ac_cv_header_$ac_safe=yes" | |
14357 else | |
14358 echo "$ac_err" >&5 | |
14359 echo "configure: failed program was:" >&5 | |
14360 cat conftest.$ac_ext >&5 | |
14361 rm -rf conftest* | |
14362 eval "ac_cv_header_$ac_safe=no" | |
14363 fi | |
14364 rm -f conftest* | |
14365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14366 echo "$ac_t""yes" 1>&6 | |
14367 { test "$extra_verbose" = "yes" && cat << \EOF | |
14368 Defining HAVE_SYSVIPC | |
14369 EOF | |
14370 cat >> confdefs.h <<\EOF | |
14371 #define HAVE_SYSVIPC 1 | |
14372 EOF | |
14373 } | |
14374 | |
14375 else | |
14376 echo "$ac_t""no" 1>&6 | |
14377 fi | |
14378 | |
14379 else | |
14380 echo "$ac_t""no" 1>&6 | |
14381 fi | |
14382 | |
14383 else | |
14384 echo "$ac_t""no" 1>&6 | |
14385 fi | |
14386 | |
14387 | |
14388 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` | |
14389 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 | |
14390 echo "configure:14391: checking for dirent.h" >&5 | |
14391 | |
14392 cat > conftest.$ac_ext <<EOF | |
14393 #line 14394 "configure" | |
14394 #include "confdefs.h" | |
14395 #include <dirent.h> | |
14396 EOF | |
14397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14398 { (eval echo configure:14399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14400 if test -z "$ac_err"; then | |
14401 rm -rf conftest* | |
14402 eval "ac_cv_header_$ac_safe=yes" | |
14403 else | |
14404 echo "$ac_err" >&5 | |
14405 echo "configure: failed program was:" >&5 | |
14406 cat conftest.$ac_ext >&5 | |
14407 rm -rf conftest* | |
14408 eval "ac_cv_header_$ac_safe=no" | |
14409 fi | |
14410 rm -f conftest* | |
14411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14412 echo "$ac_t""yes" 1>&6 | |
14413 { test "$extra_verbose" = "yes" && cat << \EOF | |
14414 Defining SYSV_SYSTEM_DIR | |
14415 EOF | |
14416 cat >> confdefs.h <<\EOF | |
14417 #define SYSV_SYSTEM_DIR 1 | |
14418 EOF | |
14419 } | |
14420 | |
14421 else | |
14422 echo "$ac_t""no" 1>&6 | |
14423 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` | |
14424 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 | |
14425 echo "configure:14426: checking for sys/dir.h" >&5 | |
14426 | |
14427 cat > conftest.$ac_ext <<EOF | |
14428 #line 14429 "configure" | |
14429 #include "confdefs.h" | |
14430 #include <sys/dir.h> | |
14431 EOF | |
14432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14433 { (eval echo configure:14434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14435 if test -z "$ac_err"; then | |
14436 rm -rf conftest* | |
14437 eval "ac_cv_header_$ac_safe=yes" | |
14438 else | |
14439 echo "$ac_err" >&5 | |
14440 echo "configure: failed program was:" >&5 | |
14441 cat conftest.$ac_ext >&5 | |
14442 rm -rf conftest* | |
14443 eval "ac_cv_header_$ac_safe=no" | |
14444 fi | |
14445 rm -f conftest* | |
14446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14447 echo "$ac_t""yes" 1>&6 | |
14448 : | |
14449 else | |
14450 echo "$ac_t""no" 1>&6 | |
14451 { test "$extra_verbose" = "yes" && cat << \EOF | |
14452 Defining NONSYSTEM_DIR_LIBRARY | |
14453 EOF | |
14454 cat >> confdefs.h <<\EOF | |
14455 #define NONSYSTEM_DIR_LIBRARY 1 | |
14456 EOF | |
14457 } | |
14458 | |
14459 fi | |
14460 | |
14461 fi | |
14462 | |
14463 | |
14464 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | |
14465 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | |
14466 echo "configure:14467: checking for nlist.h" >&5 | |
14467 | |
14468 cat > conftest.$ac_ext <<EOF | |
14469 #line 14470 "configure" | |
14470 #include "confdefs.h" | |
14471 #include <nlist.h> | |
14472 EOF | |
14473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14474 { (eval echo configure:14475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14476 if test -z "$ac_err"; then | |
14477 rm -rf conftest* | |
14478 eval "ac_cv_header_$ac_safe=yes" | |
14479 else | |
14480 echo "$ac_err" >&5 | |
14481 echo "configure: failed program was:" >&5 | |
14482 cat conftest.$ac_ext >&5 | |
14483 rm -rf conftest* | |
14484 eval "ac_cv_header_$ac_safe=no" | |
14485 fi | |
14486 rm -f conftest* | |
14487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14488 echo "$ac_t""yes" 1>&6 | |
14489 { test "$extra_verbose" = "yes" && cat << \EOF | |
14490 Defining NLIST_STRUCT | |
14491 EOF | |
14492 cat >> confdefs.h <<\EOF | |
14493 #define NLIST_STRUCT 1 | |
14494 EOF | |
14495 } | |
14496 | |
14497 else | |
14498 echo "$ac_t""no" 1>&6 | |
14499 fi | |
14500 | |
14501 | |
14502 | |
14503 echo "checking "for sound support"" 1>&6 | |
14504 echo "configure:14505: checking "for sound support"" >&5 | |
14505 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes | |
14506 | |
14507 if test "$with_native_sound" != "no"; then | |
14508 if test -n "$native_sound_lib"; then | |
14509 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` | |
14510 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 | |
14511 echo "configure:14512: checking for multimedia/audio_device.h" >&5 | |
14512 | |
14513 cat > conftest.$ac_ext <<EOF | |
14514 #line 14515 "configure" | |
14515 #include "confdefs.h" | |
14516 #include <multimedia/audio_device.h> | |
14517 EOF | |
14518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14519 { (eval echo configure:14520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14521 if test -z "$ac_err"; then | |
14522 rm -rf conftest* | |
14523 eval "ac_cv_header_$ac_safe=yes" | |
14524 else | |
14525 echo "$ac_err" >&5 | |
14526 echo "configure: failed program was:" >&5 | |
14527 cat conftest.$ac_ext >&5 | |
14528 rm -rf conftest* | |
14529 eval "ac_cv_header_$ac_safe=no" | |
14530 fi | |
14531 rm -f conftest* | |
14532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14533 echo "$ac_t""yes" 1>&6 | |
14534 sound_found=yes sound_cflags="" | |
14535 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then | |
14536 echo " xemacs will be linked with \"sunplay.o\"" | |
14537 fi | |
14538 else | |
14539 echo "$ac_t""no" 1>&6 | |
14540 fi | |
14541 | |
14542 fi | |
14543 | |
14544 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then | |
14545 if test -d "/usr/demo/SOUND/include/multimedia"; then | |
14546 sun_sound_cflags="-I/usr/demo/SOUND/include" | |
14547 elif test -d "/usr/demo/SOUND/multimedia"; then | |
14548 sun_sound_cflags="-I/usr/demo/SOUND" | |
14549 fi | |
14550 | |
14551 if test -n "$native_sound_lib"; then | |
14552 sun_sound_lib="$native_sound_lib" | |
14553 elif test -r "/usr/demo/SOUND/lib/libaudio.a"; then | |
14554 sun_sound_lib="/usr/demo/SOUND/lib/libaudio.a" | |
14555 elif test -r "/usr/demo/SOUND/libaudio.a"; then | |
14556 sun_sound_lib="/usr/demo/SOUND/libaudio.a" | |
14557 fi | |
14558 | |
14559 if test -n "$sun_sound_cflags" -a -n "$sun_sound_lib"; then | |
14560 native_sound_lib="$sun_sound_lib" | |
14561 sound_cflags="$sun_sound_cflags" | |
14562 sound_found=yes | |
14563 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then | |
14564 echo " xemacs will be linked with \"sunplay.o\"" | |
14565 fi | |
14566 fi | |
14567 fi | |
14568 | |
14569 if test -z "$sound_found"; then | |
14570 case "$canonical" in | |
14571 *-sgi-* ) | |
14572 if test -z "$native_sound_lib"; then | |
14573 | |
14574 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 | |
14575 echo "configure:14576: checking for ALopenport in -laudio" >&5 | |
14576 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` | |
14577 | |
14578 xe_check_libs=" -laudio " | |
14579 cat > conftest.$ac_ext <<EOF | |
14580 #line 14581 "configure" | |
14581 #include "confdefs.h" | |
14582 /* Override any gcc2 internal prototype to avoid an error. */ | |
14583 /* We use char because int might match the return type of a gcc2 | |
14584 builtin and then its argument prototype would still apply. */ | |
14585 char ALopenport(); | |
14586 | |
14587 int main() { | |
14588 ALopenport() | |
14589 ; return 0; } | |
14590 EOF | |
14591 if { (eval echo configure:14592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14592 rm -rf conftest* | |
14593 eval "ac_cv_lib_$ac_lib_var=yes" | |
14594 else | |
14595 echo "configure: failed program was:" >&5 | |
14596 cat conftest.$ac_ext >&5 | |
14597 rm -rf conftest* | |
14598 eval "ac_cv_lib_$ac_lib_var=no" | |
14599 fi | |
14600 rm -f conftest* | |
14601 xe_check_libs="" | |
14602 | |
14603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
14604 echo "$ac_t""yes" 1>&6 | |
14605 native_sound_lib="-laudio" | |
14606 else | |
14607 echo "$ac_t""no" 1>&6 | |
14608 fi | |
14609 | |
14610 | |
14611 fi | |
14612 if test -n "$native_sound_lib"; then | |
14613 sound_found=yes sound_cflags="" | |
14614 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then | |
14615 echo " xemacs will be linked with \"sgiplay.o\"" | |
14616 fi | |
14617 fi ;; | |
14618 hppa*-hp-hpux* ) | |
14619 if test -z "$native_sound_lib"; then | |
14620 | |
14621 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 | |
14622 echo "configure:14623: checking for AOpenAudio in -lAlib" >&5 | |
14623 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` | |
14624 | |
14625 xe_check_libs=" -lAlib " | |
14626 cat > conftest.$ac_ext <<EOF | |
14627 #line 14628 "configure" | |
14628 #include "confdefs.h" | |
14629 /* Override any gcc2 internal prototype to avoid an error. */ | |
14630 /* We use char because int might match the return type of a gcc2 | |
14631 builtin and then its argument prototype would still apply. */ | |
14632 char AOpenAudio(); | |
14633 | |
14634 int main() { | |
14635 AOpenAudio() | |
14636 ; return 0; } | |
14637 EOF | |
14638 if { (eval echo configure:14639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14639 rm -rf conftest* | |
14640 eval "ac_cv_lib_$ac_lib_var=yes" | |
14641 else | |
14642 echo "configure: failed program was:" >&5 | |
14643 cat conftest.$ac_ext >&5 | |
14644 rm -rf conftest* | |
14645 eval "ac_cv_lib_$ac_lib_var=no" | |
14646 fi | |
14647 rm -f conftest* | |
14648 xe_check_libs="" | |
14649 | |
14650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
14651 echo "$ac_t""yes" 1>&6 | |
14652 native_sound_lib="-lAlib" | |
14653 else | |
14654 echo "$ac_t""no" 1>&6 | |
14655 fi | |
14656 | |
14657 | |
14658 fi | |
14659 if test -n "$native_sound_lib"; then | |
14660 sound_found=yes | |
14661 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then | |
14662 echo " xemacs will be linked with \"hpplay.o\"" | |
14663 fi | |
14664 if test "$GCC" = "yes" # Kludge city | |
14665 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples" | |
14666 else sound_cflags="+e -I/usr/audio/examples" | |
14667 fi | |
14668 fi ;; | |
14669 esac | |
14670 fi | |
14671 | |
14672 if test -z "$sound_found"; then | |
14673 if test "$with_msw" = "yes"; then | |
14674 sound_found=yes | |
14675 native_sound_lib= | |
14676 extra_objs="$extra_objs ntplay.o" && if test "$extra_verbose" = "yes"; then | |
14677 echo " xemacs will be linked with \"ntplay.o\"" | |
14678 fi | |
14679 fi | |
14680 fi | |
14681 | |
14682 if test -z "$sound_found"; then | |
14683 for dir in "machine" "sys" "linux"; do | |
14684 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` | |
14685 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 | |
14686 echo "configure:14687: checking for ${dir}/soundcard.h" >&5 | |
14687 | |
14688 cat > conftest.$ac_ext <<EOF | |
14689 #line 14690 "configure" | |
14690 #include "confdefs.h" | |
14691 #include <${dir}/soundcard.h> | |
14692 EOF | |
14693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14694 { (eval echo configure:14695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14696 if test -z "$ac_err"; then | |
14697 rm -rf conftest* | |
14698 eval "ac_cv_header_$ac_safe=yes" | |
14699 else | |
14700 echo "$ac_err" >&5 | |
14701 echo "configure: failed program was:" >&5 | |
14702 cat conftest.$ac_ext >&5 | |
14703 rm -rf conftest* | |
14704 eval "ac_cv_header_$ac_safe=no" | |
14705 fi | |
14706 rm -f conftest* | |
14707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14708 echo "$ac_t""yes" 1>&6 | |
14709 sound_found=yes | |
14710 need_miscplay=yes | |
14711 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then | |
14712 echo " xemacs will be linked with \"linuxplay.o\"" | |
14713 fi | |
14714 { test "$extra_verbose" = "yes" && cat << EOF | |
14715 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h" | |
14716 EOF | |
14717 cat >> confdefs.h <<EOF | |
14718 #define SOUNDCARD_H_FILE "${dir}/soundcard.h" | |
14719 EOF | |
14720 } | |
14721 | |
14722 break | |
14723 else | |
14724 echo "$ac_t""no" 1>&6 | |
14725 fi | |
14726 | |
14727 done | |
14728 fi | |
14729 | |
14730 if test "$sound_found" = "yes"; then | |
14731 with_native_sound=yes | |
14732 | |
14733 if test "$opsys" = "netbsd" ; then | |
14734 | |
14735 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 | |
14736 echo "configure:14737: checking for _oss_ioctl in -lossaudio" >&5 | |
14737 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` | |
14738 | |
14739 xe_check_libs=" -lossaudio " | |
14740 cat > conftest.$ac_ext <<EOF | |
14741 #line 14742 "configure" | |
14742 #include "confdefs.h" | |
14743 /* Override any gcc2 internal prototype to avoid an error. */ | |
14744 /* We use char because int might match the return type of a gcc2 | |
14745 builtin and then its argument prototype would still apply. */ | |
14746 char _oss_ioctl(); | |
14747 | |
14748 int main() { | |
14749 _oss_ioctl() | |
14750 ; return 0; } | |
14751 EOF | |
14752 if { (eval echo configure:14753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14753 rm -rf conftest* | |
14754 eval "ac_cv_lib_$ac_lib_var=yes" | |
14755 else | |
14756 echo "configure: failed program was:" >&5 | |
14757 cat conftest.$ac_ext >&5 | |
14758 rm -rf conftest* | |
14759 eval "ac_cv_lib_$ac_lib_var=no" | |
14760 fi | |
14761 rm -f conftest* | |
14762 xe_check_libs="" | |
14763 | |
14764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
14765 echo "$ac_t""yes" 1>&6 | |
14766 native_sound_lib="-lossaudio" | |
14767 else | |
14768 echo "$ac_t""no" 1>&6 | |
14769 fi | |
14770 | |
14771 | |
14772 fi | |
14773 fi | |
14774 fi | |
14775 | |
14776 if test "$with_native_sound" = "yes"; then | |
14777 { test "$extra_verbose" = "yes" && cat << \EOF | |
14778 Defining HAVE_NATIVE_SOUND | |
14779 EOF | |
14780 cat >> confdefs.h <<\EOF | |
14781 #define HAVE_NATIVE_SOUND 1 | |
14782 EOF | |
14783 } | |
14784 | |
14785 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi | |
14786 fi | |
14787 | |
14788 if test "$with_nas_sound" != "no"; then | |
14789 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` | |
14790 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 | |
14791 echo "configure:14792: checking for audio/audiolib.h" >&5 | |
14792 | |
14793 cat > conftest.$ac_ext <<EOF | |
14794 #line 14795 "configure" | |
14795 #include "confdefs.h" | |
14796 #include <audio/audiolib.h> | |
14797 EOF | |
14798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14799 { (eval echo configure:14800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14801 if test -z "$ac_err"; then | |
14802 rm -rf conftest* | |
14803 eval "ac_cv_header_$ac_safe=yes" | |
14804 else | |
14805 echo "$ac_err" >&5 | |
14806 echo "configure: failed program was:" >&5 | |
14807 cat conftest.$ac_ext >&5 | |
14808 rm -rf conftest* | |
14809 eval "ac_cv_header_$ac_safe=no" | |
14810 fi | |
14811 rm -f conftest* | |
14812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14813 echo "$ac_t""yes" 1>&6 | |
14814 | |
14815 | |
14816 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 | |
14817 echo "configure:14818: checking for AuOpenServer in -laudio" >&5 | |
14818 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` | |
14819 | |
14820 xe_check_libs=" -laudio " | |
14821 cat > conftest.$ac_ext <<EOF | |
14822 #line 14823 "configure" | |
14823 #include "confdefs.h" | |
14824 /* Override any gcc2 internal prototype to avoid an error. */ | |
14825 /* We use char because int might match the return type of a gcc2 | |
14826 builtin and then its argument prototype would still apply. */ | |
14827 char AuOpenServer(); | |
14828 | |
14829 int main() { | |
14830 AuOpenServer() | |
14831 ; return 0; } | |
14832 EOF | |
14833 if { (eval echo configure:14834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14834 rm -rf conftest* | |
14835 eval "ac_cv_lib_$ac_lib_var=yes" | |
14836 else | |
14837 echo "configure: failed program was:" >&5 | |
14838 cat conftest.$ac_ext >&5 | |
14839 rm -rf conftest* | |
14840 eval "ac_cv_lib_$ac_lib_var=no" | |
14841 fi | |
14842 rm -f conftest* | |
14843 xe_check_libs="" | |
14844 | |
14845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
14846 echo "$ac_t""yes" 1>&6 | |
14847 have_nas_sound=yes | |
14848 else | |
14849 echo "$ac_t""no" 1>&6 | |
14850 fi | |
14851 | |
14852 | |
14853 else | |
14854 echo "$ac_t""no" 1>&6 | |
14855 fi | |
14856 | |
14857 if test "$have_nas_sound" = "yes"; then | |
14858 with_nas_sound=yes | |
14859 { test "$extra_verbose" = "yes" && cat << \EOF | |
14860 Defining HAVE_NAS_SOUND | |
14861 EOF | |
14862 cat >> confdefs.h <<\EOF | |
14863 #define HAVE_NAS_SOUND 1 | |
14864 EOF | |
14865 } | |
14866 | |
14867 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then | |
14868 echo " xemacs will be linked with \"nas.o\"" | |
14869 fi | |
14870 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi | |
14871 cat > conftest.$ac_ext <<EOF | |
14872 #line 14873 "configure" | |
14873 #include "confdefs.h" | |
14874 #include <audio/Xtutil.h> | |
14875 EOF | |
14876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14877 egrep "AuXtErrorJump" >/dev/null 2>&1; then | |
14878 : | |
14879 else | |
14880 rm -rf conftest* | |
14881 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF | |
14882 Defining NAS_NO_ERROR_JUMP | |
14883 EOF | |
14884 cat >> confdefs.h <<\EOF | |
14885 #define NAS_NO_ERROR_JUMP 1 | |
14886 EOF | |
14887 } | |
14888 | |
14889 fi | |
14890 rm -f conftest* | |
14891 | |
14892 else | |
14893 test "$with_nas_sound" = "yes" && \ | |
14894 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; } | |
14895 with_nas_sound=no | |
14896 fi | |
14897 fi | |
14898 | |
14899 if test "$with_esd_sound" != "no"; then | |
14900 # Extract the first word of "esd-config", so it can be a program name with args. | |
14901 set dummy esd-config; ac_word=$2 | |
14902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
14903 echo "configure:14904: checking for $ac_word" >&5 | |
14904 | |
14905 if test -n "$have_esd_config"; then | |
14906 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. | |
14907 else | |
14908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14909 ac_dummy="$PATH" | |
14910 for ac_dir in $ac_dummy; do | |
14911 test -z "$ac_dir" && ac_dir=. | |
14912 if test -f $ac_dir/$ac_word; then | |
14913 ac_cv_prog_have_esd_config="yes" | |
14914 break | |
14915 fi | |
14916 done | |
14917 IFS="$ac_save_ifs" | |
14918 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no" | |
14919 fi | |
14920 have_esd_config="$ac_cv_prog_have_esd_config" | |
14921 if test -n "$have_esd_config"; then | |
14922 echo "$ac_t""$have_esd_config" 1>&6 | |
14923 else | |
14924 echo "$ac_t""no" 1>&6 | |
14925 fi | |
14926 | |
14927 if test "$have_esd_config" = "yes"; then | |
14928 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" | |
14929 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 | |
14930 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi | |
14931 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 | |
14932 echo "configure:14933: checking for esd_play_stream" >&5 | |
14933 | |
14934 cat > conftest.$ac_ext <<EOF | |
14935 #line 14936 "configure" | |
14936 #include "confdefs.h" | |
14937 /* System header to define __stub macros and hopefully few prototypes, | |
14938 which can conflict with char esd_play_stream(); below. */ | |
14939 #include <assert.h> | |
14940 /* Override any gcc2 internal prototype to avoid an error. */ | |
14941 /* We use char because int might match the return type of a gcc2 | |
14942 builtin and then its argument prototype would still apply. */ | |
14943 char esd_play_stream(); | |
14944 | |
14945 int main() { | |
14946 | |
14947 /* The GNU C library defines this for functions which it implements | |
14948 to always fail with ENOSYS. Some functions are actually named | |
14949 something starting with __ and the normal name is an alias. */ | |
14950 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream) | |
14951 choke me | |
14952 #else | |
14953 esd_play_stream(); | |
14954 #endif | |
14955 | |
14956 ; return 0; } | |
14957 EOF | |
14958 if { (eval echo configure:14959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14959 rm -rf conftest* | |
14960 eval "ac_cv_func_esd_play_stream=yes" | |
14961 else | |
14962 echo "configure: failed program was:" >&5 | |
14963 cat conftest.$ac_ext >&5 | |
14964 rm -rf conftest* | |
14965 eval "ac_cv_func_esd_play_stream=no" | |
14966 fi | |
14967 rm -f conftest* | |
14968 | |
14969 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then | |
14970 echo "$ac_t""yes" 1>&6 | |
14971 have_esd_sound=yes | |
14972 else | |
14973 echo "$ac_t""no" 1>&6 | |
14974 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS" | |
14975 fi | |
14976 | |
14977 fi | |
14978 | |
14979 if test "$have_esd_sound" = "yes"; then | |
14980 with_esd_sound=yes | |
14981 need_miscplay=yes | |
14982 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then | |
14983 echo " xemacs will be linked with \"esd.o\"" | |
14984 fi | |
14985 { test "$extra_verbose" = "yes" && cat << \EOF | |
14986 Defining HAVE_ESD_SOUND | |
14987 EOF | |
14988 cat >> confdefs.h <<\EOF | |
14989 #define HAVE_ESD_SOUND 1 | |
14990 EOF | |
14991 } | |
14992 | |
14993 else | |
14994 test "$with_esd_sound" = "yes" && \ | |
14995 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; } | |
14996 with_esd_sound=no | |
14997 fi | |
14998 fi | |
14999 | |
15000 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then | |
15001 echo " xemacs will be linked with \"miscplay.o\"" | |
15002 fi | |
15003 | |
15004 | |
15005 test -z "$with_tty" && with_tty=yes | |
15006 | |
15007 if test "$with_tty" = "yes" ; then | |
15008 echo "checking for TTY-related features" 1>&6 | |
15009 echo "configure:15010: checking for TTY-related features" >&5 | |
15010 { test "$extra_verbose" = "yes" && cat << \EOF | |
15011 Defining HAVE_TTY | |
15012 EOF | |
15013 cat >> confdefs.h <<\EOF | |
15014 #define HAVE_TTY 1 | |
15015 EOF | |
15016 } | |
15017 | |
15018 | |
15019 if test -z "$with_ncurses"; then | |
15020 | |
15021 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 | |
15022 echo "configure:15023: checking for tgetent in -lncurses" >&5 | |
15023 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` | |
15024 | |
15025 xe_check_libs=" -lncurses " | |
15026 cat > conftest.$ac_ext <<EOF | |
15027 #line 15028 "configure" | |
15028 #include "confdefs.h" | |
15029 /* Override any gcc2 internal prototype to avoid an error. */ | |
15030 /* We use char because int might match the return type of a gcc2 | |
15031 builtin and then its argument prototype would still apply. */ | |
15032 char tgetent(); | |
15033 | |
15034 int main() { | |
15035 tgetent() | |
15036 ; return 0; } | |
15037 EOF | |
15038 if { (eval echo configure:15039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15039 rm -rf conftest* | |
15040 eval "ac_cv_lib_$ac_lib_var=yes" | |
15041 else | |
15042 echo "configure: failed program was:" >&5 | |
15043 cat conftest.$ac_ext >&5 | |
15044 rm -rf conftest* | |
15045 eval "ac_cv_lib_$ac_lib_var=no" | |
15046 fi | |
15047 rm -f conftest* | |
15048 xe_check_libs="" | |
15049 | |
15050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
15051 echo "$ac_t""yes" 1>&6 | |
15052 with_ncurses=yes | |
15053 else | |
15054 echo "$ac_t""no" 1>&6 | |
15055 with_ncurses=no | |
15056 fi | |
15057 | |
15058 | |
15059 fi | |
15060 if test "$with_ncurses" = "yes"; then | |
15061 { test "$extra_verbose" = "yes" && cat << \EOF | |
15062 Defining HAVE_NCURSES | |
15063 EOF | |
15064 cat >> confdefs.h <<\EOF | |
15065 #define HAVE_NCURSES 1 | |
15066 EOF | |
15067 } | |
15068 | |
15069 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` | |
15070 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 | |
15071 echo "configure:15072: checking for ncurses/curses.h" >&5 | |
15072 | |
15073 cat > conftest.$ac_ext <<EOF | |
15074 #line 15075 "configure" | |
15075 #include "confdefs.h" | |
15076 #include <ncurses/curses.h> | |
15077 EOF | |
15078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15079 { (eval echo configure:15080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15081 if test -z "$ac_err"; then | |
15082 rm -rf conftest* | |
15083 eval "ac_cv_header_$ac_safe=yes" | |
15084 else | |
15085 echo "$ac_err" >&5 | |
15086 echo "configure: failed program was:" >&5 | |
15087 cat conftest.$ac_ext >&5 | |
15088 rm -rf conftest* | |
15089 eval "ac_cv_header_$ac_safe=no" | |
15090 fi | |
15091 rm -f conftest* | |
15092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15093 echo "$ac_t""yes" 1>&6 | |
15094 curses_h_file=ncurses/curses.h | |
15095 else | |
15096 echo "$ac_t""no" 1>&6 | |
15097 fi | |
15098 | |
15099 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` | |
15100 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 | |
15101 echo "configure:15102: checking for ncurses/term.h" >&5 | |
15102 | |
15103 cat > conftest.$ac_ext <<EOF | |
15104 #line 15105 "configure" | |
15105 #include "confdefs.h" | |
15106 #include <ncurses/term.h> | |
15107 EOF | |
15108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15109 { (eval echo configure:15110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15111 if test -z "$ac_err"; then | |
15112 rm -rf conftest* | |
15113 eval "ac_cv_header_$ac_safe=yes" | |
15114 else | |
15115 echo "$ac_err" >&5 | |
15116 echo "configure: failed program was:" >&5 | |
15117 cat conftest.$ac_ext >&5 | |
15118 rm -rf conftest* | |
15119 eval "ac_cv_header_$ac_safe=no" | |
15120 fi | |
15121 rm -f conftest* | |
15122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15123 echo "$ac_t""yes" 1>&6 | |
15124 term_h_file=ncurses/term.h | |
15125 else | |
15126 echo "$ac_t""no" 1>&6 | |
15127 fi | |
15128 | |
15129 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then | |
15130 echo " xemacs will be linked with \"terminfo.o\"" | |
15131 fi | |
15132 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi | |
15133 | |
15134 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then | |
15135 save_c_switch_site="$c_switch_site" | |
15136 c_switch_site="$c_switch_site -I/usr/include/ncurses" | |
15137 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` | |
15138 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 | |
15139 echo "configure:15140: checking for ncurses/curses.h" >&5 | |
15140 | |
15141 cat > conftest.$ac_ext <<EOF | |
15142 #line 15143 "configure" | |
15143 #include "confdefs.h" | |
15144 #include <ncurses/curses.h> | |
15145 EOF | |
15146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15147 { (eval echo configure:15148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15149 if test -z "$ac_err"; then | |
15150 rm -rf conftest* | |
15151 eval "ac_cv_header_$ac_safe=yes" | |
15152 else | |
15153 echo "$ac_err" >&5 | |
15154 echo "configure: failed program was:" >&5 | |
15155 cat conftest.$ac_ext >&5 | |
15156 rm -rf conftest* | |
15157 eval "ac_cv_header_$ac_safe=no" | |
15158 fi | |
15159 rm -f conftest* | |
15160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15161 echo "$ac_t""yes" 1>&6 | |
15162 curses_h_file=ncurses/curses.h | |
15163 else | |
15164 echo "$ac_t""no" 1>&6 | |
15165 fi | |
15166 | |
15167 if test "$ac_cv_header_ncurses_curses_h" = "yes" | |
15168 then echo "configure: warning: Your system has the bogus ncurses include bug." 1>&2 | |
15169 else c_switch_site="$save_c_switch_site" | |
15170 fi | |
15171 fi | |
15172 else if test "$have_terminfo" = "yes"; then | |
15173 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then | |
15174 echo " xemacs will be linked with \"terminfo.o\"" | |
15175 fi | |
15176 if test -n "$libs_termcap"; then | |
15177 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi | |
15178 else | |
15179 for lib in curses termlib termcap; do | |
15180 | |
15181 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 | |
15182 echo "configure:15183: checking for tgetent in -l$lib" >&5 | |
15183 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` | |
15184 | |
15185 xe_check_libs=" -l$lib " | |
15186 cat > conftest.$ac_ext <<EOF | |
15187 #line 15188 "configure" | |
15188 #include "confdefs.h" | |
15189 /* Override any gcc2 internal prototype to avoid an error. */ | |
15190 /* We use char because int might match the return type of a gcc2 | |
15191 builtin and then its argument prototype would still apply. */ | |
15192 char tgetent(); | |
15193 | |
15194 int main() { | |
15195 tgetent() | |
15196 ; return 0; } | |
15197 EOF | |
15198 if { (eval echo configure:15199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15199 rm -rf conftest* | |
15200 eval "ac_cv_lib_$ac_lib_var=yes" | |
15201 else | |
15202 echo "configure: failed program was:" >&5 | |
15203 cat conftest.$ac_ext >&5 | |
15204 rm -rf conftest* | |
15205 eval "ac_cv_lib_$ac_lib_var=no" | |
15206 fi | |
15207 rm -f conftest* | |
15208 xe_check_libs="" | |
15209 | |
15210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
15211 echo "$ac_t""yes" 1>&6 | |
15212 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break | |
15213 else | |
15214 echo "$ac_t""no" 1>&6 | |
15215 fi | |
15216 | |
15217 | |
15218 done | |
15219 fi | |
15220 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then | |
15221 echo " xemacs will be linked with \"tparam.o\"" | |
15222 fi | |
15223 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac | |
15224 if test -n "$libs_termcap"; then | |
15225 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi | |
15226 else | |
15227 | |
15228 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 | |
15229 echo "configure:15230: checking for tgetent in -lcurses" >&5 | |
15230 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` | |
15231 | |
15232 xe_check_libs=" -lcurses " | |
15233 cat > conftest.$ac_ext <<EOF | |
15234 #line 15235 "configure" | |
15235 #include "confdefs.h" | |
15236 /* Override any gcc2 internal prototype to avoid an error. */ | |
15237 /* We use char because int might match the return type of a gcc2 | |
15238 builtin and then its argument prototype would still apply. */ | |
15239 char tgetent(); | |
15240 | |
15241 int main() { | |
15242 tgetent() | |
15243 ; return 0; } | |
15244 EOF | |
15245 if { (eval echo configure:15246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15246 rm -rf conftest* | |
15247 eval "ac_cv_lib_$ac_lib_var=yes" | |
15248 else | |
15249 echo "configure: failed program was:" >&5 | |
15250 cat conftest.$ac_ext >&5 | |
15251 rm -rf conftest* | |
15252 eval "ac_cv_lib_$ac_lib_var=no" | |
15253 fi | |
15254 rm -f conftest* | |
15255 xe_check_libs="" | |
15256 | |
15257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
15258 echo "$ac_t""yes" 1>&6 | |
15259 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi | |
15260 else | |
15261 echo "$ac_t""no" 1>&6 | |
15262 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 | |
15263 echo "configure:15264: checking for tgetent in -ltermcap" >&5 | |
15264 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` | |
15265 | |
15266 xe_check_libs=" -ltermcap " | |
15267 cat > conftest.$ac_ext <<EOF | |
15268 #line 15269 "configure" | |
15269 #include "confdefs.h" | |
15270 /* Override any gcc2 internal prototype to avoid an error. */ | |
15271 /* We use char because int might match the return type of a gcc2 | |
15272 builtin and then its argument prototype would still apply. */ | |
15273 char tgetent(); | |
15274 | |
15275 int main() { | |
15276 tgetent() | |
15277 ; return 0; } | |
15278 EOF | |
15279 if { (eval echo configure:15280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15280 rm -rf conftest* | |
15281 eval "ac_cv_lib_$ac_lib_var=yes" | |
15282 else | |
15283 echo "configure: failed program was:" >&5 | |
15284 cat conftest.$ac_ext >&5 | |
15285 rm -rf conftest* | |
15286 eval "ac_cv_lib_$ac_lib_var=no" | |
15287 fi | |
15288 rm -f conftest* | |
15289 xe_check_libs="" | |
15290 | |
15291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
15292 echo "$ac_t""yes" 1>&6 | |
15293 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi | |
15294 else | |
15295 echo "$ac_t""no" 1>&6 | |
15296 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then | |
15297 echo " xemacs will be linked with \"termcap.o\"" | |
15298 fi | |
15299 fi | |
15300 | |
15301 | |
15302 fi | |
15303 | |
15304 | |
15305 fi | |
15306 fi | |
15307 fi | |
15308 { test "$extra_verbose" = "yes" && cat << EOF | |
15309 Defining CURSES_H_FILE = "${curses_h_file-curses.h}" | |
15310 EOF | |
15311 cat >> confdefs.h <<EOF | |
15312 #define CURSES_H_FILE "${curses_h_file-curses.h}" | |
15313 EOF | |
15314 } | |
15315 | |
15316 { test "$extra_verbose" = "yes" && cat << EOF | |
15317 Defining TERM_H_FILE = "${term_h_file-term.h}" | |
15318 EOF | |
15319 cat >> confdefs.h <<EOF | |
15320 #define TERM_H_FILE "${term_h_file-term.h}" | |
15321 EOF | |
15322 } | |
15323 | |
15324 | |
15325 if test "$with_gpm" != "no"; then | |
15326 ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` | |
15327 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 | |
15328 echo "configure:15329: checking for gpm.h" >&5 | |
15329 | |
15330 cat > conftest.$ac_ext <<EOF | |
15331 #line 15332 "configure" | |
15332 #include "confdefs.h" | |
15333 #include <gpm.h> | |
15334 EOF | |
15335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15336 { (eval echo configure:15337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15338 if test -z "$ac_err"; then | |
15339 rm -rf conftest* | |
15340 eval "ac_cv_header_$ac_safe=yes" | |
15341 else | |
15342 echo "$ac_err" >&5 | |
15343 echo "configure: failed program was:" >&5 | |
15344 cat conftest.$ac_ext >&5 | |
15345 rm -rf conftest* | |
15346 eval "ac_cv_header_$ac_safe=no" | |
15347 fi | |
15348 rm -f conftest* | |
15349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15350 echo "$ac_t""yes" 1>&6 | |
15351 | |
15352 | |
15353 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 | |
15354 echo "configure:15355: checking for Gpm_Open in -lgpm" >&5 | |
15355 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` | |
15356 | |
15357 xe_check_libs=" -lgpm " | |
15358 cat > conftest.$ac_ext <<EOF | |
15359 #line 15360 "configure" | |
15360 #include "confdefs.h" | |
15361 /* Override any gcc2 internal prototype to avoid an error. */ | |
15362 /* We use char because int might match the return type of a gcc2 | |
15363 builtin and then its argument prototype would still apply. */ | |
15364 char Gpm_Open(); | |
15365 | |
15366 int main() { | |
15367 Gpm_Open() | |
15368 ; return 0; } | |
15369 EOF | |
15370 if { (eval echo configure:15371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15371 rm -rf conftest* | |
15372 eval "ac_cv_lib_$ac_lib_var=yes" | |
15373 else | |
15374 echo "configure: failed program was:" >&5 | |
15375 cat conftest.$ac_ext >&5 | |
15376 rm -rf conftest* | |
15377 eval "ac_cv_lib_$ac_lib_var=no" | |
15378 fi | |
15379 rm -f conftest* | |
15380 xe_check_libs="" | |
15381 | |
15382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
15383 echo "$ac_t""yes" 1>&6 | |
15384 have_gpm=yes | |
15385 else | |
15386 echo "$ac_t""no" 1>&6 | |
15387 fi | |
15388 | |
15389 | |
15390 else | |
15391 echo "$ac_t""no" 1>&6 | |
15392 fi | |
15393 | |
15394 if test "$have_gpm" = "yes"; then | |
15395 with_gpm=yes | |
15396 { test "$extra_verbose" = "yes" && cat << \EOF | |
15397 Defining HAVE_GPM | |
15398 EOF | |
15399 cat >> confdefs.h <<\EOF | |
15400 #define HAVE_GPM 1 | |
15401 EOF | |
15402 } | |
15403 | |
15404 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi | |
15405 elif test "$with_gpm" = "yes"; then | |
15406 { echo "Error:" "GPM requested, but gpm.h or libgpm seems to be missing." >&2; exit 1; } | |
15407 else | |
15408 with_gpm=no | |
15409 fi | |
15410 fi | |
15411 | |
15412 else for feature in ncurses gpm; do | |
15413 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then | |
15414 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2 | |
15415 fi | |
15416 eval "with_${feature}=no" | |
15417 done | |
15418 fi | |
15419 | |
15420 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ | |
15421 != "no no no" && echo "checking for database support" 1>&6 | |
15422 echo "configure:15423: checking for database support" >&5 | |
15423 | |
15424 if test "$with_database_gdbm $with_database_dbm" != "no no"; then | |
15425 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` | |
15426 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 | |
15427 echo "configure:15428: checking for ndbm.h" >&5 | |
15428 | |
15429 cat > conftest.$ac_ext <<EOF | |
15430 #line 15431 "configure" | |
15431 #include "confdefs.h" | |
15432 #include <ndbm.h> | |
15433 EOF | |
15434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15435 { (eval echo configure:15436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15437 if test -z "$ac_err"; then | |
15438 rm -rf conftest* | |
15439 eval "ac_cv_header_$ac_safe=yes" | |
15440 else | |
15441 echo "$ac_err" >&5 | |
15442 echo "configure: failed program was:" >&5 | |
15443 cat conftest.$ac_ext >&5 | |
15444 rm -rf conftest* | |
15445 eval "ac_cv_header_$ac_safe=no" | |
15446 fi | |
15447 rm -f conftest* | |
15448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15449 echo "$ac_t""yes" 1>&6 | |
15450 : | |
15451 else | |
15452 echo "$ac_t""no" 1>&6 | |
15453 | |
15454 test "$with_database_gdbm" = "yes" -o \ | |
15455 "$with_database_dbm" = "yes" && \ | |
15456 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; } | |
15457 with_database_gdbm=no with_database_dbm=no | |
15458 fi | |
15459 | |
15460 fi | |
15461 | |
15462 if test "$with_database_gdbm" != "no"; then | |
15463 | |
15464 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 | |
15465 echo "configure:15466: checking for dbm_open in -lgdbm" >&5 | |
15466 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` | |
15467 | |
15468 xe_check_libs=" -lgdbm " | |
15469 cat > conftest.$ac_ext <<EOF | |
15470 #line 15471 "configure" | |
15471 #include "confdefs.h" | |
15472 /* Override any gcc2 internal prototype to avoid an error. */ | |
15473 /* We use char because int might match the return type of a gcc2 | |
15474 builtin and then its argument prototype would still apply. */ | |
15475 char dbm_open(); | |
15476 | |
15477 int main() { | |
15478 dbm_open() | |
15479 ; return 0; } | |
15480 EOF | |
15481 if { (eval echo configure:15482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15482 rm -rf conftest* | |
15483 eval "ac_cv_lib_$ac_lib_var=yes" | |
15484 else | |
15485 echo "configure: failed program was:" >&5 | |
15486 cat conftest.$ac_ext >&5 | |
15487 rm -rf conftest* | |
15488 eval "ac_cv_lib_$ac_lib_var=no" | |
15489 fi | |
15490 rm -f conftest* | |
15491 xe_check_libs="" | |
15492 | |
15493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
15494 echo "$ac_t""yes" 1>&6 | |
15495 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm | |
15496 else | |
15497 echo "$ac_t""no" 1>&6 | |
15498 if test "$with_database_gdbm" = "yes"; then | |
15499 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; } | |
15500 fi | |
15501 with_database_gdbm=no | |
15502 fi | |
15503 | |
15504 | |
15505 fi | |
15506 | |
15507 if test "$with_database_dbm" != "no"; then | |
15508 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 | |
15509 echo "configure:15510: checking for dbm_open" >&5 | |
15510 | |
15511 cat > conftest.$ac_ext <<EOF | |
15512 #line 15513 "configure" | |
15513 #include "confdefs.h" | |
15514 /* System header to define __stub macros and hopefully few prototypes, | |
15515 which can conflict with char dbm_open(); below. */ | |
15516 #include <assert.h> | |
15517 /* Override any gcc2 internal prototype to avoid an error. */ | |
15518 /* We use char because int might match the return type of a gcc2 | |
15519 builtin and then its argument prototype would still apply. */ | |
15520 char dbm_open(); | |
15521 | |
15522 int main() { | |
15523 | |
15524 /* The GNU C library defines this for functions which it implements | |
15525 to always fail with ENOSYS. Some functions are actually named | |
15526 something starting with __ and the normal name is an alias. */ | |
15527 #if defined (__stub_dbm_open) || defined (__stub___dbm_open) | |
15528 choke me | |
15529 #else | |
15530 dbm_open(); | |
15531 #endif | |
15532 | |
15533 ; return 0; } | |
15534 EOF | |
15535 if { (eval echo configure:15536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15536 rm -rf conftest* | |
15537 eval "ac_cv_func_dbm_open=yes" | |
15538 else | |
15539 echo "configure: failed program was:" >&5 | |
15540 cat conftest.$ac_ext >&5 | |
15541 rm -rf conftest* | |
15542 eval "ac_cv_func_dbm_open=no" | |
15543 fi | |
15544 rm -f conftest* | |
15545 | |
15546 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then | |
15547 echo "$ac_t""yes" 1>&6 | |
15548 with_database_dbm=yes libdbm= | |
15549 else | |
15550 echo "$ac_t""no" 1>&6 | |
15551 | |
15552 | |
15553 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 | |
15554 echo "configure:15555: checking for dbm_open in -ldbm" >&5 | |
15555 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` | |
15556 | |
15557 xe_check_libs=" -ldbm " | |
15558 cat > conftest.$ac_ext <<EOF | |
15559 #line 15560 "configure" | |
15560 #include "confdefs.h" | |
15561 /* Override any gcc2 internal prototype to avoid an error. */ | |
15562 /* We use char because int might match the return type of a gcc2 | |
15563 builtin and then its argument prototype would still apply. */ | |
15564 char dbm_open(); | |
15565 | |
15566 int main() { | |
15567 dbm_open() | |
15568 ; return 0; } | |
15569 EOF | |
15570 if { (eval echo configure:15571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15571 rm -rf conftest* | |
15572 eval "ac_cv_lib_$ac_lib_var=yes" | |
15573 else | |
15574 echo "configure: failed program was:" >&5 | |
15575 cat conftest.$ac_ext >&5 | |
15576 rm -rf conftest* | |
15577 eval "ac_cv_lib_$ac_lib_var=no" | |
15578 fi | |
15579 rm -f conftest* | |
15580 xe_check_libs="" | |
15581 | |
15582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
15583 echo "$ac_t""yes" 1>&6 | |
15584 with_database_dbm=yes libdbm=-ldbm | |
15585 else | |
15586 echo "$ac_t""no" 1>&6 | |
15587 test "$with_database_dbm" = "yes" && \ | |
15588 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; } | |
15589 with_database_dbm=no | |
15590 fi | |
15591 | |
15592 | |
15593 fi | |
15594 | |
15595 fi | |
15596 | |
15597 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi | |
15598 test "$with_database_gdbm" = "yes" -o \ | |
15599 "$with_database_dbm" = "yes" && \ | |
15600 { test "$extra_verbose" = "yes" && cat << \EOF | |
15601 Defining HAVE_DBM | |
15602 EOF | |
15603 cat >> confdefs.h <<\EOF | |
15604 #define HAVE_DBM 1 | |
15605 EOF | |
15606 } | |
15607 | |
15608 | |
15609 if test "$with_database_berkdb" != "no"; then | |
15610 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 | |
15611 echo "configure:15612: checking for Berkeley db.h" >&5 | |
15612 for header in "db/db.h" "db.h"; do | |
15613 cat > conftest.$ac_ext <<EOF | |
15614 #line 15615 "configure" | |
15615 #include "confdefs.h" | |
15616 | |
15617 #include <stdlib.h> | |
15618 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) | |
15619 #ifdef HAVE_INTTYPES_H | |
15620 #define __BIT_TYPES_DEFINED__ | |
15621 #include <inttypes.h> | |
15622 typedef uint8_t u_int8_t; | |
15623 typedef uint16_t u_int16_t; | |
15624 typedef uint32_t u_int32_t; | |
15625 #ifdef WE_DONT_NEED_QUADS | |
15626 typedef uint64_t u_int64_t; | |
15627 #endif | |
15628 #endif | |
15629 #endif | |
15630 #include <$header> | |
15631 | |
15632 int main() { | |
15633 | |
15634 ; return 0; } | |
15635 EOF | |
15636 if { (eval echo configure:15637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15637 rm -rf conftest* | |
15638 db_h_file="$header"; break | |
15639 else | |
15640 echo "configure: failed program was:" >&5 | |
15641 cat conftest.$ac_ext >&5 | |
15642 fi | |
15643 rm -f conftest* | |
15644 done | |
15645 if test -z "$db_h_file" | |
15646 then echo "$ac_t""no" 1>&6; with_database_berkdb=no | |
15647 else echo "$ac_t""$db_h_file" 1>&6 | |
15648 fi | |
15649 | |
15650 if test "$with_database_berkdb" != "no"; then | |
15651 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 | |
15652 echo "configure:15653: checking for Berkeley DB version" >&5 | |
15653 cat > conftest.$ac_ext <<EOF | |
15654 #line 15655 "configure" | |
15655 #include "confdefs.h" | |
15656 #include <$db_h_file> | |
15657 #if DB_VERSION_MAJOR > 1 | |
15658 yes | |
15659 #endif | |
15660 | |
15661 EOF | |
15662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15663 egrep "yes" >/dev/null 2>&1; then | |
15664 rm -rf conftest* | |
15665 cat > conftest.$ac_ext <<EOF | |
15666 #line 15667 "configure" | |
15667 #include "confdefs.h" | |
15668 #include <$db_h_file> | |
15669 #if DB_VERSION_MAJOR > 2 | |
15670 yes | |
15671 #endif | |
15672 | |
15673 EOF | |
15674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15675 egrep "yes" >/dev/null 2>&1; then | |
15676 rm -rf conftest* | |
15677 cat > conftest.$ac_ext <<EOF | |
15678 #line 15679 "configure" | |
15679 #include "confdefs.h" | |
15680 #include <$db_h_file> | |
15681 #if DB_VERSION_MAJOR > 3 | |
15682 yes | |
15683 #endif | |
15684 | |
15685 EOF | |
15686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15687 egrep "yes" >/dev/null 2>&1; then | |
15688 rm -rf conftest* | |
15689 echo "$ac_t""4" 1>&6; dbfunc=db_create; dbver=4 | |
15690 else | |
15691 rm -rf conftest* | |
15692 | |
15693 echo "$ac_t""3" 1>&6; dbfunc=db_create; dbver=3 | |
15694 fi | |
15695 rm -f conftest* | |
15696 | |
15697 else | |
15698 rm -rf conftest* | |
15699 | |
15700 echo "$ac_t""2" 1>&6; dbfunc=db_open; dbver=2 | |
15701 fi | |
15702 rm -f conftest* | |
15703 | |
15704 else | |
15705 rm -rf conftest* | |
15706 | |
15707 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1 | |
15708 fi | |
15709 rm -f conftest* | |
15710 | |
15711 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 | |
15712 echo "configure:15713: checking for $dbfunc" >&5 | |
15713 | |
15714 cat > conftest.$ac_ext <<EOF | |
15715 #line 15716 "configure" | |
15716 #include "confdefs.h" | |
15717 /* System header to define __stub macros and hopefully few prototypes, | |
15718 which can conflict with char $dbfunc(); below. */ | |
15719 #include <assert.h> | |
15720 /* Override any gcc2 internal prototype to avoid an error. */ | |
15721 /* We use char because int might match the return type of a gcc2 | |
15722 builtin and then its argument prototype would still apply. */ | |
15723 char $dbfunc(); | |
15724 | |
15725 int main() { | |
15726 | |
15727 /* The GNU C library defines this for functions which it implements | |
15728 to always fail with ENOSYS. Some functions are actually named | |
15729 something starting with __ and the normal name is an alias. */ | |
15730 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc) | |
15731 choke me | |
15732 #else | |
15733 $dbfunc(); | |
15734 #endif | |
15735 | |
15736 ; return 0; } | |
15737 EOF | |
15738 if { (eval echo configure:15739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15739 rm -rf conftest* | |
15740 eval "ac_cv_func_$dbfunc=yes" | |
15741 else | |
15742 echo "configure: failed program was:" >&5 | |
15743 cat conftest.$ac_ext >&5 | |
15744 rm -rf conftest* | |
15745 eval "ac_cv_func_$dbfunc=no" | |
15746 fi | |
15747 rm -f conftest* | |
15748 | |
15749 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then | |
15750 echo "$ac_t""yes" 1>&6 | |
15751 with_database_berkdb=yes need_libdb=no | |
15752 else | |
15753 echo "$ac_t""no" 1>&6 | |
15754 | |
15755 | |
15756 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 | |
15757 echo "configure:15758: checking for $dbfunc in -ldb" >&5 | |
15758 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` | |
15759 | |
15760 xe_check_libs=" -ldb " | |
15761 cat > conftest.$ac_ext <<EOF | |
15762 #line 15763 "configure" | |
15763 #include "confdefs.h" | |
15764 /* Override any gcc2 internal prototype to avoid an error. */ | |
15765 /* We use char because int might match the return type of a gcc2 | |
15766 builtin and then its argument prototype would still apply. */ | |
15767 char $dbfunc(); | |
15768 | |
15769 int main() { | |
15770 $dbfunc() | |
15771 ; return 0; } | |
15772 EOF | |
15773 if { (eval echo configure:15774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15774 rm -rf conftest* | |
15775 eval "ac_cv_lib_$ac_lib_var=yes" | |
15776 else | |
15777 echo "configure: failed program was:" >&5 | |
15778 cat conftest.$ac_ext >&5 | |
15779 rm -rf conftest* | |
15780 eval "ac_cv_lib_$ac_lib_var=no" | |
15781 fi | |
15782 rm -f conftest* | |
15783 xe_check_libs="" | |
15784 | |
15785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
15786 echo "$ac_t""yes" 1>&6 | |
15787 with_database_berkdb=yes need_libdb=yes | |
15788 else | |
15789 echo "$ac_t""no" 1>&6 | |
15790 fi | |
15791 | |
15792 | |
15793 fi | |
15794 | |
15795 fi | |
15796 | |
15797 if test "$with_database_berkdb" != "yes" -a "$dbver" = "4"; then | |
15798 rm -f $tempcname | |
15799 echo "#include <$db_h_file>" > $tempcname | |
15800 echo "configure___ dbfunc=db_create" >> $tempcname | |
15801 eval `$CPP -Isrc $tempcname \ | |
15802 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"` | |
15803 rm -f $tempcname | |
15804 echo "configure: warning: "db_create is really $dbfunc"" 1>&2 | |
15805 | |
15806 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 | |
15807 echo "configure:15808: checking for $dbfunc in -ldb" >&5 | |
15808 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` | |
15809 | |
15810 xe_check_libs=" -ldb " | |
15811 cat > conftest.$ac_ext <<EOF | |
15812 #line 15813 "configure" | |
15813 #include "confdefs.h" | |
15814 /* Override any gcc2 internal prototype to avoid an error. */ | |
15815 /* We use char because int might match the return type of a gcc2 | |
15816 builtin and then its argument prototype would still apply. */ | |
15817 char $dbfunc(); | |
15818 | |
15819 int main() { | |
15820 $dbfunc() | |
15821 ; return 0; } | |
15822 EOF | |
15823 if { (eval echo configure:15824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15824 rm -rf conftest* | |
15825 eval "ac_cv_lib_$ac_lib_var=yes" | |
15826 else | |
15827 echo "configure: failed program was:" >&5 | |
15828 cat conftest.$ac_ext >&5 | |
15829 rm -rf conftest* | |
15830 eval "ac_cv_lib_$ac_lib_var=no" | |
15831 fi | |
15832 rm -f conftest* | |
15833 xe_check_libs="" | |
15834 | |
15835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
15836 echo "$ac_t""yes" 1>&6 | |
15837 with_database_berkdb=yes need_libdb=yes | |
15838 else | |
15839 echo "$ac_t""no" 1>&6 | |
15840 fi | |
15841 | |
15842 | |
15843 fi | |
15844 | |
15845 if test "$with_database_berkdb" = "yes"; then | |
15846 { test "$extra_verbose" = "yes" && cat << EOF | |
15847 Defining DB_H_FILE = "$db_h_file" | |
15848 EOF | |
15849 cat >> confdefs.h <<EOF | |
15850 #define DB_H_FILE "$db_h_file" | |
15851 EOF | |
15852 } | |
15853 | |
15854 { test "$extra_verbose" = "yes" && cat << \EOF | |
15855 Defining HAVE_BERKELEY_DB | |
15856 EOF | |
15857 cat >> confdefs.h <<\EOF | |
15858 #define HAVE_BERKELEY_DB 1 | |
15859 EOF | |
15860 } | |
15861 | |
15862 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi | |
15863 else with_database_berkdb=no | |
15864 fi | |
15865 fi | |
15866 | |
15867 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ | |
15868 != "no no no"; then | |
15869 { test "$extra_verbose" = "yes" && cat << \EOF | |
15870 Defining HAVE_DATABASE | |
15871 EOF | |
15872 cat >> confdefs.h <<\EOF | |
15873 #define HAVE_DATABASE 1 | |
15874 EOF | |
15875 } | |
15876 | |
15877 fi | |
15878 | |
15879 if test "$with_socks" = "yes"; then | |
15880 | |
15881 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 | |
15882 echo "configure:15883: checking for SOCKSinit in -lsocks" >&5 | |
15883 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` | |
15884 | |
15885 xe_check_libs=" -lsocks " | |
15886 cat > conftest.$ac_ext <<EOF | |
15887 #line 15888 "configure" | |
15888 #include "confdefs.h" | |
15889 /* Override any gcc2 internal prototype to avoid an error. */ | |
15890 /* We use char because int might match the return type of a gcc2 | |
15891 builtin and then its argument prototype would still apply. */ | |
15892 char SOCKSinit(); | |
15893 | |
15894 int main() { | |
15895 SOCKSinit() | |
15896 ; return 0; } | |
15897 EOF | |
15898 if { (eval echo configure:15899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15899 rm -rf conftest* | |
15900 eval "ac_cv_lib_$ac_lib_var=yes" | |
15901 else | |
15902 echo "configure: failed program was:" >&5 | |
15903 cat conftest.$ac_ext >&5 | |
15904 rm -rf conftest* | |
15905 eval "ac_cv_lib_$ac_lib_var=no" | |
15906 fi | |
15907 rm -f conftest* | |
15908 xe_check_libs="" | |
15909 | |
15910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
15911 echo "$ac_t""yes" 1>&6 | |
15912 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
15913 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
15914 { test "$extra_verbose" = "yes" && cat << EOF | |
15915 Defining $ac_tr_lib | |
15916 EOF | |
15917 cat >> confdefs.h <<EOF | |
15918 #define $ac_tr_lib 1 | |
15919 EOF | |
15920 } | |
15921 | |
15922 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi | |
15923 | |
15924 else | |
15925 echo "$ac_t""no" 1>&6 | |
15926 fi | |
15927 | |
15928 | |
15929 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF | |
15930 Defining HAVE_SOCKS | |
15931 EOF | |
15932 cat >> confdefs.h <<\EOF | |
15933 #define HAVE_SOCKS 1 | |
15934 EOF | |
15935 } | |
15936 | |
15937 fi | |
15938 | |
15939 if test "$usage_tracking" = "yes"; then | |
15940 { test "$extra_verbose" = "yes" && cat << \EOF | |
15941 Defining USAGE_TRACKING | |
15942 EOF | |
15943 cat >> confdefs.h <<\EOF | |
15944 #define USAGE_TRACKING 1 | |
15945 EOF | |
15946 } | |
15947 | |
15948 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi | |
15949 fi | |
15950 | |
15951 if test "$use_number_lib" = "gmp"; then | |
15952 ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'` | |
15953 echo $ac_n "checking for gmp.h""... $ac_c" 1>&6 | |
15954 echo "configure:15955: checking for gmp.h" >&5 | |
15955 | |
15956 cat > conftest.$ac_ext <<EOF | |
15957 #line 15958 "configure" | |
15958 #include "confdefs.h" | |
15959 #include <gmp.h> | |
15960 EOF | |
15961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15962 { (eval echo configure:15963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15964 if test -z "$ac_err"; then | |
15965 rm -rf conftest* | |
15966 eval "ac_cv_header_$ac_safe=yes" | |
15967 else | |
15968 echo "$ac_err" >&5 | |
15969 echo "configure: failed program was:" >&5 | |
15970 cat conftest.$ac_ext >&5 | |
15971 rm -rf conftest* | |
15972 eval "ac_cv_header_$ac_safe=no" | |
15973 fi | |
15974 rm -f conftest* | |
15975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15976 echo "$ac_t""yes" 1>&6 | |
15977 | |
15978 | |
15979 echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6 | |
15980 echo "configure:15981: checking for __gmpz_init in -lgmp" >&5 | |
15981 ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'` | |
15982 | |
15983 xe_check_libs=" -lgmp " | |
15984 cat > conftest.$ac_ext <<EOF | |
15985 #line 15986 "configure" | |
15986 #include "confdefs.h" | |
15987 /* Override any gcc2 internal prototype to avoid an error. */ | |
15988 /* We use char because int might match the return type of a gcc2 | |
15989 builtin and then its argument prototype would still apply. */ | |
15990 char __gmpz_init(); | |
15991 | |
15992 int main() { | |
15993 __gmpz_init() | |
15994 ; return 0; } | |
15995 EOF | |
15996 if { (eval echo configure:15997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15997 rm -rf conftest* | |
15998 eval "ac_cv_lib_$ac_lib_var=yes" | |
15999 else | |
16000 echo "configure: failed program was:" >&5 | |
16001 cat conftest.$ac_ext >&5 | |
16002 rm -rf conftest* | |
16003 eval "ac_cv_lib_$ac_lib_var=no" | |
16004 fi | |
16005 rm -f conftest* | |
16006 xe_check_libs="" | |
16007 | |
16008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
16009 echo "$ac_t""yes" 1>&6 | |
16010 have_mpz_init=yes | |
16011 else | |
16012 echo "$ac_t""no" 1>&6 | |
16013 fi | |
16014 | |
16015 | |
16016 else | |
16017 echo "$ac_t""no" 1>&6 | |
16018 fi | |
16019 | |
16020 if test "$have_mpz_init" = "yes"; then | |
16021 { test "$extra_verbose" = "yes" && cat << \EOF | |
16022 Defining WITH_NUMBER_TYPES | |
16023 EOF | |
16024 cat >> confdefs.h <<\EOF | |
16025 #define WITH_NUMBER_TYPES 1 | |
16026 EOF | |
16027 } | |
16028 | |
16029 { test "$extra_verbose" = "yes" && cat << \EOF | |
16030 Defining WITH_GMP | |
16031 EOF | |
16032 cat >> confdefs.h <<\EOF | |
16033 #define WITH_GMP 1 | |
16034 EOF | |
16035 } | |
16036 | |
16037 LIBS="-lgmp $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgmp\" to \$LIBS"; fi | |
16038 else | |
16039 { echo "Error:" "Required GMP numeric support cannot be provided." >&2; exit 1; } | |
16040 fi | |
16041 elif test "$use_number_lib" = "mp"; then | |
16042 for library in "" "-lcrypto"; do | |
16043 ac_safe=`echo "mp.h" | sed 'y%./+-%__p_%'` | |
16044 echo $ac_n "checking for mp.h""... $ac_c" 1>&6 | |
16045 echo "configure:16046: checking for mp.h" >&5 | |
16046 | |
16047 cat > conftest.$ac_ext <<EOF | |
16048 #line 16049 "configure" | |
16049 #include "confdefs.h" | |
16050 #include <mp.h> | |
16051 EOF | |
16052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
16053 { (eval echo configure:16054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
16054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
16055 if test -z "$ac_err"; then | |
16056 rm -rf conftest* | |
16057 eval "ac_cv_header_$ac_safe=yes" | |
16058 else | |
16059 echo "$ac_err" >&5 | |
16060 echo "configure: failed program was:" >&5 | |
16061 cat conftest.$ac_ext >&5 | |
16062 rm -rf conftest* | |
16063 eval "ac_cv_header_$ac_safe=no" | |
16064 fi | |
16065 rm -f conftest* | |
16066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
16067 echo "$ac_t""yes" 1>&6 | |
16068 | |
16069 | |
16070 xe_msg_checking="for mp_mfree in -lmp" | |
16071 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library" | |
16072 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | |
16073 echo "configure:16074: checking "$xe_msg_checking"" >&5 | |
16074 ac_lib_var=`echo mp'_'mp_mfree | sed 'y%./+-%__p_%'` | |
16075 | |
16076 xe_check_libs=" -lmp $library" | |
16077 cat > conftest.$ac_ext <<EOF | |
16078 #line 16079 "configure" | |
16079 #include "confdefs.h" | |
16080 /* Override any gcc2 internal prototype to avoid an error. */ | |
16081 /* We use char because int might match the return type of a gcc2 | |
16082 builtin and then its argument prototype would still apply. */ | |
16083 char mp_mfree(); | |
16084 | |
16085 int main() { | |
16086 mp_mfree() | |
16087 ; return 0; } | |
16088 EOF | |
16089 if { (eval echo configure:16090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16090 rm -rf conftest* | |
16091 eval "ac_cv_lib_$ac_lib_var=yes" | |
16092 else | |
16093 echo "configure: failed program was:" >&5 | |
16094 cat conftest.$ac_ext >&5 | |
16095 rm -rf conftest* | |
16096 eval "ac_cv_lib_$ac_lib_var=no" | |
16097 fi | |
16098 rm -f conftest* | |
16099 xe_check_libs="" | |
16100 | |
16101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
16102 echo "$ac_t""yes" 1>&6 | |
16103 have_mp_mfree=yes; break | |
16104 else | |
16105 echo "$ac_t""no" 1>&6 | |
16106 | |
16107 xe_msg_checking="for mfree in -lmp" | |
16108 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library" | |
16109 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | |
16110 echo "configure:16111: checking "$xe_msg_checking"" >&5 | |
16111 ac_lib_var=`echo mp'_'mfree | sed 'y%./+-%__p_%'` | |
16112 | |
16113 xe_check_libs=" -lmp $library" | |
16114 cat > conftest.$ac_ext <<EOF | |
16115 #line 16116 "configure" | |
16116 #include "confdefs.h" | |
16117 /* Override any gcc2 internal prototype to avoid an error. */ | |
16118 /* We use char because int might match the return type of a gcc2 | |
16119 builtin and then its argument prototype would still apply. */ | |
16120 char mfree(); | |
16121 | |
16122 int main() { | |
16123 mfree() | |
16124 ; return 0; } | |
16125 EOF | |
16126 if { (eval echo configure:16127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16127 rm -rf conftest* | |
16128 eval "ac_cv_lib_$ac_lib_var=yes" | |
16129 else | |
16130 echo "configure: failed program was:" >&5 | |
16131 cat conftest.$ac_ext >&5 | |
16132 rm -rf conftest* | |
16133 eval "ac_cv_lib_$ac_lib_var=no" | |
16134 fi | |
16135 rm -f conftest* | |
16136 xe_check_libs="" | |
16137 | |
16138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
16139 echo "$ac_t""yes" 1>&6 | |
16140 have_mfree=yes; break | |
16141 else | |
16142 echo "$ac_t""no" 1>&6 | |
16143 fi | |
16144 | |
16145 | |
16146 fi | |
16147 | |
16148 | |
16149 else | |
16150 echo "$ac_t""no" 1>&6 | |
16151 fi | |
16152 | |
16153 done | |
16154 if test "$have_mp_mfree" = "yes"; then | |
16155 { test "$extra_verbose" = "yes" && cat << \EOF | |
16156 Defining MP_PREFIX | |
16157 EOF | |
16158 cat >> confdefs.h <<\EOF | |
16159 #define MP_PREFIX 1 | |
16160 EOF | |
16161 } | |
16162 | |
16163 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi | |
16164 if test "$library" != ""; then | |
16165 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi | |
16166 fi | |
16167 echo $ac_n "checking for mp_move""... $ac_c" 1>&6 | |
16168 echo "configure:16169: checking for mp_move" >&5 | |
16169 | |
16170 cat > conftest.$ac_ext <<EOF | |
16171 #line 16172 "configure" | |
16172 #include "confdefs.h" | |
16173 /* System header to define __stub macros and hopefully few prototypes, | |
16174 which can conflict with char mp_move(); below. */ | |
16175 #include <assert.h> | |
16176 /* Override any gcc2 internal prototype to avoid an error. */ | |
16177 /* We use char because int might match the return type of a gcc2 | |
16178 builtin and then its argument prototype would still apply. */ | |
16179 char mp_move(); | |
16180 | |
16181 int main() { | |
16182 | |
16183 /* The GNU C library defines this for functions which it implements | |
16184 to always fail with ENOSYS. Some functions are actually named | |
16185 something starting with __ and the normal name is an alias. */ | |
16186 #if defined (__stub_mp_move) || defined (__stub___mp_move) | |
16187 choke me | |
16188 #else | |
16189 mp_move(); | |
16190 #endif | |
16191 | |
16192 ; return 0; } | |
16193 EOF | |
16194 if { (eval echo configure:16195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16195 rm -rf conftest* | |
16196 eval "ac_cv_func_mp_move=yes" | |
16197 else | |
16198 echo "configure: failed program was:" >&5 | |
16199 cat conftest.$ac_ext >&5 | |
16200 rm -rf conftest* | |
16201 eval "ac_cv_func_mp_move=no" | |
16202 fi | |
16203 rm -f conftest* | |
16204 | |
16205 if eval "test \"`echo '$ac_cv_func_'mp_move`\" = yes"; then | |
16206 echo "$ac_t""yes" 1>&6 | |
16207 { test "$extra_verbose" = "yes" && cat << \EOF | |
16208 Defining HAVE_MP_MOVE | |
16209 EOF | |
16210 cat >> confdefs.h <<\EOF | |
16211 #define HAVE_MP_MOVE 1 | |
16212 EOF | |
16213 } | |
16214 | |
16215 else | |
16216 echo "$ac_t""no" 1>&6 | |
16217 fi | |
16218 | |
16219 elif test "$have_mfree" = "yes"; then | |
16220 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi | |
16221 if test "$library" != ""; then | |
16222 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi | |
16223 fi | |
16224 echo $ac_n "checking for move""... $ac_c" 1>&6 | |
16225 echo "configure:16226: checking for move" >&5 | |
16226 | |
16227 cat > conftest.$ac_ext <<EOF | |
16228 #line 16229 "configure" | |
16229 #include "confdefs.h" | |
16230 /* System header to define __stub macros and hopefully few prototypes, | |
16231 which can conflict with char move(); below. */ | |
16232 #include <assert.h> | |
16233 /* Override any gcc2 internal prototype to avoid an error. */ | |
16234 /* We use char because int might match the return type of a gcc2 | |
16235 builtin and then its argument prototype would still apply. */ | |
16236 char move(); | |
16237 | |
16238 int main() { | |
16239 | |
16240 /* The GNU C library defines this for functions which it implements | |
16241 to always fail with ENOSYS. Some functions are actually named | |
16242 something starting with __ and the normal name is an alias. */ | |
16243 #if defined (__stub_move) || defined (__stub___move) | |
16244 choke me | |
16245 #else | |
16246 move(); | |
16247 #endif | |
16248 | |
16249 ; return 0; } | |
16250 EOF | |
16251 if { (eval echo configure:16252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16252 rm -rf conftest* | |
16253 eval "ac_cv_func_move=yes" | |
16254 else | |
16255 echo "configure: failed program was:" >&5 | |
16256 cat conftest.$ac_ext >&5 | |
16257 rm -rf conftest* | |
16258 eval "ac_cv_func_move=no" | |
16259 fi | |
16260 rm -f conftest* | |
16261 | |
16262 if eval "test \"`echo '$ac_cv_func_'move`\" = yes"; then | |
16263 echo "$ac_t""yes" 1>&6 | |
16264 { test "$extra_verbose" = "yes" && cat << \EOF | |
16265 Defining HAVE_MP_MOVE | |
16266 EOF | |
16267 cat >> confdefs.h <<\EOF | |
16268 #define HAVE_MP_MOVE 1 | |
16269 EOF | |
16270 } | |
16271 | |
16272 else | |
16273 echo "$ac_t""no" 1>&6 | |
16274 fi | |
16275 | |
16276 else | |
16277 { echo "Error:" "Required MP numeric support cannot be provided." >&2; exit 1; } | |
16278 fi | |
16279 { test "$extra_verbose" = "yes" && cat << \EOF | |
16280 Defining WITH_NUMBER_TYPES | |
16281 EOF | |
16282 cat >> confdefs.h <<\EOF | |
16283 #define WITH_NUMBER_TYPES 1 | |
16284 EOF | |
16285 } | |
16286 | |
16287 { test "$extra_verbose" = "yes" && cat << \EOF | |
16288 Defining WITH_MP | |
16289 EOF | |
16290 cat >> confdefs.h <<\EOF | |
16291 #define WITH_MP 1 | |
16292 EOF | |
16293 } | |
16294 | |
16295 fi | |
16296 | |
16297 cat > conftest.$ac_ext <<EOF | |
16298 #line 16299 "configure" | |
16299 #include "confdefs.h" | |
16300 int main(int c,char *v[]){return 0;} | |
16301 EOF | |
16302 if { (eval echo configure:16303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | |
16303 then | |
16304 : | |
16305 else | |
16306 conftest_rc="$?" | |
16307 echo "configure: failed program was:" >&5 | |
16308 cat conftest.$ac_ext >&5 | |
16309 rm -fr conftest* | |
16310 | |
16311 echo "" | |
16312 echo "*** PANIC *** The C compiler can no longer build working executables." | |
16313 echo "*** PANIC *** Please examine the tail of config.log for runtime errors." | |
16314 echo "*** PANIC *** The most likely reason for this problem is that configure" | |
16315 echo "*** PANIC *** links with shared libraries, but those libraries cannot be" | |
16316 echo "*** PANIC *** found at run time." | |
16317 echo "*** PANIC ***" | |
16318 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig." | |
16319 echo "*** PANIC *** On other systems, try telling configure where to find the" | |
16320 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option" | |
16321 echo "*** PANIC ***" | |
16322 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify" | |
16323 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed" | |
16324 echo "*** PANIC *** on your system. Don't do that." | |
16325 exit 1 | |
16326 fi | |
16327 rm -fr conftest* | |
16328 | |
16329 if test "$win32_processes" != "yes"; then | |
16330 { test "$extra_verbose" = "yes" && cat << \EOF | |
16331 Defining HAVE_UNIX_PROCESSES | |
16332 EOF | |
16333 cat >> confdefs.h <<\EOF | |
16334 #define HAVE_UNIX_PROCESSES 1 | |
16335 EOF | |
16336 } | |
16337 | |
16338 fi | |
16339 | |
16340 | |
16341 if test "$with_modules" = "yes"; then | |
16342 ld_libs_module= | |
16343 else | |
16344 | |
16345 T="" | |
16346 for W in $ldap_libs $postgresql_libs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done | |
16347 ld_libs_module="$T" | |
16348 | |
16349 fi | |
16350 | |
16351 | |
16352 T="" | |
16353 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done | |
16354 CFLAGS="$T" | |
16355 | |
16356 | |
16357 T="" | |
16358 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done | |
16359 extra_objs="$T" | |
16360 | |
16361 | |
16362 T="" | |
16363 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 | |
16364 c_switch_general="$T" | |
16365 | |
16366 | |
16367 T="" | |
16368 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 | |
16369 c_switch_window_system="$T" | |
16370 | |
16371 | |
16372 T="" | |
16373 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done | |
16374 c_switch_all="$T" | |
16375 | |
16376 | |
16377 T="" | |
16378 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 | |
16379 ld_switch_general="$T" | |
16380 | |
16381 | |
16382 T="" | |
16383 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done | |
16384 ld_switch_window_system="$T" | |
16385 | |
16386 | |
16387 T="" | |
16388 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done | |
16389 ld_switch_all="$T" | |
16390 | |
16391 | |
16392 T="" | |
16393 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done | |
16394 ld_libs_general="$T" | |
16395 | |
16396 | |
16397 T="" | |
16398 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 | |
16399 ld_libs_window_system="$T" | |
16400 | |
16401 | |
16402 T="" | |
16403 for W in $ld_libs_window_system $ld_libs_general $ld_libs_module; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done | |
16404 ld_libs_all="$T" | |
16405 | |
16406 | |
16407 if test "$with_modules" = "no"; then | |
16408 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi | |
16409 fi | |
16410 | |
16411 | |
16412 internal_makefile_list="Makefile.in" | |
16413 SUBDIR_MAKEFILES='' | |
16414 test -d lock || mkdir lock | |
16415 for dir in $MAKE_SUBDIR; do | |
16416 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do | |
16417 test -d "$d" || mkdir "$d"; cd "$d" | |
16418 done ) ;; | |
16419 * ) test -d "$dir" || mkdir "$dir" ;; | |
16420 esac | |
16421 | |
16422 T="" | |
16423 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done | |
16424 SUBDIR_MAKEFILES="$T" | |
16425 | |
16426 | |
16427 T="" | |
16428 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done | |
16429 internal_makefile_list="$T" | |
16430 | |
16431 done | |
16432 | |
16433 | |
16434 | |
16435 | |
16436 for dir in src/s src/m; do | |
16437 if test ! -d "$dir" ; then | |
16438 echo Making symbolic link to "$srcdir/$dir" | |
16439 ${LN_S} "$srcdir/$dir" "$dir" | |
16440 fi | |
16441 done | |
16442 | |
16443 if test "$need_modules_common" = "yes"; then | |
16444 for dir in modules/common; do | |
16445 if test ! -d "$dir" ; then | |
16446 echo Making symbolic link to "$srcdir/$dir" | |
16447 ${LN_S} "$srcdir/$dir" "$dir" | |
16448 fi | |
16449 done | |
16450 fi | |
16451 | |
16452 if test "$extra_verbose" = "yes"; then | |
16453 echo "" | |
16454 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 | |
16455 echo "" | |
16456 fi | |
16457 | |
16458 | |
16459 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then | |
16460 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit" | |
16461 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit" | |
16462 fi | |
16463 | |
16464 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then | |
16465 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc" | |
16466 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc" | |
16467 fi | |
16468 | |
16469 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then | |
16470 test "$extra_verbose" = "yes" && echo "creating TAGS" | |
16471 echo " | |
16472 $srcdir/TAGS,include" > "TAGS" | |
16473 fi | |
16474 | |
16475 if test "$__SUNPRO_C" = "yes"; then | |
16476 test "$extra_verbose" = "yes" && echo "creating .sbinit" | |
16477 ( echo "# For use with Sun WorkShop's Source browser." | |
16478 echo "# See sbquery(1) and sbinit(4) for more information" | |
16479 for dir in $MAKE_SUBDIR; do echo "import $dir"; done | |
16480 ) > .sbinit | |
16481 fi | |
16482 | |
16483 rm -f core | |
16484 | |
16485 | |
16486 | |
16487 | |
16488 | |
16489 | |
16490 | |
16491 | |
16492 | |
16493 | |
16494 | |
16495 | |
16496 | |
16497 | |
16498 | |
16499 | |
16500 | |
16501 | |
16502 | |
16503 PREFIX=$prefix | |
16504 while true; do | |
16505 case "$PREFIX" in | |
16506 *\$* ) eval "PREFIX=$PREFIX" ;; | |
16507 *) break ;; | |
16508 esac | |
16509 done | |
16510 | |
16511 | |
16512 | |
16513 | |
16514 EXEC_PREFIX=$exec_prefix | |
16515 while true; do | |
16516 case "$EXEC_PREFIX" in | |
16517 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;; | |
16518 *) break ;; | |
16519 esac | |
16520 done | |
16521 | |
16522 | |
16523 | |
16524 | |
16525 INFODIR=$infodir | |
16526 while true; do | |
16527 case "$INFODIR" in | |
16528 *\$* ) eval "INFODIR=$INFODIR" ;; | |
16529 *) break ;; | |
16530 esac | |
16531 done | |
16532 | |
16533 | |
16534 | |
16535 | |
16536 INFOPATH=$infopath | |
16537 while true; do | |
16538 case "$INFOPATH" in | |
16539 *\$* ) eval "INFOPATH=$INFOPATH" ;; | |
16540 *) break ;; | |
16541 esac | |
16542 done | |
16543 | |
16544 | |
16545 if test -z "$package_path" && test -n "$package_prefix" ; then | |
16546 if test "$with_mule" = "yes" ; then | |
16547 package_path="~/.xemacs::${package_prefix}/site-packages:${package_prefix}/xemacs-packages:${package_prefix}/mule-packages" | |
16548 else | |
16549 package_path="~/.xemacs::${package_prefix}/site-packages:${package_prefix}/xemacs-packages" | |
16550 fi | |
16551 fi | |
16552 | |
16553 | |
16554 | |
16555 PACKAGE_PATH=$package_path | |
16556 while true; do | |
16557 case "$PACKAGE_PATH" in | |
16558 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;; | |
16559 *) break ;; | |
16560 esac | |
16561 done | |
16562 | |
16563 | |
16564 | |
16565 | |
16566 LISPDIR=$lispdir | |
16567 while true; do | |
16568 case "$LISPDIR" in | |
16569 *\$* ) eval "LISPDIR=$LISPDIR" ;; | |
16570 *) break ;; | |
16571 esac | |
16572 done | |
16573 | |
16574 | |
16575 | |
16576 | |
16577 MODULEDIR=$moduledir | |
16578 while true; do | |
16579 case "$MODULEDIR" in | |
16580 *\$* ) eval "MODULEDIR=$MODULEDIR" ;; | |
16581 *) break ;; | |
16582 esac | |
16583 done | |
16584 | |
16585 | |
16586 | |
16587 | |
16588 SITELISPDIR=$sitelispdir | |
16589 while true; do | |
16590 case "$SITELISPDIR" in | |
16591 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;; | |
16592 *) break ;; | |
16593 esac | |
16594 done | |
16595 | |
16596 | |
16597 | |
16598 | |
16599 SITEMODULEDIR=$sitemoduledir | |
16600 while true; do | |
16601 case "$SITEMODULEDIR" in | |
16602 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;; | |
16603 *) break ;; | |
16604 esac | |
16605 done | |
16606 | |
16607 | |
16608 | |
16609 | |
16610 ETCDIR=$etcdir | |
16611 while true; do | |
16612 case "$ETCDIR" in | |
16613 *\$* ) eval "ETCDIR=$ETCDIR" ;; | |
16614 *) break ;; | |
16615 esac | |
16616 done | |
16617 | |
16618 | |
16619 | |
16620 | |
16621 DOCDIR=$docdir | |
16622 while true; do | |
16623 case "$DOCDIR" in | |
16624 *\$* ) eval "DOCDIR=$DOCDIR" ;; | |
16625 *) break ;; | |
16626 esac | |
16627 done | |
16628 | |
16629 | |
16630 | |
16631 | |
16632 ARCHLIBDIR=$archlibdir | |
16633 while true; do | |
16634 case "$ARCHLIBDIR" in | |
16635 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;; | |
16636 *) break ;; | |
16637 esac | |
16638 done | |
16639 | |
16640 | |
16641 | |
16642 | |
16643 | |
16644 | |
16645 | |
16646 | |
16647 | |
16648 | |
16649 | |
16650 | |
16651 | |
16652 | |
16653 | |
16654 | |
16655 | |
16656 | |
16657 | |
16658 | |
16659 RECURSIVE_MAKE_ARGS="\$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'" | |
16660 | |
16661 | |
16662 | |
16663 | |
16664 | |
16665 | |
16666 | |
16667 | |
16668 | |
16669 | |
16670 if test "$with_prefix" = "yes"; then | |
16671 { test "$extra_verbose" = "yes" && cat << \EOF | |
16672 Defining PREFIX_USER_DEFINED | |
16673 EOF | |
16674 cat >> confdefs.h <<\EOF | |
16675 #define PREFIX_USER_DEFINED 1 | |
16676 EOF | |
16677 } | |
16678 | |
16679 fi | |
16680 | |
16681 if test "$with_site_lisp" = "no"; then | |
16682 { test "$extra_verbose" = "yes" && cat << \EOF | |
16683 Defining INHIBIT_SITE_LISP | |
16684 EOF | |
16685 cat >> confdefs.h <<\EOF | |
16686 #define INHIBIT_SITE_LISP 1 | |
16687 EOF | |
16688 } | |
16689 | |
16690 fi | |
16691 if test "$with_site_modules" = "no"; then | |
16692 { test "$extra_verbose" = "yes" && cat << \EOF | |
16693 Defining INHIBIT_SITE_MODULES | |
16694 EOF | |
16695 cat >> confdefs.h <<\EOF | |
16696 #define INHIBIT_SITE_MODULES 1 | |
16697 EOF | |
16698 } | |
16699 | |
16700 fi | |
16701 | |
16702 | |
16703 T="" | |
16704 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done | |
16705 ac_configure_args="$T" | |
16706 | |
16707 { test "$extra_verbose" = "yes" && cat << EOF | |
16708 Defining EMACS_CONFIGURATION = "$configuration" | |
16709 EOF | |
16710 cat >> confdefs.h <<EOF | |
16711 #define EMACS_CONFIGURATION "$configuration" | |
16712 EOF | |
16713 } | |
16714 | |
16715 { test "$extra_verbose" = "yes" && cat << EOF | |
16716 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args" | |
16717 EOF | |
16718 cat >> confdefs.h <<EOF | |
16719 #define EMACS_CONFIG_OPTIONS "$ac_configure_args" | |
16720 EOF | |
16721 } | |
16722 | |
16723 | |
16724 | |
16725 null_string="" | |
16726 { test "$extra_verbose" = "yes" && cat << EOF | |
16727 Defining LD_SWITCH_X_SITE = $null_string | |
16728 EOF | |
16729 cat >> confdefs.h <<EOF | |
16730 #define LD_SWITCH_X_SITE $null_string | |
16731 EOF | |
16732 } | |
16733 | |
16734 { test "$extra_verbose" = "yes" && cat << EOF | |
16735 Defining LD_SWITCH_X_SITE_AUX = $null_string | |
16736 EOF | |
16737 cat >> confdefs.h <<EOF | |
16738 #define LD_SWITCH_X_SITE_AUX $null_string | |
16739 EOF | |
16740 } | |
16741 | |
16742 { test "$extra_verbose" = "yes" && cat << EOF | |
16743 Defining C_SWITCH_X_SITE = $null_string | |
16744 EOF | |
16745 cat >> confdefs.h <<EOF | |
16746 #define C_SWITCH_X_SITE $null_string | |
16747 EOF | |
16748 } | |
16749 | |
16750 { test "$extra_verbose" = "yes" && cat << EOF | |
16751 Defining LD_SWITCH_SITE = $null_string | |
16752 EOF | |
16753 cat >> confdefs.h <<EOF | |
16754 #define LD_SWITCH_SITE $null_string | |
16755 EOF | |
16756 } | |
16757 | |
16758 { test "$extra_verbose" = "yes" && cat << EOF | |
16759 Defining C_SWITCH_SITE = $null_string | |
16760 EOF | |
16761 cat >> confdefs.h <<EOF | |
16762 #define C_SWITCH_SITE $null_string | |
16763 EOF | |
16764 } | |
16765 | |
16766 | |
16767 | |
16768 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF | |
16769 Defining GNU_MALLOC | |
16770 EOF | |
16771 cat >> confdefs.h <<\EOF | |
16772 #define GNU_MALLOC 1 | |
16773 EOF | |
16774 } | |
16775 | |
16776 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF | |
16777 Defining USE_SYSTEM_MALLOC | |
16778 EOF | |
16779 cat >> confdefs.h <<\EOF | |
16780 #define USE_SYSTEM_MALLOC 1 | |
16781 EOF | |
16782 } | |
16783 | |
16784 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF | |
16785 Defining USE_DEBUG_MALLOC | |
16786 EOF | |
16787 cat >> confdefs.h <<\EOF | |
16788 #define USE_DEBUG_MALLOC 1 | |
16789 EOF | |
16790 } | |
16791 | |
16792 { test "$extra_verbose" = "yes" && cat << \EOF | |
16793 Defining USE_SYSTEM_MALLOC | |
16794 EOF | |
16795 cat >> confdefs.h <<\EOF | |
16796 #define USE_SYSTEM_MALLOC 1 | |
16797 EOF | |
16798 } | |
16799 | |
16800 fi | |
16801 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
16802 Defining USE_GCC | |
16803 EOF | |
16804 cat >> confdefs.h <<\EOF | |
16805 #define USE_GCC 1 | |
16806 EOF | |
16807 } | |
16808 | |
16809 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
16810 Defining EXTERNAL_WIDGET | |
16811 EOF | |
16812 cat >> confdefs.h <<\EOF | |
16813 #define EXTERNAL_WIDGET 1 | |
16814 EOF | |
16815 } | |
16816 | |
16817 test "$use_kkcc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
16818 Defining USE_KKCC | |
16819 EOF | |
16820 cat >> confdefs.h <<\EOF | |
16821 #define USE_KKCC 1 | |
16822 EOF | |
16823 } | |
16824 | |
16825 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
16826 Defining QUICK_BUILD | |
16827 EOF | |
16828 cat >> confdefs.h <<\EOF | |
16829 #define QUICK_BUILD 1 | |
16830 EOF | |
16831 } | |
16832 | |
16833 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
16834 Defining PURIFY | |
16835 EOF | |
16836 cat >> confdefs.h <<\EOF | |
16837 #define PURIFY 1 | |
16838 EOF | |
16839 } | |
16840 | |
16841 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
16842 Defining QUANTIFY | |
16843 EOF | |
16844 cat >> confdefs.h <<\EOF | |
16845 #define QUANTIFY 1 | |
16846 EOF | |
16847 } | |
16848 | |
16849 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
16850 Defining MAIL_USE_POP | |
16851 EOF | |
16852 cat >> confdefs.h <<\EOF | |
16853 #define MAIL_USE_POP 1 | |
16854 EOF | |
16855 } | |
16856 | |
16857 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
16858 Defining KERBEROS | |
16859 EOF | |
16860 cat >> confdefs.h <<\EOF | |
16861 #define KERBEROS 1 | |
16862 EOF | |
16863 } | |
16864 | |
16865 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
16866 Defining HESIOD | |
16867 EOF | |
16868 cat >> confdefs.h <<\EOF | |
16869 #define HESIOD 1 | |
16870 EOF | |
16871 } | |
16872 | |
16873 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
16874 Defining USE_UNION_TYPE | |
16875 EOF | |
16876 cat >> confdefs.h <<\EOF | |
16877 #define USE_UNION_TYPE 1 | |
16878 EOF | |
16879 } | |
16880 | |
16881 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
16882 Defining PDUMP | |
16883 EOF | |
16884 cat >> confdefs.h <<\EOF | |
16885 #define PDUMP 1 | |
16886 EOF | |
16887 } | |
16888 | |
16889 test "$with_ipv6_cname" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | |
16890 Defining IPV6_CANONICALIZE | |
16891 EOF | |
16892 cat >> confdefs.h <<\EOF | |
16893 #define IPV6_CANONICALIZE 1 | |
16894 EOF | |
16895 } | |
16896 | |
16897 | |
16898 | |
16899 | |
16900 ( | |
16901 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`" | |
16902 else | |
16903 echo "uname -a: `uname -a`" | |
16904 fi | |
16905 echo "" | |
16906 echo "$0 $quoted_arguments" | |
16907 ) > Installation | |
16908 | |
16909 if test ! -z ${emacs_beta_version} ; then | |
16910 if test -z "${emacs_is_beta}" ; then | |
16911 xemacs_betaname=".${emacs_beta_version}" | |
16912 else | |
16913 xemacs_betaname="-b${emacs_beta_version}" | |
16914 fi | |
16915 else | |
16916 xemacs_betaname="" | |
16917 fi | |
16918 | |
16919 ( | |
16920 echo " | |
16921 | |
16922 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" $xemacs_extra_name configured for \`$canonical'. | |
16923 " | |
16924 echo " | |
16925 Compilation Environment and Installation Defaults:" | |
16926 echo " Source code location: $srcdir" | |
16927 echo " Installation prefix: $prefix" | |
16928 if test -n "$site_includes"; then | |
16929 echo " Additional header files: $site_includes" | |
16930 fi | |
16931 if test -n "$site_libraries"; then | |
16932 echo " Additional libraries: $site_libraries" | |
16933 fi | |
16934 if test -n "$site_prefixes"; then | |
16935 echo " Additional prefixes: $site_prefixes" | |
16936 fi | |
16937 if test -n "$runpath"; then | |
16938 echo " Runtime library search path: $runpath" | |
16939 fi | |
16940 | |
16941 if test -n "$opsysfile" | |
16942 then echo " Operating system description file: \`$opsysfile'" | |
16943 else echo " Not using any operating system description file" | |
16944 fi | |
16945 if test -n "$machfile" | |
16946 then echo " Machine description file: \`$machfile'" | |
16947 else echo " Not using any machine description file" | |
16948 fi | |
16949 | |
16950 echo " Compiler version: $compiler_version" | |
16951 if test -n "$gcc_compiler_specs"; then | |
16952 echo " - GCC specs file: $gcc_compiler_specs" | |
16953 fi | |
16954 echo " - Compiler command: $XEMACS_CC $XE_CFLAGS" | |
16955 if test "$CC" != "$XEMACS_CC"; then | |
16956 echo " Compiler version for lib-src: (detection code unimplemented)" | |
16957 echo " - Compiler command for lib-src: $CC $CFLAGS" | |
16958 if test "$xemacs_cc_cc_mismatch" = "yes"; then | |
16959 echo " WARNING: CC and XEMACS_CC mismatched; check CFLAGS carefully." | |
16960 fi | |
16961 fi | |
16962 echo " libc version: $libc_version" | |
16963 echo " Relocating allocator for buffers: $rel_alloc" | |
16964 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}" | |
16965 case "$ld_switch_site" in | |
16966 *nocombreloc*) echo " Linking with \`-z nocombreloc'. | |
16967 - Consider configuring with --pdump." ;; | |
16968 esac | |
16969 | |
16970 echo " | |
16971 Window System:" | |
16972 if test "$with_msw" = "yes"; then | |
16973 echo " Compiling in support for the Microsoft window system." | |
16974 fi | |
16975 if test "$with_x11" = "yes"; then | |
16976 echo " Compiling in support for the X window system:" | |
16977 echo " - X Windows headers location: $x_includes" | |
16978 echo " - X Windows libraries location: $x_libraries" | |
16979 if test "$with_xauth" != yes; then | |
16980 echo " - Xau (X authority) not available." | |
16981 fi | |
16982 if test "$with_xmu" != yes; then | |
16983 echo " - Xmu library not available; substituting equivalent routines." | |
16984 fi | |
16985 if test "$with_wmcommand" != no; then | |
16986 echo " - Handling WM_COMMAND properly." | |
16987 fi | |
16988 fi | |
16989 if test "$need_athena" = "yes"; then | |
16990 echo " Compiling in support for the Athena widget set:" | |
16991 echo " - Athena headers location: $athena_h_path" | |
16992 echo " - Athena library to link: $athena_lib" | |
16993 fi | |
16994 case "$with_menubars" in | |
16995 gtk ) echo " Using GTK menubars." ;; | |
16996 lucid ) echo " Using Lucid menubars." ;; | |
16997 motif ) echo " Using Motif menubars." | |
16998 echo " *WARNING* The Motif menubar implementation is currently buggy." | |
16999 echo " We recommend using the Lucid menubar instead." | |
17000 echo " Re-run configure with --with-menubars='lucid'." ;; | |
17001 msw ) echo " Using MS-Windows menubars." ;; | |
17002 esac | |
17003 case "$with_scrollbars" in | |
17004 gtk ) echo " Using GTK scrollbars." ;; | |
17005 lucid ) echo " Using Lucid scrollbars." ;; | |
17006 motif ) echo " Using Motif scrollbars." ;; | |
17007 athena ) echo " Using Athena scrollbars." ;; | |
17008 msw ) echo " Using MS-Windows scrollbars." ;; | |
17009 esac | |
17010 case "$with_dialogs" in | |
17011 gtk ) echo " Using GTK dialog boxes." ;; | |
17012 motif ) echo " Using Motif dialog boxes." | |
17013 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then | |
17014 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." | |
17015 echo " We recommend using the Athena dialog boxes instead." | |
17016 echo " Install libXaw and re-run configure with --with-dialogs='athena'." | |
17017 echo " Read the PROBLEMS file for more information." | |
17018 fi; fi ;; | |
17019 athena ) echo " Using Athena dialog boxes." ;; | |
17020 msw ) echo " Using MS-Windows dialog boxes." ;; | |
17021 esac | |
17022 case "$with_widgets" in | |
17023 gtk ) echo " Using GTK native widgets." ;; | |
17024 motif ) echo " Using Motif native widgets." ;; | |
17025 athena ) echo " Using Athena native widgets." ;; | |
17026 msw ) echo " Using MS-Windows native widgets." ;; | |
17027 esac | |
17028 if test "$with_dragndrop" = yes; then | |
17029 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)." | |
17030 echo " - Drag'n'Drop prototype: $dragndrop_proto." | |
17031 fi | |
17032 | |
17033 echo " | |
17034 TTY:" | |
17035 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." | |
17036 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." | |
17037 | |
17038 echo " | |
17039 Images:" | |
17040 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)." | |
17041 if test "$with_xpm" = yes; then | |
17042 echo " Compiling in support for XPM images." | |
17043 elif test "$with_x11" = yes; then | |
17044 echo " WARNING: -----------------------------------------------------------" | |
17045 echo " WARNING: Compiling without XPM image support." | |
17046 if test "$xpm_problem" != ""; then | |
17047 echo " Reason: $xpm_problem" | |
17048 fi | |
17049 echo " WARNING: You should strongly consider installing XPM." | |
17050 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." | |
17051 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)" | |
17052 echo " WARNING: -----------------------------------------------------------" | |
17053 fi | |
17054 if test "$with_png" = yes; then | |
17055 echo " Compiling in support for PNG images." | |
17056 elif test "$window_system" != "none"; then | |
17057 echo " WARNING: -----------------------------------------------------------" | |
17058 echo " WARNING: Compiling without PNG image support." | |
17059 if test "$png_problem" != ""; then | |
17060 echo " Reason: $png_problem" | |
17061 fi | |
17062 echo " WARNING: You should strongly consider installing the PNG libraries." | |
17063 echo " WARNING: Otherwise certain images and glyphs may not display." | |
17064 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)" | |
17065 echo " WARNING: -----------------------------------------------------------" | |
17066 fi | |
17067 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images." | |
17068 test "$with_tiff" = yes && echo " Compiling in support for TIFF images." | |
17069 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." | |
17070 | |
17071 echo " | |
17072 Sound:" | |
17073 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)." | |
17074 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)." | |
17075 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously." | |
17076 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)." | |
17077 | |
17078 echo " | |
17079 Databases:" | |
17080 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database." | |
17081 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." | |
17082 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM." | |
17083 test "$with_ldap" = yes && echo " Compiling in support for LDAP." | |
17084 if test "$with_postgresql" = yes; then | |
17085 echo " Compiling in support for PostgreSQL." | |
17086 echo " - Using PostgreSQL header file: $libpq_fe_h_file" | |
17087 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings." | |
17088 fi | |
17089 | |
17090 echo " | |
17091 Internationalization:" | |
17092 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)." | |
17093 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)." | |
17094 test "$with_xim" = motif && echo " - Using Motif to provide XIM support." | |
17095 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support." | |
17096 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar." | |
17097 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." | |
17098 if test "$with_wnn" = yes; then | |
17099 echo " Compiling in support for the WNN input method on Mule." | |
17100 test "$with_wnn6" = yes && echo " - Using WNN version 6." | |
17101 fi | |
17102 | |
17103 echo " | |
17104 Mail:" | |
17105 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval." | |
17106 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication." | |
17107 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access." | |
17108 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method." | |
17109 | |
17110 echo " | |
17111 Other Features:" | |
17112 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup." | |
17113 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." | |
17114 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." | |
17115 test "$with_socks" = yes && echo " Compiling in support for SOCKS." | |
17116 test "$with_dnet" = yes && echo " Compiling in support for DNET." | |
17117 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules." | |
17118 test "$use_number_lib" = "gmp" && echo " Compiling in support for more number types using the GNU MP library." | |
17119 test "$use_number_lib" = "mp" && echo " Compiling in support for more number types using the BSD MP library." | |
17120 if test "$use_union_type" = yes ; then | |
17121 echo " Using the union type for Lisp_Objects." | |
17122 echo " WARNING: ---------------------------------------------------------" | |
17123 echo " WARNING: This tends to trigger compiler bugs, especially when" | |
17124 echo " WARNING: combined with MULE and ERROR_CHECKING. Crashes have" | |
17125 echo " WARNING: been seen with various versions of GCC (up to about 2.95)," | |
17126 echo " WARNING: and recently with Visual C++ as well (mid-2003)." | |
17127 echo " WARNING: More recent versions may be safer, or not." | |
17128 echo " WARNING: ---------------------------------------------------------" | |
17129 fi | |
17130 test "$use_kkcc" = yes && echo " Using the new GC algorithms." | |
17131 test "$pdump" = yes && echo " Using the new portable dumper." | |
17132 test "$debug" = yes && echo " Compiling in support for extra debugging code." | |
17133 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)." | |
17134 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" \ | |
17135 != "no no no no no no no no no"; then | |
17136 echo " Compiling in support for runtime error checking." | |
17137 echo " WARNING: ---------------------------------------------------------" | |
17138 echo " WARNING: XEmacs will run noticeably more slowly as a result." | |
17139 echo " WARNING: Error checking is on by default for XEmacs beta releases." | |
17140 echo " WARNING: ---------------------------------------------------------" | |
17141 fi | |
17142 echo "" | |
17143 ) | tee -a Installation | |
17144 echo "" | |
17145 | |
17146 | |
17147 # Remove any trailing slashes in these variables. | |
17148 test -n "$prefix" && | |
17149 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'` | |
17150 test -n "$exec_prefix" && | |
17151 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'` | |
17152 | |
17153 | |
17154 for file in $internal_makefile_list; do | |
17155 case $file in | |
17156 src/Makefile.in ) file="src/Makefile.in:src/Makefile.in.in:src/depend" ;; | |
17157 modules/* ) file="${file}:${file}.in:modules/common/Makefile.common" ;; | |
17158 esac | |
17159 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi | |
17160 done | |
17161 ac_output_files="$ac_output_files src/paths.h src/xemacs.def.in lib-src/config.values" | |
17162 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 | |
17163 | |
17164 trap '' 1 2 15 | |
17165 | |
17166 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
17167 | |
17168 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17169 # Let make expand exec_prefix. | |
17170 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17171 | |
17172 # Any assignment to VPATH causes Sun make to only execute | |
17173 # the first set of double-colon rules, so remove it if not needed. | |
17174 # If there is a colon in the path, we need to keep it. | |
17175 if test "x$srcdir" = x.; then | |
17176 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
17177 fi | |
17178 | |
17179 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
17180 | |
17181 DEFS=-DHAVE_CONFIG_H | |
17182 | |
17183 # Without the "./", some shells look in PATH for config.status. | |
17184 : ${CONFIG_STATUS=./config.status} | |
17185 | |
17186 echo creating $CONFIG_STATUS | |
17187 rm -f $CONFIG_STATUS | |
17188 cat > $CONFIG_STATUS <<EOF | |
17189 #! /bin/sh | |
17190 # Generated automatically by configure. | |
17191 # Run this file to recreate the current configuration. | |
17192 # This directory was configured as follows, | |
17193 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17194 # | |
17195 # $0 $ac_configure_args | |
17196 # | |
17197 # Compiler output produced by configure, useful for debugging | |
17198 # configure, is in ./config.log if it exists. | |
17199 | |
17200 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
17201 for ac_option | |
17202 do | |
17203 case "\$ac_option" in | |
17204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
17205 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
17206 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
17207 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
17208 echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
17209 exit 0 ;; | |
17210 -help | --help | --hel | --he | --h) | |
17211 echo "\$ac_cs_usage"; exit 0 ;; | |
17212 *) echo "\$ac_cs_usage"; exit 1 ;; | |
17213 esac | |
17214 done | |
17215 | |
17216 ac_given_srcdir=$srcdir | |
17217 ac_given_INSTALL="$INSTALL" | |
17218 | |
17219 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
17220 EOF | |
17221 cat >> $CONFIG_STATUS <<EOF | |
17222 | |
17223 # Protect against being on the right side of a sed subst in config.status. | |
17224 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
17225 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
17226 $ac_vpsub | |
17227 $extrasub | |
17228 s%@SHELL@%$SHELL%g | |
17229 s%@CFLAGS@%$CFLAGS%g | |
17230 s%@CPPFLAGS@%$CPPFLAGS%g | |
17231 s%@CXXFLAGS@%$CXXFLAGS%g | |
17232 s%@FFLAGS@%$FFLAGS%g | |
17233 s%@DEFS@%$DEFS%g | |
17234 s%@LDFLAGS@%$LDFLAGS%g | |
17235 s%@LIBS@%$LIBS%g | |
17236 s%@exec_prefix@%$exec_prefix%g | |
17237 s%@prefix@%$prefix%g | |
17238 s%@program_transform_name@%$program_transform_name%g | |
17239 s%@bindir@%$bindir%g | |
17240 s%@sbindir@%$sbindir%g | |
17241 s%@libexecdir@%$libexecdir%g | |
17242 s%@datadir@%$datadir%g | |
17243 s%@sysconfdir@%$sysconfdir%g | |
17244 s%@sharedstatedir@%$sharedstatedir%g | |
17245 s%@localstatedir@%$localstatedir%g | |
17246 s%@libdir@%$libdir%g | |
17247 s%@includedir@%$includedir%g | |
17248 s%@oldincludedir@%$oldincludedir%g | |
17249 s%@infodir@%$infodir%g | |
17250 s%@mandir@%$mandir%g | |
17251 s%@LN_S@%$LN_S%g | |
17252 s%@blddir@%$blddir%g | |
17253 s%@CC@%$CC%g | |
17254 s%@CPP@%$CPP%g | |
17255 s%@start_flags@%$start_flags%g | |
17256 s%@ld_switch_shared@%$ld_switch_shared%g | |
17257 s%@start_files@%$start_files%g | |
17258 s%@ld@%$ld%g | |
17259 s%@lib_gcc@%$lib_gcc%g | |
17260 s%@RANLIB@%$RANLIB%g | |
17261 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
17262 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
17263 s%@INSTALL_DATA@%$INSTALL_DATA%g | |
17264 s%@YACC@%$YACC%g | |
17265 s%@SET_MAKE@%$SET_MAKE%g | |
17266 s%@GTK_CONFIG@%$GTK_CONFIG%g | |
17267 s%@X_CFLAGS@%$X_CFLAGS%g | |
17268 s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
17269 s%@X_LIBS@%$X_LIBS%g | |
17270 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
17271 s%@install_pp@%$install_pp%g | |
17272 s%@libs_xauth@%$libs_xauth%g | |
17273 s%@dnd_objs@%$dnd_objs%g | |
17274 s%@LIBSTDCPP@%$LIBSTDCPP%g | |
17275 s%@dll_ld@%$dll_ld%g | |
17276 s%@dll_cflags@%$dll_cflags%g | |
17277 s%@dll_ldflags@%$dll_ldflags%g | |
17278 s%@dll_post@%$dll_post%g | |
17279 s%@dll_ldo@%$dll_ldo%g | |
17280 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g | |
17281 s%@with_modules@%$with_modules%g | |
17282 s%@MOD_CC@%$MOD_CC%g | |
17283 s%@MODARCHDIR@%$MODARCHDIR%g | |
17284 s%@MAKE_DOCFILE@%$MAKE_DOCFILE%g | |
17285 s%@MODCFLAGS@%$MODCFLAGS%g | |
17286 s%@INSTALLPATH@%$INSTALLPATH%g | |
17287 s%@MOD_INSTALL_PROGRAM@%$MOD_INSTALL_PROGRAM%g | |
17288 s%@OBJECT_TO_BUILD@%$OBJECT_TO_BUILD%g | |
17289 s%@ldap_libs@%$ldap_libs%g | |
17290 s%@postgresql_libs@%$postgresql_libs%g | |
17291 s%@lwlib_objs@%$lwlib_objs%g | |
17292 s%@ALLOCA@%$ALLOCA%g | |
17293 s%@have_esd_config@%$have_esd_config%g | |
17294 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g | |
17295 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g | |
17296 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g | |
17297 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g | |
17298 s%@PROGNAME@%$PROGNAME%g | |
17299 s%@version@%$version%g | |
17300 s%@configuration@%$configuration%g | |
17301 s%@canonical@%$canonical%g | |
17302 s%@inststaticdir@%$inststaticdir%g | |
17303 s%@instvardir@%$instvardir%g | |
17304 s%@srcdir@%$srcdir%g | |
17305 s%@statedir@%$statedir%g | |
17306 s%@extra_includes@%$extra_includes%g | |
17307 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g | |
17308 s%@PREFIX@%$PREFIX%g | |
17309 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g | |
17310 s%@EXEC_PREFIX@%$EXEC_PREFIX%g | |
17311 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g | |
17312 s%@INFODIR@%$INFODIR%g | |
17313 s%@infopath@%$infopath%g | |
17314 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g | |
17315 s%@INFOPATH@%$INFOPATH%g | |
17316 s%@package_path@%$package_path%g | |
17317 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g | |
17318 s%@PACKAGE_PATH@%$PACKAGE_PATH%g | |
17319 s%@lispdir@%$lispdir%g | |
17320 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g | |
17321 s%@LISPDIR@%$LISPDIR%g | |
17322 s%@moduledir@%$moduledir%g | |
17323 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g | |
17324 s%@MODULEDIR@%$MODULEDIR%g | |
17325 s%@sitelispdir@%$sitelispdir%g | |
17326 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g | |
17327 s%@SITELISPDIR@%$SITELISPDIR%g | |
17328 s%@sitemoduledir@%$sitemoduledir%g | |
17329 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g | |
17330 s%@SITEMODULEDIR@%$SITEMODULEDIR%g | |
17331 s%@etcdir@%$etcdir%g | |
17332 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g | |
17333 s%@ETCDIR@%$ETCDIR%g | |
17334 s%@docdir@%$docdir%g | |
17335 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g | |
17336 s%@DOCDIR@%$DOCDIR%g | |
17337 s%@archlibdir@%$archlibdir%g | |
17338 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g | |
17339 s%@ARCHLIBDIR@%$ARCHLIBDIR%g | |
17340 s%@bitmapdir@%$bitmapdir%g | |
17341 s%@extra_objs@%$extra_objs%g | |
17342 s%@machfile@%$machfile%g | |
17343 s%@opsysfile@%$opsysfile%g | |
17344 s%@c_switch_general@%$c_switch_general%g | |
17345 s%@c_switch_window_system@%$c_switch_window_system%g | |
17346 s%@c_switch_all@%$c_switch_all%g | |
17347 s%@ld_switch_general@%$ld_switch_general%g | |
17348 s%@ld_switch_window_system@%$ld_switch_window_system%g | |
17349 s%@ld_switch_all@%$ld_switch_all%g | |
17350 s%@ld_libs_general@%$ld_libs_general%g | |
17351 s%@ld_libs_window_system@%$ld_libs_window_system%g | |
17352 s%@ld_libs_all@%$ld_libs_all%g | |
17353 s%@RECURSIVE_MAKE_ARGS@%$RECURSIVE_MAKE_ARGS%g | |
17354 s%@native_sound_lib@%$native_sound_lib%g | |
17355 s%@sound_cflags@%$sound_cflags%g | |
17356 s%@dynodump_arch@%$dynodump_arch%g | |
17357 s%@XEMACS_CC@%$XEMACS_CC%g | |
17358 s%@XE_CFLAGS@%$XE_CFLAGS%g | |
17359 s%@internal_makefile_list@%$internal_makefile_list%g | |
17360 | |
17361 CEOF | |
17362 EOF | |
17363 | |
17364 cat >> $CONFIG_STATUS <<\EOF | |
17365 | |
17366 # Split the substitutions into bite-sized pieces for seds with | |
17367 # small command number limits, like on Digital OSF/1 and HP-UX. | |
17368 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
17369 ac_file=1 # Number of current file. | |
17370 ac_beg=1 # First line for current file. | |
17371 ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
17372 ac_more_lines=: | |
17373 ac_sed_cmds="" | |
17374 while $ac_more_lines; do | |
17375 if test $ac_beg -gt 1; then | |
17376 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
17377 else | |
17378 sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
17379 fi | |
17380 if test ! -s conftest.s$ac_file; then | |
17381 ac_more_lines=false | |
17382 rm -f conftest.s$ac_file | |
17383 else | |
17384 if test -z "$ac_sed_cmds"; then | |
17385 ac_sed_cmds="sed -f conftest.s$ac_file" | |
17386 else | |
17387 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
17388 fi | |
17389 ac_file=`expr $ac_file + 1` | |
17390 ac_beg=$ac_end | |
17391 ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
17392 fi | |
17393 done | |
17394 if test -z "$ac_sed_cmds"; then | |
17395 ac_sed_cmds=cat | |
17396 fi | |
17397 EOF | |
17398 | |
17399 cat >> $CONFIG_STATUS <<EOF | |
17400 | |
17401 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"} | |
17402 EOF | |
17403 cat >> $CONFIG_STATUS <<\EOF | |
17404 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
17405 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
17406 case "$ac_file" in | |
17407 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17408 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17409 *) ac_file_in="${ac_file}.in" ;; | |
17410 esac | |
17411 | |
17412 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
17413 | |
17414 # Remove last slash and all that follows it. Not all systems have dirname. | |
17415 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
17416 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
17417 # The file is in a subdirectory. | |
17418 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
17419 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
17420 # A "../" for each directory in $ac_dir_suffix. | |
17421 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
17422 else | |
17423 ac_dir_suffix= ac_dots= | |
17424 fi | |
17425 | |
17426 case "$ac_given_srcdir" in | |
17427 .) srcdir=. | |
17428 if test -z "$ac_dots"; then top_srcdir=. | |
17429 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
17430 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
17431 *) # Relative path. | |
17432 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
17433 top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
17434 esac | |
17435 | |
17436 case "$ac_given_INSTALL" in | |
17437 [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
17438 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
17439 esac | |
17440 | |
17441 echo creating "$ac_file" | |
17442 rm -f "$ac_file" | |
17443 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
17444 case "$ac_file" in | |
17445 *Makefile*) ac_comsub="1i\\ | |
17446 # $configure_input" ;; | |
17447 *) ac_comsub= ;; | |
17448 esac | |
17449 | |
17450 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
17451 sed -e "$ac_comsub | |
17452 s%@configure_input@%$configure_input%g | |
17453 s%@srcdir@%$srcdir%g | |
17454 s%@top_srcdir@%$top_srcdir%g | |
17455 s%@INSTALL@%$INSTALL%g | |
17456 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
17457 fi; done | |
17458 rm -f conftest.s* | |
17459 | |
17460 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
17461 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
17462 # | |
17463 # ac_d sets the value in "#define NAME VALUE" lines. | |
17464 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
17465 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
17466 ac_dC='\3' | |
17467 ac_dD='%g' | |
17468 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
17469 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17470 ac_uB='\([ ]\)%\1#\2define\3' | |
17471 ac_uC=' ' | |
17472 ac_uD='\4%g' | |
17473 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
17474 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17475 ac_eB='$%\1#\2define\3' | |
17476 ac_eC=' ' | |
17477 ac_eD='%g' | |
17478 | |
17479 if test "${CONFIG_HEADERS+set}" != set; then | |
17480 EOF | |
17481 cat >> $CONFIG_STATUS <<EOF | |
17482 CONFIG_HEADERS="src/config.h lwlib/config.h" | |
17483 EOF | |
17484 cat >> $CONFIG_STATUS <<\EOF | |
17485 fi | |
17486 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
17487 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
17488 case "$ac_file" in | |
17489 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17490 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17491 *) ac_file_in="${ac_file}.in" ;; | |
17492 esac | |
17493 | |
17494 echo creating $ac_file | |
17495 | |
17496 rm -f conftest.frag conftest.in conftest.out | |
17497 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
17498 cat $ac_file_inputs > conftest.in | |
17499 | |
17500 EOF | |
17501 | |
17502 # Transform confdefs.h into a sed script conftest.vals that substitutes | |
17503 # the proper values into config.h.in to produce config.h. And first: | |
17504 # Protect against being on the right side of a sed subst in config.status. | |
17505 # Protect against being in an unquoted here document in config.status. | |
17506 rm -f conftest.vals | |
17507 cat > conftest.hdr <<\EOF | |
17508 s/[\\&%]/\\&/g | |
17509 s%[\\$`]%\\&%g | |
17510 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
17511 s%ac_d%ac_u%gp | |
17512 s%ac_u%ac_e%gp | |
17513 EOF | |
17514 sed -n -f conftest.hdr confdefs.h > conftest.vals | |
17515 rm -f conftest.hdr | |
17516 | |
17517 # This sed command replaces #undef with comments. This is necessary, for | |
17518 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
17519 # on some systems where configure will not decide to define it. | |
17520 cat >> conftest.vals <<\EOF | |
17521 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
17522 EOF | |
17523 | |
17524 # Break up conftest.vals because some shells have a limit on | |
17525 # the size of here documents, and old seds have small limits too. | |
17526 | |
17527 rm -f conftest.tail | |
17528 while : | |
17529 do | |
17530 ac_lines=`grep -c . conftest.vals` | |
17531 # grep -c gives empty output for an empty file on some AIX systems. | |
17532 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
17533 # Write a limited-size here document to conftest.frag. | |
17534 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
17535 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
17536 echo 'CEOF | |
17537 sed -f conftest.frag conftest.in > conftest.out | |
17538 rm -f conftest.in | |
17539 mv conftest.out conftest.in | |
17540 ' >> $CONFIG_STATUS | |
17541 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
17542 rm -f conftest.vals | |
17543 mv conftest.tail conftest.vals | |
17544 done | |
17545 rm -f conftest.vals | |
17546 | |
17547 cat >> $CONFIG_STATUS <<\EOF | |
17548 rm -f conftest.frag conftest.h | |
17549 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
17550 cat conftest.in >> conftest.h | |
17551 rm -f conftest.in | |
17552 if cmp -s $ac_file conftest.h 2>/dev/null; then | |
17553 echo "$ac_file is unchanged" | |
17554 rm -f conftest.h | |
17555 else | |
17556 # Remove last slash and all that follows it. Not all systems have dirname. | |
17557 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
17558 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
17559 # The file is in a subdirectory. | |
17560 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
17561 fi | |
17562 rm -f $ac_file | |
17563 mv conftest.h $ac_file | |
17564 fi | |
17565 fi; done | |
17566 | |
17567 EOF | |
17568 cat >> $CONFIG_STATUS <<EOF | |
17569 CPP="$CPP" | |
17570 top_srcdir="$srcdir" | |
17571 MAKE_SUBDIR="$MAKE_SUBDIR" | |
17572 | |
17573 EOF | |
17574 cat >> $CONFIG_STATUS <<\EOF | |
17575 for dir in . $MAKE_SUBDIR; do | |
17576 ( | |
17577 cd $dir | |
17578 | |
17579 | |
17580 | |
17581 | |
17582 | |
17583 | |
17584 rm -f junk.c | |
17585 < Makefile.in \ | |
17586 sed -e '/^# Generated/d' \ | |
17587 -e 's%/\*\*/#.*%%' \ | |
17588 -e 's/^ *# */#/' \ | |
17589 -e '/^##/d' \ | |
17590 -e '/^#/ { | |
17591 p | |
17592 d | |
17593 }' \ | |
17594 -e '/./ { | |
17595 s/\([\"]\)/\\\1/g | |
17596 s/^/"/ | |
17597 s/$/"/ | |
17598 }' > junk.c; | |
17599 | |
17600 echo creating $dir/Makefile | |
17601 $CPP -I. -I${top_srcdir}/src junk.c \ | |
17602 | sed -e 's/^\#.*//' \ | |
17603 -e 's/^[ ][ ]*$//'\ | |
17604 -e 's/^ / /' \ | |
17605 -e '/^[ ]*$/d' \ | |
17606 -e '/^\"/ { | |
17607 s/\\\([\"]\)/\1/g | |
17608 s/^[ ]*\"// | |
17609 s/\"[ ]*$// | |
17610 }' > Makefile.new | |
17611 chmod 444 Makefile.new | |
17612 mv -f Makefile.new Makefile | |
17613 | |
17614 echo creating $dir/GNUmakefile | |
17615 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \ | |
17616 | sed -e 's/^\#.*//' \ | |
17617 -e 's/^[ ][ ]*$//'\ | |
17618 -e 's/^ / /' \ | |
17619 -e '/^[ ]*$/d' \ | |
17620 -e '/^\"/ { | |
17621 s/\\\([\"]\)/\1/g | |
17622 s/^[ ]*\"// | |
17623 s/\"[ ]*$// | |
17624 }' > Makefile.new | |
17625 chmod 444 Makefile.new | |
17626 mv -f Makefile.new GNUmakefile | |
17627 | |
17628 if test -r "xemacs.def.in"; then | |
17629 rm -f junk.c | |
17630 cp xemacs.def.in junk.c | |
17631 echo creating $dir/xemacs.def | |
17632 $CPP -I. -I${top_srcdir}/src junk.c \ | |
17633 | sed -e 's/^\#.*//' \ | |
17634 -e 's/^[ ][ ]*$//'\ | |
17635 -e 's/^ / /' \ | |
17636 -e '/^[ ]*$/d' \ | |
17637 -e '/^\"/ { | |
17638 s/\\\([\"]\)/\1/g | |
17639 s/^[ ]*\"// | |
17640 s/\"[ ]*$// | |
17641 }' > Makefile.new | |
17642 chmod 444 Makefile.new | |
17643 mv -f Makefile.new xemacs.def | |
17644 | |
17645 fi | |
17646 rm -f junk.c | |
17647 ) | |
17648 done | |
17649 | |
17650 sed < config.status >> lib-src/config.values \ | |
17651 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \ | |
17652 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \ | |
17653 -e 's/^\([^ ]*\) $/\1 ""/' \ | |
17654 -e 's/ 1$/ t/' | |
17655 | |
17656 | |
17657 exit 0 | |
17658 EOF | |
17659 chmod +x $CONFIG_STATUS | |
17660 rm -fr confdefs* $ac_clean_files | |
17661 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |