]> code.delx.au - gnu-emacs/blob - configure
Justify help texts.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94 fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
148 ;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS=" $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="src/lisp.h"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
346 fi
347
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
352 case $ac_option in
353
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
358
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
363
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
373
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
379
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
388
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
401
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
421
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
426
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
450
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
464
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
472
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
476
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
485
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
490
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
497
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
504
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
531
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
542
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
552
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
559
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
570
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
583
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
603
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
610
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
614 ;;
615
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
625
626 *)
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632 ;;
633
634 esac
635 done
636
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
657 do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
681 fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710 else
711 ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
720 fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763 \`configure' configures this package to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785 cat <<_ACEOF
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812 _ACEOF
813
814 cat <<\_ACEOF
815
816 Program names:
817 --program-prefix=PREFIX prepend PREFIX to installed program names
818 --program-suffix=SUFFIX append SUFFIX to installed program names
819 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
820
821 X features:
822 --x-includes=DIR X include files are in DIR
823 --x-libraries=DIR X library files are in DIR
824
825 System types:
826 --build=BUILD configure for building on BUILD [guessed]
827 --host=HOST cross-compile to build programs to run on HOST [BUILD]
828 _ACEOF
829 fi
830
831 if test -n "$ac_init_help"; then
832
833 cat <<\_ACEOF
834
835 Optional Features:
836 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
837 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
838 --disable-largefile omit support for large files
839
840 Optional Packages:
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843 --with-game-dir use a shared game directory if possible
844 --with-game-user use specified user for game directory
845 --without-gcc don't use GCC to compile Emacs if GCC is found
846 --without-pop don't support POP mail retrieval with movemail
847 --with-kerberos support Kerberos-authenticated POP
848 --with-kerberos5 support Kerberos version 5 authenticated POP
849 --with-hesiod support Hesiod to get the POP server host
850 --without-sound don't compile with sound support
851 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
852 --with-xpm use -lXpm for displaying XPM images
853 --with-jpeg use -ljpeg for displaying JPEG images
854 --with-tiff use -ltiff for displaying TIFF images
855 --with-gif use -lungif for displaying GIF images
856 --with-png use -lpng for displaying PNG images
857 --without-toolkit-scroll-bars
858 don't use Motif or Xaw3d scroll bars
859 --without-xim don't use X11 XIM
860 --with-x use the X Window System
861
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CPP C preprocessor
870
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
873
874 _ACEOF
875 fi
876
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
879 ac_popdir=`pwd`
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
882 ac_builddir=.
883
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889 ac_dir_suffix= ac_top_builddir=
890 fi
891
892 case $srcdir in
893 .) # No --srcdir option. We are building in place.
894 ac_srcdir=.
895 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=.
897 else
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 fi ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
903 *) # Relative path.
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 # absolute.
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913
914 cd $ac_dir
915 # Check for guested configure; otherwise get Cygnus style configure.
916 if test -f $ac_srcdir/configure.gnu; then
917 echo
918 $SHELL $ac_srcdir/configure.gnu --help=recursive
919 elif test -f $ac_srcdir/configure; then
920 echo
921 $SHELL $ac_srcdir/configure --help=recursive
922 elif test -f $ac_srcdir/configure.ac ||
923 test -f $ac_srcdir/configure.in; then
924 echo
925 $ac_configure --help
926 else
927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928 fi
929 cd $ac_popdir
930 done
931 fi
932
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
935 cat <<\_ACEOF
936
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
941 _ACEOF
942 exit 0
943 fi
944 exec 5>config.log
945 cat >&5 <<_ACEOF
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
948
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.53. Invocation command line was
951
952 $ $0 $@
953
954 _ACEOF
955 {
956 cat <<_ASUNAME
957 ## --------- ##
958 ## Platform. ##
959 ## --------- ##
960
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
969
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
977
978 _ASUNAME
979
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 for as_dir in $PATH
982 do
983 IFS=$as_save_IFS
984 test -z "$as_dir" && as_dir=.
985 echo "PATH: $as_dir"
986 done
987
988 } >&5
989
990 cat >&5 <<_ACEOF
991
992
993 ## ----------- ##
994 ## Core tests. ##
995 ## ----------- ##
996
997 _ACEOF
998
999
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Also quote any args containing shell meta-characters.
1003 ac_configure_args=
1004 ac_sep=
1005 for ac_arg
1006 do
1007 case $ac_arg in
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n ) continue ;;
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 continue ;;
1013 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1014 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1015 esac
1016 case " $ac_configure_args " in
1017 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1018 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1019 ac_sep=" " ;;
1020 esac
1021 # Get rid of the leading space.
1022 done
1023
1024 # When interrupted or exit'd, cleanup temporary files, and complete
1025 # config.log. We remove comments because anyway the quotes in there
1026 # would cause problems or look ugly.
1027 # WARNING: Be sure not to use single quotes in there, as some shells,
1028 # such as our DU 5.0 friend, will then `close' the trap.
1029 trap 'exit_status=$?
1030 # Save into config.log some information that might help in debugging.
1031 {
1032 echo
1033 cat <<\_ASBOX
1034 ## ---------------- ##
1035 ## Cache variables. ##
1036 ## ---------------- ##
1037 _ASBOX
1038 echo
1039 # The following way of writing the cache mishandles newlines in values,
1040 {
1041 (set) 2>&1 |
1042 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1043 *ac_space=\ *)
1044 sed -n \
1045 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1047 ;;
1048 *)
1049 sed -n \
1050 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1051 ;;
1052 esac;
1053 }
1054 echo
1055 if test -s confdefs.h; then
1056 cat <<\_ASBOX
1057 ## ----------- ##
1058 ## confdefs.h. ##
1059 ## ----------- ##
1060 _ASBOX
1061 echo
1062 sed "/^$/d" confdefs.h
1063 echo
1064 fi
1065 test "$ac_signal" != 0 &&
1066 echo "$as_me: caught signal $ac_signal"
1067 echo "$as_me: exit $exit_status"
1068 } >&5
1069 rm -f core core.* *.core &&
1070 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1071 exit $exit_status
1072 ' 0
1073 for ac_signal in 1 2 13 15; do
1074 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1075 done
1076 ac_signal=0
1077
1078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1079 rm -rf conftest* confdefs.h
1080 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1081 echo >confdefs.h
1082
1083 # Predefined preprocessor variables.
1084
1085 cat >>confdefs.h <<_ACEOF
1086 #define PACKAGE_NAME "$PACKAGE_NAME"
1087 _ACEOF
1088
1089
1090 cat >>confdefs.h <<_ACEOF
1091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1092 _ACEOF
1093
1094
1095 cat >>confdefs.h <<_ACEOF
1096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1097 _ACEOF
1098
1099
1100 cat >>confdefs.h <<_ACEOF
1101 #define PACKAGE_STRING "$PACKAGE_STRING"
1102 _ACEOF
1103
1104
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1107 _ACEOF
1108
1109
1110 # Let the site file select an alternate cache file if it wants to.
1111 # Prefer explicitly selected file to automatically selected ones.
1112 if test -z "$CONFIG_SITE"; then
1113 if test "x$prefix" != xNONE; then
1114 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1115 else
1116 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1117 fi
1118 fi
1119 for ac_site_file in $CONFIG_SITE; do
1120 if test -r "$ac_site_file"; then
1121 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1122 echo "$as_me: loading site script $ac_site_file" >&6;}
1123 sed 's/^/| /' "$ac_site_file" >&5
1124 . "$ac_site_file"
1125 fi
1126 done
1127
1128 if test -r "$cache_file"; then
1129 # Some versions of bash will fail to source /dev/null (special
1130 # files actually), so we avoid doing that.
1131 if test -f "$cache_file"; then
1132 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1133 echo "$as_me: loading cache $cache_file" >&6;}
1134 case $cache_file in
1135 [\\/]* | ?:[\\/]* ) . $cache_file;;
1136 *) . ./$cache_file;;
1137 esac
1138 fi
1139 else
1140 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1141 echo "$as_me: creating cache $cache_file" >&6;}
1142 >$cache_file
1143 fi
1144
1145 # Check that the precious variables saved in the cache have kept the same
1146 # value.
1147 ac_cache_corrupted=false
1148 for ac_var in `(set) 2>&1 |
1149 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1150 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1151 eval ac_new_set=\$ac_env_${ac_var}_set
1152 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1153 eval ac_new_val="\$ac_env_${ac_var}_value"
1154 case $ac_old_set,$ac_new_set in
1155 set,)
1156 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1157 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1158 ac_cache_corrupted=: ;;
1159 ,set)
1160 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1161 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1162 ac_cache_corrupted=: ;;
1163 ,);;
1164 *)
1165 if test "x$ac_old_val" != "x$ac_new_val"; then
1166 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1167 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1168 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1169 echo "$as_me: former value: $ac_old_val" >&2;}
1170 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1171 echo "$as_me: current value: $ac_new_val" >&2;}
1172 ac_cache_corrupted=:
1173 fi;;
1174 esac
1175 # Pass precious variables to config.status.
1176 if test "$ac_new_set" = set; then
1177 case $ac_new_val in
1178 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1179 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1180 *) ac_arg=$ac_var=$ac_new_val ;;
1181 esac
1182 case " $ac_configure_args " in
1183 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1184 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1185 esac
1186 fi
1187 done
1188 if $ac_cache_corrupted; then
1189 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1190 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1191 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1192 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1193 { (exit 1); exit 1; }; }
1194 fi
1195
1196 ac_ext=c
1197 ac_cpp='$CPP $CPPFLAGS'
1198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1220
1221
1222 test "$program_prefix" != NONE &&
1223 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1224 # Use a double $ so make ignores it.
1225 test "$program_suffix" != NONE &&
1226 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1227 # Double any \ or $. echo might interpret backslashes.
1228 # By default was `s,x,x', remove it if useless.
1229 cat <<\_ACEOF >conftest.sed
1230 s/[\\$]/&&/g;s/;s,x,x,$//
1231 _ACEOF
1232 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1233 rm conftest.sed
1234
1235
1236 lispdir='${datadir}/emacs/${version}/lisp'
1237 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1238 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1239 lisppath='${locallisppath}:${lispdir}'
1240 etcdir='${datadir}/emacs/${version}/etc'
1241 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1242 docdir='${datadir}/emacs/${version}/etc'
1243 gamedir=yes
1244
1245
1246 # Check whether --with-game-dir or --without-game-dir was given.
1247 if test "${with_game_dir+set}" = set; then
1248 withval="$with_game_dir"
1249 if test "$withval" = yes; then
1250 gamedir="${localstatedir}/games/emacs"
1251 else
1252 if test "$withval" = no; then
1253 gamedir=no
1254 else
1255 gamedir="$withval"
1256 fi
1257 fi
1258
1259 fi;
1260
1261 gameuser=games
1262
1263 # Check whether --with-game-user or --without-game-user was given.
1264 if test "${with_game_user+set}" = set; then
1265 withval="$with_game_user"
1266 gameuser="$withval"
1267 fi;
1268
1269
1270 # Check whether --with-gcc or --without-gcc was given.
1271 if test "${with_gcc+set}" = set; then
1272 withval="$with_gcc"
1273
1274 fi;
1275
1276 # Check whether --with-pop or --without-pop was given.
1277 if test "${with_pop+set}" = set; then
1278 withval="$with_pop"
1279 if test "$withval" = yes; then
1280 cat >>confdefs.h <<\_ACEOF
1281 #define MAIL_USE_POP 1
1282 _ACEOF
1283
1284 else :
1285 fi
1286 else
1287 cat >>confdefs.h <<\_ACEOF
1288 #define MAIL_USE_POP 1
1289 _ACEOF
1290
1291 fi;
1292
1293
1294 # Check whether --with-kerberos or --without-kerberos was given.
1295 if test "${with_kerberos+set}" = set; then
1296 withval="$with_kerberos"
1297 cat >>confdefs.h <<\_ACEOF
1298 #define KERBEROS 1
1299 _ACEOF
1300
1301 fi;
1302
1303
1304 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1305 if test "${with_kerberos5+set}" = set; then
1306 withval="$with_kerberos5"
1307 if test "${with_kerberos5+set}" = set; then
1308 if test "${with_kerberos+set}" != set; then
1309 with_kerberos=yes
1310 cat >>confdefs.h <<\_ACEOF
1311 #define KERBEROS 1
1312 _ACEOF
1313
1314 fi
1315 fi
1316
1317 cat >>confdefs.h <<\_ACEOF
1318 #define KERBEROS5 1
1319 _ACEOF
1320
1321 fi;
1322
1323 # Check whether --with-hesiod or --without-hesiod was given.
1324 if test "${with_hesiod+set}" = set; then
1325 withval="$with_hesiod"
1326
1327 cat >>confdefs.h <<\_ACEOF
1328 #define HESIOD 1
1329 _ACEOF
1330
1331 fi;
1332
1333
1334 # Check whether --with-sound or --without-sound was given.
1335 if test "${with_sound+set}" = set; then
1336 withval="$with_sound"
1337
1338 fi;
1339
1340
1341 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1342 if test "${with_x_toolkit+set}" = set; then
1343 withval="$with_x_toolkit"
1344 case "${withval}" in
1345 y | ye | yes ) val=athena ;;
1346 n | no ) val=no ;;
1347 l | lu | luc | luci | lucid ) val=lucid ;;
1348 a | at | ath | athe | athen | athena ) val=athena ;;
1349 m | mo | mot | moti | motif ) val=motif ;;
1350 * )
1351 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1352 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1353 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1354 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1355 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1356 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1357 { (exit 1); exit 1; }; }
1358 ;;
1359 esac
1360 with_x_toolkit=$val
1361
1362 fi;
1363
1364 # Check whether --with-xpm or --without-xpm was given.
1365 if test "${with_xpm+set}" = set; then
1366 withval="$with_xpm"
1367
1368 fi;
1369
1370 # Check whether --with-jpeg or --without-jpeg was given.
1371 if test "${with_jpeg+set}" = set; then
1372 withval="$with_jpeg"
1373
1374 fi;
1375
1376 # Check whether --with-tiff or --without-tiff was given.
1377 if test "${with_tiff+set}" = set; then
1378 withval="$with_tiff"
1379
1380 fi;
1381
1382 # Check whether --with-gif or --without-gif was given.
1383 if test "${with_gif+set}" = set; then
1384 withval="$with_gif"
1385
1386 fi;
1387
1388 # Check whether --with-png or --without-png was given.
1389 if test "${with_png+set}" = set; then
1390 withval="$with_png"
1391
1392 fi;
1393
1394 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1395 if test "${with_toolkit_scroll_bars+set}" = set; then
1396 withval="$with_toolkit_scroll_bars"
1397
1398 fi;
1399
1400 # Check whether --with-xim or --without-xim was given.
1401 if test "${with_xim+set}" = set; then
1402 withval="$with_xim"
1403
1404 fi;
1405
1406 #### Make srcdir absolute, if it isn't already. It's important to
1407 #### avoid running the path through pwd unnecessarily, since pwd can
1408 #### give you automounter prefixes, which can go away. We do all this
1409 #### so Emacs can find its files when run uninstalled.
1410 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1411 unset CDPATH
1412 case "${srcdir}" in
1413 /* ) ;;
1414 . )
1415 ## We may be able to use the $PWD environment variable to make this
1416 ## absolute. But sometimes PWD is inaccurate.
1417 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1418 ## but that tested only for a well-formed and valid PWD,
1419 ## it did not object when PWD was well-formed and valid but just wrong.
1420 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1421 then
1422 srcdir="$PWD"
1423 else
1424 srcdir="`(cd ${srcdir}; pwd)`"
1425 fi
1426 ;;
1427 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1428 esac
1429
1430 #### Check if the source directory already has a configured system in it.
1431 if test `pwd` != `(cd ${srcdir} && pwd)` \
1432 && test -f "${srcdir}/src/config.h" ; then
1433 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1434 as a build directory right now; it has been configured in its own
1435 right. To configure in another directory as well, you MUST
1436 use GNU make. If you do not have GNU make, then you must
1437 now do \`make distclean' in ${srcdir},
1438 and then run $0 again." >&5
1439 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1440 as a build directory right now; it has been configured in its own
1441 right. To configure in another directory as well, you MUST
1442 use GNU make. If you do not have GNU make, then you must
1443 now do \`make distclean' in ${srcdir},
1444 and then run $0 again." >&2;}
1445
1446 extrasub='/^VPATH[ ]*=/c\
1447 vpath %.c $(srcdir)\
1448 vpath %.h $(srcdir)\
1449 vpath %.y $(srcdir)\
1450 vpath %.l $(srcdir)\
1451 vpath %.s $(srcdir)\
1452 vpath %.in $(srcdir)\
1453 vpath %.texi $(srcdir)'
1454 fi
1455
1456 #### Given the configuration name, set machfile and opsysfile to the
1457 #### names of the m/*.h and s/*.h files we should use.
1458
1459 ### Canonicalize the configuration name.
1460
1461 ac_aux_dir=
1462 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1463 if test -f $ac_dir/install-sh; then
1464 ac_aux_dir=$ac_dir
1465 ac_install_sh="$ac_aux_dir/install-sh -c"
1466 break
1467 elif test -f $ac_dir/install.sh; then
1468 ac_aux_dir=$ac_dir
1469 ac_install_sh="$ac_aux_dir/install.sh -c"
1470 break
1471 elif test -f $ac_dir/shtool; then
1472 ac_aux_dir=$ac_dir
1473 ac_install_sh="$ac_aux_dir/shtool install -c"
1474 break
1475 fi
1476 done
1477 if test -z "$ac_aux_dir"; then
1478 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1479 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1480 { (exit 1); exit 1; }; }
1481 fi
1482 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1483 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1484 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1485
1486 # Make sure we can run config.sub.
1487 $ac_config_sub sun4 >/dev/null 2>&1 ||
1488 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1489 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1490 { (exit 1); exit 1; }; }
1491
1492 echo "$as_me:$LINENO: checking build system type" >&5
1493 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1494 if test "${ac_cv_build+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1496 else
1497 ac_cv_build_alias=$build_alias
1498 test -z "$ac_cv_build_alias" &&
1499 ac_cv_build_alias=`$ac_config_guess`
1500 test -z "$ac_cv_build_alias" &&
1501 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1502 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1503 { (exit 1); exit 1; }; }
1504 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1505 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1506 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1507 { (exit 1); exit 1; }; }
1508
1509 fi
1510 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1511 echo "${ECHO_T}$ac_cv_build" >&6
1512 build=$ac_cv_build
1513 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1514 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1515 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1516
1517
1518 echo "$as_me:$LINENO: checking host system type" >&5
1519 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1520 if test "${ac_cv_host+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 ac_cv_host_alias=$host_alias
1524 test -z "$ac_cv_host_alias" &&
1525 ac_cv_host_alias=$ac_cv_build_alias
1526 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1527 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1528 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1529 { (exit 1); exit 1; }; }
1530
1531 fi
1532 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1533 echo "${ECHO_T}$ac_cv_host" >&6
1534 host=$ac_cv_host
1535 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1536 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1537 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1538
1539
1540 canonical=$host
1541 configuration=${host_alias-$host}
1542
1543
1544 ### If you add support for a new configuration, add code to this
1545 ### switch statement to recognize your configuration name and select
1546 ### the appropriate operating system and machine description files.
1547
1548 ### You would hope that you could choose an m/*.h file pretty much
1549 ### based on the machine portion of the configuration name, and an s-
1550 ### file based on the operating system portion. However, it turns out
1551 ### that each m/*.h file is pretty manufacturer-specific - for
1552 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1553 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1554 ### machines. So we basically have to have a special case for each
1555 ### configuration name.
1556 ###
1557 ### As far as handling version numbers on operating systems is
1558 ### concerned, make sure things will fail in a fixable way. If
1559 ### /etc/MACHINES doesn't say anything about version numbers, be
1560 ### prepared to handle anything reasonably. If version numbers
1561 ### matter, be sure /etc/MACHINES says something about it.
1562 ###
1563 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1564 ### "System V Release 4"; he writes, "The old convention encouraged
1565 ### confusion between `system' and `release' levels'."
1566
1567 machine='' opsys='' unported=no
1568 case "${canonical}" in
1569
1570 ## FreeBSD ports
1571 *-*-freebsd* )
1572 opsys=freebsd
1573 case "${canonical}" in
1574 alpha*-*-freebsd*) machine=alpha ;;
1575 i[3456]86-*-freebsd*) machine=intel386 ;;
1576 esac
1577 ;;
1578
1579 ## NetBSD ports
1580 *-*-netbsd* )
1581 opsys=netbsd
1582 case "${canonical}" in
1583 alpha*-*-netbsd*) machine=alpha ;;
1584 i[3456]86-*-netbsd*) machine=intel386 ;;
1585 m68k-*-netbsd*)
1586 # This is somewhat bogus.
1587 machine=hp9000s300 ;;
1588 powerpc-apple-netbsd*) machine=macppc ;;
1589 mips-*-netbsd*) machine=pmax ;;
1590 mipsel-*-netbsd*) machine=pmax ;;
1591 ns32k-*-netbsd*) machine=ns32000 ;;
1592 powerpc-*-netbsd*) machine=macppc ;;
1593 sparc*-*-netbsd*) machine=sparc ;;
1594 vax-*-netbsd*) machine=vax ;;
1595 arm-*-netbsd*) machine=arm ;;
1596 esac
1597 ;;
1598
1599 ## OpenBSD ports
1600 *-*-openbsd* )
1601 opsys=openbsd
1602 case "${canonical}" in
1603 alpha*-*-openbsd*) machine=alpha ;;
1604 i386-*-openbsd*) machine=intel386 ;;
1605 m68k-*-openbsd*) machine=hp9000s300 ;;
1606 mipsel-*-openbsd*) machine=pmax ;;
1607 ns32k-*-openbsd*) machine=ns32000 ;;
1608 sparc-*-openbsd*) machine=sparc ;;
1609 vax-*-openbsd*) machine=vax ;;
1610 esac
1611 ;;
1612
1613 ## Acorn RISCiX:
1614 arm-acorn-riscix1.1* )
1615 machine=acorn opsys=riscix1-1
1616 ;;
1617 arm-acorn-riscix1.2* | arm-acorn-riscix )
1618 ## This name is riscix12 instead of riscix1.2
1619 ## to avoid a file name conflict on MSDOS.
1620 machine=acorn opsys=riscix12
1621 ;;
1622
1623 ## BSDI ports
1624 *-*-bsdi* )
1625 opsys=bsdi
1626 case "${canonical}" in
1627 i[345]86-*-bsdi*) machine=intel386 ;;
1628 sparc-*-bsdi*) machine=sparc ;;
1629 powerpc-*-bsdi*) machine=macppc ;;
1630 esac
1631 case "${canonical}" in
1632 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1633 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1634 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1635 *-*-bsdi3* ) opsys=bsdos3 ;;
1636 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1637 esac
1638 ;;
1639
1640 ## Alliant machines
1641 ## Strictly speaking, we need the version of the alliant operating
1642 ## system to choose the right machine file, but currently the
1643 ## configuration name doesn't tell us enough to choose the right
1644 ## one; we need to give alliants their own operating system name to
1645 ## do this right. When someone cares, they can help us.
1646 fx80-alliant-* )
1647 machine=alliant4 opsys=bsd4-2
1648 ;;
1649 i860-alliant-* )
1650 machine=alliant-2800 opsys=bsd4-3
1651 ;;
1652
1653 ## Alpha (DEC) machines.
1654 alpha*-dec-osf* )
1655 machine=alpha opsys=osf1
1656 # This is needed to find X11R6.1 libraries for certain tests.
1657 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1658 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1659 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1660 # due to non-traditional preprocessing with the current compiler
1661 # defaults. OSF 4 can also have that compiler version, and there
1662 # seems always to have been a usable /usr/bin/cpp.
1663 NON_GNU_CPP=/usr/bin/cpp
1664 case "${canonical}" in
1665 alpha*-dec-osf[5-9]*)
1666 opsys=osf5-0 ;;
1667 esac
1668 ;;
1669
1670 alpha*-*-linux-gnu* )
1671 machine=alpha opsys=gnu-linux
1672 ;;
1673
1674 arm*-*-linux-gnu* )
1675 machine=arm opsys=gnu-linux
1676 ;;
1677
1678 ppc-*-linux | \
1679 powerpc-*-linux* )
1680 machine=macppc opsys=gnu-linux
1681 ;;
1682
1683 ## Altos 3068
1684 m68*-altos-sysv* )
1685 machine=altos opsys=usg5-2
1686 ;;
1687
1688 ## Amdahl UTS
1689 580-amdahl-sysv* )
1690 machine=amdahl opsys=usg5-2-2
1691 ;;
1692
1693 ## Apollo, Domain/OS
1694 m68*-apollo-* )
1695 machine=apollo opsys=bsd4-3
1696 ;;
1697
1698 ## AT&T 3b2, 3b5, 3b15, 3b20
1699 we32k-att-sysv* )
1700 machine=att3b opsys=usg5-2-2
1701 ;;
1702
1703 ## AT&T 3b1 - The Mighty Unix PC!
1704 m68*-att-sysv* )
1705 machine=7300 opsys=usg5-2-2
1706 ;;
1707
1708 ## Bull dpx20
1709 rs6000-bull-bosx* )
1710 machine=ibmrs6000 opsys=aix3-2
1711 ;;
1712
1713 ## Bull dpx2
1714 m68*-bull-sysv3* )
1715 machine=dpx2 opsys=usg5-3
1716 ;;
1717
1718 ## Bull sps7
1719 m68*-bull-sysv2* )
1720 machine=sps7 opsys=usg5-2
1721 ;;
1722
1723 ## CCI 5/32, 6/32 -- see "Tahoe".
1724
1725 ## Celerity
1726 ## I don't know what configuration name to use for this; config.sub
1727 ## doesn't seem to know anything about it. Hey, Celerity users, get
1728 ## in touch with us!
1729 celerity-celerity-bsd* )
1730 machine=celerity opsys=bsd4-2
1731 ;;
1732
1733 ## Clipper
1734 ## What operating systems does this chip run that Emacs has been
1735 ## tested on?
1736 clipper-* )
1737 machine=clipper
1738 ## We'll use the catch-all code at the bottom to guess the
1739 ## operating system.
1740 ;;
1741
1742 ## Compaq Nonstop
1743 mips-compaq-nonstopux* )
1744 machine=nonstopux opsys=nonstopux
1745 ;;
1746
1747 ## Convex
1748 *-convex-bsd* | *-convex-convexos* )
1749 machine=convex opsys=bsd4-3
1750 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1751 NON_GNU_CPP="cc -E -P"
1752 ;;
1753
1754 ## Cubix QBx/386
1755 i[3456]86-cubix-sysv* )
1756 machine=intel386 opsys=usg5-3
1757 ;;
1758
1759 ## Cydra 5
1760 cydra*-cydrome-sysv* )
1761 machine=cydra5 opsys=usg5-3
1762 ;;
1763
1764 ## Data General AViiON Machines
1765 ## DG changed naming conventions with the release of 5.4.4.10, they
1766 ## dropped the initial 5.4 but left the intervening R. Because of the
1767 ## R this shouldn't conflict with older versions of the OS (which I
1768 ## think were named like dgux4.*). In addition, DG new AViiONs series
1769 ## uses either Motorola M88k or Intel Pentium CPUs.
1770 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1771 machine=aviion opsys=dgux4
1772 ;;
1773 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1774 ## This name is dgux5-4-3 instead of dgux5-4r3
1775 ## to avoid a file name conflict on MSDOS.
1776 machine=aviion opsys=dgux5-4-3
1777 ;;
1778 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1779 machine=aviion opsys=dgux5-4r2
1780 ;;
1781 m88k-dg-dgux* )
1782 machine=aviion opsys=dgux
1783 ;;
1784
1785 ## Data General AViiON Intel (x86) Machines
1786 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1787 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1788 i[345]86-dg-dguxR4* )
1789 machine=aviion-intel opsys=dgux4
1790 ;;
1791
1792 ## DECstations
1793 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1794 machine=pmax opsys=bsd4-2
1795 ;;
1796 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1797 machine=pmax opsys=bsd4-3
1798 ;;
1799 mips-dec-ultrix* )
1800 machine=pmax opsys=ultrix4-3
1801 ;;
1802 mips-dec-osf* )
1803 machine=pmax opsys=osf1
1804 ;;
1805 mips-dec-mach_bsd4.3* )
1806 machine=pmax opsys=mach-bsd4-3
1807 ;;
1808
1809 ## Motorola Delta machines
1810 m68k-motorola-sysv* | m68000-motorola-sysv* )
1811 machine=delta opsys=usg5-3
1812 if test -z "`type gnucc | grep 'not found'`"
1813 then
1814 if test -s /etc/167config
1815 then CC="gnucc -m68040"
1816 else CC="gnucc -m68881"
1817 fi
1818 else
1819 if test -z "`type gcc | grep 'not found'`"
1820 then CC=gcc
1821 else CC=cc
1822 fi
1823 fi
1824 ;;
1825 m88k-motorola-sysv4* )
1826 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1827 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1828 # I hope there are not other 4.0 versions for this machine
1829 # which really need usg5-4 instead.
1830 machine=delta88k opsys=usg5-4-2
1831 ;;
1832 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1833 machine=delta88k opsys=usg5-3
1834 ;;
1835
1836 ## Dual machines
1837 m68*-dual-sysv* )
1838 machine=dual opsys=usg5-2
1839 ;;
1840 m68*-dual-uniplus* )
1841 machine=dual opsys=unipl5-2
1842 ;;
1843
1844 ## Elxsi 6400
1845 elxsi-elxsi-sysv* )
1846 machine=elxsi opsys=usg5-2
1847 ;;
1848
1849 ## Encore machines
1850 ns16k-encore-bsd* )
1851 machine=ns16000 opsys=umax
1852 ;;
1853
1854 ## The GEC 63 - apparently, this port isn't really finished yet.
1855 # I'm sure we finished off the last of the machines, though. -- fx
1856
1857 ## Gould Power Node and NP1
1858 pn-gould-bsd4.2* )
1859 machine=gould opsys=bsd4-2
1860 ;;
1861 pn-gould-bsd4.3* )
1862 machine=gould opsys=bsd4-3
1863 ;;
1864 np1-gould-bsd* )
1865 machine=gould-np1 opsys=bsd4-3
1866 ;;
1867
1868 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1869 ## as far as Emacs is concerned).
1870 m88k-harris-cxux* )
1871 # Build needs to be different on 7.0 and later releases
1872 case "`uname -r`" in
1873 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1874 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1875 esac
1876 NON_GNU_CPP="/lib/cpp"
1877 ;;
1878 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1879 m68k-harris-cxux* )
1880 machine=nh3000 opsys=cxux
1881 ;;
1882 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1883 powerpc-harris-powerunix )
1884 machine=nh6000 opsys=powerunix
1885 NON_GNU_CPP="cc -Xo -E -P"
1886 ;;
1887 ## SR2001/SR2201 running HI-UX/MPP
1888 hppa1.1-hitachi-hiuxmpp* )
1889 machine=sr2k opsys=hiuxmpp
1890 ;;
1891 hppa1.1-hitachi-hiuxwe2* )
1892 machine=sr2k opsys=hiuxwe2
1893 ;;
1894 ## Honeywell XPS100
1895 xps*-honeywell-sysv* )
1896 machine=xps100 opsys=usg5-2
1897 ;;
1898
1899 ## HP 9000 series 200 or 300
1900 m68*-hp-bsd* )
1901 machine=hp9000s300 opsys=bsd4-3
1902 ;;
1903 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1904 m68*-hp-hpux* )
1905 case "`uname -r`" in
1906 ## Someone's system reports A.B8.05 for this.
1907 ## I wonder what other possibilities there are.
1908 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1909 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1910 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1911 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1912 *) machine=hp9000s300 opsys=hpux ;;
1913 esac
1914 ;;
1915
1916 ## HP 9000 series 700 and 800, running HP/UX
1917 hppa*-hp-hpux7* )
1918 machine=hp800 opsys=hpux
1919 ;;
1920 hppa*-hp-hpux8* )
1921 machine=hp800 opsys=hpux8
1922 ;;
1923 hppa*-hp-hpux9shr* )
1924 machine=hp800 opsys=hpux9shr
1925 ;;
1926 hppa*-hp-hpux9* )
1927 machine=hp800 opsys=hpux9
1928 ;;
1929 hppa*-hp-hpux10* )
1930 machine=hp800 opsys=hpux10
1931 ;;
1932 hppa*-hp-hpux1[1-9]* )
1933 machine=hp800 opsys=hpux11
1934 ;;
1935
1936 hppa*-*-linux-gnu* )
1937 machine=hp800 opsys=gnu-linux
1938 ;;
1939
1940 ## HP 9000 series 700 and 800, running HP/UX
1941 hppa*-hp-hpux* )
1942 ## Cross-compilation? Nah!
1943 case "`uname -r`" in
1944 ## Someone's system reports A.B8.05 for this.
1945 ## I wonder what other possibilities there are.
1946 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1947 *.08.* ) machine=hp800 opsys=hpux8 ;;
1948 *.09.* ) machine=hp800 opsys=hpux9 ;;
1949 *) machine=hp800 opsys=hpux10 ;;
1950 esac
1951 ;;
1952 hppa*-*-nextstep* )
1953 machine=hp800 opsys=nextstep
1954 ;;
1955
1956 ## Orion machines
1957 orion-orion-bsd* )
1958 machine=orion opsys=bsd4-2
1959 ;;
1960 clipper-orion-bsd* )
1961 machine=orion105 opsys=bsd4-2
1962 ;;
1963
1964 ## IBM machines
1965 i[3456]86-ibm-aix1.1* )
1966 machine=ibmps2-aix opsys=usg5-2-2
1967 ;;
1968 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1969 machine=ibmps2-aix opsys=usg5-3
1970 ;;
1971 i370-ibm-aix*)
1972 machine=ibm370aix opsys=usg5-3
1973 ;;
1974 s390-*-linux-gnu)
1975 machine=ibms390 opsys=gnu-linux
1976 ;;
1977 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
1978 machine=ibmrs6000 opsys=aix3-1
1979 ;;
1980 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
1981 machine=ibmrs6000 opsys=aix3-2-5
1982 ;;
1983 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
1984 machine=ibmrs6000 opsys=aix4-1
1985 ;;
1986 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
1987 machine=ibmrs6000 opsys=aix4-2
1988 ;;
1989 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
1990 machine=ibmrs6000 opsys=aix4-2
1991 ;;
1992 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
1993 machine=ibmrs6000 opsys=aix4
1994 ;;
1995 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
1996 machine=ibmrs6000 opsys=aix4-1
1997 ;;
1998 rs6000-ibm-aix* | powerpc-ibm-aix* )
1999 machine=ibmrs6000 opsys=aix3-2
2000 ;;
2001 romp-ibm-bsd4.3* )
2002 machine=ibmrt opsys=bsd4-3
2003 ;;
2004 romp-ibm-bsd4.2* )
2005 machine=ibmrt opsys=bsd4-2
2006 ;;
2007 romp-ibm-aos4.3* )
2008 machine=ibmrt opsys=bsd4-3
2009 ;;
2010 romp-ibm-aos4.2* )
2011 machine=ibmrt opsys=bsd4-2
2012 ;;
2013 romp-ibm-aos* )
2014 machine=ibmrt opsys=bsd4-3
2015 ;;
2016 romp-ibm-bsd* )
2017 machine=ibmrt opsys=bsd4-3
2018 ;;
2019 romp-ibm-aix* )
2020 machine=ibmrt-aix opsys=usg5-2-2
2021 ;;
2022
2023 ## Integrated Solutions `Optimum V'
2024 m68*-isi-bsd4.2* )
2025 machine=isi-ov opsys=bsd4-2
2026 ;;
2027 m68*-isi-bsd4.3* )
2028 machine=isi-ov opsys=bsd4-3
2029 ;;
2030
2031 ## Intel 386 machines where we do care about the manufacturer
2032 i[3456]86-intsys-sysv* )
2033 machine=is386 opsys=usg5-2-2
2034 ;;
2035
2036 ## Prime EXL
2037 i[3456]86-prime-sysv* )
2038 machine=i386 opsys=usg5-3
2039 ;;
2040
2041 ## Sequent Symmetry running Dynix
2042 i[3456]86-sequent-bsd* )
2043 machine=symmetry opsys=bsd4-3
2044 ;;
2045
2046 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2047 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2048 machine=sequent-ptx opsys=ptx4
2049 NON_GNU_CPP=/lib/cpp
2050 ;;
2051
2052 ## Sequent Symmetry running DYNIX/ptx
2053 ## Use the old cpp rather than the newer ANSI one.
2054 i[3456]86-sequent-ptx* )
2055 machine=sequent-ptx opsys=ptx
2056 NON_GNU_CPP="/lib/cpp"
2057 ;;
2058
2059 ## ncr machine running svr4.3.
2060 i[3456]86-ncr-sysv4.3 )
2061 machine=ncr386 opsys=usg5-4-3
2062 ;;
2063
2064 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2065 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2066 i[3456]86-ncr-sysv* )
2067 machine=ncr386 opsys=usg5-4-2
2068 ;;
2069
2070 ## Intel Paragon OSF/1
2071 i860-intel-osf1* )
2072 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2073 ;;
2074
2075 ## Intel 860
2076 i860-*-sysv4* )
2077 machine=i860 opsys=usg5-4
2078 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2079 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2080 ;;
2081
2082 ## Macintosh PowerPC
2083 powerpc*-*-linux-gnu* )
2084 machine=macppc opsys=gnu-linux
2085 ;;
2086
2087 ## Masscomp machines
2088 m68*-masscomp-rtu* )
2089 machine=masscomp opsys=rtu
2090 ;;
2091
2092 ## Megatest machines
2093 m68*-megatest-bsd* )
2094 machine=mega68 opsys=bsd4-2
2095 ;;
2096
2097 ## Workstations sold by MIPS
2098 ## This is not necessarily all workstations using the MIPS processor -
2099 ## Irises are produced by SGI, and DECstations by DEC.
2100
2101 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2102 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2103 ## it gives for choosing between the alternatives seems to be "Use
2104 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2105 ## the BSD world." I'll assume that these are instructions for
2106 ## handling two odd situations, and that every other situation
2107 ## should use mips.h and usg5-2-2, they being listed first.
2108 mips-mips-usg* )
2109 machine=mips4
2110 ## Fall through to the general code at the bottom to decide on the OS.
2111 ;;
2112 mips-mips-riscos4* )
2113 machine=mips4 opsys=bsd4-3
2114 NON_GNU_CC="cc -systype bsd43"
2115 NON_GNU_CPP="cc -systype bsd43 -E"
2116 ;;
2117 mips-mips-riscos5* )
2118 machine=mips4 opsys=riscos5
2119 NON_GNU_CC="cc -systype bsd43"
2120 NON_GNU_CPP="cc -systype bsd43 -E"
2121 ;;
2122 mips-mips-bsd* )
2123 machine=mips opsys=bsd4-3
2124 ;;
2125 mips-mips-* )
2126 machine=mips opsys=usg5-2-2
2127 ;;
2128
2129 ## NeXT
2130 m68*-next-* | m68k-*-nextstep* )
2131 machine=m68k opsys=nextstep
2132 ;;
2133
2134 ## The complete machine from National Semiconductor
2135 ns32k-ns-genix* )
2136 machine=ns32000 opsys=usg5-2
2137 ;;
2138
2139 ## NCR machines
2140 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2141 machine=tower32 opsys=usg5-2-2
2142 ;;
2143 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2144 machine=tower32v3 opsys=usg5-3
2145 ;;
2146
2147 ## NEC EWS4800
2148 mips-nec-sysv4*)
2149 machine=ews4800 opsys=ux4800
2150 ;;
2151
2152 ## Nixdorf Targon 31
2153 m68*-nixdorf-sysv* )
2154 machine=targon31 opsys=usg5-2-2
2155 ;;
2156
2157 ## Nu (TI or LMI)
2158 m68*-nu-sysv* )
2159 machine=nu opsys=usg5-2
2160 ;;
2161
2162 ## Plexus
2163 m68*-plexus-sysv* )
2164 machine=plexus opsys=usg5-2
2165 ;;
2166
2167 ## PowerPC reference platform
2168 powerpcle-*-solaris2* )
2169 machine=prep
2170 opsys=sol2-5
2171 ;;
2172
2173 ## Pyramid machines
2174 ## I don't really have any idea what sort of processor the Pyramid has,
2175 ## so I'm assuming it is its own architecture.
2176 pyramid-pyramid-bsd* )
2177 machine=pyramid opsys=bsd4-2
2178 ;;
2179
2180 ## Sequent Balance
2181 ns32k-sequent-bsd4.2* )
2182 machine=sequent opsys=bsd4-2
2183 ;;
2184 ns32k-sequent-bsd4.3* )
2185 machine=sequent opsys=bsd4-3
2186 ;;
2187
2188 ## Siemens Nixdorf
2189 mips-siemens-sysv* | mips-sni-sysv*)
2190 machine=mips-siemens opsys=usg5-4
2191 NON_GNU_CC=/usr/ccs/bin/cc
2192 NON_GNU_CPP=/usr/ccs/lib/cpp
2193 ;;
2194
2195 ## Silicon Graphics machines
2196 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2197 m68*-sgi-iris3.5* )
2198 machine=irist opsys=iris3-5
2199 ;;
2200 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2201 machine=irist opsys=iris3-6
2202 ;;
2203 ## Iris 4D
2204 mips-sgi-irix3* )
2205 machine=iris4d opsys=irix3-3
2206 ;;
2207 mips-sgi-irix4* )
2208 machine=iris4d opsys=irix4-0
2209 ;;
2210 mips-sgi-irix6.5 )
2211 machine=iris4d opsys=irix6-5
2212 # Without defining _LANGUAGE_C, things get masked out in the headers
2213 # so that, for instance, grepping for `free' in stdlib.h fails and
2214 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2215 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2216 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2217 ;;
2218 mips-sgi-irix6* )
2219 machine=iris4d opsys=irix6-0
2220 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2221 # but presumably it does no harm.
2222 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2223 # -32 probably isn't necessary in later v.6s -- anyone know which?
2224 NON_GCC_TEST_OPTIONS=-32
2225 ;;
2226 mips-sgi-irix5.[01]* )
2227 machine=iris4d opsys=irix5-0
2228 ;;
2229 mips-sgi-irix5* | mips-sgi-irix* )
2230 machine=iris4d opsys=irix5-2
2231 ;;
2232
2233 ## SONY machines
2234 m68*-sony-bsd4.2* )
2235 machine=news opsys=bsd4-2
2236 ;;
2237 m68*-sony-bsd4.3* )
2238 machine=news opsys=bsd4-3
2239 ;;
2240 m68*-sony-newsos3* | m68*-sony-news3*)
2241 machine=news opsys=bsd4-3
2242 ;;
2243 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2244 machine=news-risc opsys=bsd4-3
2245 ;;
2246 mips-sony-newsos6* )
2247 machine=news-r6 opsys=newsos6
2248 ;;
2249 mips-sony-news* )
2250 machine=news-risc opsys=newsos5
2251 ;;
2252
2253 ## Stride
2254 m68*-stride-sysv* )
2255 machine=stride opsys=usg5-2
2256 ;;
2257
2258 ## Suns
2259 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2260 machine=sparc opsys=gnu-linux
2261 ;;
2262
2263 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2264 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2265 | rs6000-*-solaris2*)
2266 case "${canonical}" in
2267 m68*-sunos1* ) machine=sun1 ;;
2268 m68*-sunos2* ) machine=sun2 ;;
2269 m68* ) machine=sun3 ;;
2270 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2271 i[3456]86-*-* ) machine=intel386 ;;
2272 powerpcle* ) machine=powerpcle ;;
2273 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2274 sparc* ) machine=sparc ;;
2275 * ) unported=yes ;;
2276 esac
2277 case "${canonical}" in
2278 ## The Sun386 didn't get past 4.0.
2279 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2280 *-sunos4.0* ) opsys=sunos4-0 ;;
2281 *-sunos4.1.[3-9]*noshare )
2282 ## This name is sunos413 instead of sunos4-1-3
2283 ## to avoid a file name conflict on MSDOS.
2284 opsys=sunos413
2285 NON_GNU_CPP=/usr/lib/cpp
2286 NON_GCC_TEST_OPTIONS=-Bstatic
2287 GCC_TEST_OPTIONS=-static
2288 ;;
2289 *-sunos4.1.[3-9]* | *-sunos4shr*)
2290 opsys=sunos4shr
2291 NON_GNU_CPP=/usr/lib/cpp
2292 ;;
2293 *-sunos4* | *-sunos )
2294 opsys=sunos4-1
2295 NON_GCC_TEST_OPTIONS=-Bstatic
2296 GCC_TEST_OPTIONS=-static
2297 ;;
2298 *-sunos5.3* | *-solaris2.3* )
2299 opsys=sol2-3
2300 NON_GNU_CPP=/usr/ccs/lib/cpp
2301 ;;
2302 *-sunos5.4* | *-solaris2.4* )
2303 opsys=sol2-4
2304 NON_GNU_CPP=/usr/ccs/lib/cpp
2305 RANLIB="ar -ts"
2306 ;;
2307 *-sunos5.5* | *-solaris2.5* )
2308 opsys=sol2-5
2309 NON_GNU_CPP=/usr/ccs/lib/cpp
2310 RANLIB="ar -ts"
2311 ;;
2312 *-sunos5* | *-solaris* )
2313 opsys=sol2-5
2314 NON_GNU_CPP=/usr/ccs/lib/cpp
2315 ;;
2316 * ) opsys=bsd4-2 ;;
2317 esac
2318 ## Watch out for a compiler that we know will not work.
2319 case "${canonical}" in
2320 *-solaris* | *-sunos5* )
2321 if [ "x$CC" = x/usr/ucb/cc ]; then
2322 ## /usr/ucb/cc doesn't work;
2323 ## we should find some other compiler that does work.
2324 unset CC
2325 fi
2326 ;;
2327 *) ;;
2328 esac
2329 ;;
2330 sparc-*-nextstep* )
2331 machine=sparc opsys=nextstep
2332 ;;
2333
2334 ## Tadpole 68k
2335 m68*-tadpole-sysv* )
2336 machine=tad68k opsys=usg5-3
2337 ;;
2338
2339 ## Tahoe machines
2340 tahoe-tahoe-bsd4.2* )
2341 machine=tahoe opsys=bsd4-2
2342 ;;
2343 tahoe-tahoe-bsd4.3* )
2344 machine=tahoe opsys=bsd4-3
2345 ;;
2346
2347 ## Tandem Integrity S2
2348 mips-tandem-sysv* )
2349 machine=tandem-s2 opsys=usg5-3
2350 ;;
2351
2352 ## Tektronix XD88
2353 m88k-tektronix-sysv3* )
2354 machine=tekxd88 opsys=usg5-3
2355 ;;
2356
2357 ## Tektronix 16000 box (6130?)
2358 ns16k-tektronix-bsd* )
2359 machine=ns16000 opsys=bsd4-2
2360 ;;
2361 ## Tektronix 4300
2362 ## src/m/tek4300.h hints that this is a m68k machine.
2363 m68*-tektronix-bsd* )
2364 machine=tek4300 opsys=bsd4-3
2365 ;;
2366
2367 ## Titan P2 or P3
2368 ## We seem to have lost the machine-description file titan.h!
2369 titan-titan-sysv* )
2370 machine=titan opsys=usg5-3
2371 ;;
2372
2373 ## Ustation E30 (SS5E)
2374 m68*-unisys-uniplus* )
2375 machine=ustation opsystem=unipl5-2
2376 ;;
2377
2378 ## Vaxen.
2379 vax-dec-* )
2380 machine=vax
2381 case "${canonical}" in
2382 *-bsd4.1* ) opsys=bsd4-1 ;;
2383 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2384 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2385 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2386 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2387 *-vms* ) opsys=vms ;;
2388 * ) unported=yes
2389 esac
2390 ;;
2391
2392 ## Whitechapel MG1
2393 ns16k-whitechapel-* )
2394 machine=mg1
2395 ## We don't know what sort of OS runs on these; we'll let the
2396 ## operating system guessing code below try.
2397 ;;
2398
2399 ## Wicat
2400 m68*-wicat-sysv* )
2401 machine=wicat opsys=usg5-2
2402 ;;
2403
2404 ## IA-64
2405 ia64*-*-linux* )
2406 machine=ia64 opsys=gnu-linux
2407 ;;
2408
2409 ## Intel 386 machines where we don't care about the manufacturer
2410 i[3456]86-*-* )
2411 machine=intel386
2412 case "${canonical}" in
2413 *-lynxos* ) opsys=lynxos ;;
2414 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2415 *-isc2.2* ) opsys=isc2-2 ;;
2416 *-isc4.0* ) opsys=isc4-0 ;;
2417 *-isc4.* ) opsys=isc4-1
2418 GCC_TEST_OPTIONS=-posix
2419 NON_GCC_TEST_OPTIONS=-Xp
2420 ;;
2421 *-isc* ) opsys=isc3-0 ;;
2422 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2423 *-esix* ) opsys=esix ;;
2424 *-xenix* ) opsys=xenix ;;
2425 *-linux-gnu* ) opsys=gnu-linux ;;
2426 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2427 *-sco3.2v5* ) opsys=sco5
2428 NON_GNU_CPP=/lib/cpp
2429 # Prevent -belf from being passed to $CPP.
2430 # /lib/cpp does not accept it.
2431 OVERRIDE_CPPFLAGS=" "
2432 ;;
2433 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2434 *-386bsd* ) opsys=386bsd ;;
2435 *-nextstep* ) opsys=nextstep ;;
2436 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2437 esac
2438 ;;
2439
2440 ## m68k Linux-based GNU system
2441 m68k-*-linux-gnu* )
2442 machine=m68k opsys=gnu-linux
2443 ;;
2444
2445 ## Mips Linux-based GNU system
2446 mips-*-linux-gnu* )
2447 machine=mips opsys=gnu-linux
2448 ;;
2449
2450 ## UXP/DS
2451 sparc-fujitsu-sysv4* )
2452 machine=sparc opsys=uxpds
2453 NON_GNU_CPP=/usr/ccs/lib/cpp
2454 RANLIB="ar -ts"
2455 ;;
2456
2457 ## UXP/V
2458 f301-fujitsu-uxpv4.1)
2459 machine=f301 opsys=uxpv
2460 ;;
2461
2462 * )
2463 unported=yes
2464 ;;
2465 esac
2466
2467 ### If the code above didn't choose an operating system, just choose
2468 ### an operating system based on the configuration name. You really
2469 ### only want to use this when you have no idea what the right
2470 ### operating system is; if you know what operating systems a machine
2471 ### runs, it's cleaner to make it explicit in the case statement
2472 ### above.
2473 if test x"${opsys}" = x; then
2474 case "${canonical}" in
2475 *-gnu* ) opsys=gnu ;;
2476 *-bsd4.[01] ) opsys=bsd4-1 ;;
2477 *-bsd4.2 ) opsys=bsd4-2 ;;
2478 *-bsd4.3 ) opsys=bsd4-3 ;;
2479 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2480 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2481 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2482 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2483 *-sysv4.2uw* ) opsys=unixware ;;
2484 *-sysv4.1* | *-sysvr4.1* )
2485 NON_GNU_CPP=/usr/lib/cpp
2486 opsys=usg5-4 ;;
2487 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2488 if [ x$NON_GNU_CPP = x ]; then
2489 if [ -f /usr/ccs/lib/cpp ]; then
2490 NON_GNU_CPP=/usr/ccs/lib/cpp
2491 else
2492 NON_GNU_CPP=/lib/cpp
2493 fi
2494 fi
2495 opsys=usg5-4-2 ;;
2496 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2497 * )
2498 unported=yes
2499 ;;
2500 esac
2501 fi
2502
2503
2504 if test $unported = yes; then
2505 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2506 Check \`etc/MACHINES' for recognized configuration names." >&5
2507 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2508 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2509 { (exit 1); exit 1; }; }
2510 fi
2511
2512 machfile="m/${machine}.h"
2513 opsysfile="s/${opsys}.h"
2514
2515
2516 #### Choose a compiler.
2517 test -n "$CC" && cc_specified=yes
2518
2519 # Save the value of CFLAGS that the user specified.
2520 SPECIFIED_CFLAGS="$CFLAGS"
2521
2522 case ${with_gcc} in
2523 "yes" ) CC="gcc" GCC=yes ;;
2524 "no" ) : ${CC=cc} ;;
2525 * )
2526 esac
2527 ac_ext=c
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2535 echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554 done
2555 done
2556
2557 fi
2558 fi
2559 CC=$ac_cv_prog_CC
2560 if test -n "$CC"; then
2561 echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6
2563 else
2564 echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6
2566 fi
2567
2568 fi
2569 if test -z "$ac_cv_prog_CC"; then
2570 ac_ct_CC=$CC
2571 # Extract the first word of "gcc", so it can be a program name with args.
2572 set dummy gcc; ac_word=$2
2573 echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 if test -n "$ac_ct_CC"; then
2579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 ac_cv_prog_ac_ct_CC="gcc"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592 done
2593 done
2594
2595 fi
2596 fi
2597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598 if test -n "$ac_ct_CC"; then
2599 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2600 echo "${ECHO_T}$ac_ct_CC" >&6
2601 else
2602 echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6
2604 fi
2605
2606 CC=$ac_ct_CC
2607 else
2608 CC="$ac_cv_prog_CC"
2609 fi
2610
2611 if test -z "$CC"; then
2612 if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}cc; ac_word=$2
2615 echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617 if test "${ac_cv_prog_CC+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_CC="${ac_tool_prefix}cc"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634 done
2635 done
2636
2637 fi
2638 fi
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641 echo "$as_me:$LINENO: result: $CC" >&5
2642 echo "${ECHO_T}$CC" >&6
2643 else
2644 echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6
2646 fi
2647
2648 fi
2649 if test -z "$ac_cv_prog_CC"; then
2650 ac_ct_CC=$CC
2651 # Extract the first word of "cc", so it can be a program name with args.
2652 set dummy cc; ac_word=$2
2653 echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_ac_ct_CC="cc"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672 done
2673 done
2674
2675 fi
2676 fi
2677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678 if test -n "$ac_ct_CC"; then
2679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680 echo "${ECHO_T}$ac_ct_CC" >&6
2681 else
2682 echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6
2684 fi
2685
2686 CC=$ac_ct_CC
2687 else
2688 CC="$ac_cv_prog_CC"
2689 fi
2690
2691 fi
2692 if test -z "$CC"; then
2693 # Extract the first word of "cc", so it can be a program name with args.
2694 set dummy cc; ac_word=$2
2695 echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697 if test "${ac_cv_prog_CC+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 else
2703 ac_prog_rejected=no
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2712 ac_prog_rejected=yes
2713 continue
2714 fi
2715 ac_cv_prog_CC="cc"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719 done
2720 done
2721
2722 if test $ac_prog_rejected = yes; then
2723 # We found a bogon in the path, so make sure we never use it.
2724 set dummy $ac_cv_prog_CC
2725 shift
2726 if test $# != 0; then
2727 # We chose a different compiler from the bogus one.
2728 # However, it has the same basename, so the bogon will be chosen
2729 # first if we set CC to just the basename; use the full file name.
2730 shift
2731 set dummy "$as_dir/$ac_word" ${1+"$@"}
2732 shift
2733 ac_cv_prog_CC="$@"
2734 fi
2735 fi
2736 fi
2737 fi
2738 CC=$ac_cv_prog_CC
2739 if test -n "$CC"; then
2740 echo "$as_me:$LINENO: result: $CC" >&5
2741 echo "${ECHO_T}$CC" >&6
2742 else
2743 echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6
2745 fi
2746
2747 fi
2748 if test -z "$CC"; then
2749 if test -n "$ac_tool_prefix"; then
2750 for ac_prog in cl
2751 do
2752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2754 echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756 if test "${ac_cv_prog_CC+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773 done
2774 done
2775
2776 fi
2777 fi
2778 CC=$ac_cv_prog_CC
2779 if test -n "$CC"; then
2780 echo "$as_me:$LINENO: result: $CC" >&5
2781 echo "${ECHO_T}$CC" >&6
2782 else
2783 echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2785 fi
2786
2787 test -n "$CC" && break
2788 done
2789 fi
2790 if test -z "$CC"; then
2791 ac_ct_CC=$CC
2792 for ac_prog in cl
2793 do
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795 set dummy $ac_prog; ac_word=$2
2796 echo "$as_me:$LINENO: checking for $ac_word" >&5
2797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 else
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_ac_ct_CC="$ac_prog"
2812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815 done
2816 done
2817
2818 fi
2819 fi
2820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821 if test -n "$ac_ct_CC"; then
2822 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2823 echo "${ECHO_T}$ac_ct_CC" >&6
2824 else
2825 echo "$as_me:$LINENO: result: no" >&5
2826 echo "${ECHO_T}no" >&6
2827 fi
2828
2829 test -n "$ac_ct_CC" && break
2830 done
2831
2832 CC=$ac_ct_CC
2833 fi
2834
2835 fi
2836
2837
2838 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2839 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2840 { (exit 1); exit 1; }; }
2841
2842 # Provide some information about the compiler.
2843 echo "$as_me:$LINENO:" \
2844 "checking for C compiler version" >&5
2845 ac_compiler=`set X $ac_compile; echo $2`
2846 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2847 (eval $ac_compiler --version </dev/null >&5) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }
2851 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2852 (eval $ac_compiler -v </dev/null >&5) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }
2856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2857 (eval $ac_compiler -V </dev/null >&5) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }
2861
2862 cat >conftest.$ac_ext <<_ACEOF
2863 #line $LINENO "configure"
2864 #include "confdefs.h"
2865
2866 #ifdef F77_DUMMY_MAIN
2867 # ifdef __cplusplus
2868 extern "C"
2869 # endif
2870 int F77_DUMMY_MAIN() { return 1; }
2871 #endif
2872 int
2873 main ()
2874 {
2875
2876 ;
2877 return 0;
2878 }
2879 _ACEOF
2880 ac_clean_files_save=$ac_clean_files
2881 ac_clean_files="$ac_clean_files a.out a.exe"
2882 # Try to create an executable without -o first, disregard a.out.
2883 # It will help us diagnose broken compilers, and finding out an intuition
2884 # of exeext.
2885 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2886 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2887 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2888 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2889 (eval $ac_link_default) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # Find the output, starting from the most likely. This scheme is
2894 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2895 # resort.
2896
2897 # Be careful to initialize this variable, since it used to be cached.
2898 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2899 ac_cv_exeext=
2900 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2901 ls a.out conftest 2>/dev/null;
2902 ls a.* conftest.* 2>/dev/null`; do
2903 case $ac_file in
2904 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2905 a.out ) # We found the default executable, but exeext='' is most
2906 # certainly right.
2907 break;;
2908 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2909 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2910 export ac_cv_exeext
2911 break;;
2912 * ) break;;
2913 esac
2914 done
2915 else
2916 echo "$as_me: failed program was:" >&5
2917 cat conftest.$ac_ext >&5
2918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2919 echo "$as_me: error: C compiler cannot create executables" >&2;}
2920 { (exit 77); exit 77; }; }
2921 fi
2922
2923 ac_exeext=$ac_cv_exeext
2924 echo "$as_me:$LINENO: result: $ac_file" >&5
2925 echo "${ECHO_T}$ac_file" >&6
2926
2927 # Check the compiler produces executables we can run. If not, either
2928 # the compiler is broken, or we cross compile.
2929 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2930 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2931 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2932 # If not cross compiling, check that we can run a simple program.
2933 if test "$cross_compiling" != yes; then
2934 if { ac_try='./$ac_file'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 cross_compiling=no
2941 else
2942 if test "$cross_compiling" = maybe; then
2943 cross_compiling=yes
2944 else
2945 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2946 If you meant to cross compile, use \`--host'." >&5
2947 echo "$as_me: error: cannot run C compiled programs.
2948 If you meant to cross compile, use \`--host'." >&2;}
2949 { (exit 1); exit 1; }; }
2950 fi
2951 fi
2952 fi
2953 echo "$as_me:$LINENO: result: yes" >&5
2954 echo "${ECHO_T}yes" >&6
2955
2956 rm -f a.out a.exe conftest$ac_cv_exeext
2957 ac_clean_files=$ac_clean_files_save
2958 # Check the compiler produces executables we can run. If not, either
2959 # the compiler is broken, or we cross compile.
2960 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2961 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2962 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2963 echo "${ECHO_T}$cross_compiling" >&6
2964
2965 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2966 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2968 (eval $ac_link) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; then
2972 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2973 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2974 # work properly (i.e., refer to `conftest.exe'), while it won't with
2975 # `rm'.
2976 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2977 case $ac_file in
2978 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2979 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2980 export ac_cv_exeext
2981 break;;
2982 * ) break;;
2983 esac
2984 done
2985 else
2986 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2987 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2988 { (exit 1); exit 1; }; }
2989 fi
2990
2991 rm -f conftest$ac_cv_exeext
2992 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2993 echo "${ECHO_T}$ac_cv_exeext" >&6
2994
2995 rm -f conftest.$ac_ext
2996 EXEEXT=$ac_cv_exeext
2997 ac_exeext=$EXEEXT
2998 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2999 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3000 if test "${ac_cv_objext+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003 cat >conftest.$ac_ext <<_ACEOF
3004 #line $LINENO "configure"
3005 #include "confdefs.h"
3006
3007 #ifdef F77_DUMMY_MAIN
3008 # ifdef __cplusplus
3009 extern "C"
3010 # endif
3011 int F77_DUMMY_MAIN() { return 1; }
3012 #endif
3013 int
3014 main ()
3015 {
3016
3017 ;
3018 return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.o conftest.obj
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023 (eval $ac_compile) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; then
3027 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3028 case $ac_file in
3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
3030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3031 break;;
3032 esac
3033 done
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 cat conftest.$ac_ext >&5
3037 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3038 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3039 { (exit 1); exit 1; }; }
3040 fi
3041
3042 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3043 fi
3044 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3045 echo "${ECHO_T}$ac_cv_objext" >&6
3046 OBJEXT=$ac_cv_objext
3047 ac_objext=$OBJEXT
3048 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3049 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3050 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053 cat >conftest.$ac_ext <<_ACEOF
3054 #line $LINENO "configure"
3055 #include "confdefs.h"
3056
3057 #ifdef F77_DUMMY_MAIN
3058 # ifdef __cplusplus
3059 extern "C"
3060 # endif
3061 int F77_DUMMY_MAIN() { return 1; }
3062 #endif
3063 int
3064 main ()
3065 {
3066 #ifndef __GNUC__
3067 choke me
3068 #endif
3069
3070 ;
3071 return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076 (eval $ac_compile) 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 (eval $ac_try) 2>&5
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; }; then
3086 ac_compiler_gnu=yes
3087 else
3088 echo "$as_me: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3090 ac_compiler_gnu=no
3091 fi
3092 rm -f conftest.$ac_objext conftest.$ac_ext
3093 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3094
3095 fi
3096 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3097 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3098 GCC=`test $ac_compiler_gnu = yes && echo yes`
3099 ac_test_CFLAGS=${CFLAGS+set}
3100 ac_save_CFLAGS=$CFLAGS
3101 CFLAGS="-g"
3102 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3103 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3104 if test "${ac_cv_prog_cc_g+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 cat >conftest.$ac_ext <<_ACEOF
3108 #line $LINENO "configure"
3109 #include "confdefs.h"
3110
3111 #ifdef F77_DUMMY_MAIN
3112 # ifdef __cplusplus
3113 extern "C"
3114 # endif
3115 int F77_DUMMY_MAIN() { return 1; }
3116 #endif
3117 int
3118 main ()
3119 {
3120
3121 ;
3122 return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127 (eval $ac_compile) 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -s conftest.$ac_objext'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 (eval $ac_try) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3137 ac_cv_prog_cc_g=yes
3138 else
3139 echo "$as_me: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 ac_cv_prog_cc_g=no
3142 fi
3143 rm -f conftest.$ac_objext conftest.$ac_ext
3144 fi
3145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3146 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3147 if test "$ac_test_CFLAGS" = set; then
3148 CFLAGS=$ac_save_CFLAGS
3149 elif test $ac_cv_prog_cc_g = yes; then
3150 if test "$GCC" = yes; then
3151 CFLAGS="-g -O2"
3152 else
3153 CFLAGS="-g"
3154 fi
3155 else
3156 if test "$GCC" = yes; then
3157 CFLAGS="-O2"
3158 else
3159 CFLAGS=
3160 fi
3161 fi
3162 # Some people use a C++ compiler to compile C. Since we use `exit',
3163 # in C++ we need to declare it. In case someone uses the same compiler
3164 # for both compiling C and C++ we need to have the C++ compiler decide
3165 # the declaration of exit, since it's the most demanding environment.
3166 cat >conftest.$ac_ext <<_ACEOF
3167 #ifndef __cplusplus
3168 choke me
3169 #endif
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 for ac_declaration in \
3184 ''\
3185 '#include <stdlib.h>' \
3186 'extern "C" void std::exit (int) throw (); using std::exit;' \
3187 'extern "C" void std::exit (int); using std::exit;' \
3188 'extern "C" void exit (int) throw ();' \
3189 'extern "C" void exit (int);' \
3190 'void exit (int);'
3191 do
3192 cat >conftest.$ac_ext <<_ACEOF
3193 #line $LINENO "configure"
3194 #include "confdefs.h"
3195 #include <stdlib.h>
3196 $ac_declaration
3197 #ifdef F77_DUMMY_MAIN
3198 # ifdef __cplusplus
3199 extern "C"
3200 # endif
3201 int F77_DUMMY_MAIN() { return 1; }
3202 #endif
3203 int
3204 main ()
3205 {
3206 exit (42);
3207 ;
3208 return 0;
3209 }
3210 _ACEOF
3211 rm -f conftest.$ac_objext
3212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213 (eval $ac_compile) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } &&
3217 { ac_try='test -s conftest.$ac_objext'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219 (eval $ac_try) 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3223 :
3224 else
3225 echo "$as_me: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3227 continue
3228 fi
3229 rm -f conftest.$ac_objext conftest.$ac_ext
3230 cat >conftest.$ac_ext <<_ACEOF
3231 #line $LINENO "configure"
3232 #include "confdefs.h"
3233 $ac_declaration
3234 #ifdef F77_DUMMY_MAIN
3235 # ifdef __cplusplus
3236 extern "C"
3237 # endif
3238 int F77_DUMMY_MAIN() { return 1; }
3239 #endif
3240 int
3241 main ()
3242 {
3243 exit (42);
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 break
3261 else
3262 echo "$as_me: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3264 fi
3265 rm -f conftest.$ac_objext conftest.$ac_ext
3266 done
3267 rm -f conftest*
3268 if test -n "$ac_declaration"; then
3269 echo '#ifdef __cplusplus' >>confdefs.h
3270 echo $ac_declaration >>confdefs.h
3271 echo '#endif' >>confdefs.h
3272 fi
3273
3274 else
3275 echo "$as_me: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3277 fi
3278 rm -f conftest.$ac_objext conftest.$ac_ext
3279 ac_ext=c
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284
3285
3286 # On Suns, sometimes $CPP names a directory.
3287 if test -n "$CPP" && test -d "$CPP"; then
3288 CPP=
3289 fi
3290
3291 #### Some systems specify a CPP to use unless we are using GCC.
3292 #### Now that we know whether we are using GCC, we can decide whether
3293 #### to use that one.
3294 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3295 then
3296 CPP="$NON_GNU_CPP"
3297 fi
3298
3299 #### Some systems specify a CC to use unless we are using GCC.
3300 #### Now that we know whether we are using GCC, we can decide whether
3301 #### to use that one.
3302 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3303 test x$cc_specified != xyes
3304 then
3305 CC="$NON_GNU_CC"
3306 fi
3307
3308 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3309 then
3310 CC="$CC $GCC_TEST_OPTIONS"
3311 fi
3312
3313 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3314 then
3315 CC="$CC $NON_GCC_TEST_OPTIONS"
3316 fi
3317
3318 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3319 then
3320 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3321 fi
3322
3323 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3324 then
3325 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3326 fi
3327
3328 #### Some other nice autoconf tests. If you add a test here which
3329 #### should make an entry in src/config.h, don't forget to add an
3330 #### #undef clause to src/config.h.in for autoconf to modify.
3331
3332 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3333 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3334 LN_S=$as_ln_s
3335 if test "$LN_S" = "ln -s"; then
3336 echo "$as_me:$LINENO: result: yes" >&5
3337 echo "${ECHO_T}yes" >&6
3338 else
3339 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3340 echo "${ECHO_T}no, using $LN_S" >&6
3341 fi
3342
3343 ac_ext=c
3344 ac_cpp='$CPP $CPPFLAGS'
3345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3349 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3350 # On Suns, sometimes $CPP names a directory.
3351 if test -n "$CPP" && test -d "$CPP"; then
3352 CPP=
3353 fi
3354 if test -z "$CPP"; then
3355 if test "${ac_cv_prog_CPP+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 # Double quotes because CPP needs to be expanded
3359 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3360 do
3361 ac_preproc_ok=false
3362 for ac_c_preproc_warn_flag in '' yes
3363 do
3364 # Use a header file that comes with gcc, so configuring glibc
3365 # with a fresh cross-compiler works.
3366 # On the NeXT, cc -E runs the code through the compiler's parser,
3367 # not just through cpp. "Syntax error" is here to catch this case.
3368 cat >conftest.$ac_ext <<_ACEOF
3369 #line $LINENO "configure"
3370 #include "confdefs.h"
3371 #include <assert.h>
3372 Syntax error
3373 _ACEOF
3374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3376 ac_status=$?
3377 egrep -v '^ *\+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 else
3385 ac_cpp_err=
3386 fi
3387 else
3388 ac_cpp_err=yes
3389 fi
3390 if test -z "$ac_cpp_err"; then
3391 :
3392 else
3393 echo "$as_me: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3395 # Broken: fails on valid input.
3396 continue
3397 fi
3398 rm -f conftest.err conftest.$ac_ext
3399
3400 # OK, works on sane cases. Now check whether non-existent headers
3401 # can be detected and how.
3402 cat >conftest.$ac_ext <<_ACEOF
3403 #line $LINENO "configure"
3404 #include "confdefs.h"
3405 #include <ac_nonexistent.h>
3406 _ACEOF
3407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3409 ac_status=$?
3410 egrep -v '^ *\+' conftest.er1 >conftest.err
3411 rm -f conftest.er1
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } >/dev/null; then
3415 if test -s conftest.err; then
3416 ac_cpp_err=$ac_c_preproc_warn_flag
3417 else
3418 ac_cpp_err=
3419 fi
3420 else
3421 ac_cpp_err=yes
3422 fi
3423 if test -z "$ac_cpp_err"; then
3424 # Broken: success on invalid input.
3425 continue
3426 else
3427 echo "$as_me: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3429 # Passes both tests.
3430 ac_preproc_ok=:
3431 break
3432 fi
3433 rm -f conftest.err conftest.$ac_ext
3434
3435 done
3436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437 rm -f conftest.err conftest.$ac_ext
3438 if $ac_preproc_ok; then
3439 break
3440 fi
3441
3442 done
3443 ac_cv_prog_CPP=$CPP
3444
3445 fi
3446 CPP=$ac_cv_prog_CPP
3447 else
3448 ac_cv_prog_CPP=$CPP
3449 fi
3450 echo "$as_me:$LINENO: result: $CPP" >&5
3451 echo "${ECHO_T}$CPP" >&6
3452 ac_preproc_ok=false
3453 for ac_c_preproc_warn_flag in '' yes
3454 do
3455 # Use a header file that comes with gcc, so configuring glibc
3456 # with a fresh cross-compiler works.
3457 # On the NeXT, cc -E runs the code through the compiler's parser,
3458 # not just through cpp. "Syntax error" is here to catch this case.
3459 cat >conftest.$ac_ext <<_ACEOF
3460 #line $LINENO "configure"
3461 #include "confdefs.h"
3462 #include <assert.h>
3463 Syntax error
3464 _ACEOF
3465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3467 ac_status=$?
3468 egrep -v '^ *\+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev/null; then
3473 if test -s conftest.err; then
3474 ac_cpp_err=$ac_c_preproc_warn_flag
3475 else
3476 ac_cpp_err=
3477 fi
3478 else
3479 ac_cpp_err=yes
3480 fi
3481 if test -z "$ac_cpp_err"; then
3482 :
3483 else
3484 echo "$as_me: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3486 # Broken: fails on valid input.
3487 continue
3488 fi
3489 rm -f conftest.err conftest.$ac_ext
3490
3491 # OK, works on sane cases. Now check whether non-existent headers
3492 # can be detected and how.
3493 cat >conftest.$ac_ext <<_ACEOF
3494 #line $LINENO "configure"
3495 #include "confdefs.h"
3496 #include <ac_nonexistent.h>
3497 _ACEOF
3498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3500 ac_status=$?
3501 egrep -v '^ *\+' conftest.er1 >conftest.err
3502 rm -f conftest.er1
3503 cat conftest.err >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } >/dev/null; then
3506 if test -s conftest.err; then
3507 ac_cpp_err=$ac_c_preproc_warn_flag
3508 else
3509 ac_cpp_err=
3510 fi
3511 else
3512 ac_cpp_err=yes
3513 fi
3514 if test -z "$ac_cpp_err"; then
3515 # Broken: success on invalid input.
3516 continue
3517 else
3518 echo "$as_me: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520 # Passes both tests.
3521 ac_preproc_ok=:
3522 break
3523 fi
3524 rm -f conftest.err conftest.$ac_ext
3525
3526 done
3527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528 rm -f conftest.err conftest.$ac_ext
3529 if $ac_preproc_ok; then
3530 :
3531 else
3532 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3533 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3534 { (exit 1); exit 1; }; }
3535 fi
3536
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542
3543 # Find a good install program. We prefer a C program (faster),
3544 # so one script is as good as another. But avoid the broken or
3545 # incompatible versions:
3546 # SysV /etc/install, /usr/sbin/install
3547 # SunOS /usr/etc/install
3548 # IRIX /sbin/install
3549 # AIX /bin/install
3550 # AmigaOS /C/install, which installs bootblocks on floppy discs
3551 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3552 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3553 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3554 # ./install, which can be erroneously created by make from ./install.sh.
3555 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3556 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3557 if test -z "$INSTALL"; then
3558 if test "${ac_cv_path_install+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 # Account for people who put trailing slashes in PATH elements.
3567 case $as_dir/ in
3568 ./ | .// | /cC/* | \
3569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3570 /usr/ucb/* ) ;;
3571 *)
3572 # OSF1 and SCO ODT 3.0 have their own names for install.
3573 # Don't use installbsd from OSF since it installs stuff as root
3574 # by default.
3575 for ac_prog in ginstall scoinst install; do
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3578 if test $ac_prog = install &&
3579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3580 # AIX install. It has an incompatible calling convention.
3581 :
3582 elif test $ac_prog = install &&
3583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3584 # program-specific install script used by HP pwplus--don't use.
3585 :
3586 else
3587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3588 break 3
3589 fi
3590 fi
3591 done
3592 done
3593 ;;
3594 esac
3595 done
3596
3597
3598 fi
3599 if test "${ac_cv_path_install+set}" = set; then
3600 INSTALL=$ac_cv_path_install
3601 else
3602 # As a last resort, use the slow shell script. We don't cache a
3603 # path for INSTALL within a source directory, because that will
3604 # break other packages using the cache if that directory is
3605 # removed, or if the path is relative.
3606 INSTALL=$ac_install_sh
3607 fi
3608 fi
3609 echo "$as_me:$LINENO: result: $INSTALL" >&5
3610 echo "${ECHO_T}$INSTALL" >&6
3611
3612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3613 # It thinks the first close brace ends the variable substitution.
3614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3615
3616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3617
3618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3619
3620 for ac_prog in 'bison -y' byacc
3621 do
3622 # Extract the first word of "$ac_prog", so it can be a program name with args.
3623 set dummy $ac_prog; ac_word=$2
3624 echo "$as_me:$LINENO: checking for $ac_word" >&5
3625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3626 if test "${ac_cv_prog_YACC+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629 if test -n "$YACC"; then
3630 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_YACC="$ac_prog"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 break 2
3642 fi
3643 done
3644 done
3645
3646 fi
3647 fi
3648 YACC=$ac_cv_prog_YACC
3649 if test -n "$YACC"; then
3650 echo "$as_me:$LINENO: result: $YACC" >&5
3651 echo "${ECHO_T}$YACC" >&6
3652 else
3653 echo "$as_me:$LINENO: result: no" >&5
3654 echo "${ECHO_T}no" >&6
3655 fi
3656
3657 test -n "$YACC" && break
3658 done
3659 test -n "$YACC" || YACC="yacc"
3660
3661 if test "x$RANLIB" = x; then
3662 if test -n "$ac_tool_prefix"; then
3663 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3664 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3665 echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_prog_RANLIB+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 if test -n "$RANLIB"; then
3671 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3672 else
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3675 do
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 break 2
3683 fi
3684 done
3685 done
3686
3687 fi
3688 fi
3689 RANLIB=$ac_cv_prog_RANLIB
3690 if test -n "$RANLIB"; then
3691 echo "$as_me:$LINENO: result: $RANLIB" >&5
3692 echo "${ECHO_T}$RANLIB" >&6
3693 else
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698 fi
3699 if test -z "$ac_cv_prog_RANLIB"; then
3700 ac_ct_RANLIB=$RANLIB
3701 # Extract the first word of "ranlib", so it can be a program name with args.
3702 set dummy ranlib; ac_word=$2
3703 echo "$as_me:$LINENO: checking for $ac_word" >&5
3704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 if test -n "$ac_ct_RANLIB"; then
3709 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_ac_ct_RANLIB="ranlib"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722 done
3723 done
3724
3725 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3726 fi
3727 fi
3728 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3729 if test -n "$ac_ct_RANLIB"; then
3730 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3731 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3732 else
3733 echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6
3735 fi
3736
3737 RANLIB=$ac_ct_RANLIB
3738 else
3739 RANLIB="$ac_cv_prog_RANLIB"
3740 fi
3741
3742 fi
3743
3744
3745
3746
3747 echo "$as_me:$LINENO: checking for AIX" >&5
3748 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3749 cat >conftest.$ac_ext <<_ACEOF
3750 #line $LINENO "configure"
3751 #include "confdefs.h"
3752 #ifdef _AIX
3753 yes
3754 #endif
3755
3756 _ACEOF
3757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3758 egrep "yes" >/dev/null 2>&1; then
3759 echo "$as_me:$LINENO: result: yes" >&5
3760 echo "${ECHO_T}yes" >&6
3761 cat >>confdefs.h <<\_ACEOF
3762 #define _ALL_SOURCE 1
3763 _ACEOF
3764
3765 else
3766 echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3768 fi
3769 rm -f conftest*
3770
3771
3772
3773 #### Extract some information from the operating system and machine files.
3774
3775 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3776 - which libraries the lib-src programs will want, and
3777 - whether the GNU malloc routines are usable..." >&5
3778 echo "$as_me: checking the machine- and system-dependent files to find out
3779 - which libraries the lib-src programs will want, and
3780 - whether the GNU malloc routines are usable..." >&6;}
3781
3782 ### First figure out CFLAGS (which we use for running the compiler here)
3783 ### and REAL_CFLAGS (which we use for real compilation).
3784 ### The two are the same except on a few systems, where they are made
3785 ### different to work around various lossages. For example,
3786 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3787 ### as implying static linking.
3788
3789 ### If the CFLAGS env var is specified, we use that value
3790 ### instead of the default.
3791
3792 ### It's not important that this name contain the PID; you can't run
3793 ### two configures in the same directory and have anything work
3794 ### anyway.
3795 tempcname="conftest.c"
3796
3797 echo '
3798 #include "'${srcdir}'/src/'${opsysfile}'"
3799 #include "'${srcdir}'/src/'${machfile}'"
3800 #ifndef LIBS_MACHINE
3801 #define LIBS_MACHINE
3802 #endif
3803 #ifndef LIBS_SYSTEM
3804 #define LIBS_SYSTEM
3805 #endif
3806 #ifndef C_SWITCH_SYSTEM
3807 #define C_SWITCH_SYSTEM
3808 #endif
3809 #ifndef C_SWITCH_MACHINE
3810 #define C_SWITCH_MACHINE
3811 #endif
3812 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3813 configure___ c_switch_system=C_SWITCH_SYSTEM
3814 configure___ c_switch_machine=C_SWITCH_MACHINE
3815
3816 #ifndef LIB_X11_LIB
3817 #define LIB_X11_LIB -lX11
3818 #endif
3819
3820 #ifndef LIBX11_MACHINE
3821 #define LIBX11_MACHINE
3822 #endif
3823
3824 #ifndef LIBX11_SYSTEM
3825 #define LIBX11_SYSTEM
3826 #endif
3827 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3828
3829 #ifdef UNEXEC
3830 configure___ unexec=UNEXEC
3831 #else
3832 configure___ unexec=unexec.o
3833 #endif
3834
3835 #ifdef SYSTEM_MALLOC
3836 configure___ system_malloc=yes
3837 #else
3838 configure___ system_malloc=no
3839 #endif
3840
3841 #ifdef USE_MMAP_FOR_BUFFERS
3842 configure___ use_mmap_for_buffers=yes
3843 #else
3844 configure___ use_mmap_for_buffers=no
3845 #endif
3846
3847 #ifndef C_DEBUG_SWITCH
3848 #define C_DEBUG_SWITCH -g
3849 #endif
3850
3851 #ifndef C_OPTIMIZE_SWITCH
3852 #ifdef __GNUC__
3853 #define C_OPTIMIZE_SWITCH -O2
3854 #else
3855 #define C_OPTIMIZE_SWITCH -O
3856 #endif
3857 #endif
3858
3859 #ifndef LD_SWITCH_MACHINE
3860 #define LD_SWITCH_MACHINE
3861 #endif
3862
3863 #ifndef LD_SWITCH_SYSTEM
3864 #define LD_SWITCH_SYSTEM
3865 #endif
3866
3867 #ifndef LD_SWITCH_X_SITE_AUX
3868 #define LD_SWITCH_X_SITE_AUX
3869 #endif
3870
3871 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3872 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3873
3874 #ifdef THIS_IS_CONFIGURE
3875
3876 /* Get the CFLAGS for tests in configure. */
3877 #ifdef __GNUC__
3878 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3879 #else
3880 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3881 #endif
3882
3883 #else /* not THIS_IS_CONFIGURE */
3884
3885 /* Get the CFLAGS for real compilation. */
3886 #ifdef __GNUC__
3887 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3888 #else
3889 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3890 #endif
3891
3892 #endif /* not THIS_IS_CONFIGURE */
3893 ' > ${tempcname}
3894
3895 # The value of CPP is a quoted variable reference, so we need to do this
3896 # to get its actual value...
3897 CPP=`eval "echo $CPP"`
3898 eval `${CPP} -Isrc ${tempcname} \
3899 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3900 if test "x$SPECIFIED_CFLAGS" = x; then
3901 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3902 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3903 else
3904 REAL_CFLAGS="$CFLAGS"
3905 fi
3906 rm ${tempcname}
3907
3908 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3909
3910 ### Make sure subsequent tests use flags consistent with the build flags.
3911
3912 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3913 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3914 else
3915 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3916 fi
3917
3918 # Check whether --enable-largefile or --disable-largefile was given.
3919 if test "${enable_largefile+set}" = set; then
3920 enableval="$enable_largefile"
3921
3922 fi;
3923 if test "$enable_largefile" != no; then
3924
3925 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3926 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3927 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930 ac_cv_sys_largefile_CC=no
3931 if test "$GCC" != yes; then
3932 ac_save_CC=$CC
3933 while :; do
3934 # IRIX 6.2 and later do not support large files by default,
3935 # so use the C compiler's -n32 option if that helps.
3936 cat >conftest.$ac_ext <<_ACEOF
3937 #line $LINENO "configure"
3938 #include "confdefs.h"
3939 #include <sys/types.h>
3940 /* Check that off_t can represent 2**63 - 1 correctly.
3941 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3942 since some C++ compilers masquerading as C compilers
3943 incorrectly reject 9223372036854775807. */
3944 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3945 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3946 && LARGE_OFF_T % 2147483647 == 1)
3947 ? 1 : -1];
3948 #ifdef F77_DUMMY_MAIN
3949 # ifdef __cplusplus
3950 extern "C"
3951 # endif
3952 int F77_DUMMY_MAIN() { return 1; }
3953 #endif
3954 int
3955 main ()
3956 {
3957
3958 ;
3959 return 0;
3960 }
3961 _ACEOF
3962 rm -f conftest.$ac_objext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 break
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3978 fi
3979 rm -f conftest.$ac_objext
3980 CC="$CC -n32"
3981 rm -f conftest.$ac_objext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 ac_cv_sys_largefile_CC=' -n32'; break
3994 else
3995 echo "$as_me: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3997 fi
3998 rm -f conftest.$ac_objext
3999 break
4000 done
4001 CC=$ac_save_CC
4002 rm -f conftest.$ac_ext
4003 fi
4004 fi
4005 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4006 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4007 if test "$ac_cv_sys_largefile_CC" != no; then
4008 CC=$CC$ac_cv_sys_largefile_CC
4009 fi
4010
4011 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4012 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4013 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016 while :; do
4017 ac_cv_sys_file_offset_bits=no
4018 cat >conftest.$ac_ext <<_ACEOF
4019 #line $LINENO "configure"
4020 #include "confdefs.h"
4021 #include <sys/types.h>
4022 /* Check that off_t can represent 2**63 - 1 correctly.
4023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4024 since some C++ compilers masquerading as C compilers
4025 incorrectly reject 9223372036854775807. */
4026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4028 && LARGE_OFF_T % 2147483647 == 1)
4029 ? 1 : -1];
4030 #ifdef F77_DUMMY_MAIN
4031 # ifdef __cplusplus
4032 extern "C"
4033 # endif
4034 int F77_DUMMY_MAIN() { return 1; }
4035 #endif
4036 int
4037 main ()
4038 {
4039
4040 ;
4041 return 0;
4042 }
4043 _ACEOF
4044 rm -f conftest.$ac_objext
4045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046 (eval $ac_compile) 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } &&
4050 { ac_try='test -s conftest.$ac_objext'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 (eval $ac_try) 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; }; then
4056 break
4057 else
4058 echo "$as_me: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4060 fi
4061 rm -f conftest.$ac_objext conftest.$ac_ext
4062 cat >conftest.$ac_ext <<_ACEOF
4063 #line $LINENO "configure"
4064 #include "confdefs.h"
4065 #define _FILE_OFFSET_BITS 64
4066 #include <sys/types.h>
4067 /* Check that off_t can represent 2**63 - 1 correctly.
4068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4069 since some C++ compilers masquerading as C compilers
4070 incorrectly reject 9223372036854775807. */
4071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4073 && LARGE_OFF_T % 2147483647 == 1)
4074 ? 1 : -1];
4075 #ifdef F77_DUMMY_MAIN
4076 # ifdef __cplusplus
4077 extern "C"
4078 # endif
4079 int F77_DUMMY_MAIN() { return 1; }
4080 #endif
4081 int
4082 main ()
4083 {
4084
4085 ;
4086 return 0;
4087 }
4088 _ACEOF
4089 rm -f conftest.$ac_objext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_cv_sys_file_offset_bits=64; break
4102 else
4103 echo "$as_me: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4105 fi
4106 rm -f conftest.$ac_objext conftest.$ac_ext
4107 break
4108 done
4109 fi
4110 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4111 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4112 if test "$ac_cv_sys_file_offset_bits" != no; then
4113
4114 cat >>confdefs.h <<_ACEOF
4115 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4116 _ACEOF
4117
4118 fi
4119 rm -f conftest*
4120 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4121 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4122 if test "${ac_cv_sys_large_files+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 while :; do
4126 ac_cv_sys_large_files=no
4127 cat >conftest.$ac_ext <<_ACEOF
4128 #line $LINENO "configure"
4129 #include "confdefs.h"
4130 #include <sys/types.h>
4131 /* Check that off_t can represent 2**63 - 1 correctly.
4132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4133 since some C++ compilers masquerading as C compilers
4134 incorrectly reject 9223372036854775807. */
4135 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4137 && LARGE_OFF_T % 2147483647 == 1)
4138 ? 1 : -1];
4139 #ifdef F77_DUMMY_MAIN
4140 # ifdef __cplusplus
4141 extern "C"
4142 # endif
4143 int F77_DUMMY_MAIN() { return 1; }
4144 #endif
4145 int
4146 main ()
4147 {
4148
4149 ;
4150 return 0;
4151 }
4152 _ACEOF
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 break
4166 else
4167 echo "$as_me: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 fi
4170 rm -f conftest.$ac_objext conftest.$ac_ext
4171 cat >conftest.$ac_ext <<_ACEOF
4172 #line $LINENO "configure"
4173 #include "confdefs.h"
4174 #define _LARGE_FILES 1
4175 #include <sys/types.h>
4176 /* Check that off_t can represent 2**63 - 1 correctly.
4177 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4178 since some C++ compilers masquerading as C compilers
4179 incorrectly reject 9223372036854775807. */
4180 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4181 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4182 && LARGE_OFF_T % 2147483647 == 1)
4183 ? 1 : -1];
4184 #ifdef F77_DUMMY_MAIN
4185 # ifdef __cplusplus
4186 extern "C"
4187 # endif
4188 int F77_DUMMY_MAIN() { return 1; }
4189 #endif
4190 int
4191 main ()
4192 {
4193
4194 ;
4195 return 0;
4196 }
4197 _ACEOF
4198 rm -f conftest.$ac_objext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_cv_sys_large_files=1; break
4211 else
4212 echo "$as_me: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4214 fi
4215 rm -f conftest.$ac_objext conftest.$ac_ext
4216 break
4217 done
4218 fi
4219 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4220 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4221 if test "$ac_cv_sys_large_files" != no; then
4222
4223 cat >>confdefs.h <<_ACEOF
4224 #define _LARGE_FILES $ac_cv_sys_large_files
4225 _ACEOF
4226
4227 fi
4228 rm -f conftest*
4229 fi
4230
4231
4232 if test "${with_sound}" != "no"; then
4233 # Sound support for GNU/Linux and the free BSDs.
4234 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4235 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4236 if test "${ac_cv_header_stdc+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239 cat >conftest.$ac_ext <<_ACEOF
4240 #line $LINENO "configure"
4241 #include "confdefs.h"
4242 #include <stdlib.h>
4243 #include <stdarg.h>
4244 #include <string.h>
4245 #include <float.h>
4246
4247 _ACEOF
4248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4250 ac_status=$?
4251 egrep -v '^ *\+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } >/dev/null; then
4256 if test -s conftest.err; then
4257 ac_cpp_err=$ac_c_preproc_warn_flag
4258 else
4259 ac_cpp_err=
4260 fi
4261 else
4262 ac_cpp_err=yes
4263 fi
4264 if test -z "$ac_cpp_err"; then
4265 ac_cv_header_stdc=yes
4266 else
4267 echo "$as_me: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 ac_cv_header_stdc=no
4270 fi
4271 rm -f conftest.err conftest.$ac_ext
4272
4273 if test $ac_cv_header_stdc = yes; then
4274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4275 cat >conftest.$ac_ext <<_ACEOF
4276 #line $LINENO "configure"
4277 #include "confdefs.h"
4278 #include <string.h>
4279
4280 _ACEOF
4281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4282 egrep "memchr" >/dev/null 2>&1; then
4283 :
4284 else
4285 ac_cv_header_stdc=no
4286 fi
4287 rm -f conftest*
4288
4289 fi
4290
4291 if test $ac_cv_header_stdc = yes; then
4292 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4293 cat >conftest.$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4295 #include "confdefs.h"
4296 #include <stdlib.h>
4297
4298 _ACEOF
4299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4300 egrep "free" >/dev/null 2>&1; then
4301 :
4302 else
4303 ac_cv_header_stdc=no
4304 fi
4305 rm -f conftest*
4306
4307 fi
4308
4309 if test $ac_cv_header_stdc = yes; then
4310 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4311 if test "$cross_compiling" = yes; then
4312 :
4313 else
4314 cat >conftest.$ac_ext <<_ACEOF
4315 #line $LINENO "configure"
4316 #include "confdefs.h"
4317 #include <ctype.h>
4318 #if ((' ' & 0x0FF) == 0x020)
4319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4321 #else
4322 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4323 || ('j' <= (c) && (c) <= 'r') \
4324 || ('s' <= (c) && (c) <= 'z'))
4325 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4326 #endif
4327
4328 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4329 int
4330 main ()
4331 {
4332 int i;
4333 for (i = 0; i < 256; i++)
4334 if (XOR (islower (i), ISLOWER (i))
4335 || toupper (i) != TOUPPER (i))
4336 exit(2);
4337 exit (0);
4338 }
4339 _ACEOF
4340 rm -f conftest$ac_exeext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342 (eval $ac_link) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 (eval $ac_try) 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 :
4352 else
4353 echo "$as_me: program exited with status $ac_status" >&5
4354 echo "$as_me: failed program was:" >&5
4355 cat conftest.$ac_ext >&5
4356 ( exit $ac_status )
4357 ac_cv_header_stdc=no
4358 fi
4359 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4360 fi
4361 fi
4362 fi
4363 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4364 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4365 if test $ac_cv_header_stdc = yes; then
4366
4367 cat >>confdefs.h <<\_ACEOF
4368 #define STDC_HEADERS 1
4369 _ACEOF
4370
4371 fi
4372
4373 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4384 inttypes.h stdint.h unistd.h
4385 do
4386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4387 echo "$as_me:$LINENO: checking for $ac_header" >&5
4388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 cat >conftest.$ac_ext <<_ACEOF
4393 #line $LINENO "configure"
4394 #include "confdefs.h"
4395 $ac_includes_default
4396
4397 #include <$ac_header>
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401 (eval $ac_compile) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 { ac_try='test -s conftest.$ac_objext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 (eval $ac_try) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 eval "$as_ac_Header=yes"
4412 else
4413 echo "$as_me: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4415 eval "$as_ac_Header=no"
4416 fi
4417 rm -f conftest.$ac_objext conftest.$ac_ext
4418 fi
4419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4422 cat >>confdefs.h <<_ACEOF
4423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4424 _ACEOF
4425
4426 fi
4427
4428 done
4429
4430
4431
4432
4433
4434 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4435 do
4436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4438 echo "$as_me:$LINENO: checking for $ac_header" >&5
4439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 fi
4443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4445 else
4446 # Is the header compilable?
4447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4449 cat >conftest.$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4451 #include "confdefs.h"
4452 $ac_includes_default
4453 #include <$ac_header>
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -s conftest.$ac_objext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 (eval $ac_try) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 ac_header_compiler=yes
4468 else
4469 echo "$as_me: failed program was:" >&5
4470 cat conftest.$ac_ext >&5
4471 ac_header_compiler=no
4472 fi
4473 rm -f conftest.$ac_objext conftest.$ac_ext
4474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4475 echo "${ECHO_T}$ac_header_compiler" >&6
4476
4477 # Is the header present?
4478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4480 cat >conftest.$ac_ext <<_ACEOF
4481 #line $LINENO "configure"
4482 #include "confdefs.h"
4483 #include <$ac_header>
4484 _ACEOF
4485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4487 ac_status=$?
4488 egrep -v '^ *\+' conftest.er1 >conftest.err
4489 rm -f conftest.er1
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } >/dev/null; then
4493 if test -s conftest.err; then
4494 ac_cpp_err=$ac_c_preproc_warn_flag
4495 else
4496 ac_cpp_err=
4497 fi
4498 else
4499 ac_cpp_err=yes
4500 fi
4501 if test -z "$ac_cpp_err"; then
4502 ac_header_preproc=yes
4503 else
4504 echo "$as_me: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4506 ac_header_preproc=no
4507 fi
4508 rm -f conftest.err conftest.$ac_ext
4509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4510 echo "${ECHO_T}$ac_header_preproc" >&6
4511
4512 # So? What about this header?
4513 case $ac_header_compiler:$ac_header_preproc in
4514 yes:no )
4515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4519 no:yes )
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4526 esac
4527 echo "$as_me:$LINENO: checking for $ac_header" >&5
4528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532 eval "$as_ac_Header=$ac_header_preproc"
4533 fi
4534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4536
4537 fi
4538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4539 cat >>confdefs.h <<_ACEOF
4540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4541 _ACEOF
4542
4543 fi
4544
4545 done
4546
4547 # Emulation library used on NetBSD.
4548 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4549 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4550 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 ac_check_lib_save_LIBS=$LIBS
4554 LIBS="-lossaudio $LIBS"
4555 cat >conftest.$ac_ext <<_ACEOF
4556 #line $LINENO "configure"
4557 #include "confdefs.h"
4558
4559 /* Override any gcc2 internal prototype to avoid an error. */
4560 #ifdef __cplusplus
4561 extern "C"
4562 #endif
4563 /* We use char because int might match the return type of a gcc2
4564 builtin and then its argument prototype would still apply. */
4565 char _oss_ioctl ();
4566 #ifdef F77_DUMMY_MAIN
4567 # ifdef __cplusplus
4568 extern "C"
4569 # endif
4570 int F77_DUMMY_MAIN() { return 1; }
4571 #endif
4572 int
4573 main ()
4574 {
4575 _oss_ioctl ();
4576 ;
4577 return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext conftest$ac_exeext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4582 (eval $ac_link) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try='test -s conftest$ac_exeext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 ac_cv_lib_ossaudio__oss_ioctl=yes
4593 else
4594 echo "$as_me: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4596 ac_cv_lib_ossaudio__oss_ioctl=no
4597 fi
4598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4599 LIBS=$ac_check_lib_save_LIBS
4600 fi
4601 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4602 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4603 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4604 LIBSOUND=-lossaudio
4605 else
4606 LIBSOUND=
4607 fi
4608
4609
4610 fi
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4630 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4631 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
4632 do
4633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4635 echo "$as_me:$LINENO: checking for $ac_header" >&5
4636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 fi
4640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4642 else
4643 # Is the header compilable?
4644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4646 cat >conftest.$ac_ext <<_ACEOF
4647 #line $LINENO "configure"
4648 #include "confdefs.h"
4649 $ac_includes_default
4650 #include <$ac_header>
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -s conftest.$ac_objext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4664 ac_header_compiler=yes
4665 else
4666 echo "$as_me: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4668 ac_header_compiler=no
4669 fi
4670 rm -f conftest.$ac_objext conftest.$ac_ext
4671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4672 echo "${ECHO_T}$ac_header_compiler" >&6
4673
4674 # Is the header present?
4675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4677 cat >conftest.$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4679 #include "confdefs.h"
4680 #include <$ac_header>
4681 _ACEOF
4682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4684 ac_status=$?
4685 egrep -v '^ *\+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev/null; then
4690 if test -s conftest.err; then
4691 ac_cpp_err=$ac_c_preproc_warn_flag
4692 else
4693 ac_cpp_err=
4694 fi
4695 else
4696 ac_cpp_err=yes
4697 fi
4698 if test -z "$ac_cpp_err"; then
4699 ac_header_preproc=yes
4700 else
4701 echo "$as_me: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4703 ac_header_preproc=no
4704 fi
4705 rm -f conftest.err conftest.$ac_ext
4706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4707 echo "${ECHO_T}$ac_header_preproc" >&6
4708
4709 # So? What about this header?
4710 case $ac_header_compiler:$ac_header_preproc in
4711 yes:no )
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4716 no:yes )
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4723 esac
4724 echo "$as_me:$LINENO: checking for $ac_header" >&5
4725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729 eval "$as_ac_Header=$ac_header_preproc"
4730 fi
4731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4733
4734 fi
4735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4736 cat >>confdefs.h <<_ACEOF
4737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4738 _ACEOF
4739
4740 fi
4741
4742 done
4743
4744 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4745 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4746 if test "${ac_cv_header_stdc+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749 cat >conftest.$ac_ext <<_ACEOF
4750 #line $LINENO "configure"
4751 #include "confdefs.h"
4752 #include <stdlib.h>
4753 #include <stdarg.h>
4754 #include <string.h>
4755 #include <float.h>
4756
4757 _ACEOF
4758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4760 ac_status=$?
4761 egrep -v '^ *\+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } >/dev/null; then
4766 if test -s conftest.err; then
4767 ac_cpp_err=$ac_c_preproc_warn_flag
4768 else
4769 ac_cpp_err=
4770 fi
4771 else
4772 ac_cpp_err=yes
4773 fi
4774 if test -z "$ac_cpp_err"; then
4775 ac_cv_header_stdc=yes
4776 else
4777 echo "$as_me: failed program was:" >&5
4778 cat conftest.$ac_ext >&5
4779 ac_cv_header_stdc=no
4780 fi
4781 rm -f conftest.err conftest.$ac_ext
4782
4783 if test $ac_cv_header_stdc = yes; then
4784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4785 cat >conftest.$ac_ext <<_ACEOF
4786 #line $LINENO "configure"
4787 #include "confdefs.h"
4788 #include <string.h>
4789
4790 _ACEOF
4791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4792 egrep "memchr" >/dev/null 2>&1; then
4793 :
4794 else
4795 ac_cv_header_stdc=no
4796 fi
4797 rm -f conftest*
4798
4799 fi
4800
4801 if test $ac_cv_header_stdc = yes; then
4802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4803 cat >conftest.$ac_ext <<_ACEOF
4804 #line $LINENO "configure"
4805 #include "confdefs.h"
4806 #include <stdlib.h>
4807
4808 _ACEOF
4809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4810 egrep "free" >/dev/null 2>&1; then
4811 :
4812 else
4813 ac_cv_header_stdc=no
4814 fi
4815 rm -f conftest*
4816
4817 fi
4818
4819 if test $ac_cv_header_stdc = yes; then
4820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4821 if test "$cross_compiling" = yes; then
4822 :
4823 else
4824 cat >conftest.$ac_ext <<_ACEOF
4825 #line $LINENO "configure"
4826 #include "confdefs.h"
4827 #include <ctype.h>
4828 #if ((' ' & 0x0FF) == 0x020)
4829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4831 #else
4832 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4833 || ('j' <= (c) && (c) <= 'r') \
4834 || ('s' <= (c) && (c) <= 'z'))
4835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4836 #endif
4837
4838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4839 int
4840 main ()
4841 {
4842 int i;
4843 for (i = 0; i < 256; i++)
4844 if (XOR (islower (i), ISLOWER (i))
4845 || toupper (i) != TOUPPER (i))
4846 exit(2);
4847 exit (0);
4848 }
4849 _ACEOF
4850 rm -f conftest$ac_exeext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4852 (eval $ac_link) 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 (eval $ac_try) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4861 :
4862 else
4863 echo "$as_me: program exited with status $ac_status" >&5
4864 echo "$as_me: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4866 ( exit $ac_status )
4867 ac_cv_header_stdc=no
4868 fi
4869 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4870 fi
4871 fi
4872 fi
4873 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4874 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4875 if test $ac_cv_header_stdc = yes; then
4876
4877 cat >>confdefs.h <<\_ACEOF
4878 #define STDC_HEADERS 1
4879 _ACEOF
4880
4881 fi
4882
4883 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4884 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4885 if test "${ac_cv_header_time+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888 cat >conftest.$ac_ext <<_ACEOF
4889 #line $LINENO "configure"
4890 #include "confdefs.h"
4891 #include <sys/types.h>
4892 #include <sys/time.h>
4893 #include <time.h>
4894
4895 #ifdef F77_DUMMY_MAIN
4896 # ifdef __cplusplus
4897 extern "C"
4898 # endif
4899 int F77_DUMMY_MAIN() { return 1; }
4900 #endif
4901 int
4902 main ()
4903 {
4904 if ((struct tm *) 0)
4905 return 0;
4906 ;
4907 return 0;
4908 }
4909 _ACEOF
4910 rm -f conftest.$ac_objext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912 (eval $ac_compile) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_cv_header_time=yes
4923 else
4924 echo "$as_me: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4926 ac_cv_header_time=no
4927 fi
4928 rm -f conftest.$ac_objext conftest.$ac_ext
4929 fi
4930 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4931 echo "${ECHO_T}$ac_cv_header_time" >&6
4932 if test $ac_cv_header_time = yes; then
4933
4934 cat >>confdefs.h <<\_ACEOF
4935 #define TIME_WITH_SYS_TIME 1
4936 _ACEOF
4937
4938 fi
4939
4940 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4941 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4942 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4947 #include "confdefs.h"
4948 #include <sys/types.h>
4949 #include <signal.h>
4950 /* NetBSD declares sys_siglist in unistd.h. */
4951 #if HAVE_UNISTD_H
4952 # include <unistd.h>
4953 #endif
4954
4955 #ifdef F77_DUMMY_MAIN
4956 # ifdef __cplusplus
4957 extern "C"
4958 # endif
4959 int F77_DUMMY_MAIN() { return 1; }
4960 #endif
4961 int
4962 main ()
4963 {
4964 char *msg = *(sys_siglist + 1);
4965 ;
4966 return 0;
4967 }
4968 _ACEOF
4969 rm -f conftest.$ac_objext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 (eval $ac_try) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_decl_sys_siglist=yes
4982 else
4983 echo "$as_me: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4985 ac_cv_decl_sys_siglist=no
4986 fi
4987 rm -f conftest.$ac_objext conftest.$ac_ext
4988 fi
4989 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
4990 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4991 if test $ac_cv_decl_sys_siglist = yes; then
4992
4993 cat >>confdefs.h <<\_ACEOF
4994 #define SYS_SIGLIST_DECLARED 1
4995 _ACEOF
4996
4997 fi
4998
4999 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5000 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5001 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 cat >conftest.$ac_ext <<_ACEOF
5005 #line $LINENO "configure"
5006 #include "confdefs.h"
5007 #include <sys/types.h>
5008 #include <sys/wait.h>
5009 #ifndef WEXITSTATUS
5010 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5011 #endif
5012 #ifndef WIFEXITED
5013 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5014 #endif
5015
5016 #ifdef F77_DUMMY_MAIN
5017 # ifdef __cplusplus
5018 extern "C"
5019 # endif
5020 int F77_DUMMY_MAIN() { return 1; }
5021 #endif
5022 int
5023 main ()
5024 {
5025 int s;
5026 wait (&s);
5027 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5028 ;
5029 return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest.$ac_objext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034 (eval $ac_compile) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } &&
5038 { ac_try='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_cv_header_sys_wait_h=yes
5045 else
5046 echo "$as_me: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5048 ac_cv_header_sys_wait_h=no
5049 fi
5050 rm -f conftest.$ac_objext conftest.$ac_ext
5051 fi
5052 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5053 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5054 if test $ac_cv_header_sys_wait_h = yes; then
5055
5056 cat >>confdefs.h <<\_ACEOF
5057 #define HAVE_SYS_WAIT_H 1
5058 _ACEOF
5059
5060 fi
5061
5062
5063 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5064 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5065 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 cat >conftest.$ac_ext <<_ACEOF
5069 #line $LINENO "configure"
5070 #include "confdefs.h"
5071 #ifdef TIME_WITH_SYS_TIME
5072 #include <sys/time.h>
5073 #include <time.h>
5074 #else
5075 #ifdef HAVE_SYS_TIME_H
5076 #include <sys/time.h>
5077 #else
5078 #include <time.h>
5079 #endif
5080 #endif
5081 #ifdef HAVE_UTIME_H
5082 #include <utime.h>
5083 #endif
5084 #ifdef F77_DUMMY_MAIN
5085 # ifdef __cplusplus
5086 extern "C"
5087 # endif
5088 int F77_DUMMY_MAIN() { return 1; }
5089 #endif
5090 int
5091 main ()
5092 {
5093 static struct utimbuf x; x.actime = x.modtime;
5094 ;
5095 return 0;
5096 }
5097 _ACEOF
5098 rm -f conftest.$ac_objext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
5104 { ac_try='test -s conftest.$ac_objext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 emacs_cv_struct_utimbuf=yes
5111 else
5112 echo "$as_me: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5114 emacs_cv_struct_utimbuf=no
5115 fi
5116 rm -f conftest.$ac_objext conftest.$ac_ext
5117 fi
5118 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5119 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5120 if test $emacs_cv_struct_utimbuf = yes; then
5121
5122 cat >>confdefs.h <<\_ACEOF
5123 #define HAVE_STRUCT_UTIMBUF 1
5124 _ACEOF
5125
5126 fi
5127
5128 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5129 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5130 if test "${ac_cv_type_signal+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 cat >conftest.$ac_ext <<_ACEOF
5134 #line $LINENO "configure"
5135 #include "confdefs.h"
5136 #include <sys/types.h>
5137 #include <signal.h>
5138 #ifdef signal
5139 # undef signal
5140 #endif
5141 #ifdef __cplusplus
5142 extern "C" void (*signal (int, void (*)(int)))(int);
5143 #else
5144 void (*signal ()) ();
5145 #endif
5146
5147 #ifdef F77_DUMMY_MAIN
5148 # ifdef __cplusplus
5149 extern "C"
5150 # endif
5151 int F77_DUMMY_MAIN() { return 1; }
5152 #endif
5153 int
5154 main ()
5155 {
5156 int i;
5157 ;
5158 return 0;
5159 }
5160 _ACEOF
5161 rm -f conftest.$ac_objext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5163 (eval $ac_compile) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try='test -s conftest.$ac_objext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_type_signal=void
5174 else
5175 echo "$as_me: failed program was:" >&5
5176 cat conftest.$ac_ext >&5
5177 ac_cv_type_signal=int
5178 fi
5179 rm -f conftest.$ac_objext conftest.$ac_ext
5180 fi
5181 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5182 echo "${ECHO_T}$ac_cv_type_signal" >&6
5183
5184 cat >>confdefs.h <<_ACEOF
5185 #define RETSIGTYPE $ac_cv_type_signal
5186 _ACEOF
5187
5188
5189
5190 echo "$as_me:$LINENO: checking for speed_t" >&5
5191 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5192 if test "${emacs_cv_speed_t+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5197 #include "confdefs.h"
5198 #include <termios.h>
5199 #ifdef F77_DUMMY_MAIN
5200 # ifdef __cplusplus
5201 extern "C"
5202 # endif
5203 int F77_DUMMY_MAIN() { return 1; }
5204 #endif
5205 int
5206 main ()
5207 {
5208 speed_t x = 1;
5209 ;
5210 return 0;
5211 }
5212 _ACEOF
5213 rm -f conftest.$ac_objext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215 (eval $ac_compile) 2>&5
5216 ac_status=$?
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try='test -s conftest.$ac_objext'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 (eval $ac_try) 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5225 emacs_cv_speed_t=yes
5226 else
5227 echo "$as_me: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5229 emacs_cv_speed_t=no
5230 fi
5231 rm -f conftest.$ac_objext conftest.$ac_ext
5232 fi
5233 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5234 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5235 if test $emacs_cv_speed_t = yes; then
5236
5237 cat >>confdefs.h <<\_ACEOF
5238 #define HAVE_SPEED_T 1
5239 _ACEOF
5240
5241 fi
5242
5243 echo "$as_me:$LINENO: checking for struct timeval" >&5
5244 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5245 if test "${emacs_cv_struct_timeval+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 cat >conftest.$ac_ext <<_ACEOF
5249 #line $LINENO "configure"
5250 #include "confdefs.h"
5251 #ifdef TIME_WITH_SYS_TIME
5252 #include <sys/time.h>
5253 #include <time.h>
5254 #else
5255 #ifdef HAVE_SYS_TIME_H
5256 #include <sys/time.h>
5257 #else
5258 #include <time.h>
5259 #endif
5260 #endif
5261 #ifdef F77_DUMMY_MAIN
5262 # ifdef __cplusplus
5263 extern "C"
5264 # endif
5265 int F77_DUMMY_MAIN() { return 1; }
5266 #endif
5267 int
5268 main ()
5269 {
5270 static struct timeval x; x.tv_sec = x.tv_usec;
5271 ;
5272 return 0;
5273 }
5274 _ACEOF
5275 rm -f conftest.$ac_objext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5277 (eval $ac_compile) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -s conftest.$ac_objext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5287 emacs_cv_struct_timeval=yes
5288 else
5289 echo "$as_me: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5291 emacs_cv_struct_timeval=no
5292 fi
5293 rm -f conftest.$ac_objext conftest.$ac_ext
5294 fi
5295 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5296 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5297 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5298 if test $emacs_cv_struct_timeval = yes; then
5299
5300 cat >>confdefs.h <<\_ACEOF
5301 #define HAVE_TIMEVAL 1
5302 _ACEOF
5303
5304 fi
5305
5306 echo "$as_me:$LINENO: checking for struct exception" >&5
5307 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5308 if test "${emacs_cv_struct_exception+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311 cat >conftest.$ac_ext <<_ACEOF
5312 #line $LINENO "configure"
5313 #include "confdefs.h"
5314 #include <math.h>
5315 #ifdef F77_DUMMY_MAIN
5316 # ifdef __cplusplus
5317 extern "C"
5318 # endif
5319 int F77_DUMMY_MAIN() { return 1; }
5320 #endif
5321 int
5322 main ()
5323 {
5324 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5325 ;
5326 return 0;
5327 }
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -s conftest.$ac_objext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 emacs_cv_struct_exception=yes
5342 else
5343 echo "$as_me: failed program was:" >&5
5344 cat conftest.$ac_ext >&5
5345 emacs_cv_struct_exception=no
5346 fi
5347 rm -f conftest.$ac_objext conftest.$ac_ext
5348 fi
5349 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5350 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5351 HAVE_EXCEPTION=$emacs_cv_struct_exception
5352 if test $emacs_cv_struct_exception != yes; then
5353
5354 cat >>confdefs.h <<\_ACEOF
5355 #define NO_MATHERR 1
5356 _ACEOF
5357
5358 fi
5359
5360 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5361 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5362 if test "${ac_cv_struct_tm+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 cat >conftest.$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5367 #include "confdefs.h"
5368 #include <sys/types.h>
5369 #include <time.h>
5370
5371 #ifdef F77_DUMMY_MAIN
5372 # ifdef __cplusplus
5373 extern "C"
5374 # endif
5375 int F77_DUMMY_MAIN() { return 1; }
5376 #endif
5377 int
5378 main ()
5379 {
5380 struct tm *tp; tp->tm_sec;
5381 ;
5382 return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest.$ac_objext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try='test -s conftest.$ac_objext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 (eval $ac_try) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 ac_cv_struct_tm=time.h
5398 else
5399 echo "$as_me: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5401 ac_cv_struct_tm=sys/time.h
5402 fi
5403 rm -f conftest.$ac_objext conftest.$ac_ext
5404 fi
5405 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5406 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5407 if test $ac_cv_struct_tm = sys/time.h; then
5408
5409 cat >>confdefs.h <<\_ACEOF
5410 #define TM_IN_SYS_TIME 1
5411 _ACEOF
5412
5413 fi
5414
5415 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5416 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5417 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 cat >conftest.$ac_ext <<_ACEOF
5421 #line $LINENO "configure"
5422 #include "confdefs.h"
5423 #include <sys/types.h>
5424 #include <$ac_cv_struct_tm>
5425
5426
5427 #ifdef F77_DUMMY_MAIN
5428 # ifdef __cplusplus
5429 extern "C"
5430 # endif
5431 int F77_DUMMY_MAIN() { return 1; }
5432 #endif
5433 int
5434 main ()
5435 {
5436 static struct tm ac_aggr;
5437 if (ac_aggr.tm_zone)
5438 return 0;
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 rm -f conftest.$ac_objext
5444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445 (eval $ac_compile) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } &&
5449 { ac_try='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 ac_cv_member_struct_tm_tm_zone=yes
5456 else
5457 echo "$as_me: failed program was:" >&5
5458 cat conftest.$ac_ext >&5
5459 ac_cv_member_struct_tm_tm_zone=no
5460 fi
5461 rm -f conftest.$ac_objext conftest.$ac_ext
5462 fi
5463 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5464 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5465 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5466
5467 cat >>confdefs.h <<_ACEOF
5468 #define HAVE_STRUCT_TM_TM_ZONE 1
5469 _ACEOF
5470
5471
5472 fi
5473
5474 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5475
5476 cat >>confdefs.h <<\_ACEOF
5477 #define HAVE_TM_ZONE 1
5478 _ACEOF
5479
5480 else
5481 echo "$as_me:$LINENO: checking for tzname" >&5
5482 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5483 if test "${ac_cv_var_tzname+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486 cat >conftest.$ac_ext <<_ACEOF
5487 #line $LINENO "configure"
5488 #include "confdefs.h"
5489 #include <time.h>
5490 #ifndef tzname /* For SGI. */
5491 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5492 #endif
5493
5494 #ifdef F77_DUMMY_MAIN
5495 # ifdef __cplusplus
5496 extern "C"
5497 # endif
5498 int F77_DUMMY_MAIN() { return 1; }
5499 #endif
5500 int
5501 main ()
5502 {
5503 atoi(*tzname);
5504 ;
5505 return 0;
5506 }
5507 _ACEOF
5508 rm -f conftest.$ac_objext conftest$ac_exeext
5509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5510 (eval $ac_link) 2>&5
5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } &&
5514 { ac_try='test -s conftest$ac_exeext'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 (eval $ac_try) 2>&5
5517 ac_status=$?
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
5520 ac_cv_var_tzname=yes
5521 else
5522 echo "$as_me: failed program was:" >&5
5523 cat conftest.$ac_ext >&5
5524 ac_cv_var_tzname=no
5525 fi
5526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5527 fi
5528 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5529 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5530 if test $ac_cv_var_tzname = yes; then
5531
5532 cat >>confdefs.h <<\_ACEOF
5533 #define HAVE_TZNAME 1
5534 _ACEOF
5535
5536 fi
5537 fi
5538
5539 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5540 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5541 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544 cat >conftest.$ac_ext <<_ACEOF
5545 #line $LINENO "configure"
5546 #include "confdefs.h"
5547 #include <time.h>
5548
5549 #ifdef F77_DUMMY_MAIN
5550 # ifdef __cplusplus
5551 extern "C"
5552 # endif
5553 int F77_DUMMY_MAIN() { return 1; }
5554 #endif
5555 int
5556 main ()
5557 {
5558 static struct tm ac_aggr;
5559 if (ac_aggr.tm_gmtoff)
5560 return 0;
5561 ;
5562 return 0;
5563 }
5564 _ACEOF
5565 rm -f conftest.$ac_objext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5567 (eval $ac_compile) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_cv_member_struct_tm_tm_gmtoff=yes
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5581 ac_cv_member_struct_tm_tm_gmtoff=no
5582 fi
5583 rm -f conftest.$ac_objext conftest.$ac_ext
5584 fi
5585 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5586 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5587 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5588
5589 cat >>confdefs.h <<\_ACEOF
5590 #define HAVE_TM_GMTOFF 1
5591 _ACEOF
5592
5593 fi
5594
5595
5596
5597 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5598 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5599 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602 ac_cv_prog_cc_stdc=no
5603 ac_save_CC=$CC
5604 cat >conftest.$ac_ext <<_ACEOF
5605 #line $LINENO "configure"
5606 #include "confdefs.h"
5607 #include <stdarg.h>
5608 #include <stdio.h>
5609 #include <sys/types.h>
5610 #include <sys/stat.h>
5611 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5612 struct buf { int x; };
5613 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5614 static char *e (p, i)
5615 char **p;
5616 int i;
5617 {
5618 return p[i];
5619 }
5620 static char *f (char * (*g) (char **, int), char **p, ...)
5621 {
5622 char *s;
5623 va_list v;
5624 va_start (v,p);
5625 s = g (p, va_arg (v,int));
5626 va_end (v);
5627 return s;
5628 }
5629 int test (int i, double x);
5630 struct s1 {int (*f) (int a);};
5631 struct s2 {int (*f) (double a);};
5632 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5633 int argc;
5634 char **argv;
5635 #ifdef F77_DUMMY_MAIN
5636 # ifdef __cplusplus
5637 extern "C"
5638 # endif
5639 int F77_DUMMY_MAIN() { return 1; }
5640 #endif
5641 int
5642 main ()
5643 {
5644 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5645 ;
5646 return 0;
5647 }
5648 _ACEOF
5649 # Don't try gcc -ansi; that turns off useful extensions and
5650 # breaks some systems' header files.
5651 # AIX -qlanglvl=ansi
5652 # Ultrix and OSF/1 -std1
5653 # HP-UX 10.20 and later -Ae
5654 # HP-UX older versions -Aa -D_HPUX_SOURCE
5655 # SVR4 -Xc -D__EXTENSIONS__
5656 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5657 do
5658 CC="$ac_save_CC $ac_arg"
5659 rm -f conftest.$ac_objext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>&5
5662 ac_status=$?
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 (eval $ac_try) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_prog_cc_stdc=$ac_arg
5672 break
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 cat conftest.$ac_ext >&5
5676 fi
5677 rm -f conftest.$ac_objext
5678 done
5679 rm -f conftest.$ac_ext conftest.$ac_objext
5680 CC=$ac_save_CC
5681
5682 fi
5683
5684 case "x$ac_cv_prog_cc_stdc" in
5685 x|xno)
5686 echo "$as_me:$LINENO: result: none needed" >&5
5687 echo "${ECHO_T}none needed" >&6 ;;
5688 *)
5689 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5690 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5691 CC="$CC $ac_cv_prog_cc_stdc" ;;
5692 esac
5693
5694 echo "$as_me:$LINENO: checking for function prototypes" >&5
5695 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5696 if test "$ac_cv_prog_cc_stdc" != no; then
5697 echo "$as_me:$LINENO: result: yes" >&5
5698 echo "${ECHO_T}yes" >&6
5699
5700 cat >>confdefs.h <<\_ACEOF
5701 #define PROTOTYPES 1
5702 _ACEOF
5703
5704
5705 cat >>confdefs.h <<\_ACEOF
5706 #define __PROTOTYPES 1
5707 _ACEOF
5708
5709 else
5710 echo "$as_me:$LINENO: result: no" >&5
5711 echo "${ECHO_T}no" >&6
5712 fi
5713
5714 echo "$as_me:$LINENO: checking for working volatile" >&5
5715 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5716 if test "${ac_cv_c_volatile+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 #include "confdefs.h"
5722
5723 #ifdef F77_DUMMY_MAIN
5724 # ifdef __cplusplus
5725 extern "C"
5726 # endif
5727 int F77_DUMMY_MAIN() { return 1; }
5728 #endif
5729 int
5730 main ()
5731 {
5732
5733 volatile int x;
5734 int * volatile y;
5735 ;
5736 return 0;
5737 }
5738 _ACEOF
5739 rm -f conftest.$ac_objext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5741 (eval $ac_compile) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_c_volatile=yes
5752 else
5753 echo "$as_me: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5755 ac_cv_c_volatile=no
5756 fi
5757 rm -f conftest.$ac_objext conftest.$ac_ext
5758 fi
5759 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5760 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5761 if test $ac_cv_c_volatile = no; then
5762
5763 cat >>confdefs.h <<\_ACEOF
5764 #define volatile
5765 _ACEOF
5766
5767 fi
5768
5769 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5770 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5771 if test "${ac_cv_c_const+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774 cat >conftest.$ac_ext <<_ACEOF
5775 #line $LINENO "configure"
5776 #include "confdefs.h"
5777
5778 #ifdef F77_DUMMY_MAIN
5779 # ifdef __cplusplus
5780 extern "C"
5781 # endif
5782 int F77_DUMMY_MAIN() { return 1; }
5783 #endif
5784 int
5785 main ()
5786 {
5787 /* FIXME: Include the comments suggested by Paul. */
5788 #ifndef __cplusplus
5789 /* Ultrix mips cc rejects this. */
5790 typedef int charset[2];
5791 const charset x;
5792 /* SunOS 4.1.1 cc rejects this. */
5793 char const *const *ccp;
5794 char **p;
5795 /* NEC SVR4.0.2 mips cc rejects this. */
5796 struct point {int x, y;};
5797 static struct point const zero = {0,0};
5798 /* AIX XL C 1.02.0.0 rejects this.
5799 It does not let you subtract one const X* pointer from another in
5800 an arm of an if-expression whose if-part is not a constant
5801 expression */
5802 const char *g = "string";
5803 ccp = &g + (g ? g-g : 0);
5804 /* HPUX 7.0 cc rejects these. */
5805 ++ccp;
5806 p = (char**) ccp;
5807 ccp = (char const *const *) p;
5808 { /* SCO 3.2v4 cc rejects this. */
5809 char *t;
5810 char const *s = 0 ? (char *) 0 : (char const *) 0;
5811
5812 *t++ = 0;
5813 }
5814 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5815 int x[] = {25, 17};
5816 const int *foo = &x[0];
5817 ++foo;
5818 }
5819 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5820 typedef const int *iptr;
5821 iptr p = 0;
5822 ++p;
5823 }
5824 { /* AIX XL C 1.02.0.0 rejects this saying
5825 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5826 struct s { int j; const int *ap[3]; };
5827 struct s *b; b->j = 5;
5828 }
5829 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5830 const int foo = 10;
5831 }
5832 #endif
5833
5834 ;
5835 return 0;
5836 }
5837 _ACEOF
5838 rm -f conftest.$ac_objext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840 (eval $ac_compile) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try='test -s conftest.$ac_objext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_cv_c_const=yes
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 cat conftest.$ac_ext >&5
5854 ac_cv_c_const=no
5855 fi
5856 rm -f conftest.$ac_objext conftest.$ac_ext
5857 fi
5858 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5859 echo "${ECHO_T}$ac_cv_c_const" >&6
5860 if test $ac_cv_c_const = no; then
5861
5862 cat >>confdefs.h <<\_ACEOF
5863 #define const
5864 _ACEOF
5865
5866 fi
5867
5868 echo "$as_me:$LINENO: checking for void * support" >&5
5869 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5870 if test "${emacs_cv_void_star+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873 cat >conftest.$ac_ext <<_ACEOF
5874 #line $LINENO "configure"
5875 #include "confdefs.h"
5876
5877 #ifdef F77_DUMMY_MAIN
5878 # ifdef __cplusplus
5879 extern "C"
5880 # endif
5881 int F77_DUMMY_MAIN() { return 1; }
5882 #endif
5883 int
5884 main ()
5885 {
5886 void * foo;
5887 ;
5888 return 0;
5889 }
5890 _ACEOF
5891 rm -f conftest.$ac_objext
5892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893 (eval $ac_compile) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } &&
5897 { ac_try='test -s conftest.$ac_objext'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 (eval $ac_try) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5903 emacs_cv_void_star=yes
5904 else
5905 echo "$as_me: failed program was:" >&5
5906 cat conftest.$ac_ext >&5
5907 emacs_cv_void_star=no
5908 fi
5909 rm -f conftest.$ac_objext conftest.$ac_ext
5910 fi
5911 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5912 echo "${ECHO_T}$emacs_cv_void_star" >&6
5913 if test $emacs_cv_void_star = yes; then
5914 cat >>confdefs.h <<\_ACEOF
5915 #define POINTER_TYPE void
5916 _ACEOF
5917
5918 else
5919 cat >>confdefs.h <<\_ACEOF
5920 #define POINTER_TYPE char
5921 _ACEOF
5922
5923 fi
5924
5925
5926 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5927 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5928 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5929 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932 cat >conftest.make <<\_ACEOF
5933 all:
5934 @echo 'ac_maketemp="${MAKE}"'
5935 _ACEOF
5936 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5937 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5938 if test -n "$ac_maketemp"; then
5939 eval ac_cv_prog_make_${ac_make}_set=yes
5940 else
5941 eval ac_cv_prog_make_${ac_make}_set=no
5942 fi
5943 rm -f conftest.make
5944 fi
5945 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5946 echo "$as_me:$LINENO: result: yes" >&5
5947 echo "${ECHO_T}yes" >&6
5948 SET_MAKE=
5949 else
5950 echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6
5952 SET_MAKE="MAKE=${MAKE-make}"
5953 fi
5954
5955
5956 echo "$as_me:$LINENO: checking for long file names" >&5
5957 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5958 if test "${ac_cv_sys_long_file_names+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 ac_cv_sys_long_file_names=yes
5962 # Test for long file names in all the places we know might matter:
5963 # . the current directory, where building will happen
5964 # $prefix/lib where we will be installing things
5965 # $exec_prefix/lib likewise
5966 # eval it to expand exec_prefix.
5967 # $TMPDIR if set, where it might want to write temporary files
5968 # if $TMPDIR is not set:
5969 # /tmp where it might want to write temporary files
5970 # /var/tmp likewise
5971 # /usr/tmp likewise
5972 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5973 ac_tmpdirs=$TMPDIR
5974 else
5975 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
5976 fi
5977 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5978 test -d $ac_dir || continue
5979 test -w $ac_dir || continue # It is less confusing to not echo anything here.
5980 ac_xdir=$ac_dir/cf$$
5981 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
5982 ac_tf1=$ac_xdir/conftest9012345
5983 ac_tf2=$ac_xdir/conftest9012346
5984 (echo 1 >$ac_tf1) 2>/dev/null
5985 (echo 2 >$ac_tf2) 2>/dev/null
5986 ac_val=`cat $ac_tf1 2>/dev/null`
5987 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
5988 ac_cv_sys_long_file_names=no
5989 rm -rf $ac_xdir 2>/dev/null
5990 break
5991 fi
5992 rm -rf $ac_xdir 2>/dev/null
5993 done
5994 fi
5995 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
5996 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5997 if test $ac_cv_sys_long_file_names = yes; then
5998
5999 cat >>confdefs.h <<\_ACEOF
6000 #define HAVE_LONG_FILE_NAMES 1
6001 _ACEOF
6002
6003 fi
6004
6005
6006 if test "$gamedir" = no; then :
6007 else
6008 echo "$as_me:$LINENO: checking for access to game group \"$gameuser\"" >&5
6009 echo $ECHO_N "checking for access to game group \"$gameuser\"... $ECHO_C" >&6
6010 rm -f conf$$chown.file
6011 touch conf$$chown.file
6012 if chown "$gameuser" conf$$chown.file 1>/dev/null 2>&1; then
6013 echo "$as_me:$LINENO: result: yes" >&5
6014 echo "${ECHO_T}yes" >&6
6015 if test "$gamedir" = "yes"; then
6016 gamedir="${localstatedir}/games/emacs"
6017 fi
6018 eval tgamedir=\"$gamedir\"
6019
6020 cat >>confdefs.h <<_ACEOF
6021 #define HAVE_SHARED_GAME_DIR "$tgamedir"
6022 _ACEOF
6023
6024 else
6025 echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6
6027 gamedir=no
6028 fi
6029 fi
6030 #### Choose a window system.
6031
6032 echo "$as_me:$LINENO: checking for X" >&5
6033 echo $ECHO_N "checking for X... $ECHO_C" >&6
6034
6035
6036 # Check whether --with-x or --without-x was given.
6037 if test "${with_x+set}" = set; then
6038 withval="$with_x"
6039
6040 fi;
6041 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6042 if test "x$with_x" = xno; then
6043 # The user explicitly disabled X.
6044 have_x=disabled
6045 else
6046 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6047 # Both variables are already set.
6048 have_x=yes
6049 else
6050 if test "${ac_cv_have_x+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 # One or both of the vars are not set, and there is no cached value.
6054 ac_x_includes=no ac_x_libraries=no
6055 rm -fr conftest.dir
6056 if mkdir conftest.dir; then
6057 cd conftest.dir
6058 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6059 cat >Imakefile <<'_ACEOF'
6060 acfindx:
6061 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6062 _ACEOF
6063 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6064 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6065 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6066 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6067 for ac_extension in a so sl; do
6068 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6069 test -f $ac_im_libdir/libX11.$ac_extension; then
6070 ac_im_usrlibdir=$ac_im_libdir; break
6071 fi
6072 done
6073 # Screen out bogus values from the imake configuration. They are
6074 # bogus both because they are the default anyway, and because
6075 # using them would break gcc on systems where it needs fixed includes.
6076 case $ac_im_incroot in
6077 /usr/include) ;;
6078 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6079 esac
6080 case $ac_im_usrlibdir in
6081 /usr/lib | /lib) ;;
6082 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6083 esac
6084 fi
6085 cd ..
6086 rm -fr conftest.dir
6087 fi
6088
6089 # Standard set of common directories for X headers.
6090 # Check X11 before X11Rn because it is often a symlink to the current release.
6091 ac_x_header_dirs='
6092 /usr/X11/include
6093 /usr/X11R6/include
6094 /usr/X11R5/include
6095 /usr/X11R4/include
6096
6097 /usr/include/X11
6098 /usr/include/X11R6
6099 /usr/include/X11R5
6100 /usr/include/X11R4
6101
6102 /usr/local/X11/include
6103 /usr/local/X11R6/include
6104 /usr/local/X11R5/include
6105 /usr/local/X11R4/include
6106
6107 /usr/local/include/X11
6108 /usr/local/include/X11R6
6109 /usr/local/include/X11R5
6110 /usr/local/include/X11R4
6111
6112 /usr/X386/include
6113 /usr/x386/include
6114 /usr/XFree86/include/X11
6115
6116 /usr/include
6117 /usr/local/include
6118 /usr/unsupported/include
6119 /usr/athena/include
6120 /usr/local/x11r5/include
6121 /usr/lpp/Xamples/include
6122
6123 /usr/openwin/include
6124 /usr/openwin/share/include'
6125
6126 if test "$ac_x_includes" = no; then
6127 # Guess where to find include files, by looking for Intrinsic.h.
6128 # First, try using that file with no special directory specified.
6129 cat >conftest.$ac_ext <<_ACEOF
6130 #line $LINENO "configure"
6131 #include "confdefs.h"
6132 #include <X11/Intrinsic.h>
6133 _ACEOF
6134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136 ac_status=$?
6137 egrep -v '^ *\+' conftest.er1 >conftest.err
6138 rm -f conftest.er1
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } >/dev/null; then
6142 if test -s conftest.err; then
6143 ac_cpp_err=$ac_c_preproc_warn_flag
6144 else
6145 ac_cpp_err=
6146 fi
6147 else
6148 ac_cpp_err=yes
6149 fi
6150 if test -z "$ac_cpp_err"; then
6151 # We can compile using X headers with no special include directory.
6152 ac_x_includes=
6153 else
6154 echo "$as_me: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6156 for ac_dir in $ac_x_header_dirs; do
6157 if test -r "$ac_dir/X11/Intrinsic.h"; then
6158 ac_x_includes=$ac_dir
6159 break
6160 fi
6161 done
6162 fi
6163 rm -f conftest.err conftest.$ac_ext
6164 fi # $ac_x_includes = no
6165
6166 if test "$ac_x_libraries" = no; then
6167 # Check for the libraries.
6168 # See if we find them without any special options.
6169 # Don't add to $LIBS permanently.
6170 ac_save_LIBS=$LIBS
6171 LIBS="-lXt $LIBS"
6172 cat >conftest.$ac_ext <<_ACEOF
6173 #line $LINENO "configure"
6174 #include "confdefs.h"
6175 #include <X11/Intrinsic.h>
6176 #ifdef F77_DUMMY_MAIN
6177 # ifdef __cplusplus
6178 extern "C"
6179 # endif
6180 int F77_DUMMY_MAIN() { return 1; }
6181 #endif
6182 int
6183 main ()
6184 {
6185 XtMalloc (0)
6186 ;
6187 return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -s conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 LIBS=$ac_save_LIBS
6203 # We can link X programs with no special library path.
6204 ac_x_libraries=
6205 else
6206 echo "$as_me: failed program was:" >&5
6207 cat conftest.$ac_ext >&5
6208 LIBS=$ac_save_LIBS
6209 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6210 do
6211 # Don't even attempt the hair of trying to link an X program!
6212 for ac_extension in a so sl; do
6213 if test -r $ac_dir/libXt.$ac_extension; then
6214 ac_x_libraries=$ac_dir
6215 break 2
6216 fi
6217 done
6218 done
6219 fi
6220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6221 fi # $ac_x_libraries = no
6222
6223 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6224 # Didn't find X anywhere. Cache the known absence of X.
6225 ac_cv_have_x="have_x=no"
6226 else
6227 # Record where we found X for the cache.
6228 ac_cv_have_x="have_x=yes \
6229 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6230 fi
6231 fi
6232
6233 fi
6234 eval "$ac_cv_have_x"
6235 fi # $with_x != no
6236
6237 if test "$have_x" != yes; then
6238 echo "$as_me:$LINENO: result: $have_x" >&5
6239 echo "${ECHO_T}$have_x" >&6
6240 no_x=yes
6241 else
6242 # If each of the values was on the command line, it overrides each guess.
6243 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6244 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6245 # Update the cache value to reflect the command line values.
6246 ac_cv_have_x="have_x=yes \
6247 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6248 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6249 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6250 fi
6251
6252 if test "$no_x" = yes; then
6253 window_system=none
6254 else
6255 window_system=x11
6256 fi
6257
6258 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6259 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6260 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6261 x_default_search_path=""
6262 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6263 x_search_path="\
6264 ${x_library}/X11/%L/%T/%N%C%S:\
6265 ${x_library}/X11/%l/%T/%N%C%S:\
6266 ${x_library}/X11/%T/%N%C%S:\
6267 ${x_library}/X11/%L/%T/%N%S:\
6268 ${x_library}/X11/%l/%T/%N%S:\
6269 ${x_library}/X11/%T/%N%S"
6270 if test x"${x_default_search_path}" = x; then
6271 x_default_search_path=${x_search_path}
6272 else
6273 x_default_search_path="${x_search_path}:${x_default_search_path}"
6274 fi
6275 done
6276 fi
6277 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6278 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6279 fi
6280
6281 if test x"${x_includes}" = x; then
6282 bitmapdir=/usr/include/X11/bitmaps
6283 else
6284 # accumulate include directories that have X11 bitmap subdirectories
6285 bmd_acc="dummyval"
6286 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6287 if test -d "${bmd}/X11/bitmaps"; then
6288 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6289 fi
6290 if test -d "${bmd}/bitmaps"; then
6291 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6292 fi
6293 done
6294 if test ${bmd_acc} != "dummyval"; then
6295 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6296 fi
6297 fi
6298
6299 case "${window_system}" in
6300 x11 )
6301 HAVE_X_WINDOWS=yes
6302 HAVE_X11=yes
6303 case "${with_x_toolkit}" in
6304 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6305 motif ) USE_X_TOOLKIT=MOTIF ;;
6306 no ) USE_X_TOOLKIT=none ;;
6307 * ) USE_X_TOOLKIT=maybe ;;
6308 esac
6309 ;;
6310 none )
6311 HAVE_X_WINDOWS=no
6312 HAVE_X11=no
6313 USE_X_TOOLKIT=none
6314 ;;
6315 esac
6316
6317 ### If we're using X11, we should use the X menu package.
6318 HAVE_MENUS=no
6319 case ${HAVE_X11} in
6320 yes ) HAVE_MENUS=yes ;;
6321 esac
6322
6323 if test "${opsys}" = "hpux9"; then
6324 case "${x_libraries}" in
6325 *X11R4* )
6326 opsysfile="s/hpux9-x11r4.h"
6327 ;;
6328 esac
6329 fi
6330
6331 if test "${opsys}" = "hpux9shr"; then
6332 case "${x_libraries}" in
6333 *X11R4* )
6334 opsysfile="s/hpux9shxr4.h"
6335 ;;
6336 esac
6337 fi
6338
6339 ### Compute the unexec source name from the object name.
6340 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6341
6342 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6343 # Assume not, until told otherwise.
6344 GNU_MALLOC=yes
6345 doug_lea_malloc=yes
6346 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6347 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6348 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351 cat >conftest.$ac_ext <<_ACEOF
6352 #line $LINENO "configure"
6353 #include "confdefs.h"
6354 /* System header to define __stub macros and hopefully few prototypes,
6355 which can conflict with char malloc_get_state (); below. */
6356 #include <assert.h>
6357 /* Override any gcc2 internal prototype to avoid an error. */
6358 #ifdef __cplusplus
6359 extern "C"
6360 #endif
6361 /* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6363 char malloc_get_state ();
6364 char (*f) ();
6365
6366 #ifdef F77_DUMMY_MAIN
6367 # ifdef __cplusplus
6368 extern "C"
6369 # endif
6370 int F77_DUMMY_MAIN() { return 1; }
6371 #endif
6372 int
6373 main ()
6374 {
6375 /* The GNU C library defines this for functions which it implements
6376 to always fail with ENOSYS. Some functions are actually named
6377 something starting with __ and the normal name is an alias. */
6378 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6379 choke me
6380 #else
6381 f = malloc_get_state;
6382 #endif
6383
6384 ;
6385 return 0;
6386 }
6387 _ACEOF
6388 rm -f conftest.$ac_objext conftest$ac_exeext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6390 (eval $ac_link) 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -s conftest$ac_exeext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 (eval $ac_try) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 ac_cv_func_malloc_get_state=yes
6401 else
6402 echo "$as_me: failed program was:" >&5
6403 cat conftest.$ac_ext >&5
6404 ac_cv_func_malloc_get_state=no
6405 fi
6406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6407 fi
6408 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6409 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6410 if test $ac_cv_func_malloc_get_state = yes; then
6411 :
6412 else
6413 doug_lea_malloc=no
6414 fi
6415
6416 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6417 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6418 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421 cat >conftest.$ac_ext <<_ACEOF
6422 #line $LINENO "configure"
6423 #include "confdefs.h"
6424 /* System header to define __stub macros and hopefully few prototypes,
6425 which can conflict with char malloc_set_state (); below. */
6426 #include <assert.h>
6427 /* Override any gcc2 internal prototype to avoid an error. */
6428 #ifdef __cplusplus
6429 extern "C"
6430 #endif
6431 /* We use char because int might match the return type of a gcc2
6432 builtin and then its argument prototype would still apply. */
6433 char malloc_set_state ();
6434 char (*f) ();
6435
6436 #ifdef F77_DUMMY_MAIN
6437 # ifdef __cplusplus
6438 extern "C"
6439 # endif
6440 int F77_DUMMY_MAIN() { return 1; }
6441 #endif
6442 int
6443 main ()
6444 {
6445 /* The GNU C library defines this for functions which it implements
6446 to always fail with ENOSYS. Some functions are actually named
6447 something starting with __ and the normal name is an alias. */
6448 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6449 choke me
6450 #else
6451 f = malloc_set_state;
6452 #endif
6453
6454 ;
6455 return 0;
6456 }
6457 _ACEOF
6458 rm -f conftest.$ac_objext conftest$ac_exeext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6460 (eval $ac_link) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try='test -s conftest$ac_exeext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 (eval $ac_try) 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_cv_func_malloc_set_state=yes
6471 else
6472 echo "$as_me: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6474 ac_cv_func_malloc_set_state=no
6475 fi
6476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6477 fi
6478 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6479 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6480 if test $ac_cv_func_malloc_set_state = yes; then
6481 :
6482 else
6483 doug_lea_malloc=no
6484 fi
6485
6486 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6487 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6488 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 else
6491 cat >conftest.$ac_ext <<_ACEOF
6492 #line $LINENO "configure"
6493 #include "confdefs.h"
6494 extern void (* __after_morecore_hook)();
6495 #ifdef F77_DUMMY_MAIN
6496 # ifdef __cplusplus
6497 extern "C"
6498 # endif
6499 int F77_DUMMY_MAIN() { return 1; }
6500 #endif
6501 int
6502 main ()
6503 {
6504 __after_morecore_hook = 0
6505 ;
6506 return 0;
6507 }
6508 _ACEOF
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -s conftest$ac_exeext'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 emacs_cv_var___after_morecore_hook=yes
6522 else
6523 echo "$as_me: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6525 emacs_cv_var___after_morecore_hook=no
6526 fi
6527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6528 fi
6529 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6530 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6531 if test $emacs_cv_var___after_morecore_hook = no; then
6532 doug_lea_malloc=no
6533 fi
6534 if test "${system_malloc}" = "yes"; then
6535 GNU_MALLOC=no
6536 GNU_MALLOC_reason="
6537 (The GNU allocators don't work with this system configuration.)"
6538 fi
6539 if test "$doug_lea_malloc" = "yes" ; then
6540 if test "$GNU_MALLOC" = yes ; then
6541 GNU_MALLOC_reason="
6542 (Using Doug Lea's new malloc from the GNU C Library.)"
6543 fi
6544
6545 cat >>confdefs.h <<\_ACEOF
6546 #define DOUG_LEA_MALLOC 1
6547 _ACEOF
6548
6549 fi
6550
6551 if test x"${REL_ALLOC}" = x; then
6552 REL_ALLOC=${GNU_MALLOC}
6553 fi
6554
6555
6556
6557
6558 for ac_header in stdlib.h unistd.h
6559 do
6560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6562 echo "$as_me:$LINENO: checking for $ac_header" >&5
6563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 fi
6567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6569 else
6570 # Is the header compilable?
6571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6573 cat >conftest.$ac_ext <<_ACEOF
6574 #line $LINENO "configure"
6575 #include "confdefs.h"
6576 $ac_includes_default
6577 #include <$ac_header>
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581 (eval $ac_compile) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -s conftest.$ac_objext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_header_compiler=yes
6592 else
6593 echo "$as_me: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6595 ac_header_compiler=no
6596 fi
6597 rm -f conftest.$ac_objext conftest.$ac_ext
6598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6599 echo "${ECHO_T}$ac_header_compiler" >&6
6600
6601 # Is the header present?
6602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6604 cat >conftest.$ac_ext <<_ACEOF
6605 #line $LINENO "configure"
6606 #include "confdefs.h"
6607 #include <$ac_header>
6608 _ACEOF
6609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6611 ac_status=$?
6612 egrep -v '^ *\+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } >/dev/null; then
6617 if test -s conftest.err; then
6618 ac_cpp_err=$ac_c_preproc_warn_flag
6619 else
6620 ac_cpp_err=
6621 fi
6622 else
6623 ac_cpp_err=yes
6624 fi
6625 if test -z "$ac_cpp_err"; then
6626 ac_header_preproc=yes
6627 else
6628 echo "$as_me: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6630 ac_header_preproc=no
6631 fi
6632 rm -f conftest.err conftest.$ac_ext
6633 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6634 echo "${ECHO_T}$ac_header_preproc" >&6
6635
6636 # So? What about this header?
6637 case $ac_header_compiler:$ac_header_preproc in
6638 yes:no )
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6643 no:yes )
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6650 esac
6651 echo "$as_me:$LINENO: checking for $ac_header" >&5
6652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656 eval "$as_ac_Header=$ac_header_preproc"
6657 fi
6658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6660
6661 fi
6662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6663 cat >>confdefs.h <<_ACEOF
6664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6665 _ACEOF
6666
6667 fi
6668
6669 done
6670
6671
6672 for ac_func in getpagesize
6673 do
6674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6675 echo "$as_me:$LINENO: checking for $ac_func" >&5
6676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6677 if eval "test \"\${$as_ac_var+set}\" = set"; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680 cat >conftest.$ac_ext <<_ACEOF
6681 #line $LINENO "configure"
6682 #include "confdefs.h"
6683 /* System header to define __stub macros and hopefully few prototypes,
6684 which can conflict with char $ac_func (); below. */
6685 #include <assert.h>
6686 /* Override any gcc2 internal prototype to avoid an error. */
6687 #ifdef __cplusplus
6688 extern "C"
6689 #endif
6690 /* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
6692 char $ac_func ();
6693 char (*f) ();
6694
6695 #ifdef F77_DUMMY_MAIN
6696 # ifdef __cplusplus
6697 extern "C"
6698 # endif
6699 int F77_DUMMY_MAIN() { return 1; }
6700 #endif
6701 int
6702 main ()
6703 {
6704 /* The GNU C library defines this for functions which it implements
6705 to always fail with ENOSYS. Some functions are actually named
6706 something starting with __ and the normal name is an alias. */
6707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6708 choke me
6709 #else
6710 f = $ac_func;
6711 #endif
6712
6713 ;
6714 return 0;
6715 }
6716 _ACEOF
6717 rm -f conftest.$ac_objext conftest$ac_exeext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6719 (eval $ac_link) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try='test -s conftest$ac_exeext'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 eval "$as_ac_var=yes"
6730 else
6731 echo "$as_me: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 eval "$as_ac_var=no"
6734 fi
6735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6736 fi
6737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6739 if test `eval echo '${'$as_ac_var'}'` = yes; then
6740 cat >>confdefs.h <<_ACEOF
6741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6742 _ACEOF
6743
6744 fi
6745 done
6746
6747 echo "$as_me:$LINENO: checking for working mmap" >&5
6748 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6749 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752 if test "$cross_compiling" = yes; then
6753 ac_cv_func_mmap_fixed_mapped=no
6754 else
6755 cat >conftest.$ac_ext <<_ACEOF
6756 #line $LINENO "configure"
6757 #include "confdefs.h"
6758 $ac_includes_default
6759 /* malloc might have been renamed as rpl_malloc. */
6760 #undef malloc
6761
6762 /* Thanks to Mike Haertel and Jim Avera for this test.
6763 Here is a matrix of mmap possibilities:
6764 mmap private not fixed
6765 mmap private fixed at somewhere currently unmapped
6766 mmap private fixed at somewhere already mapped
6767 mmap shared not fixed
6768 mmap shared fixed at somewhere currently unmapped
6769 mmap shared fixed at somewhere already mapped
6770 For private mappings, we should verify that changes cannot be read()
6771 back from the file, nor mmap's back from the file at a different
6772 address. (There have been systems where private was not correctly
6773 implemented like the infamous i386 svr4.0, and systems where the
6774 VM page cache was not coherent with the file system buffer cache
6775 like early versions of FreeBSD and possibly contemporary NetBSD.)
6776 For shared mappings, we should conversely verify that changes get
6777 propagated back to all the places they're supposed to be.
6778
6779 Grep wants private fixed already mapped.
6780 The main things grep needs to know about mmap are:
6781 * does it exist and is it safe to write into the mmap'd area
6782 * how to use it (BSD variants) */
6783
6784 #include <fcntl.h>
6785 #include <sys/mman.h>
6786
6787 #if !STDC_HEADERS && !HAVE_STDLIB_H
6788 char *malloc ();
6789 #endif
6790
6791 /* This mess was copied from the GNU getpagesize.h. */
6792 #if !HAVE_GETPAGESIZE
6793 /* Assume that all systems that can run configure have sys/param.h. */
6794 # if !HAVE_SYS_PARAM_H
6795 # define HAVE_SYS_PARAM_H 1
6796 # endif
6797
6798 # ifdef _SC_PAGESIZE
6799 # define getpagesize() sysconf(_SC_PAGESIZE)
6800 # else /* no _SC_PAGESIZE */
6801 # if HAVE_SYS_PARAM_H
6802 # include <sys/param.h>
6803 # ifdef EXEC_PAGESIZE
6804 # define getpagesize() EXEC_PAGESIZE
6805 # else /* no EXEC_PAGESIZE */
6806 # ifdef NBPG
6807 # define getpagesize() NBPG * CLSIZE
6808 # ifndef CLSIZE
6809 # define CLSIZE 1
6810 # endif /* no CLSIZE */
6811 # else /* no NBPG */
6812 # ifdef NBPC
6813 # define getpagesize() NBPC
6814 # else /* no NBPC */
6815 # ifdef PAGESIZE
6816 # define getpagesize() PAGESIZE
6817 # endif /* PAGESIZE */
6818 # endif /* no NBPC */
6819 # endif /* no NBPG */
6820 # endif /* no EXEC_PAGESIZE */
6821 # else /* no HAVE_SYS_PARAM_H */
6822 # define getpagesize() 8192 /* punt totally */
6823 # endif /* no HAVE_SYS_PARAM_H */
6824 # endif /* no _SC_PAGESIZE */
6825
6826 #endif /* no HAVE_GETPAGESIZE */
6827
6828 int
6829 main ()
6830 {
6831 char *data, *data2, *data3;
6832 int i, pagesize;
6833 int fd;
6834
6835 pagesize = getpagesize ();
6836
6837 /* First, make a file with some known garbage in it. */
6838 data = (char *) malloc (pagesize);
6839 if (!data)
6840 exit (1);
6841 for (i = 0; i < pagesize; ++i)
6842 *(data + i) = rand ();
6843 umask (0);
6844 fd = creat ("conftest.mmap", 0600);
6845 if (fd < 0)
6846 exit (1);
6847 if (write (fd, data, pagesize) != pagesize)
6848 exit (1);
6849 close (fd);
6850
6851 /* Next, try to mmap the file at a fixed address which already has
6852 something else allocated at it. If we can, also make sure that
6853 we see the same garbage. */
6854 fd = open ("conftest.mmap", O_RDWR);
6855 if (fd < 0)
6856 exit (1);
6857 data2 = (char *) malloc (2 * pagesize);
6858 if (!data2)
6859 exit (1);
6860 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6861 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6862 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6863 exit (1);
6864 for (i = 0; i < pagesize; ++i)
6865 if (*(data + i) != *(data2 + i))
6866 exit (1);
6867
6868 /* Finally, make sure that changes to the mapped area do not
6869 percolate back to the file as seen by read(). (This is a bug on
6870 some variants of i386 svr4.0.) */
6871 for (i = 0; i < pagesize; ++i)
6872 *(data2 + i) = *(data2 + i) + 1;
6873 data3 = (char *) malloc (pagesize);
6874 if (!data3)
6875 exit (1);
6876 if (read (fd, data3, pagesize) != pagesize)
6877 exit (1);
6878 for (i = 0; i < pagesize; ++i)
6879 if (*(data + i) != *(data3 + i))
6880 exit (1);
6881 close (fd);
6882 exit (0);
6883 }
6884 _ACEOF
6885 rm -f conftest$ac_exeext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6887 (eval $ac_link) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 ac_cv_func_mmap_fixed_mapped=yes
6897 else
6898 echo "$as_me: program exited with status $ac_status" >&5
6899 echo "$as_me: failed program was:" >&5
6900 cat conftest.$ac_ext >&5
6901 ( exit $ac_status )
6902 ac_cv_func_mmap_fixed_mapped=no
6903 fi
6904 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6905 fi
6906 fi
6907 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6908 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6909 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6910
6911 cat >>confdefs.h <<\_ACEOF
6912 #define HAVE_MMAP 1
6913 _ACEOF
6914
6915 fi
6916 rm -f conftest.mmap
6917
6918 if test $use_mmap_for_buffers = yes; then
6919 REL_ALLOC=no
6920 fi
6921
6922 LIBS="$libsrc_libs $LIBS"
6923
6924
6925 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6926 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6927 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930 ac_check_lib_save_LIBS=$LIBS
6931 LIBS="-ldnet $LIBS"
6932 cat >conftest.$ac_ext <<_ACEOF
6933 #line $LINENO "configure"
6934 #include "confdefs.h"
6935
6936 /* Override any gcc2 internal prototype to avoid an error. */
6937 #ifdef __cplusplus
6938 extern "C"
6939 #endif
6940 /* We use char because int might match the return type of a gcc2
6941 builtin and then its argument prototype would still apply. */
6942 char dnet_ntoa ();
6943 #ifdef F77_DUMMY_MAIN
6944 # ifdef __cplusplus
6945 extern "C"
6946 # endif
6947 int F77_DUMMY_MAIN() { return 1; }
6948 #endif
6949 int
6950 main ()
6951 {
6952 dnet_ntoa ();
6953 ;
6954 return 0;
6955 }
6956 _ACEOF
6957 rm -f conftest.$ac_objext conftest$ac_exeext
6958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6959 (eval $ac_link) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } &&
6963 { ac_try='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 ac_cv_lib_dnet_dnet_ntoa=yes
6970 else
6971 echo "$as_me: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6973 ac_cv_lib_dnet_dnet_ntoa=no
6974 fi
6975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6976 LIBS=$ac_check_lib_save_LIBS
6977 fi
6978 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6979 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6980 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6981 cat >>confdefs.h <<_ACEOF
6982 #define HAVE_LIBDNET 1
6983 _ACEOF
6984
6985 LIBS="-ldnet $LIBS"
6986
6987 fi
6988
6989
6990 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
6991 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6992 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 ac_check_lib_save_LIBS=$LIBS
6996 LIBS="-lXbsd $LIBS"
6997 cat >conftest.$ac_ext <<_ACEOF
6998 #line $LINENO "configure"
6999 #include "confdefs.h"
7000
7001
7002 #ifdef F77_DUMMY_MAIN
7003 # ifdef __cplusplus
7004 extern "C"
7005 # endif
7006 int F77_DUMMY_MAIN() { return 1; }
7007 #endif
7008 int
7009 main ()
7010 {
7011 main ();
7012 ;
7013 return 0;
7014 }
7015 _ACEOF
7016 rm -f conftest.$ac_objext conftest$ac_exeext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018 (eval $ac_link) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -s conftest$ac_exeext'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
7028 ac_cv_lib_Xbsd_main=yes
7029 else
7030 echo "$as_me: failed program was:" >&5
7031 cat conftest.$ac_ext >&5
7032 ac_cv_lib_Xbsd_main=no
7033 fi
7034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7035 LIBS=$ac_check_lib_save_LIBS
7036 fi
7037 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7038 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7039 if test $ac_cv_lib_Xbsd_main = yes; then
7040 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7041 fi
7042
7043
7044
7045 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7046 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7047 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050 ac_check_lib_save_LIBS=$LIBS
7051 LIBS="-lpthreads $LIBS"
7052 cat >conftest.$ac_ext <<_ACEOF
7053 #line $LINENO "configure"
7054 #include "confdefs.h"
7055
7056 /* Override any gcc2 internal prototype to avoid an error. */
7057 #ifdef __cplusplus
7058 extern "C"
7059 #endif
7060 /* We use char because int might match the return type of a gcc2
7061 builtin and then its argument prototype would still apply. */
7062 char cma_open ();
7063 #ifdef F77_DUMMY_MAIN
7064 # ifdef __cplusplus
7065 extern "C"
7066 # endif
7067 int F77_DUMMY_MAIN() { return 1; }
7068 #endif
7069 int
7070 main ()
7071 {
7072 cma_open ();
7073 ;
7074 return 0;
7075 }
7076 _ACEOF
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7079 (eval $ac_link) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); } &&
7083 { ac_try='test -s conftest$ac_exeext'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 (eval $ac_try) 2>&5
7086 ac_status=$?
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; }; then
7089 ac_cv_lib_pthreads_cma_open=yes
7090 else
7091 echo "$as_me: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7093 ac_cv_lib_pthreads_cma_open=no
7094 fi
7095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7096 LIBS=$ac_check_lib_save_LIBS
7097 fi
7098 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7099 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7100 if test $ac_cv_lib_pthreads_cma_open = yes; then
7101 cat >>confdefs.h <<_ACEOF
7102 #define HAVE_LIBPTHREADS 1
7103 _ACEOF
7104
7105 LIBS="-lpthreads $LIBS"
7106
7107 fi
7108
7109
7110 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7111 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7112 if test -d /usr/X386/include; then
7113 HAVE_XFREE386=yes
7114 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7115 else
7116 HAVE_XFREE386=no
7117 fi
7118 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7119 echo "${ECHO_T}$HAVE_XFREE386" >&6
7120
7121 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
7122 # for the tests that follow. We set it back to REAL_CFLAGS later on.
7123
7124 REAL_CPPFLAGS="$CPPFLAGS"
7125
7126 if test "${HAVE_X11}" = "yes"; then
7127 DEFS="$C_SWITCH_X_SITE $DEFS"
7128 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7129 LIBS="$LIBX $LIBS"
7130 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7131 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7132
7133 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7134 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7135 # but it's more convenient here to set LD_RUN_PATH
7136 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7137 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7138 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7139 export LD_RUN_PATH
7140 fi
7141
7142 if test "${opsys}" = "gnu-linux"; then
7143 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7144 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7145 cat >conftest.$ac_ext <<_ACEOF
7146 #line $LINENO "configure"
7147 #include "confdefs.h"
7148
7149 #ifdef F77_DUMMY_MAIN
7150 # ifdef __cplusplus
7151 extern "C"
7152 # endif
7153 int F77_DUMMY_MAIN() { return 1; }
7154 #endif
7155 int
7156 main ()
7157 {
7158 XOpenDisplay ("foo");
7159 ;
7160 return 0;
7161 }
7162 _ACEOF
7163 rm -f conftest.$ac_objext conftest$ac_exeext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7165 (eval $ac_link) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } &&
7169 { ac_try='test -s conftest$ac_exeext'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 (eval $ac_try) 2>&5
7172 ac_status=$?
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7175 xlinux_first_failure=no
7176 else
7177 echo "$as_me: failed program was:" >&5
7178 cat conftest.$ac_ext >&5
7179 xlinux_first_failure=yes
7180 fi
7181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7182 if test "${xlinux_first_failure}" = "yes"; then
7183 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7184 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7185 OLD_CPPFLAGS="$CPPFLAGS"
7186 OLD_LIBS="$LIBS"
7187 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7188 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7189 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7190 LIBS="$LIBS -b i486-linuxaout"
7191 cat >conftest.$ac_ext <<_ACEOF
7192 #line $LINENO "configure"
7193 #include "confdefs.h"
7194
7195 #ifdef F77_DUMMY_MAIN
7196 # ifdef __cplusplus
7197 extern "C"
7198 # endif
7199 int F77_DUMMY_MAIN() { return 1; }
7200 #endif
7201 int
7202 main ()
7203 {
7204 XOpenDisplay ("foo");
7205 ;
7206 return 0;
7207 }
7208 _ACEOF
7209 rm -f conftest.$ac_objext conftest$ac_exeext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7211 (eval $ac_link) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } &&
7215 { ac_try='test -s conftest$ac_exeext'
7216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217 (eval $ac_try) 2>&5
7218 ac_status=$?
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; }; then
7221 xlinux_second_failure=no
7222 else
7223 echo "$as_me: failed program was:" >&5
7224 cat conftest.$ac_ext >&5
7225 xlinux_second_failure=yes
7226 fi
7227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7228 if test "${xlinux_second_failure}" = "yes"; then
7229 # If we get the same failure with -b, there is no use adding -b.
7230 # So take it out. This plays safe.
7231 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7232 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7233 CPPFLAGS="$OLD_CPPFLAGS"
7234 LIBS="$OLD_LIBS"
7235 echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6
7237 else
7238 echo "$as_me:$LINENO: result: yes" >&5
7239 echo "${ECHO_T}yes" >&6
7240 fi
7241 else
7242 echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6
7244 fi
7245 fi
7246
7247 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7248 # header files included from there.
7249 echo "$as_me:$LINENO: checking for Xkb" >&5
7250 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7251 cat >conftest.$ac_ext <<_ACEOF
7252 #line $LINENO "configure"
7253 #include "confdefs.h"
7254 #include <X11/Xlib.h>
7255 #include <X11/XKBlib.h>
7256 #ifdef F77_DUMMY_MAIN
7257 # ifdef __cplusplus
7258 extern "C"
7259 # endif
7260 int F77_DUMMY_MAIN() { return 1; }
7261 #endif
7262 int
7263 main ()
7264 {
7265 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7266 ;
7267 return 0;
7268 }
7269 _ACEOF
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7272 (eval $ac_link) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 emacs_xkb=yes
7283 else
7284 echo "$as_me: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7286 emacs_xkb=no
7287 fi
7288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7289 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7290 echo "${ECHO_T}$emacs_xkb" >&6
7291 if test $emacs_xkb = yes; then
7292
7293 cat >>confdefs.h <<\_ACEOF
7294 #define HAVE_XKBGETKEYBOARD 1
7295 _ACEOF
7296
7297 fi
7298
7299
7300
7301
7302
7303 for ac_func in XrmSetDatabase XScreenResourceString \
7304 XScreenNumberOfScreen XSetWMProtocols
7305 do
7306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7307 echo "$as_me:$LINENO: checking for $ac_func" >&5
7308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7309 if eval "test \"\${$as_ac_var+set}\" = set"; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312 cat >conftest.$ac_ext <<_ACEOF
7313 #line $LINENO "configure"
7314 #include "confdefs.h"
7315 /* System header to define __stub macros and hopefully few prototypes,
7316 which can conflict with char $ac_func (); below. */
7317 #include <assert.h>
7318 /* Override any gcc2 internal prototype to avoid an error. */
7319 #ifdef __cplusplus
7320 extern "C"
7321 #endif
7322 /* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */
7324 char $ac_func ();
7325 char (*f) ();
7326
7327 #ifdef F77_DUMMY_MAIN
7328 # ifdef __cplusplus
7329 extern "C"
7330 # endif
7331 int F77_DUMMY_MAIN() { return 1; }
7332 #endif
7333 int
7334 main ()
7335 {
7336 /* The GNU C library defines this for functions which it implements
7337 to always fail with ENOSYS. Some functions are actually named
7338 something starting with __ and the normal name is an alias. */
7339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7340 choke me
7341 #else
7342 f = $ac_func;
7343 #endif
7344
7345 ;
7346 return 0;
7347 }
7348 _ACEOF
7349 rm -f conftest.$ac_objext conftest$ac_exeext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351 (eval $ac_link) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -s conftest$ac_exeext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 eval "$as_ac_var=yes"
7362 else
7363 echo "$as_me: failed program was:" >&5
7364 cat conftest.$ac_ext >&5
7365 eval "$as_ac_var=no"
7366 fi
7367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7368 fi
7369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7371 if test `eval echo '${'$as_ac_var'}'` = yes; then
7372 cat >>confdefs.h <<_ACEOF
7373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7374 _ACEOF
7375
7376 fi
7377 done
7378
7379 fi
7380
7381 if test "${window_system}" = "x11"; then
7382 echo "$as_me:$LINENO: checking X11 version 6" >&5
7383 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7384 if test "${emacs_cv_x11_version_6+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387 cat >conftest.$ac_ext <<_ACEOF
7388 #line $LINENO "configure"
7389 #include "confdefs.h"
7390 #include <X11/Xlib.h>
7391 #ifdef F77_DUMMY_MAIN
7392 # ifdef __cplusplus
7393 extern "C"
7394 # endif
7395 int F77_DUMMY_MAIN() { return 1; }
7396 #endif
7397 int
7398 main ()
7399 {
7400 #if XlibSpecificationRelease < 6
7401 fail;
7402 #endif
7403
7404 ;
7405 return 0;
7406 }
7407 _ACEOF
7408 rm -f conftest.$ac_objext conftest$ac_exeext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7410 (eval $ac_link) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try='test -s conftest$ac_exeext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 emacs_cv_x11_version_6=yes
7421 else
7422 echo "$as_me: failed program was:" >&5
7423 cat conftest.$ac_ext >&5
7424 emacs_cv_x11_version_6=no
7425 fi
7426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7427 fi
7428
7429 if test $emacs_cv_x11_version_6 = yes; then
7430 echo "$as_me:$LINENO: result: 6 or newer" >&5
7431 echo "${ECHO_T}6 or newer" >&6
7432
7433 cat >>confdefs.h <<\_ACEOF
7434 #define HAVE_X11R6 1
7435 _ACEOF
7436
7437 else
7438 echo "$as_me:$LINENO: result: before 6" >&5
7439 echo "${ECHO_T}before 6" >&6
7440 fi
7441 fi
7442
7443 if test "${window_system}" = "x11"; then
7444 echo "$as_me:$LINENO: checking X11 version 5" >&5
7445 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7446 if test "${emacs_cv_x11_version_5+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449 cat >conftest.$ac_ext <<_ACEOF
7450 #line $LINENO "configure"
7451 #include "confdefs.h"
7452 #include <X11/Xlib.h>
7453 #ifdef F77_DUMMY_MAIN
7454 # ifdef __cplusplus
7455 extern "C"
7456 # endif
7457 int F77_DUMMY_MAIN() { return 1; }
7458 #endif
7459 int
7460 main ()
7461 {
7462 #if XlibSpecificationRelease < 5
7463 fail;
7464 #endif
7465
7466 ;
7467 return 0;
7468 }
7469 _ACEOF
7470 rm -f conftest.$ac_objext conftest$ac_exeext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } &&
7476 { ac_try='test -s conftest$ac_exeext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 emacs_cv_x11_version_5=yes
7483 else
7484 echo "$as_me: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7486 emacs_cv_x11_version_5=no
7487 fi
7488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7489 fi
7490
7491 if test $emacs_cv_x11_version_5 = yes; then
7492 echo "$as_me:$LINENO: result: 5 or newer" >&5
7493 echo "${ECHO_T}5 or newer" >&6
7494 HAVE_X11R5=yes
7495
7496 cat >>confdefs.h <<\_ACEOF
7497 #define HAVE_X11R5 1
7498 _ACEOF
7499
7500 else
7501 HAVE_X11R5=no
7502 echo "$as_me:$LINENO: result: before 5" >&5
7503 echo "${ECHO_T}before 5" >&6
7504 fi
7505 fi
7506
7507 if test x"${USE_X_TOOLKIT}" = xmaybe; then
7508 if test x"${HAVE_X11R5}" = xyes; then
7509 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7510 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7511 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514 cat >conftest.$ac_ext <<_ACEOF
7515 #line $LINENO "configure"
7516 #include "confdefs.h"
7517
7518 #include <X11/Intrinsic.h>
7519 #include <X11/Xaw/Simple.h>
7520 #ifdef F77_DUMMY_MAIN
7521 # ifdef __cplusplus
7522 extern "C"
7523 # endif
7524 int F77_DUMMY_MAIN() { return 1; }
7525 #endif
7526 int
7527 main ()
7528 {
7529
7530 ;
7531 return 0;
7532 }
7533 _ACEOF
7534 rm -f conftest.$ac_objext conftest$ac_exeext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7536 (eval $ac_link) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -s conftest$ac_exeext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 (eval $ac_try) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 emacs_cv_x11_version_5_with_xaw=yes
7547 else
7548 echo "$as_me: failed program was:" >&5
7549 cat conftest.$ac_ext >&5
7550 emacs_cv_x11_version_5_with_xaw=no
7551 fi
7552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7553 fi
7554
7555 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7556 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7557 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7558 USE_X_TOOLKIT=LUCID
7559 else
7560 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7561 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7562 USE_X_TOOLKIT=none
7563 fi
7564 else
7565 USE_X_TOOLKIT=none
7566 fi
7567 fi
7568
7569 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
7570
7571 if test "${USE_X_TOOLKIT}" != "none"; then
7572 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7573 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7574 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577 cat >conftest.$ac_ext <<_ACEOF
7578 #line $LINENO "configure"
7579 #include "confdefs.h"
7580 #include <X11/Intrinsic.h>
7581 #ifdef F77_DUMMY_MAIN
7582 # ifdef __cplusplus
7583 extern "C"
7584 # endif
7585 int F77_DUMMY_MAIN() { return 1; }
7586 #endif
7587 int
7588 main ()
7589 {
7590 #if XtSpecificationRelease < 6
7591 fail;
7592 #endif
7593
7594 ;
7595 return 0;
7596 }
7597 _ACEOF
7598 rm -f conftest.$ac_objext conftest$ac_exeext
7599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7600 (eval $ac_link) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } &&
7604 { ac_try='test -s conftest$ac_exeext'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 (eval $ac_try) 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7610 emacs_cv_x11_toolkit_version_6=yes
7611 else
7612 echo "$as_me: failed program was:" >&5
7613 cat conftest.$ac_ext >&5
7614 emacs_cv_x11_toolkit_version_6=no
7615 fi
7616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7617 fi
7618
7619 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
7620 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7621 echo "$as_me:$LINENO: result: 6 or newer" >&5
7622 echo "${ECHO_T}6 or newer" >&6
7623
7624 cat >>confdefs.h <<\_ACEOF
7625 #define HAVE_X11XTR6 1
7626 _ACEOF
7627
7628 else
7629 echo "$as_me:$LINENO: result: before 6" >&5
7630 echo "${ECHO_T}before 6" >&6
7631 fi
7632
7633 OLDLIBS="$LIBS"
7634 if test x$HAVE_X11XTR6 = xyes; then
7635 LIBS="-lXt -lSM -lICE $LIBS"
7636 else
7637 LIBS="-lXt $LIBS"
7638 fi
7639
7640 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7641 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7642 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645 ac_check_lib_save_LIBS=$LIBS
7646 LIBS="-lXmu $LIBS"
7647 cat >conftest.$ac_ext <<_ACEOF
7648 #line $LINENO "configure"
7649 #include "confdefs.h"
7650
7651 /* Override any gcc2 internal prototype to avoid an error. */
7652 #ifdef __cplusplus
7653 extern "C"
7654 #endif
7655 /* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7657 char XmuConvertStandardSelection ();
7658 #ifdef F77_DUMMY_MAIN
7659 # ifdef __cplusplus
7660 extern "C"
7661 # endif
7662 int F77_DUMMY_MAIN() { return 1; }
7663 #endif
7664 int
7665 main ()
7666 {
7667 XmuConvertStandardSelection ();
7668 ;
7669 return 0;
7670 }
7671 _ACEOF
7672 rm -f conftest.$ac_objext conftest$ac_exeext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } &&
7678 { ac_try='test -s conftest$ac_exeext'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 (eval $ac_try) 2>&5
7681 ac_status=$?
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; }; then
7684 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
7685 else
7686 echo "$as_me: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7688 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
7689 fi
7690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7691 LIBS=$ac_check_lib_save_LIBS
7692 fi
7693 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7694 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7695 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7696 cat >>confdefs.h <<_ACEOF
7697 #define HAVE_LIBXMU 1
7698 _ACEOF
7699
7700 LIBS="-lXmu $LIBS"
7701
7702 fi
7703
7704 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
7705 fi
7706
7707 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7708 if test "${HAVE_X11}" = "yes"; then
7709 if test "${USE_X_TOOLKIT}" != "none"; then
7710
7711 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7712 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7713 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716 ac_check_lib_save_LIBS=$LIBS
7717 LIBS="-lXext $LIBS"
7718 cat >conftest.$ac_ext <<_ACEOF
7719 #line $LINENO "configure"
7720 #include "confdefs.h"
7721
7722 /* Override any gcc2 internal prototype to avoid an error. */
7723 #ifdef __cplusplus
7724 extern "C"
7725 #endif
7726 /* We use char because int might match the return type of a gcc2
7727 builtin and then its argument prototype would still apply. */
7728 char XShapeQueryExtension ();
7729 #ifdef F77_DUMMY_MAIN
7730 # ifdef __cplusplus
7731 extern "C"
7732 # endif
7733 int F77_DUMMY_MAIN() { return 1; }
7734 #endif
7735 int
7736 main ()
7737 {
7738 XShapeQueryExtension ();
7739 ;
7740 return 0;
7741 }
7742 _ACEOF
7743 rm -f conftest.$ac_objext conftest$ac_exeext
7744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745 (eval $ac_link) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -s conftest$ac_exeext'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751 (eval $ac_try) 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7755 ac_cv_lib_Xext_XShapeQueryExtension=yes
7756 else
7757 echo "$as_me: failed program was:" >&5
7758 cat conftest.$ac_ext >&5
7759 ac_cv_lib_Xext_XShapeQueryExtension=no
7760 fi
7761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7762 LIBS=$ac_check_lib_save_LIBS
7763 fi
7764 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7765 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7766 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7767 cat >>confdefs.h <<_ACEOF
7768 #define HAVE_LIBXEXT 1
7769 _ACEOF
7770
7771 LIBS="-lXext $LIBS"
7772
7773 fi
7774
7775 fi
7776 fi
7777
7778 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7779 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
7780 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
7781 if test "${emacs_cv_motif_version_2_1+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784 cat >conftest.$ac_ext <<_ACEOF
7785 #line $LINENO "configure"
7786 #include "confdefs.h"
7787 #include <Xm/Xm.h>
7788 #ifdef F77_DUMMY_MAIN
7789 # ifdef __cplusplus
7790 extern "C"
7791 # endif
7792 int F77_DUMMY_MAIN() { return 1; }
7793 #endif
7794 int
7795 main ()
7796 {
7797 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
7798 int x = 5;
7799 #else
7800 Motif version prior to 2.1.
7801 #endif
7802 ;
7803 return 0;
7804 }
7805 _ACEOF
7806 rm -f conftest.$ac_objext
7807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7808 (eval $ac_compile) 2>&5
7809 ac_status=$?
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
7812 { ac_try='test -s conftest.$ac_objext'
7813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814 (eval $ac_try) 2>&5
7815 ac_status=$?
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7818 emacs_cv_motif_version_2_1=yes
7819 else
7820 echo "$as_me: failed program was:" >&5
7821 cat conftest.$ac_ext >&5
7822 emacs_cv_motif_version_2_1=no
7823 fi
7824 rm -f conftest.$ac_objext conftest.$ac_ext
7825 fi
7826 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
7827 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
7828 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
7829 if test $emacs_cv_motif_version_2_1 = yes; then
7830 HAVE_LIBXP=no
7831
7832 cat >>confdefs.h <<\_ACEOF
7833 #define HAVE_MOTIF_2_1 1
7834 _ACEOF
7835
7836 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
7837 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
7838 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841 ac_check_lib_save_LIBS=$LIBS
7842 LIBS="-lXp $LIBS"
7843 cat >conftest.$ac_ext <<_ACEOF
7844 #line $LINENO "configure"
7845 #include "confdefs.h"
7846
7847 /* Override any gcc2 internal prototype to avoid an error. */
7848 #ifdef __cplusplus
7849 extern "C"
7850 #endif
7851 /* We use char because int might match the return type of a gcc2
7852 builtin and then its argument prototype would still apply. */
7853 char XpCreateContext ();
7854 #ifdef F77_DUMMY_MAIN
7855 # ifdef __cplusplus
7856 extern "C"
7857 # endif
7858 int F77_DUMMY_MAIN() { return 1; }
7859 #endif
7860 int
7861 main ()
7862 {
7863 XpCreateContext ();
7864 ;
7865 return 0;
7866 }
7867 _ACEOF
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7870 (eval $ac_link) 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -s conftest$ac_exeext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 (eval $ac_try) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880 ac_cv_lib_Xp_XpCreateContext=yes
7881 else
7882 echo "$as_me: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7884 ac_cv_lib_Xp_XpCreateContext=no
7885 fi
7886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7887 LIBS=$ac_check_lib_save_LIBS
7888 fi
7889 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
7890 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
7891 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
7892 HAVE_LIBXP=yes
7893 fi
7894
7895 if test ${HAVE_LIBXP} = yes; then
7896
7897 cat >>confdefs.h <<\_ACEOF
7898 #define HAVE_LIBXP 1
7899 _ACEOF
7900
7901 fi
7902 fi
7903 fi
7904
7905 ### Is -lXaw3d available?
7906 HAVE_XAW3D=no
7907 if test "${HAVE_X11}" = "yes"; then
7908 if test "${USE_X_TOOLKIT}" != "none"; then
7909 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7910 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7911 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7912 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 fi
7915 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7916 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7917 else
7918 # Is the header compilable?
7919 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
7920 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
7921 cat >conftest.$ac_ext <<_ACEOF
7922 #line $LINENO "configure"
7923 #include "confdefs.h"
7924 $ac_includes_default
7925 #include <X11/Xaw3d/Scrollbar.h>
7926 _ACEOF
7927 rm -f conftest.$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -s conftest.$ac_objext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 (eval $ac_try) 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_header_compiler=yes
7940 else
7941 echo "$as_me: failed program was:" >&5
7942 cat conftest.$ac_ext >&5
7943 ac_header_compiler=no
7944 fi
7945 rm -f conftest.$ac_objext conftest.$ac_ext
7946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7947 echo "${ECHO_T}$ac_header_compiler" >&6
7948
7949 # Is the header present?
7950 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
7951 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
7952 cat >conftest.$ac_ext <<_ACEOF
7953 #line $LINENO "configure"
7954 #include "confdefs.h"
7955 #include <X11/Xaw3d/Scrollbar.h>
7956 _ACEOF
7957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7959 ac_status=$?
7960 egrep -v '^ *\+' conftest.er1 >conftest.err
7961 rm -f conftest.er1
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } >/dev/null; then
7965 if test -s conftest.err; then
7966 ac_cpp_err=$ac_c_preproc_warn_flag
7967 else
7968 ac_cpp_err=
7969 fi
7970 else
7971 ac_cpp_err=yes
7972 fi
7973 if test -z "$ac_cpp_err"; then
7974 ac_header_preproc=yes
7975 else
7976 echo "$as_me: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7978 ac_header_preproc=no
7979 fi
7980 rm -f conftest.err conftest.$ac_ext
7981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7982 echo "${ECHO_T}$ac_header_preproc" >&6
7983
7984 # So? What about this header?
7985 case $ac_header_compiler:$ac_header_preproc in
7986 yes:no )
7987 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
7988 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7989 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7990 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7991 no:yes )
7992 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
7993 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
7995 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
7996 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7997 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7998 esac
7999 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8000 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8001 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004 ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
8005 fi
8006 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8007 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8008
8009 fi
8010 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8011 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8012 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8013 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016 ac_check_lib_save_LIBS=$LIBS
8017 LIBS="-lXaw3d $LIBS"
8018 cat >conftest.$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8020 #include "confdefs.h"
8021
8022 /* Override any gcc2 internal prototype to avoid an error. */
8023 #ifdef __cplusplus
8024 extern "C"
8025 #endif
8026 /* We use char because int might match the return type of a gcc2
8027 builtin and then its argument prototype would still apply. */
8028 char XawScrollbarSetThumb ();
8029 #ifdef F77_DUMMY_MAIN
8030 # ifdef __cplusplus
8031 extern "C"
8032 # endif
8033 int F77_DUMMY_MAIN() { return 1; }
8034 #endif
8035 int
8036 main ()
8037 {
8038 XawScrollbarSetThumb ();
8039 ;
8040 return 0;
8041 }
8042 _ACEOF
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045 (eval $ac_link) 2>&5
8046 ac_status=$?
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -s conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8056 else
8057 echo "$as_me: failed program was:" >&5
8058 cat conftest.$ac_ext >&5
8059 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8060 fi
8061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8062 LIBS=$ac_check_lib_save_LIBS
8063 fi
8064 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8065 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8066 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8067 HAVE_XAW3D=yes
8068 fi
8069
8070 fi
8071
8072
8073 if test "${HAVE_XAW3D}" = "yes"; then
8074
8075 cat >>confdefs.h <<\_ACEOF
8076 #define HAVE_XAW3D 1
8077 _ACEOF
8078
8079 fi
8080 fi
8081 fi
8082
8083
8084
8085 USE_TOOLKIT_SCROLL_BARS=no
8086 if test "${with_toolkit_scroll_bars}" != "no"; then
8087 if test "${USE_X_TOOLKIT}" != "none"; then
8088 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8089 cat >>confdefs.h <<\_ACEOF
8090 #define USE_TOOLKIT_SCROLL_BARS 1
8091 _ACEOF
8092
8093 HAVE_XAW3D=no
8094 USE_TOOLKIT_SCROLL_BARS=yes
8095 elif test "${HAVE_XAW3D}" = "yes"; then
8096 cat >>confdefs.h <<\_ACEOF
8097 #define USE_TOOLKIT_SCROLL_BARS 1
8098 _ACEOF
8099
8100 USE_TOOLKIT_SCROLL_BARS=yes
8101 fi
8102 fi
8103 fi
8104
8105
8106 if test "${with_xim}" != "no"; then
8107
8108 cat >>confdefs.h <<\_ACEOF
8109 #define USE_XIM 1
8110 _ACEOF
8111
8112 fi
8113
8114 ### Use -lXpm if available, unless `--with-xpm=no'.
8115 HAVE_XPM=no
8116 if test "${HAVE_X11}" = "yes"; then
8117 if test "${with_xpm}" != "no"; then
8118 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8119 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8120 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8121 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 fi
8124 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8125 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8126 else
8127 # Is the header compilable?
8128 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8129 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8130 cat >conftest.$ac_ext <<_ACEOF
8131 #line $LINENO "configure"
8132 #include "confdefs.h"
8133 $ac_includes_default
8134 #include <X11/xpm.h>
8135 _ACEOF
8136 rm -f conftest.$ac_objext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138 (eval $ac_compile) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -s conftest.$ac_objext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 (eval $ac_try) 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 ac_header_compiler=yes
8149 else
8150 echo "$as_me: failed program was:" >&5
8151 cat conftest.$ac_ext >&5
8152 ac_header_compiler=no
8153 fi
8154 rm -f conftest.$ac_objext conftest.$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8156 echo "${ECHO_T}$ac_header_compiler" >&6
8157
8158 # Is the header present?
8159 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8160 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8161 cat >conftest.$ac_ext <<_ACEOF
8162 #line $LINENO "configure"
8163 #include "confdefs.h"
8164 #include <X11/xpm.h>
8165 _ACEOF
8166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8168 ac_status=$?
8169 egrep -v '^ *\+' conftest.er1 >conftest.err
8170 rm -f conftest.er1
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } >/dev/null; then
8174 if test -s conftest.err; then
8175 ac_cpp_err=$ac_c_preproc_warn_flag
8176 else
8177 ac_cpp_err=
8178 fi
8179 else
8180 ac_cpp_err=yes
8181 fi
8182 if test -z "$ac_cpp_err"; then
8183 ac_header_preproc=yes
8184 else
8185 echo "$as_me: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8187 ac_header_preproc=no
8188 fi
8189 rm -f conftest.err conftest.$ac_ext
8190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8191 echo "${ECHO_T}$ac_header_preproc" >&6
8192
8193 # So? What about this header?
8194 case $ac_header_compiler:$ac_header_preproc in
8195 yes:no )
8196 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8197 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8198 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8199 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8200 no:yes )
8201 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8202 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8204 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8206 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8207 esac
8208 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8209 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8210 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 else
8213 ac_cv_header_X11_xpm_h=$ac_header_preproc
8214 fi
8215 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8216 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8217
8218 fi
8219 if test $ac_cv_header_X11_xpm_h = yes; then
8220 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8221 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8222 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225 ac_check_lib_save_LIBS=$LIBS
8226 LIBS="-lXpm -lX11 $LIBS"
8227 cat >conftest.$ac_ext <<_ACEOF
8228 #line $LINENO "configure"
8229 #include "confdefs.h"
8230
8231 /* Override any gcc2 internal prototype to avoid an error. */
8232 #ifdef __cplusplus
8233 extern "C"
8234 #endif
8235 /* We use char because int might match the return type of a gcc2
8236 builtin and then its argument prototype would still apply. */
8237 char XpmReadFileToPixmap ();
8238 #ifdef F77_DUMMY_MAIN
8239 # ifdef __cplusplus
8240 extern "C"
8241 # endif
8242 int F77_DUMMY_MAIN() { return 1; }
8243 #endif
8244 int
8245 main ()
8246 {
8247 XpmReadFileToPixmap ();
8248 ;
8249 return 0;
8250 }
8251 _ACEOF
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254 (eval $ac_link) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -s conftest$ac_exeext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 cat conftest.$ac_ext >&5
8268 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8269 fi
8270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8271 LIBS=$ac_check_lib_save_LIBS
8272 fi
8273 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8274 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8275 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8276 HAVE_XPM=yes
8277 fi
8278
8279 fi
8280
8281
8282 if test "${HAVE_XPM}" = "yes"; then
8283 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8284 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8285 cat >conftest.$ac_ext <<_ACEOF
8286 #line $LINENO "configure"
8287 #include "confdefs.h"
8288 #include "X11/xpm.h"
8289 #ifndef XpmReturnAllocPixels
8290 no_return_alloc_pixels
8291 #endif
8292
8293 _ACEOF
8294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8295 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
8296 HAVE_XPM=no
8297 else
8298 HAVE_XPM=yes
8299 fi
8300 rm -f conftest*
8301
8302
8303 if test "${HAVE_XPM}" = "yes"; then
8304 echo "$as_me:$LINENO: result: yes" >&5
8305 echo "${ECHO_T}yes" >&6
8306 else
8307 echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8309 fi
8310 fi
8311 fi
8312
8313 if test "${HAVE_XPM}" = "yes"; then
8314
8315 cat >>confdefs.h <<\_ACEOF
8316 #define HAVE_XPM 1
8317 _ACEOF
8318
8319 fi
8320 fi
8321
8322 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8323 HAVE_JPEG=no
8324 if test "${HAVE_X11}" = "yes"; then
8325 if test "${with_jpeg}" != "no"; then
8326 if test "${ac_cv_header_jerror_h+set}" = set; then
8327 echo "$as_me:$LINENO: checking for jerror.h" >&5
8328 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8329 if test "${ac_cv_header_jerror_h+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 fi
8332 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8333 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8334 else
8335 # Is the header compilable?
8336 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8337 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8338 cat >conftest.$ac_ext <<_ACEOF
8339 #line $LINENO "configure"
8340 #include "confdefs.h"
8341 $ac_includes_default
8342 #include <jerror.h>
8343 _ACEOF
8344 rm -f conftest.$ac_objext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8346 (eval $ac_compile) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_header_compiler=yes
8357 else
8358 echo "$as_me: failed program was:" >&5
8359 cat conftest.$ac_ext >&5
8360 ac_header_compiler=no
8361 fi
8362 rm -f conftest.$ac_objext conftest.$ac_ext
8363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8364 echo "${ECHO_T}$ac_header_compiler" >&6
8365
8366 # Is the header present?
8367 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8368 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8369 cat >conftest.$ac_ext <<_ACEOF
8370 #line $LINENO "configure"
8371 #include "confdefs.h"
8372 #include <jerror.h>
8373 _ACEOF
8374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8376 ac_status=$?
8377 egrep -v '^ *\+' conftest.er1 >conftest.err
8378 rm -f conftest.er1
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } >/dev/null; then
8382 if test -s conftest.err; then
8383 ac_cpp_err=$ac_c_preproc_warn_flag
8384 else
8385 ac_cpp_err=
8386 fi
8387 else
8388 ac_cpp_err=yes
8389 fi
8390 if test -z "$ac_cpp_err"; then
8391 ac_header_preproc=yes
8392 else
8393 echo "$as_me: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8395 ac_header_preproc=no
8396 fi
8397 rm -f conftest.err conftest.$ac_ext
8398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8399 echo "${ECHO_T}$ac_header_preproc" >&6
8400
8401 # So? What about this header?
8402 case $ac_header_compiler:$ac_header_preproc in
8403 yes:no )
8404 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8405 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8406 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8407 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8408 no:yes )
8409 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8410 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8411 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8412 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8413 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8414 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8415 esac
8416 echo "$as_me:$LINENO: checking for jerror.h" >&5
8417 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8418 if test "${ac_cv_header_jerror_h+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421 ac_cv_header_jerror_h=$ac_header_preproc
8422 fi
8423 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8424 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8425
8426 fi
8427 if test $ac_cv_header_jerror_h = yes; then
8428 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8429 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8430 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433 ac_check_lib_save_LIBS=$LIBS
8434 LIBS="-ljpeg $LIBS"
8435 cat >conftest.$ac_ext <<_ACEOF
8436 #line $LINENO "configure"
8437 #include "confdefs.h"
8438
8439 /* Override any gcc2 internal prototype to avoid an error. */
8440 #ifdef __cplusplus
8441 extern "C"
8442 #endif
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8445 char jpeg_destroy_compress ();
8446 #ifdef F77_DUMMY_MAIN
8447 # ifdef __cplusplus
8448 extern "C"
8449 # endif
8450 int F77_DUMMY_MAIN() { return 1; }
8451 #endif
8452 int
8453 main ()
8454 {
8455 jpeg_destroy_compress ();
8456 ;
8457 return 0;
8458 }
8459 _ACEOF
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8462 (eval $ac_link) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
8466 { ac_try='test -s conftest$ac_exeext'
8467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 (eval $ac_try) 2>&5
8469 ac_status=$?
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
8472 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
8473 else
8474 echo "$as_me: failed program was:" >&5
8475 cat conftest.$ac_ext >&5
8476 ac_cv_lib_jpeg_jpeg_destroy_compress=no
8477 fi
8478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8479 LIBS=$ac_check_lib_save_LIBS
8480 fi
8481 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8482 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8483 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8484 HAVE_JPEG=yes
8485 fi
8486
8487 fi
8488
8489
8490 fi
8491
8492
8493 if test "${HAVE_JPEG}" = "yes"; then
8494 cat >>confdefs.h <<\_ACEOF
8495 #define HAVE_JPEG 1
8496 _ACEOF
8497
8498 cat >conftest.$ac_ext <<_ACEOF
8499 #line $LINENO "configure"
8500 #include "confdefs.h"
8501 #include <jpeglib.h>
8502 version=JPEG_LIB_VERSION
8503
8504 _ACEOF
8505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8506 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
8507 cat >>confdefs.h <<\_ACEOF
8508 #define HAVE_JPEG 1
8509 _ACEOF
8510
8511 else
8512 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8513 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8514 HAVE_JPEG=no
8515 fi
8516 rm -f conftest*
8517
8518 fi
8519 fi
8520
8521 ### Use -lpng if available, unless `--with-png=no'.
8522 HAVE_PNG=no
8523 if test "${HAVE_X11}" = "yes"; then
8524 if test "${with_png}" != "no"; then
8525 if test "${ac_cv_header_png_h+set}" = set; then
8526 echo "$as_me:$LINENO: checking for png.h" >&5
8527 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8528 if test "${ac_cv_header_png_h+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 fi
8531 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8532 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8533 else
8534 # Is the header compilable?
8535 echo "$as_me:$LINENO: checking png.h usability" >&5
8536 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8537 cat >conftest.$ac_ext <<_ACEOF
8538 #line $LINENO "configure"
8539 #include "confdefs.h"
8540 $ac_includes_default
8541 #include <png.h>
8542 _ACEOF
8543 rm -f conftest.$ac_objext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545 (eval $ac_compile) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -s conftest.$ac_objext'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551 (eval $ac_try) 2>&5
8552 ac_status=$?
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 ac_header_compiler=yes
8556 else
8557 echo "$as_me: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 ac_header_compiler=no
8560 fi
8561 rm -f conftest.$ac_objext conftest.$ac_ext
8562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8563 echo "${ECHO_T}$ac_header_compiler" >&6
8564
8565 # Is the header present?
8566 echo "$as_me:$LINENO: checking png.h presence" >&5
8567 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8568 cat >conftest.$ac_ext <<_ACEOF
8569 #line $LINENO "configure"
8570 #include "confdefs.h"
8571 #include <png.h>
8572 _ACEOF
8573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8575 ac_status=$?
8576 egrep -v '^ *\+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } >/dev/null; then
8581 if test -s conftest.err; then
8582 ac_cpp_err=$ac_c_preproc_warn_flag
8583 else
8584 ac_cpp_err=
8585 fi
8586 else
8587 ac_cpp_err=yes
8588 fi
8589 if test -z "$ac_cpp_err"; then
8590 ac_header_preproc=yes
8591 else
8592 echo "$as_me: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8594 ac_header_preproc=no
8595 fi
8596 rm -f conftest.err conftest.$ac_ext
8597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8598 echo "${ECHO_T}$ac_header_preproc" >&6
8599
8600 # So? What about this header?
8601 case $ac_header_compiler:$ac_header_preproc in
8602 yes:no )
8603 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8604 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8606 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8607 no:yes )
8608 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8609 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8611 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8613 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8614 esac
8615 echo "$as_me:$LINENO: checking for png.h" >&5
8616 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8617 if test "${ac_cv_header_png_h+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620 ac_cv_header_png_h=$ac_header_preproc
8621 fi
8622 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8623 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8624
8625 fi
8626 if test $ac_cv_header_png_h = yes; then
8627 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8628 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8629 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632 ac_check_lib_save_LIBS=$LIBS
8633 LIBS="-lpng -lz -lm $LIBS"
8634 cat >conftest.$ac_ext <<_ACEOF
8635 #line $LINENO "configure"
8636 #include "confdefs.h"
8637
8638 /* Override any gcc2 internal prototype to avoid an error. */
8639 #ifdef __cplusplus
8640 extern "C"
8641 #endif
8642 /* We use char because int might match the return type of a gcc2
8643 builtin and then its argument prototype would still apply. */
8644 char png_get_channels ();
8645 #ifdef F77_DUMMY_MAIN
8646 # ifdef __cplusplus
8647 extern "C"
8648 # endif
8649 int F77_DUMMY_MAIN() { return 1; }
8650 #endif
8651 int
8652 main ()
8653 {
8654 png_get_channels ();
8655 ;
8656 return 0;
8657 }
8658 _ACEOF
8659 rm -f conftest.$ac_objext conftest$ac_exeext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8661 (eval $ac_link) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -s conftest$ac_exeext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 (eval $ac_try) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 ac_cv_lib_png_png_get_channels=yes
8672 else
8673 echo "$as_me: failed program was:" >&5
8674 cat conftest.$ac_ext >&5
8675 ac_cv_lib_png_png_get_channels=no
8676 fi
8677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8679 fi
8680 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8681 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8682 if test $ac_cv_lib_png_png_get_channels = yes; then
8683 HAVE_PNG=yes
8684 fi
8685
8686 fi
8687
8688
8689 fi
8690
8691 if test "${HAVE_PNG}" = "yes"; then
8692
8693 cat >>confdefs.h <<\_ACEOF
8694 #define HAVE_PNG 1
8695 _ACEOF
8696
8697 fi
8698 fi
8699
8700 ### Use -ltiff if available, unless `--with-tiff=no'.
8701 HAVE_TIFF=no
8702 if test "${HAVE_X11}" = "yes"; then
8703 if test "${with_tiff}" != "no"; then
8704 if test "${ac_cv_header_tiffio_h+set}" = set; then
8705 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8706 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8707 if test "${ac_cv_header_tiffio_h+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 fi
8710 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8711 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8712 else
8713 # Is the header compilable?
8714 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8715 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8716 cat >conftest.$ac_ext <<_ACEOF
8717 #line $LINENO "configure"
8718 #include "confdefs.h"
8719 $ac_includes_default
8720 #include <tiffio.h>
8721 _ACEOF
8722 rm -f conftest.$ac_objext
8723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8724 (eval $ac_compile) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -s conftest.$ac_objext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 ac_header_compiler=yes
8735 else
8736 echo "$as_me: failed program was:" >&5
8737 cat conftest.$ac_ext >&5
8738 ac_header_compiler=no
8739 fi
8740 rm -f conftest.$ac_objext conftest.$ac_ext
8741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8742 echo "${ECHO_T}$ac_header_compiler" >&6
8743
8744 # Is the header present?
8745 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8746 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8747 cat >conftest.$ac_ext <<_ACEOF
8748 #line $LINENO "configure"
8749 #include "confdefs.h"
8750 #include <tiffio.h>
8751 _ACEOF
8752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8754 ac_status=$?
8755 egrep -v '^ *\+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } >/dev/null; then
8760 if test -s conftest.err; then
8761 ac_cpp_err=$ac_c_preproc_warn_flag
8762 else
8763 ac_cpp_err=
8764 fi
8765 else
8766 ac_cpp_err=yes
8767 fi
8768 if test -z "$ac_cpp_err"; then
8769 ac_header_preproc=yes
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 cat conftest.$ac_ext >&5
8773 ac_header_preproc=no
8774 fi
8775 rm -f conftest.err conftest.$ac_ext
8776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8777 echo "${ECHO_T}$ac_header_preproc" >&6
8778
8779 # So? What about this header?
8780 case $ac_header_compiler:$ac_header_preproc in
8781 yes:no )
8782 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8783 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8784 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8785 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8786 no:yes )
8787 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8788 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8790 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8792 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8793 esac
8794 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8795 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8796 if test "${ac_cv_header_tiffio_h+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799 ac_cv_header_tiffio_h=$ac_header_preproc
8800 fi
8801 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8802 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8803
8804 fi
8805 if test $ac_cv_header_tiffio_h = yes; then
8806 tifflibs="-lz -lm"
8807 # At least one tiff package requires the jpeg library.
8808 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
8809 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
8810 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
8811 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814 ac_check_lib_save_LIBS=$LIBS
8815 LIBS="-ltiff $tifflibs $LIBS"
8816 cat >conftest.$ac_ext <<_ACEOF
8817 #line $LINENO "configure"
8818 #include "confdefs.h"
8819
8820 /* Override any gcc2 internal prototype to avoid an error. */
8821 #ifdef __cplusplus
8822 extern "C"
8823 #endif
8824 /* We use char because int might match the return type of a gcc2
8825 builtin and then its argument prototype would still apply. */
8826 char TIFFGetVersion ();
8827 #ifdef F77_DUMMY_MAIN
8828 # ifdef __cplusplus
8829 extern "C"
8830 # endif
8831 int F77_DUMMY_MAIN() { return 1; }
8832 #endif
8833 int
8834 main ()
8835 {
8836 TIFFGetVersion ();
8837 ;
8838 return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843 (eval $ac_link) 2>&5
8844 ac_status=$?
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try='test -s conftest$ac_exeext'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 (eval $ac_try) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 ac_cv_lib_tiff_TIFFGetVersion=yes
8854 else
8855 echo "$as_me: failed program was:" >&5
8856 cat conftest.$ac_ext >&5
8857 ac_cv_lib_tiff_TIFFGetVersion=no
8858 fi
8859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8860 LIBS=$ac_check_lib_save_LIBS
8861 fi
8862 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
8863 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
8864 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
8865 HAVE_TIFF=yes
8866 fi
8867
8868 fi
8869
8870
8871 fi
8872
8873 if test "${HAVE_TIFF}" = "yes"; then
8874
8875 cat >>confdefs.h <<\_ACEOF
8876 #define HAVE_TIFF 1
8877 _ACEOF
8878
8879 fi
8880 fi
8881
8882 ### Use -lgif if available, unless `--with-gif=no'.
8883 HAVE_GIF=no
8884 if test "${HAVE_X11}" = "yes"; then
8885 if test "${with_gif}" != "no"; then
8886 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8887 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8888 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8889 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 fi
8892 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8893 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8894 else
8895 # Is the header compilable?
8896 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8897 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8898 cat >conftest.$ac_ext <<_ACEOF
8899 #line $LINENO "configure"
8900 #include "confdefs.h"
8901 $ac_includes_default
8902 #include <gif_lib.h>
8903 _ACEOF
8904 rm -f conftest.$ac_objext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8906 (eval $ac_compile) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try='test -s conftest.$ac_objext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 ac_header_compiler=yes
8917 else
8918 echo "$as_me: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8920 ac_header_compiler=no
8921 fi
8922 rm -f conftest.$ac_objext conftest.$ac_ext
8923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8924 echo "${ECHO_T}$ac_header_compiler" >&6
8925
8926 # Is the header present?
8927 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8928 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8929 cat >conftest.$ac_ext <<_ACEOF
8930 #line $LINENO "configure"
8931 #include "confdefs.h"
8932 #include <gif_lib.h>
8933 _ACEOF
8934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8936 ac_status=$?
8937 egrep -v '^ *\+' conftest.er1 >conftest.err
8938 rm -f conftest.er1
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } >/dev/null; then
8942 if test -s conftest.err; then
8943 ac_cpp_err=$ac_c_preproc_warn_flag
8944 else
8945 ac_cpp_err=
8946 fi
8947 else
8948 ac_cpp_err=yes
8949 fi
8950 if test -z "$ac_cpp_err"; then
8951 ac_header_preproc=yes
8952 else
8953 echo "$as_me: failed program was:" >&5
8954 cat conftest.$ac_ext >&5
8955 ac_header_preproc=no
8956 fi
8957 rm -f conftest.err conftest.$ac_ext
8958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8959 echo "${ECHO_T}$ac_header_preproc" >&6
8960
8961 # So? What about this header?
8962 case $ac_header_compiler:$ac_header_preproc in
8963 yes:no )
8964 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8965 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8966 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8967 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8968 no:yes )
8969 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
8970 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
8971 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
8972 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
8973 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8974 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8975 esac
8976 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8977 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8978 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 else
8981 ac_cv_header_gif_lib_h=$ac_header_preproc
8982 fi
8983 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8984 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8985
8986 fi
8987 if test $ac_cv_header_gif_lib_h = yes; then
8988 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
8989 # Earlier versions can crash Emacs.
8990 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
8991 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
8992 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995 ac_check_lib_save_LIBS=$LIBS
8996 LIBS="-lungif $LIBS"
8997 cat >conftest.$ac_ext <<_ACEOF
8998 #line $LINENO "configure"
8999 #include "confdefs.h"
9000
9001 /* Override any gcc2 internal prototype to avoid an error. */
9002 #ifdef __cplusplus
9003 extern "C"
9004 #endif
9005 /* We use char because int might match the return type of a gcc2
9006 builtin and then its argument prototype would still apply. */
9007 char EGifPutExtensionLast ();
9008 #ifdef F77_DUMMY_MAIN
9009 # ifdef __cplusplus
9010 extern "C"
9011 # endif
9012 int F77_DUMMY_MAIN() { return 1; }
9013 #endif
9014 int
9015 main ()
9016 {
9017 EGifPutExtensionLast ();
9018 ;
9019 return 0;
9020 }
9021 _ACEOF
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024 (eval $ac_link) 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } &&
9028 { ac_try='test -s conftest$ac_exeext'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 (eval $ac_try) 2>&5
9031 ac_status=$?
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; }; then
9034 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9035 else
9036 echo "$as_me: failed program was:" >&5
9037 cat conftest.$ac_ext >&5
9038 ac_cv_lib_ungif_EGifPutExtensionLast=no
9039 fi
9040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9041 LIBS=$ac_check_lib_save_LIBS
9042 fi
9043 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9044 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9045 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9046 HAVE_GIF=yes
9047 fi
9048
9049 fi
9050
9051
9052 fi
9053
9054 if test "${HAVE_GIF}" = "yes"; then
9055
9056 cat >>confdefs.h <<\_ACEOF
9057 #define HAVE_GIF 1
9058 _ACEOF
9059
9060 fi
9061 fi
9062
9063 ### Use session management (-lSM -lICE) if available
9064 HAVE_X_SM=no
9065 if test "${HAVE_X11}" = "yes"; then
9066 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9067 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9068 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9069 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 fi
9072 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9073 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9074 else
9075 # Is the header compilable?
9076 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9077 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9078 cat >conftest.$ac_ext <<_ACEOF
9079 #line $LINENO "configure"
9080 #include "confdefs.h"
9081 $ac_includes_default
9082 #include <X11/SM/SMlib.h>
9083 _ACEOF
9084 rm -f conftest.$ac_objext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9086 (eval $ac_compile) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } &&
9090 { ac_try='test -s conftest.$ac_objext'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 (eval $ac_try) 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 ac_header_compiler=yes
9097 else
9098 echo "$as_me: failed program was:" >&5
9099 cat conftest.$ac_ext >&5
9100 ac_header_compiler=no
9101 fi
9102 rm -f conftest.$ac_objext conftest.$ac_ext
9103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9104 echo "${ECHO_T}$ac_header_compiler" >&6
9105
9106 # Is the header present?
9107 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9108 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9109 cat >conftest.$ac_ext <<_ACEOF
9110 #line $LINENO "configure"
9111 #include "confdefs.h"
9112 #include <X11/SM/SMlib.h>
9113 _ACEOF
9114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9116 ac_status=$?
9117 egrep -v '^ *\+' conftest.er1 >conftest.err
9118 rm -f conftest.er1
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } >/dev/null; then
9122 if test -s conftest.err; then
9123 ac_cpp_err=$ac_c_preproc_warn_flag
9124 else
9125 ac_cpp_err=
9126 fi
9127 else
9128 ac_cpp_err=yes
9129 fi
9130 if test -z "$ac_cpp_err"; then
9131 ac_header_preproc=yes
9132 else
9133 echo "$as_me: failed program was:" >&5
9134 cat conftest.$ac_ext >&5
9135 ac_header_preproc=no
9136 fi
9137 rm -f conftest.err conftest.$ac_ext
9138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9139 echo "${ECHO_T}$ac_header_preproc" >&6
9140
9141 # So? What about this header?
9142 case $ac_header_compiler:$ac_header_preproc in
9143 yes:no )
9144 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9145 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9147 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9148 no:yes )
9149 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9150 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9152 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9155 esac
9156 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9157 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9158 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
9162 fi
9163 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9164 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9165
9166 fi
9167 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9168 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9169 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9170 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173 ac_check_lib_save_LIBS=$LIBS
9174 LIBS="-lSM $LIBS"
9175 cat >conftest.$ac_ext <<_ACEOF
9176 #line $LINENO "configure"
9177 #include "confdefs.h"
9178
9179 /* Override any gcc2 internal prototype to avoid an error. */
9180 #ifdef __cplusplus
9181 extern "C"
9182 #endif
9183 /* We use char because int might match the return type of a gcc2
9184 builtin and then its argument prototype would still apply. */
9185 char SmcOpenConnection ();
9186 #ifdef F77_DUMMY_MAIN
9187 # ifdef __cplusplus
9188 extern "C"
9189 # endif
9190 int F77_DUMMY_MAIN() { return 1; }
9191 #endif
9192 int
9193 main ()
9194 {
9195 SmcOpenConnection ();
9196 ;
9197 return 0;
9198 }
9199 _ACEOF
9200 rm -f conftest.$ac_objext conftest$ac_exeext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9202 (eval $ac_link) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } &&
9206 { ac_try='test -s conftest$ac_exeext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 (eval $ac_try) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_cv_lib_SM_SmcOpenConnection=yes
9213 else
9214 echo "$as_me: failed program was:" >&5
9215 cat conftest.$ac_ext >&5
9216 ac_cv_lib_SM_SmcOpenConnection=no
9217 fi
9218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9219 LIBS=$ac_check_lib_save_LIBS
9220 fi
9221 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9222 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9223 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9224 HAVE_X_SM=yes
9225 else
9226 -lICE
9227 fi
9228
9229 fi
9230
9231
9232
9233 if test "${HAVE_X_SM}" = "yes"; then
9234
9235 cat >>confdefs.h <<\_ACEOF
9236 #define HAVE_X_SM 1
9237 _ACEOF
9238
9239 case "$LIBS" in
9240 *-lSM*) ;;
9241 *) LIBS="-lSM -lICE $LIBS" ;;
9242 esac
9243 fi
9244 fi
9245
9246 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9247 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9248 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9249 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252 cat >conftest.$ac_ext <<_ACEOF
9253 #line $LINENO "configure"
9254 #include "confdefs.h"
9255 #include <netdb.h>
9256 #ifdef F77_DUMMY_MAIN
9257 # ifdef __cplusplus
9258 extern "C"
9259 # endif
9260 int F77_DUMMY_MAIN() { return 1; }
9261 #endif
9262 int
9263 main ()
9264 {
9265 return h_errno;
9266 ;
9267 return 0;
9268 }
9269 _ACEOF
9270 rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9272 (eval $ac_link) 2>&5
9273 ac_status=$?
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try='test -s conftest$ac_exeext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9282 emacs_cv_netdb_declares_h_errno=yes
9283 else
9284 echo "$as_me: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9286 emacs_cv_netdb_declares_h_errno=no
9287 fi
9288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9289 fi
9290 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9291 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9292 if test $emacs_cv_netdb_declares_h_errno = yes; then
9293
9294 cat >>confdefs.h <<\_ACEOF
9295 #define HAVE_H_ERRNO 1
9296 _ACEOF
9297
9298 fi
9299
9300 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9301 # for constant arguments. Useless!
9302 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9303 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9304 if test "${ac_cv_working_alloca_h+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
9307 cat >conftest.$ac_ext <<_ACEOF
9308 #line $LINENO "configure"
9309 #include "confdefs.h"
9310 #include <alloca.h>
9311 #ifdef F77_DUMMY_MAIN
9312 # ifdef __cplusplus
9313 extern "C"
9314 # endif
9315 int F77_DUMMY_MAIN() { return 1; }
9316 #endif
9317 int
9318 main ()
9319 {
9320 char *p = (char *) alloca (2 * sizeof (int));
9321 ;
9322 return 0;
9323 }
9324 _ACEOF
9325 rm -f conftest.$ac_objext conftest$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try='test -s conftest$ac_exeext'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 ac_cv_working_alloca_h=yes
9338 else
9339 echo "$as_me: failed program was:" >&5
9340 cat conftest.$ac_ext >&5
9341 ac_cv_working_alloca_h=no
9342 fi
9343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9344 fi
9345 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9346 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9347 if test $ac_cv_working_alloca_h = yes; then
9348
9349 cat >>confdefs.h <<\_ACEOF
9350 #define HAVE_ALLOCA_H 1
9351 _ACEOF
9352
9353 fi
9354
9355 echo "$as_me:$LINENO: checking for alloca" >&5
9356 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9357 if test "${ac_cv_func_alloca_works+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360 cat >conftest.$ac_ext <<_ACEOF
9361 #line $LINENO "configure"
9362 #include "confdefs.h"
9363 #ifdef __GNUC__
9364 # define alloca __builtin_alloca
9365 #else
9366 # ifdef _MSC_VER
9367 # include <malloc.h>
9368 # define alloca _alloca
9369 # else
9370 # if HAVE_ALLOCA_H
9371 # include <alloca.h>
9372 # else
9373 # ifdef _AIX
9374 #pragma alloca
9375 # else
9376 # ifndef alloca /* predefined by HP cc +Olibcalls */
9377 char *alloca ();
9378 # endif
9379 # endif
9380 # endif
9381 # endif
9382 #endif
9383
9384 #ifdef F77_DUMMY_MAIN
9385 # ifdef __cplusplus
9386 extern "C"
9387 # endif
9388 int F77_DUMMY_MAIN() { return 1; }
9389 #endif
9390 int
9391 main ()
9392 {
9393 char *p = (char *) alloca (1);
9394 ;
9395 return 0;
9396 }
9397 _ACEOF
9398 rm -f conftest.$ac_objext conftest$ac_exeext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9400 (eval $ac_link) 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -s conftest$ac_exeext'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 ac_cv_func_alloca_works=yes
9411 else
9412 echo "$as_me: failed program was:" >&5
9413 cat conftest.$ac_ext >&5
9414 ac_cv_func_alloca_works=no
9415 fi
9416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9417 fi
9418 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9419 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9420
9421 if test $ac_cv_func_alloca_works = yes; then
9422
9423 cat >>confdefs.h <<\_ACEOF
9424 #define HAVE_ALLOCA 1
9425 _ACEOF
9426
9427 else
9428 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9429 # that cause trouble. Some versions do not even contain alloca or
9430 # contain a buggy version. If you still want to use their alloca,
9431 # use ar to extract alloca.o from them instead of compiling alloca.c.
9432
9433 ALLOCA=alloca.$ac_objext
9434
9435 cat >>confdefs.h <<\_ACEOF
9436 #define C_ALLOCA 1
9437 _ACEOF
9438
9439
9440 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9441 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9442 if test "${ac_cv_os_cray+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445 cat >conftest.$ac_ext <<_ACEOF
9446 #line $LINENO "configure"
9447 #include "confdefs.h"
9448 #if defined(CRAY) && ! defined(CRAY2)
9449 webecray
9450 #else
9451 wenotbecray
9452 #endif
9453
9454 _ACEOF
9455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9456 egrep "webecray" >/dev/null 2>&1; then
9457 ac_cv_os_cray=yes
9458 else
9459 ac_cv_os_cray=no
9460 fi
9461 rm -f conftest*
9462
9463 fi
9464 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9465 echo "${ECHO_T}$ac_cv_os_cray" >&6
9466 if test $ac_cv_os_cray = yes; then
9467 for ac_func in _getb67 GETB67 getb67; do
9468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9469 echo "$as_me:$LINENO: checking for $ac_func" >&5
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_var+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474 cat >conftest.$ac_ext <<_ACEOF
9475 #line $LINENO "configure"
9476 #include "confdefs.h"
9477 /* System header to define __stub macros and hopefully few prototypes,
9478 which can conflict with char $ac_func (); below. */
9479 #include <assert.h>
9480 /* Override any gcc2 internal prototype to avoid an error. */
9481 #ifdef __cplusplus
9482 extern "C"
9483 #endif
9484 /* We use char because int might match the return type of a gcc2
9485 builtin and then its argument prototype would still apply. */
9486 char $ac_func ();
9487 char (*f) ();
9488
9489 #ifdef F77_DUMMY_MAIN
9490 # ifdef __cplusplus
9491 extern "C"
9492 # endif
9493 int F77_DUMMY_MAIN() { return 1; }
9494 #endif
9495 int
9496 main ()
9497 {
9498 /* The GNU C library defines this for functions which it implements
9499 to always fail with ENOSYS. Some functions are actually named
9500 something starting with __ and the normal name is an alias. */
9501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9502 choke me
9503 #else
9504 f = $ac_func;
9505 #endif
9506
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try='test -s conftest$ac_exeext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 (eval $ac_try) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 eval "$as_ac_var=yes"
9524 else
9525 echo "$as_me: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9527 eval "$as_ac_var=no"
9528 fi
9529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9530 fi
9531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9533 if test `eval echo '${'$as_ac_var'}'` = yes; then
9534
9535 cat >>confdefs.h <<_ACEOF
9536 #define CRAY_STACKSEG_END $ac_func
9537 _ACEOF
9538
9539 break
9540 fi
9541
9542 done
9543 fi
9544
9545 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9546 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9547 if test "${ac_cv_c_stack_direction+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550 if test "$cross_compiling" = yes; then
9551 ac_cv_c_stack_direction=0
9552 else
9553 cat >conftest.$ac_ext <<_ACEOF
9554 #line $LINENO "configure"
9555 #include "confdefs.h"
9556 int
9557 find_stack_direction ()
9558 {
9559 static char *addr = 0;
9560 auto char dummy;
9561 if (addr == 0)
9562 {
9563 addr = &dummy;
9564 return find_stack_direction ();
9565 }
9566 else
9567 return (&dummy > addr) ? 1 : -1;
9568 }
9569
9570 int
9571 main ()
9572 {
9573 exit (find_stack_direction () < 0);
9574 }
9575 _ACEOF
9576 rm -f conftest$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 (eval $ac_try) 2>&5
9584 ac_status=$?
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 ac_cv_c_stack_direction=1
9588 else
9589 echo "$as_me: program exited with status $ac_status" >&5
9590 echo "$as_me: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9592 ( exit $ac_status )
9593 ac_cv_c_stack_direction=-1
9594 fi
9595 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9596 fi
9597 fi
9598 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9599 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9600
9601 cat >>confdefs.h <<_ACEOF
9602 #define STACK_DIRECTION $ac_cv_c_stack_direction
9603 _ACEOF
9604
9605
9606 fi
9607
9608
9609 # fmod, logb, and frexp are found in -lm on most systems.
9610 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
9611
9612 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9613 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9614 if test "${ac_cv_lib_m_sqrt+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617 ac_check_lib_save_LIBS=$LIBS
9618 LIBS="-lm $LIBS"
9619 cat >conftest.$ac_ext <<_ACEOF
9620 #line $LINENO "configure"
9621 #include "confdefs.h"
9622
9623 /* Override any gcc2 internal prototype to avoid an error. */
9624 #ifdef __cplusplus
9625 extern "C"
9626 #endif
9627 /* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9629 char sqrt ();
9630 #ifdef F77_DUMMY_MAIN
9631 # ifdef __cplusplus
9632 extern "C"
9633 # endif
9634 int F77_DUMMY_MAIN() { return 1; }
9635 #endif
9636 int
9637 main ()
9638 {
9639 sqrt ();
9640 ;
9641 return 0;
9642 }
9643 _ACEOF
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646 (eval $ac_link) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try='test -s conftest$ac_exeext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_cv_lib_m_sqrt=yes
9657 else
9658 echo "$as_me: failed program was:" >&5
9659 cat conftest.$ac_ext >&5
9660 ac_cv_lib_m_sqrt=no
9661 fi
9662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9663 LIBS=$ac_check_lib_save_LIBS
9664 fi
9665 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9666 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9667 if test $ac_cv_lib_m_sqrt = yes; then
9668 cat >>confdefs.h <<_ACEOF
9669 #define HAVE_LIBM 1
9670 _ACEOF
9671
9672 LIBS="-lm $LIBS"
9673
9674 fi
9675
9676
9677 # Check for mail-locking functions in a "mail" library
9678
9679 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9680 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
9681 if test "${ac_cv_lib_mail_maillock+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684 ac_check_lib_save_LIBS=$LIBS
9685 LIBS="-lmail $LIBS"
9686 cat >conftest.$ac_ext <<_ACEOF
9687 #line $LINENO "configure"
9688 #include "confdefs.h"
9689
9690 /* Override any gcc2 internal prototype to avoid an error. */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 /* We use char because int might match the return type of a gcc2
9695 builtin and then its argument prototype would still apply. */
9696 char maillock ();
9697 #ifdef F77_DUMMY_MAIN
9698 # ifdef __cplusplus
9699 extern "C"
9700 # endif
9701 int F77_DUMMY_MAIN() { return 1; }
9702 #endif
9703 int
9704 main ()
9705 {
9706 maillock ();
9707 ;
9708 return 0;
9709 }
9710 _ACEOF
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713 (eval $ac_link) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 ac_cv_lib_mail_maillock=yes
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 cat conftest.$ac_ext >&5
9727 ac_cv_lib_mail_maillock=no
9728 fi
9729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9730 LIBS=$ac_check_lib_save_LIBS
9731 fi
9732 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9733 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
9734 if test $ac_cv_lib_mail_maillock = yes; then
9735 cat >>confdefs.h <<_ACEOF
9736 #define HAVE_LIBMAIL 1
9737 _ACEOF
9738
9739 LIBS="-lmail $LIBS"
9740
9741 fi
9742
9743
9744 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
9745 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
9746 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749 ac_check_lib_save_LIBS=$LIBS
9750 LIBS="-llockfile $LIBS"
9751 cat >conftest.$ac_ext <<_ACEOF
9752 #line $LINENO "configure"
9753 #include "confdefs.h"
9754
9755 /* Override any gcc2 internal prototype to avoid an error. */
9756 #ifdef __cplusplus
9757 extern "C"
9758 #endif
9759 /* We use char because int might match the return type of a gcc2
9760 builtin and then its argument prototype would still apply. */
9761 char maillock ();
9762 #ifdef F77_DUMMY_MAIN
9763 # ifdef __cplusplus
9764 extern "C"
9765 # endif
9766 int F77_DUMMY_MAIN() { return 1; }
9767 #endif
9768 int
9769 main ()
9770 {
9771 maillock ();
9772 ;
9773 return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -s conftest$ac_exeext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 ac_cv_lib_lockfile_maillock=yes
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 cat conftest.$ac_ext >&5
9792 ac_cv_lib_lockfile_maillock=no
9793 fi
9794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9795 LIBS=$ac_check_lib_save_LIBS
9796 fi
9797 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
9798 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
9799 if test $ac_cv_lib_lockfile_maillock = yes; then
9800 cat >>confdefs.h <<_ACEOF
9801 #define HAVE_LIBLOCKFILE 1
9802 _ACEOF
9803
9804 LIBS="-llockfile $LIBS"
9805
9806 fi
9807
9808 # If we have the shared liblockfile, assume we must use it for mail
9809 # locking (e.g. Debian). If we couldn't link against liblockfile
9810 # (no liblockfile.a installed), ensure that we don't need to.
9811 if test "$ac_cv_lib_lockfile_maillock" = no; then
9812 # Extract the first word of "liblockfile.so", so it can be a program name with args.
9813 set dummy liblockfile.so; ac_word=$2
9814 echo "$as_me:$LINENO: checking for $ac_word" >&5
9815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9816 if test "${ac_cv_prog_liblockfile+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819 if test -n "$liblockfile"; then
9820 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
9821 else
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
9824 for as_dir in $as_dummy
9825 do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9830 ac_cv_prog_liblockfile="yes"
9831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 break 2
9833 fi
9834 done
9835 done
9836
9837 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
9838 fi
9839 fi
9840 liblockfile=$ac_cv_prog_liblockfile
9841 if test -n "$liblockfile"; then
9842 echo "$as_me:$LINENO: result: $liblockfile" >&5
9843 echo "${ECHO_T}$liblockfile" >&6
9844 else
9845 echo "$as_me:$LINENO: result: no" >&5
9846 echo "${ECHO_T}no" >&6
9847 fi
9848
9849 if test $ac_cv_prog_liblockfile = yes; then
9850 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
9851 This probably means that movemail could lose mail.
9852 There may be a \`development' package to install containing liblockfile." >&5
9853 echo "$as_me: error: Shared liblockfile found but can't link against it.
9854 This probably means that movemail could lose mail.
9855 There may be a \`development' package to install containing liblockfile." >&2;}
9856 { (exit 1); exit 1; }; }
9857 else
9858 cat >>confdefs.h <<\_ACEOF
9859 #define LIBMAIL -llockfile
9860 _ACEOF
9861
9862 fi
9863 else :
9864 fi
9865
9866 for ac_func in touchlock
9867 do
9868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9869 echo "$as_me:$LINENO: checking for $ac_func" >&5
9870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9871 if eval "test \"\${$as_ac_var+set}\" = set"; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874 cat >conftest.$ac_ext <<_ACEOF
9875 #line $LINENO "configure"
9876 #include "confdefs.h"
9877 /* System header to define __stub macros and hopefully few prototypes,
9878 which can conflict with char $ac_func (); below. */
9879 #include <assert.h>
9880 /* Override any gcc2 internal prototype to avoid an error. */
9881 #ifdef __cplusplus
9882 extern "C"
9883 #endif
9884 /* We use char because int might match the return type of a gcc2
9885 builtin and then its argument prototype would still apply. */
9886 char $ac_func ();
9887 char (*f) ();
9888
9889 #ifdef F77_DUMMY_MAIN
9890 # ifdef __cplusplus
9891 extern "C"
9892 # endif
9893 int F77_DUMMY_MAIN() { return 1; }
9894 #endif
9895 int
9896 main ()
9897 {
9898 /* The GNU C library defines this for functions which it implements
9899 to always fail with ENOSYS. Some functions are actually named
9900 something starting with __ and the normal name is an alias. */
9901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9902 choke me
9903 #else
9904 f = $ac_func;
9905 #endif
9906
9907 ;
9908 return 0;
9909 }
9910 _ACEOF
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913 (eval $ac_link) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 eval "$as_ac_var=yes"
9924 else
9925 echo "$as_me: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9927 eval "$as_ac_var=no"
9928 fi
9929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9930 fi
9931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9933 if test `eval echo '${'$as_ac_var'}'` = yes; then
9934 cat >>confdefs.h <<_ACEOF
9935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9936 _ACEOF
9937
9938 fi
9939 done
9940
9941
9942 for ac_header in maillock.h
9943 do
9944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9946 echo "$as_me:$LINENO: checking for $ac_header" >&5
9947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 fi
9951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9953 else
9954 # Is the header compilable?
9955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9957 cat >conftest.$ac_ext <<_ACEOF
9958 #line $LINENO "configure"
9959 #include "confdefs.h"
9960 $ac_includes_default
9961 #include <$ac_header>
9962 _ACEOF
9963 rm -f conftest.$ac_objext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9965 (eval $ac_compile) 2>&5
9966 ac_status=$?
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -s conftest.$ac_objext'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 (eval $ac_try) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 ac_header_compiler=yes
9976 else
9977 echo "$as_me: failed program was:" >&5
9978 cat conftest.$ac_ext >&5
9979 ac_header_compiler=no
9980 fi
9981 rm -f conftest.$ac_objext conftest.$ac_ext
9982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9983 echo "${ECHO_T}$ac_header_compiler" >&6
9984
9985 # Is the header present?
9986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9988 cat >conftest.$ac_ext <<_ACEOF
9989 #line $LINENO "configure"
9990 #include "confdefs.h"
9991 #include <$ac_header>
9992 _ACEOF
9993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9995 ac_status=$?
9996 egrep -v '^ *\+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } >/dev/null; then
10001 if test -s conftest.err; then
10002 ac_cpp_err=$ac_c_preproc_warn_flag
10003 else
10004 ac_cpp_err=
10005 fi
10006 else
10007 ac_cpp_err=yes
10008 fi
10009 if test -z "$ac_cpp_err"; then
10010 ac_header_preproc=yes
10011 else
10012 echo "$as_me: failed program was:" >&5
10013 cat conftest.$ac_ext >&5
10014 ac_header_preproc=no
10015 fi
10016 rm -f conftest.err conftest.$ac_ext
10017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10018 echo "${ECHO_T}$ac_header_preproc" >&6
10019
10020 # So? What about this header?
10021 case $ac_header_compiler:$ac_header_preproc in
10022 yes:no )
10023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10027 no:yes )
10028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10034 esac
10035 echo "$as_me:$LINENO: checking for $ac_header" >&5
10036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040 eval "$as_ac_Header=$ac_header_preproc"
10041 fi
10042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10044
10045 fi
10046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10047 cat >>confdefs.h <<_ACEOF
10048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10049 _ACEOF
10050
10051 fi
10052
10053 done
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111 for ac_func in gethostname getdomainname dup2 \
10112 rename closedir mkdir rmdir sysinfo \
10113 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
10114 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10115 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
10116 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10117 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10118 gai_strerror mkstemp getline getdelim
10119 do
10120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10121 echo "$as_me:$LINENO: checking for $ac_func" >&5
10122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10123 if eval "test \"\${$as_ac_var+set}\" = set"; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126 cat >conftest.$ac_ext <<_ACEOF
10127 #line $LINENO "configure"
10128 #include "confdefs.h"
10129 /* System header to define __stub macros and hopefully few prototypes,
10130 which can conflict with char $ac_func (); below. */
10131 #include <assert.h>
10132 /* Override any gcc2 internal prototype to avoid an error. */
10133 #ifdef __cplusplus
10134 extern "C"
10135 #endif
10136 /* We use char because int might match the return type of a gcc2
10137 builtin and then its argument prototype would still apply. */
10138 char $ac_func ();
10139 char (*f) ();
10140
10141 #ifdef F77_DUMMY_MAIN
10142 # ifdef __cplusplus
10143 extern "C"
10144 # endif
10145 int F77_DUMMY_MAIN() { return 1; }
10146 #endif
10147 int
10148 main ()
10149 {
10150 /* The GNU C library defines this for functions which it implements
10151 to always fail with ENOSYS. Some functions are actually named
10152 something starting with __ and the normal name is an alias. */
10153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10154 choke me
10155 #else
10156 f = $ac_func;
10157 #endif
10158
10159 ;
10160 return 0;
10161 }
10162 _ACEOF
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10165 (eval $ac_link) 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -s conftest$ac_exeext'
10170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171 (eval $ac_try) 2>&5
10172 ac_status=$?
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 eval "$as_ac_var=yes"
10176 else
10177 echo "$as_me: failed program was:" >&5
10178 cat conftest.$ac_ext >&5
10179 eval "$as_ac_var=no"
10180 fi
10181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10182 fi
10183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10185 if test `eval echo '${'$as_ac_var'}'` = yes; then
10186 cat >>confdefs.h <<_ACEOF
10187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10188 _ACEOF
10189
10190 fi
10191 done
10192
10193
10194
10195 for ac_header in sys/un.h
10196 do
10197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10199 echo "$as_me:$LINENO: checking for $ac_header" >&5
10200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 fi
10204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10206 else
10207 # Is the header compilable?
10208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10210 cat >conftest.$ac_ext <<_ACEOF
10211 #line $LINENO "configure"
10212 #include "confdefs.h"
10213 $ac_includes_default
10214 #include <$ac_header>
10215 _ACEOF
10216 rm -f conftest.$ac_objext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10218 (eval $ac_compile) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } &&
10222 { ac_try='test -s conftest.$ac_objext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_header_compiler=yes
10229 else
10230 echo "$as_me: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10232 ac_header_compiler=no
10233 fi
10234 rm -f conftest.$ac_objext conftest.$ac_ext
10235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10236 echo "${ECHO_T}$ac_header_compiler" >&6
10237
10238 # Is the header present?
10239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10241 cat >conftest.$ac_ext <<_ACEOF
10242 #line $LINENO "configure"
10243 #include "confdefs.h"
10244 #include <$ac_header>
10245 _ACEOF
10246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10248 ac_status=$?
10249 egrep -v '^ *\+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } >/dev/null; then
10254 if test -s conftest.err; then
10255 ac_cpp_err=$ac_c_preproc_warn_flag
10256 else
10257 ac_cpp_err=
10258 fi
10259 else
10260 ac_cpp_err=yes
10261 fi
10262 if test -z "$ac_cpp_err"; then
10263 ac_header_preproc=yes
10264 else
10265 echo "$as_me: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10267 ac_header_preproc=no
10268 fi
10269 rm -f conftest.err conftest.$ac_ext
10270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10271 echo "${ECHO_T}$ac_header_preproc" >&6
10272
10273 # So? What about this header?
10274 case $ac_header_compiler:$ac_header_preproc in
10275 yes:no )
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10280 no:yes )
10281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10287 esac
10288 echo "$as_me:$LINENO: checking for $ac_header" >&5
10289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293 eval "$as_ac_Header=$ac_header_preproc"
10294 fi
10295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10297
10298 fi
10299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10300 cat >>confdefs.h <<_ACEOF
10301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10302 _ACEOF
10303
10304 fi
10305
10306 done
10307
10308
10309
10310
10311 for ac_header in sys/time.h unistd.h
10312 do
10313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10315 echo "$as_me:$LINENO: checking for $ac_header" >&5
10316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 fi
10320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10322 else
10323 # Is the header compilable?
10324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10326 cat >conftest.$ac_ext <<_ACEOF
10327 #line $LINENO "configure"
10328 #include "confdefs.h"
10329 $ac_includes_default
10330 #include <$ac_header>
10331 _ACEOF
10332 rm -f conftest.$ac_objext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10334 (eval $ac_compile) 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try='test -s conftest.$ac_objext'
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10341 ac_status=$?
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
10344 ac_header_compiler=yes
10345 else
10346 echo "$as_me: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10348 ac_header_compiler=no
10349 fi
10350 rm -f conftest.$ac_objext conftest.$ac_ext
10351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10352 echo "${ECHO_T}$ac_header_compiler" >&6
10353
10354 # Is the header present?
10355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10357 cat >conftest.$ac_ext <<_ACEOF
10358 #line $LINENO "configure"
10359 #include "confdefs.h"
10360 #include <$ac_header>
10361 _ACEOF
10362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10364 ac_status=$?
10365 egrep -v '^ *\+' conftest.er1 >conftest.err
10366 rm -f conftest.er1
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } >/dev/null; then
10370 if test -s conftest.err; then
10371 ac_cpp_err=$ac_c_preproc_warn_flag
10372 else
10373 ac_cpp_err=
10374 fi
10375 else
10376 ac_cpp_err=yes
10377 fi
10378 if test -z "$ac_cpp_err"; then
10379 ac_header_preproc=yes
10380 else
10381 echo "$as_me: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383 ac_header_preproc=no
10384 fi
10385 rm -f conftest.err conftest.$ac_ext
10386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10387 echo "${ECHO_T}$ac_header_preproc" >&6
10388
10389 # So? What about this header?
10390 case $ac_header_compiler:$ac_header_preproc in
10391 yes:no )
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10396 no:yes )
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10403 esac
10404 echo "$as_me:$LINENO: checking for $ac_header" >&5
10405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10409 eval "$as_ac_Header=$ac_header_preproc"
10410 fi
10411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10413
10414 fi
10415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10416 cat >>confdefs.h <<_ACEOF
10417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10418 _ACEOF
10419
10420 fi
10421
10422 done
10423
10424
10425 for ac_func in alarm
10426 do
10427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10428 echo "$as_me:$LINENO: checking for $ac_func" >&5
10429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10430 if eval "test \"\${$as_ac_var+set}\" = set"; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433 cat >conftest.$ac_ext <<_ACEOF
10434 #line $LINENO "configure"
10435 #include "confdefs.h"
10436 /* System header to define __stub macros and hopefully few prototypes,
10437 which can conflict with char $ac_func (); below. */
10438 #include <assert.h>
10439 /* Override any gcc2 internal prototype to avoid an error. */
10440 #ifdef __cplusplus
10441 extern "C"
10442 #endif
10443 /* We use char because int might match the return type of a gcc2
10444 builtin and then its argument prototype would still apply. */
10445 char $ac_func ();
10446 char (*f) ();
10447
10448 #ifdef F77_DUMMY_MAIN
10449 # ifdef __cplusplus
10450 extern "C"
10451 # endif
10452 int F77_DUMMY_MAIN() { return 1; }
10453 #endif
10454 int
10455 main ()
10456 {
10457 /* The GNU C library defines this for functions which it implements
10458 to always fail with ENOSYS. Some functions are actually named
10459 something starting with __ and the normal name is an alias. */
10460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10461 choke me
10462 #else
10463 f = $ac_func;
10464 #endif
10465
10466 ;
10467 return 0;
10468 }
10469 _ACEOF
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10472 (eval $ac_link) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } &&
10476 { ac_try='test -s conftest$ac_exeext'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; }; then
10482 eval "$as_ac_var=yes"
10483 else
10484 echo "$as_me: failed program was:" >&5
10485 cat conftest.$ac_ext >&5
10486 eval "$as_ac_var=no"
10487 fi
10488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10489 fi
10490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10492 if test `eval echo '${'$as_ac_var'}'` = yes; then
10493 cat >>confdefs.h <<_ACEOF
10494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10495 _ACEOF
10496
10497 fi
10498 done
10499
10500 echo "$as_me:$LINENO: checking for working mktime" >&5
10501 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10502 if test "${ac_cv_func_working_mktime+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505 if test "$cross_compiling" = yes; then
10506 ac_cv_func_working_mktime=no
10507 else
10508 cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 #include "confdefs.h"
10511 /* Test program from Paul Eggert and Tony Leneis. */
10512 #if TIME_WITH_SYS_TIME
10513 # include <sys/time.h>
10514 # include <time.h>
10515 #else
10516 # if HAVE_SYS_TIME_H
10517 # include <sys/time.h>
10518 # else
10519 # include <time.h>
10520 # endif
10521 #endif
10522
10523 #if HAVE_UNISTD_H
10524 # include <unistd.h>
10525 #endif
10526
10527 #if !HAVE_ALARM
10528 # define alarm(X) /* empty */
10529 #endif
10530
10531 /* Work around redefinition to rpl_putenv by other config tests. */
10532 #undef putenv
10533
10534 static time_t time_t_max;
10535
10536 /* Values we'll use to set the TZ environment variable. */
10537 static const char *const tz_strings[] = {
10538 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10539 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10540 };
10541 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10542
10543 /* Fail if mktime fails to convert a date in the spring-forward gap.
10544 Based on a problem report from Andreas Jaeger. */
10545 static void
10546 spring_forward_gap ()
10547 {
10548 /* glibc (up to about 1998-10-07) failed this test. */
10549 struct tm tm;
10550
10551 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10552 instead of "TZ=America/Vancouver" in order to detect the bug even
10553 on systems that don't support the Olson extension, or don't have the
10554 full zoneinfo tables installed. */
10555 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10556
10557 tm.tm_year = 98;
10558 tm.tm_mon = 3;
10559 tm.tm_mday = 5;
10560 tm.tm_hour = 2;
10561 tm.tm_min = 0;
10562 tm.tm_sec = 0;
10563 tm.tm_isdst = -1;
10564 if (mktime (&tm) == (time_t)-1)
10565 exit (1);
10566 }
10567
10568 static void
10569 mktime_test (now)
10570 time_t now;
10571 {
10572 struct tm *lt;
10573 if ((lt = localtime (&now)) && mktime (lt) != now)
10574 exit (1);
10575 now = time_t_max - now;
10576 if ((lt = localtime (&now)) && mktime (lt) != now)
10577 exit (1);
10578 }
10579
10580 static void
10581 irix_6_4_bug ()
10582 {
10583 /* Based on code from Ariel Faigon. */
10584 struct tm tm;
10585 tm.tm_year = 96;
10586 tm.tm_mon = 3;
10587 tm.tm_mday = 0;
10588 tm.tm_hour = 0;
10589 tm.tm_min = 0;
10590 tm.tm_sec = 0;
10591 tm.tm_isdst = -1;
10592 mktime (&tm);
10593 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10594 exit (1);
10595 }
10596
10597 static void
10598 bigtime_test (j)
10599 int j;
10600 {
10601 struct tm tm;
10602 time_t now;
10603 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10604 now = mktime (&tm);
10605 if (now != (time_t) -1)
10606 {
10607 struct tm *lt = localtime (&now);
10608 if (! (lt
10609 && lt->tm_year == tm.tm_year
10610 && lt->tm_mon == tm.tm_mon
10611 && lt->tm_mday == tm.tm_mday
10612 && lt->tm_hour == tm.tm_hour
10613 && lt->tm_min == tm.tm_min
10614 && lt->tm_sec == tm.tm_sec
10615 && lt->tm_yday == tm.tm_yday
10616 && lt->tm_wday == tm.tm_wday
10617 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10618 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10619 exit (1);
10620 }
10621 }
10622
10623 int
10624 main ()
10625 {
10626 time_t t, delta;
10627 int i, j;
10628
10629 /* This test makes some buggy mktime implementations loop.
10630 Give up after 60 seconds; a mktime slower than that
10631 isn't worth using anyway. */
10632 alarm (60);
10633
10634 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10635 continue;
10636 time_t_max--;
10637 delta = time_t_max / 997; /* a suitable prime number */
10638 for (i = 0; i < N_STRINGS; i++)
10639 {
10640 if (tz_strings[i])
10641 putenv (tz_strings[i]);
10642
10643 for (t = 0; t <= time_t_max - delta; t += delta)
10644 mktime_test (t);
10645 mktime_test ((time_t) 60 * 60);
10646 mktime_test ((time_t) 60 * 60 * 24);
10647
10648 for (j = 1; 0 < j; j *= 2)
10649 bigtime_test (j);
10650 bigtime_test (j - 1);
10651 }
10652 irix_6_4_bug ();
10653 spring_forward_gap ();
10654 exit (0);
10655 }
10656 _ACEOF
10657 rm -f conftest$ac_exeext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659 (eval $ac_link) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 ac_cv_func_working_mktime=yes
10669 else
10670 echo "$as_me: program exited with status $ac_status" >&5
10671 echo "$as_me: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10673 ( exit $ac_status )
10674 ac_cv_func_working_mktime=no
10675 fi
10676 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10677 fi
10678 fi
10679 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10680 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
10681 if test $ac_cv_func_working_mktime = no; then
10682 LIBOBJS="$LIBOBJS mktime.$ac_objext"
10683 fi
10684
10685 if test "$ac_cv_func_working_mktime" = no; then
10686
10687 cat >>confdefs.h <<\_ACEOF
10688 #define BROKEN_MKTIME 1
10689 _ACEOF
10690
10691 fi
10692
10693 ac_have_func=no # yes means we've found a way to get the load average.
10694
10695 ac_save_LIBS=$LIBS
10696
10697 # Check for getloadavg, but be sure not to touch the cache variable.
10698 (echo "$as_me:$LINENO: checking for getloadavg" >&5
10699 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
10700 if test "${ac_cv_func_getloadavg+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703 cat >conftest.$ac_ext <<_ACEOF
10704 #line $LINENO "configure"
10705 #include "confdefs.h"
10706 /* System header to define __stub macros and hopefully few prototypes,
10707 which can conflict with char getloadavg (); below. */
10708 #include <assert.h>
10709 /* Override any gcc2 internal prototype to avoid an error. */
10710 #ifdef __cplusplus
10711 extern "C"
10712 #endif
10713 /* We use char because int might match the return type of a gcc2
10714 builtin and then its argument prototype would still apply. */
10715 char getloadavg ();
10716 char (*f) ();
10717
10718 #ifdef F77_DUMMY_MAIN
10719 # ifdef __cplusplus
10720 extern "C"
10721 # endif
10722 int F77_DUMMY_MAIN() { return 1; }
10723 #endif
10724 int
10725 main ()
10726 {
10727 /* The GNU C library defines this for functions which it implements
10728 to always fail with ENOSYS. Some functions are actually named
10729 something starting with __ and the normal name is an alias. */
10730 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
10731 choke me
10732 #else
10733 f = getloadavg;
10734 #endif
10735
10736 ;
10737 return 0;
10738 }
10739 _ACEOF
10740 rm -f conftest.$ac_objext conftest$ac_exeext
10741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10742 (eval $ac_link) 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
10746 { ac_try='test -s conftest$ac_exeext'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10749 ac_status=$?
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; }; then
10752 ac_cv_func_getloadavg=yes
10753 else
10754 echo "$as_me: failed program was:" >&5
10755 cat conftest.$ac_ext >&5
10756 ac_cv_func_getloadavg=no
10757 fi
10758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10759 fi
10760 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
10761 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
10762 if test $ac_cv_func_getloadavg = yes; then
10763 exit 0
10764 else
10765 exit 1
10766 fi
10767 ) && ac_have_func=yes
10768
10769 # On HPUX9, an unprivileged user can get load averages through this function.
10770
10771 for ac_func in pstat_getdynamic
10772 do
10773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10774 echo "$as_me:$LINENO: checking for $ac_func" >&5
10775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10776 if eval "test \"\${$as_ac_var+set}\" = set"; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 else
10779 cat >conftest.$ac_ext <<_ACEOF
10780 #line $LINENO "configure"
10781 #include "confdefs.h"
10782 /* System header to define __stub macros and hopefully few prototypes,
10783 which can conflict with char $ac_func (); below. */
10784 #include <assert.h>
10785 /* Override any gcc2 internal prototype to avoid an error. */
10786 #ifdef __cplusplus
10787 extern "C"
10788 #endif
10789 /* We use char because int might match the return type of a gcc2
10790 builtin and then its argument prototype would still apply. */
10791 char $ac_func ();
10792 char (*f) ();
10793
10794 #ifdef F77_DUMMY_MAIN
10795 # ifdef __cplusplus
10796 extern "C"
10797 # endif
10798 int F77_DUMMY_MAIN() { return 1; }
10799 #endif
10800 int
10801 main ()
10802 {
10803 /* The GNU C library defines this for functions which it implements
10804 to always fail with ENOSYS. Some functions are actually named
10805 something starting with __ and the normal name is an alias. */
10806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10807 choke me
10808 #else
10809 f = $ac_func;
10810 #endif
10811
10812 ;
10813 return 0;
10814 }
10815 _ACEOF
10816 rm -f conftest.$ac_objext conftest$ac_exeext
10817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10818 (eval $ac_link) 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } &&
10822 { ac_try='test -s conftest$ac_exeext'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 eval "$as_ac_var=yes"
10829 else
10830 echo "$as_me: failed program was:" >&5
10831 cat conftest.$ac_ext >&5
10832 eval "$as_ac_var=no"
10833 fi
10834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10835 fi
10836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10838 if test `eval echo '${'$as_ac_var'}'` = yes; then
10839 cat >>confdefs.h <<_ACEOF
10840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10841 _ACEOF
10842
10843 fi
10844 done
10845
10846
10847 # Solaris has libkstat which does not require root.
10848
10849 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
10850 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
10851 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-lkstat $LIBS"
10856 cat >conftest.$ac_ext <<_ACEOF
10857 #line $LINENO "configure"
10858 #include "confdefs.h"
10859
10860 /* Override any gcc2 internal prototype to avoid an error. */
10861 #ifdef __cplusplus
10862 extern "C"
10863 #endif
10864 /* We use char because int might match the return type of a gcc2
10865 builtin and then its argument prototype would still apply. */
10866 char kstat_open ();
10867 #ifdef F77_DUMMY_MAIN
10868 # ifdef __cplusplus
10869 extern "C"
10870 # endif
10871 int F77_DUMMY_MAIN() { return 1; }
10872 #endif
10873 int
10874 main ()
10875 {
10876 kstat_open ();
10877 ;
10878 return 0;
10879 }
10880 _ACEOF
10881 rm -f conftest.$ac_objext conftest$ac_exeext
10882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10883 (eval $ac_link) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
10887 { ac_try='test -s conftest$ac_exeext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 ac_cv_lib_kstat_kstat_open=yes
10894 else
10895 echo "$as_me: failed program was:" >&5
10896 cat conftest.$ac_ext >&5
10897 ac_cv_lib_kstat_kstat_open=no
10898 fi
10899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10900 LIBS=$ac_check_lib_save_LIBS
10901 fi
10902 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
10903 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
10904 if test $ac_cv_lib_kstat_kstat_open = yes; then
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE_LIBKSTAT 1
10907 _ACEOF
10908
10909 LIBS="-lkstat $LIBS"
10910
10911 fi
10912
10913 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
10914
10915 # Some systems with -lutil have (and need) -lkvm as well, some do not.
10916 # On Solaris, -lkvm requires nlist from -lelf, so check that first
10917 # to get the right answer into the cache.
10918 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
10919 if test $ac_have_func = no; then
10920 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
10921 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
10922 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925 ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-lelf $LIBS"
10927 cat >conftest.$ac_ext <<_ACEOF
10928 #line $LINENO "configure"
10929 #include "confdefs.h"
10930
10931 /* Override any gcc2 internal prototype to avoid an error. */
10932 #ifdef __cplusplus
10933 extern "C"
10934 #endif
10935 /* We use char because int might match the return type of a gcc2
10936 builtin and then its argument prototype would still apply. */
10937 char elf_begin ();
10938 #ifdef F77_DUMMY_MAIN
10939 # ifdef __cplusplus
10940 extern "C"
10941 # endif
10942 int F77_DUMMY_MAIN() { return 1; }
10943 #endif
10944 int
10945 main ()
10946 {
10947 elf_begin ();
10948 ;
10949 return 0;
10950 }
10951 _ACEOF
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10954 (eval $ac_link) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } &&
10958 { ac_try='test -s conftest$ac_exeext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 ac_cv_lib_elf_elf_begin=yes
10965 else
10966 echo "$as_me: failed program was:" >&5
10967 cat conftest.$ac_ext >&5
10968 ac_cv_lib_elf_elf_begin=no
10969 fi
10970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10971 LIBS=$ac_check_lib_save_LIBS
10972 fi
10973 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
10974 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
10975 if test $ac_cv_lib_elf_elf_begin = yes; then
10976 LIBS="-lelf $LIBS"
10977 fi
10978
10979 fi
10980 if test $ac_have_func = no; then
10981 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
10982 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
10983 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 else
10986 ac_check_lib_save_LIBS=$LIBS
10987 LIBS="-lkvm $LIBS"
10988 cat >conftest.$ac_ext <<_ACEOF
10989 #line $LINENO "configure"
10990 #include "confdefs.h"
10991
10992 /* Override any gcc2 internal prototype to avoid an error. */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 /* We use char because int might match the return type of a gcc2
10997 builtin and then its argument prototype would still apply. */
10998 char kvm_open ();
10999 #ifdef F77_DUMMY_MAIN
11000 # ifdef __cplusplus
11001 extern "C"
11002 # endif
11003 int F77_DUMMY_MAIN() { return 1; }
11004 #endif
11005 int
11006 main ()
11007 {
11008 kvm_open ();
11009 ;
11010 return 0;
11011 }
11012 _ACEOF
11013 rm -f conftest.$ac_objext conftest$ac_exeext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015 (eval $ac_link) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -s conftest$ac_exeext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_lib_kvm_kvm_open=yes
11026 else
11027 echo "$as_me: failed program was:" >&5
11028 cat conftest.$ac_ext >&5
11029 ac_cv_lib_kvm_kvm_open=no
11030 fi
11031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11032 LIBS=$ac_check_lib_save_LIBS
11033 fi
11034 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11035 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
11036 if test $ac_cv_lib_kvm_kvm_open = yes; then
11037 LIBS="-lkvm $LIBS"
11038 fi
11039
11040 # Check for the 4.4BSD definition of getloadavg.
11041 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11042 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
11043 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046 ac_check_lib_save_LIBS=$LIBS
11047 LIBS="-lutil $LIBS"
11048 cat >conftest.$ac_ext <<_ACEOF
11049 #line $LINENO "configure"
11050 #include "confdefs.h"
11051
11052 /* Override any gcc2 internal prototype to avoid an error. */
11053 #ifdef __cplusplus
11054 extern "C"
11055 #endif
11056 /* We use char because int might match the return type of a gcc2
11057 builtin and then its argument prototype would still apply. */
11058 char getloadavg ();
11059 #ifdef F77_DUMMY_MAIN
11060 # ifdef __cplusplus
11061 extern "C"
11062 # endif
11063 int F77_DUMMY_MAIN() { return 1; }
11064 #endif
11065 int
11066 main ()
11067 {
11068 getloadavg ();
11069 ;
11070 return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 ac_cv_lib_util_getloadavg=yes
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11089 ac_cv_lib_util_getloadavg=no
11090 fi
11091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11092 LIBS=$ac_check_lib_save_LIBS
11093 fi
11094 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11095 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
11096 if test $ac_cv_lib_util_getloadavg = yes; then
11097 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11098 fi
11099
11100 fi
11101
11102 if test $ac_have_func = no; then
11103 # There is a commonly available library for RS/6000 AIX.
11104 # Since it is not a standard part of AIX, it might be installed locally.
11105 ac_getloadavg_LIBS=$LIBS
11106 LIBS="-L/usr/local/lib $LIBS"
11107 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11108 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
11109 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
11112 ac_check_lib_save_LIBS=$LIBS
11113 LIBS="-lgetloadavg $LIBS"
11114 cat >conftest.$ac_ext <<_ACEOF
11115 #line $LINENO "configure"
11116 #include "confdefs.h"
11117
11118 /* Override any gcc2 internal prototype to avoid an error. */
11119 #ifdef __cplusplus
11120 extern "C"
11121 #endif
11122 /* We use char because int might match the return type of a gcc2
11123 builtin and then its argument prototype would still apply. */
11124 char getloadavg ();
11125 #ifdef F77_DUMMY_MAIN
11126 # ifdef __cplusplus
11127 extern "C"
11128 # endif
11129 int F77_DUMMY_MAIN() { return 1; }
11130 #endif
11131 int
11132 main ()
11133 {
11134 getloadavg ();
11135 ;
11136 return 0;
11137 }
11138 _ACEOF
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11141 (eval $ac_link) 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try='test -s conftest$ac_exeext'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_cv_lib_getloadavg_getloadavg=yes
11152 else
11153 echo "$as_me: failed program was:" >&5
11154 cat conftest.$ac_ext >&5
11155 ac_cv_lib_getloadavg_getloadavg=no
11156 fi
11157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11159 fi
11160 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11161 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
11162 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11163 LIBS="-lgetloadavg $LIBS"
11164 else
11165 LIBS=$ac_getloadavg_LIBS
11166 fi
11167
11168 fi
11169
11170 # Make sure it is really in the library, if we think we found it,
11171 # otherwise set up the replacement function.
11172
11173 for ac_func in getloadavg
11174 do
11175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11176 echo "$as_me:$LINENO: checking for $ac_func" >&5
11177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11178 if eval "test \"\${$as_ac_var+set}\" = set"; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181 cat >conftest.$ac_ext <<_ACEOF
11182 #line $LINENO "configure"
11183 #include "confdefs.h"
11184 /* System header to define __stub macros and hopefully few prototypes,
11185 which can conflict with char $ac_func (); below. */
11186 #include <assert.h>
11187 /* Override any gcc2 internal prototype to avoid an error. */
11188 #ifdef __cplusplus
11189 extern "C"
11190 #endif
11191 /* We use char because int might match the return type of a gcc2
11192 builtin and then its argument prototype would still apply. */
11193 char $ac_func ();
11194 char (*f) ();
11195
11196 #ifdef F77_DUMMY_MAIN
11197 # ifdef __cplusplus
11198 extern "C"
11199 # endif
11200 int F77_DUMMY_MAIN() { return 1; }
11201 #endif
11202 int
11203 main ()
11204 {
11205 /* The GNU C library defines this for functions which it implements
11206 to always fail with ENOSYS. Some functions are actually named
11207 something starting with __ and the normal name is an alias. */
11208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11209 choke me
11210 #else
11211 f = $ac_func;
11212 #endif
11213
11214 ;
11215 return 0;
11216 }
11217 _ACEOF
11218 rm -f conftest.$ac_objext conftest$ac_exeext
11219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11220 (eval $ac_link) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
11224 { ac_try='test -s conftest$ac_exeext'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 eval "$as_ac_var=yes"
11231 else
11232 echo "$as_me: failed program was:" >&5
11233 cat conftest.$ac_ext >&5
11234 eval "$as_ac_var=no"
11235 fi
11236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11237 fi
11238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11240 if test `eval echo '${'$as_ac_var'}'` = yes; then
11241 cat >>confdefs.h <<_ACEOF
11242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11243 _ACEOF
11244
11245 else
11246 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11247
11248 cat >>confdefs.h <<\_ACEOF
11249 #define C_GETLOADAVG 1
11250 _ACEOF
11251
11252 # Figure out what our getloadavg.c needs.
11253 ac_have_func=no
11254 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11255 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11256 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11257 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 fi
11260 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11261 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11262 else
11263 # Is the header compilable?
11264 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11265 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11266 cat >conftest.$ac_ext <<_ACEOF
11267 #line $LINENO "configure"
11268 #include "confdefs.h"
11269 $ac_includes_default
11270 #include <sys/dg_sys_info.h>
11271 _ACEOF
11272 rm -f conftest.$ac_objext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11274 (eval $ac_compile) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } &&
11278 { ac_try='test -s conftest.$ac_objext'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11284 ac_header_compiler=yes
11285 else
11286 echo "$as_me: failed program was:" >&5
11287 cat conftest.$ac_ext >&5
11288 ac_header_compiler=no
11289 fi
11290 rm -f conftest.$ac_objext conftest.$ac_ext
11291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11292 echo "${ECHO_T}$ac_header_compiler" >&6
11293
11294 # Is the header present?
11295 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11296 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11297 cat >conftest.$ac_ext <<_ACEOF
11298 #line $LINENO "configure"
11299 #include "confdefs.h"
11300 #include <sys/dg_sys_info.h>
11301 _ACEOF
11302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11304 ac_status=$?
11305 egrep -v '^ *\+' conftest.er1 >conftest.err
11306 rm -f conftest.er1
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } >/dev/null; then
11310 if test -s conftest.err; then
11311 ac_cpp_err=$ac_c_preproc_warn_flag
11312 else
11313 ac_cpp_err=
11314 fi
11315 else
11316 ac_cpp_err=yes
11317 fi
11318 if test -z "$ac_cpp_err"; then
11319 ac_header_preproc=yes
11320 else
11321 echo "$as_me: failed program was:" >&5
11322 cat conftest.$ac_ext >&5
11323 ac_header_preproc=no
11324 fi
11325 rm -f conftest.err conftest.$ac_ext
11326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11327 echo "${ECHO_T}$ac_header_preproc" >&6
11328
11329 # So? What about this header?
11330 case $ac_header_compiler:$ac_header_preproc in
11331 yes:no )
11332 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11333 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11335 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11336 no:yes )
11337 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11338 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11340 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11342 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11343 esac
11344 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11345 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11346 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
11350 fi
11351 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11352 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11353
11354 fi
11355 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11356 ac_have_func=yes
11357
11358 cat >>confdefs.h <<\_ACEOF
11359 #define DGUX 1
11360 _ACEOF
11361
11362
11363 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11364 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11365 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 else
11368 ac_check_lib_save_LIBS=$LIBS
11369 LIBS="-ldgc $LIBS"
11370 cat >conftest.$ac_ext <<_ACEOF
11371 #line $LINENO "configure"
11372 #include "confdefs.h"
11373
11374 /* Override any gcc2 internal prototype to avoid an error. */
11375 #ifdef __cplusplus
11376 extern "C"
11377 #endif
11378 /* We use char because int might match the return type of a gcc2
11379 builtin and then its argument prototype would still apply. */
11380 char dg_sys_info ();
11381 #ifdef F77_DUMMY_MAIN
11382 # ifdef __cplusplus
11383 extern "C"
11384 # endif
11385 int F77_DUMMY_MAIN() { return 1; }
11386 #endif
11387 int
11388 main ()
11389 {
11390 dg_sys_info ();
11391 ;
11392 return 0;
11393 }
11394 _ACEOF
11395 rm -f conftest.$ac_objext conftest$ac_exeext
11396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11397 (eval $ac_link) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try='test -s conftest$ac_exeext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_cv_lib_dgc_dg_sys_info=yes
11408 else
11409 echo "$as_me: failed program was:" >&5
11410 cat conftest.$ac_ext >&5
11411 ac_cv_lib_dgc_dg_sys_info=no
11412 fi
11413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11414 LIBS=$ac_check_lib_save_LIBS
11415 fi
11416 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11417 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11418 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11419 cat >>confdefs.h <<_ACEOF
11420 #define HAVE_LIBDGC 1
11421 _ACEOF
11422
11423 LIBS="-ldgc $LIBS"
11424
11425 fi
11426
11427 fi
11428
11429
11430
11431 if test "${ac_cv_header_locale_h+set}" = set; then
11432 echo "$as_me:$LINENO: checking for locale.h" >&5
11433 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11434 if test "${ac_cv_header_locale_h+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 fi
11437 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11438 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11439 else
11440 # Is the header compilable?
11441 echo "$as_me:$LINENO: checking locale.h usability" >&5
11442 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11443 cat >conftest.$ac_ext <<_ACEOF
11444 #line $LINENO "configure"
11445 #include "confdefs.h"
11446 $ac_includes_default
11447 #include <locale.h>
11448 _ACEOF
11449 rm -f conftest.$ac_objext
11450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11451 (eval $ac_compile) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } &&
11455 { ac_try='test -s conftest.$ac_objext'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
11461 ac_header_compiler=yes
11462 else
11463 echo "$as_me: failed program was:" >&5
11464 cat conftest.$ac_ext >&5
11465 ac_header_compiler=no
11466 fi
11467 rm -f conftest.$ac_objext conftest.$ac_ext
11468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11469 echo "${ECHO_T}$ac_header_compiler" >&6
11470
11471 # Is the header present?
11472 echo "$as_me:$LINENO: checking locale.h presence" >&5
11473 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11474 cat >conftest.$ac_ext <<_ACEOF
11475 #line $LINENO "configure"
11476 #include "confdefs.h"
11477 #include <locale.h>
11478 _ACEOF
11479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11481 ac_status=$?
11482 egrep -v '^ *\+' conftest.er1 >conftest.err
11483 rm -f conftest.er1
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } >/dev/null; then
11487 if test -s conftest.err; then
11488 ac_cpp_err=$ac_c_preproc_warn_flag
11489 else
11490 ac_cpp_err=
11491 fi
11492 else
11493 ac_cpp_err=yes
11494 fi
11495 if test -z "$ac_cpp_err"; then
11496 ac_header_preproc=yes
11497 else
11498 echo "$as_me: failed program was:" >&5
11499 cat conftest.$ac_ext >&5
11500 ac_header_preproc=no
11501 fi
11502 rm -f conftest.err conftest.$ac_ext
11503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11504 echo "${ECHO_T}$ac_header_preproc" >&6
11505
11506 # So? What about this header?
11507 case $ac_header_compiler:$ac_header_preproc in
11508 yes:no )
11509 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11510 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11512 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11513 no:yes )
11514 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11515 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11516 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11517 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11519 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11520 esac
11521 echo "$as_me:$LINENO: checking for locale.h" >&5
11522 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11523 if test "${ac_cv_header_locale_h+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 else
11526 ac_cv_header_locale_h=$ac_header_preproc
11527 fi
11528 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11529 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11530
11531 fi
11532
11533
11534
11535 for ac_func in setlocale
11536 do
11537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11538 echo "$as_me:$LINENO: checking for $ac_func" >&5
11539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11540 if eval "test \"\${$as_ac_var+set}\" = set"; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543 cat >conftest.$ac_ext <<_ACEOF
11544 #line $LINENO "configure"
11545 #include "confdefs.h"
11546 /* System header to define __stub macros and hopefully few prototypes,
11547 which can conflict with char $ac_func (); below. */
11548 #include <assert.h>
11549 /* Override any gcc2 internal prototype to avoid an error. */
11550 #ifdef __cplusplus
11551 extern "C"
11552 #endif
11553 /* We use char because int might match the return type of a gcc2
11554 builtin and then its argument prototype would still apply. */
11555 char $ac_func ();
11556 char (*f) ();
11557
11558 #ifdef F77_DUMMY_MAIN
11559 # ifdef __cplusplus
11560 extern "C"
11561 # endif
11562 int F77_DUMMY_MAIN() { return 1; }
11563 #endif
11564 int
11565 main ()
11566 {
11567 /* The GNU C library defines this for functions which it implements
11568 to always fail with ENOSYS. Some functions are actually named
11569 something starting with __ and the normal name is an alias. */
11570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11571 choke me
11572 #else
11573 f = $ac_func;
11574 #endif
11575
11576 ;
11577 return 0;
11578 }
11579 _ACEOF
11580 rm -f conftest.$ac_objext conftest$ac_exeext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11582 (eval $ac_link) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try='test -s conftest$ac_exeext'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
11592 eval "$as_ac_var=yes"
11593 else
11594 echo "$as_me: failed program was:" >&5
11595 cat conftest.$ac_ext >&5
11596 eval "$as_ac_var=no"
11597 fi
11598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11599 fi
11600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11602 if test `eval echo '${'$as_ac_var'}'` = yes; then
11603 cat >>confdefs.h <<_ACEOF
11604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11605 _ACEOF
11606
11607 fi
11608 done
11609
11610
11611 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11612 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11613 # Irix 4.0.5F has the header but not the library.
11614 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11615 ac_have_func=yes
11616
11617 cat >>confdefs.h <<\_ACEOF
11618 #define SVR4 1
11619 _ACEOF
11620
11621 fi
11622
11623 if test $ac_have_func = no; then
11624 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11625 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11626 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11627 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 fi
11630 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11631 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11632 else
11633 # Is the header compilable?
11634 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11635 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11636 cat >conftest.$ac_ext <<_ACEOF
11637 #line $LINENO "configure"
11638 #include "confdefs.h"
11639 $ac_includes_default
11640 #include <inq_stats/cpustats.h>
11641 _ACEOF
11642 rm -f conftest.$ac_objext
11643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11644 (eval $ac_compile) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try='test -s conftest.$ac_objext'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 ac_header_compiler=yes
11655 else
11656 echo "$as_me: failed program was:" >&5
11657 cat conftest.$ac_ext >&5
11658 ac_header_compiler=no
11659 fi
11660 rm -f conftest.$ac_objext conftest.$ac_ext
11661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11662 echo "${ECHO_T}$ac_header_compiler" >&6
11663
11664 # Is the header present?
11665 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11666 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11667 cat >conftest.$ac_ext <<_ACEOF
11668 #line $LINENO "configure"
11669 #include "confdefs.h"
11670 #include <inq_stats/cpustats.h>
11671 _ACEOF
11672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11674 ac_status=$?
11675 egrep -v '^ *\+' conftest.er1 >conftest.err
11676 rm -f conftest.er1
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } >/dev/null; then
11680 if test -s conftest.err; then
11681 ac_cpp_err=$ac_c_preproc_warn_flag
11682 else
11683 ac_cpp_err=
11684 fi
11685 else
11686 ac_cpp_err=yes
11687 fi
11688 if test -z "$ac_cpp_err"; then
11689 ac_header_preproc=yes
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 cat conftest.$ac_ext >&5
11693 ac_header_preproc=no
11694 fi
11695 rm -f conftest.err conftest.$ac_ext
11696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11697 echo "${ECHO_T}$ac_header_preproc" >&6
11698
11699 # So? What about this header?
11700 case $ac_header_compiler:$ac_header_preproc in
11701 yes:no )
11702 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11703 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11705 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11706 no:yes )
11707 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11708 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11710 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11712 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11713 esac
11714 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11715 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11716 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
11720 fi
11721 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11722 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11723
11724 fi
11725 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11726 ac_have_func=yes
11727
11728 cat >>confdefs.h <<\_ACEOF
11729 #define UMAX 1
11730 _ACEOF
11731
11732
11733 cat >>confdefs.h <<\_ACEOF
11734 #define UMAX4_3 1
11735 _ACEOF
11736
11737 fi
11738
11739
11740 fi
11741
11742 if test $ac_have_func = no; then
11743 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11744 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11745 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11746 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 fi
11749 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11750 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11751 else
11752 # Is the header compilable?
11753 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11754 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11755 cat >conftest.$ac_ext <<_ACEOF
11756 #line $LINENO "configure"
11757 #include "confdefs.h"
11758 $ac_includes_default
11759 #include <sys/cpustats.h>
11760 _ACEOF
11761 rm -f conftest.$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
11767 { ac_try='test -s conftest.$ac_objext'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773 ac_header_compiler=yes
11774 else
11775 echo "$as_me: failed program was:" >&5
11776 cat conftest.$ac_ext >&5
11777 ac_header_compiler=no
11778 fi
11779 rm -f conftest.$ac_objext conftest.$ac_ext
11780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781 echo "${ECHO_T}$ac_header_compiler" >&6
11782
11783 # Is the header present?
11784 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11785 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11786 cat >conftest.$ac_ext <<_ACEOF
11787 #line $LINENO "configure"
11788 #include "confdefs.h"
11789 #include <sys/cpustats.h>
11790 _ACEOF
11791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11793 ac_status=$?
11794 egrep -v '^ *\+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } >/dev/null; then
11799 if test -s conftest.err; then
11800 ac_cpp_err=$ac_c_preproc_warn_flag
11801 else
11802 ac_cpp_err=
11803 fi
11804 else
11805 ac_cpp_err=yes
11806 fi
11807 if test -z "$ac_cpp_err"; then
11808 ac_header_preproc=yes
11809 else
11810 echo "$as_me: failed program was:" >&5
11811 cat conftest.$ac_ext >&5
11812 ac_header_preproc=no
11813 fi
11814 rm -f conftest.err conftest.$ac_ext
11815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11816 echo "${ECHO_T}$ac_header_preproc" >&6
11817
11818 # So? What about this header?
11819 case $ac_header_compiler:$ac_header_preproc in
11820 yes:no )
11821 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11822 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11824 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11825 no:yes )
11826 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11827 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11829 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11831 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11832 esac
11833 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11834 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11835 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838 ac_cv_header_sys_cpustats_h=$ac_header_preproc
11839 fi
11840 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11841 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11842
11843 fi
11844 if test $ac_cv_header_sys_cpustats_h = yes; then
11845 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
11846 #define UMAX 1
11847 _ACEOF
11848
11849 fi
11850
11851
11852 fi
11853
11854 if test $ac_have_func = no; then
11855
11856 for ac_header in mach/mach.h
11857 do
11858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11860 echo "$as_me:$LINENO: checking for $ac_header" >&5
11861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 fi
11865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11867 else
11868 # Is the header compilable?
11869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11871 cat >conftest.$ac_ext <<_ACEOF
11872 #line $LINENO "configure"
11873 #include "confdefs.h"
11874 $ac_includes_default
11875 #include <$ac_header>
11876 _ACEOF
11877 rm -f conftest.$ac_objext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879 (eval $ac_compile) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try='test -s conftest.$ac_objext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 ac_header_compiler=yes
11890 else
11891 echo "$as_me: failed program was:" >&5
11892 cat conftest.$ac_ext >&5
11893 ac_header_compiler=no
11894 fi
11895 rm -f conftest.$ac_objext conftest.$ac_ext
11896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11897 echo "${ECHO_T}$ac_header_compiler" >&6
11898
11899 # Is the header present?
11900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11902 cat >conftest.$ac_ext <<_ACEOF
11903 #line $LINENO "configure"
11904 #include "confdefs.h"
11905 #include <$ac_header>
11906 _ACEOF
11907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11909 ac_status=$?
11910 egrep -v '^ *\+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } >/dev/null; then
11915 if test -s conftest.err; then
11916 ac_cpp_err=$ac_c_preproc_warn_flag
11917 else
11918 ac_cpp_err=
11919 fi
11920 else
11921 ac_cpp_err=yes
11922 fi
11923 if test -z "$ac_cpp_err"; then
11924 ac_header_preproc=yes
11925 else
11926 echo "$as_me: failed program was:" >&5
11927 cat conftest.$ac_ext >&5
11928 ac_header_preproc=no
11929 fi
11930 rm -f conftest.err conftest.$ac_ext
11931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11932 echo "${ECHO_T}$ac_header_preproc" >&6
11933
11934 # So? What about this header?
11935 case $ac_header_compiler:$ac_header_preproc in
11936 yes:no )
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11941 no:yes )
11942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11948 esac
11949 echo "$as_me:$LINENO: checking for $ac_header" >&5
11950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 else
11954 eval "$as_ac_Header=$ac_header_preproc"
11955 fi
11956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11958
11959 fi
11960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11961 cat >>confdefs.h <<_ACEOF
11962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11963 _ACEOF
11964
11965 fi
11966
11967 done
11968
11969 fi
11970
11971
11972 for ac_header in nlist.h
11973 do
11974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11976 echo "$as_me:$LINENO: checking for $ac_header" >&5
11977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 fi
11981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11983 else
11984 # Is the header compilable?
11985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11987 cat >conftest.$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11989 #include "confdefs.h"
11990 $ac_includes_default
11991 #include <$ac_header>
11992 _ACEOF
11993 rm -f conftest.$ac_objext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } &&
11999 { ac_try='test -s conftest.$ac_objext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 ac_header_compiler=yes
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 cat conftest.$ac_ext >&5
12009 ac_header_compiler=no
12010 fi
12011 rm -f conftest.$ac_objext conftest.$ac_ext
12012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12013 echo "${ECHO_T}$ac_header_compiler" >&6
12014
12015 # Is the header present?
12016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12018 cat >conftest.$ac_ext <<_ACEOF
12019 #line $LINENO "configure"
12020 #include "confdefs.h"
12021 #include <$ac_header>
12022 _ACEOF
12023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12025 ac_status=$?
12026 egrep -v '^ *\+' conftest.er1 >conftest.err
12027 rm -f conftest.er1
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } >/dev/null; then
12031 if test -s conftest.err; then
12032 ac_cpp_err=$ac_c_preproc_warn_flag
12033 else
12034 ac_cpp_err=
12035 fi
12036 else
12037 ac_cpp_err=yes
12038 fi
12039 if test -z "$ac_cpp_err"; then
12040 ac_header_preproc=yes
12041 else
12042 echo "$as_me: failed program was:" >&5
12043 cat conftest.$ac_ext >&5
12044 ac_header_preproc=no
12045 fi
12046 rm -f conftest.err conftest.$ac_ext
12047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12048 echo "${ECHO_T}$ac_header_preproc" >&6
12049
12050 # So? What about this header?
12051 case $ac_header_compiler:$ac_header_preproc in
12052 yes:no )
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12057 no:yes )
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12064 esac
12065 echo "$as_me:$LINENO: checking for $ac_header" >&5
12066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12069 else
12070 eval "$as_ac_Header=$ac_header_preproc"
12071 fi
12072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12074
12075 fi
12076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12077 cat >>confdefs.h <<_ACEOF
12078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12079 _ACEOF
12080 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
12081 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
12082 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085 cat >conftest.$ac_ext <<_ACEOF
12086 #line $LINENO "configure"
12087 #include "confdefs.h"
12088 #include <nlist.h>
12089
12090 #ifdef F77_DUMMY_MAIN
12091 # ifdef __cplusplus
12092 extern "C"
12093 # endif
12094 int F77_DUMMY_MAIN() { return 1; }
12095 #endif
12096 int
12097 main ()
12098 {
12099 static struct nlist ac_aggr;
12100 if (ac_aggr.n_un.n_name)
12101 return 0;
12102 ;
12103 return 0;
12104 }
12105 _ACEOF
12106 rm -f conftest.$ac_objext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12108 (eval $ac_compile) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -s conftest.$ac_objext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_member_struct_nlist_n_un_n_name=yes
12119 else
12120 echo "$as_me: failed program was:" >&5
12121 cat conftest.$ac_ext >&5
12122 ac_cv_member_struct_nlist_n_un_n_name=no
12123 fi
12124 rm -f conftest.$ac_objext conftest.$ac_ext
12125 fi
12126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
12127 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
12128 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
12129
12130 cat >>confdefs.h <<_ACEOF
12131 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12132 _ACEOF
12133
12134
12135 cat >>confdefs.h <<\_ACEOF
12136 #define NLIST_NAME_UNION 1
12137 _ACEOF
12138
12139 fi
12140
12141
12142 fi
12143
12144 done
12145
12146 fi
12147 done
12148
12149
12150 # Some definitions of getloadavg require that the program be installed setgid.
12151 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
12152 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
12153 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156 cat >conftest.$ac_ext <<_ACEOF
12157 #line $LINENO "configure"
12158 #include "confdefs.h"
12159 #include "$srcdir/getloadavg.c"
12160 #ifdef LDAV_PRIVILEGED
12161 Yowza Am I SETGID yet
12162 #endif
12163 _ACEOF
12164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12165 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
12166 ac_cv_func_getloadavg_setgid=yes
12167 else
12168 ac_cv_func_getloadavg_setgid=no
12169 fi
12170 rm -f conftest*
12171
12172 fi
12173 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12174 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12175 if test $ac_cv_func_getloadavg_setgid = yes; then
12176 NEED_SETGID=true
12177
12178 cat >>confdefs.h <<\_ACEOF
12179 #define GETLOADAVG_PRIVILEGED 1
12180 _ACEOF
12181
12182 else
12183 NEED_SETGID=false
12184 fi
12185
12186 if test $ac_cv_func_getloadavg_setgid = yes; then
12187 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12188 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12189 if test "${ac_cv_group_kmem+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12193 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12194 # If we got an error (system does not support symlinks), try without -L.
12195 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12196 ac_cv_group_kmem=`echo $ac_ls_output \
12197 | sed -ne 's/[ ][ ]*/ /g;
12198 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12199 / /s/.* //;p;'`
12200
12201 fi
12202 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12203 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12204 KMEM_GROUP=$ac_cv_group_kmem
12205 fi
12206 if test "x$ac_save_LIBS" = x; then
12207 GETLOADAVG_LIBS=$LIBS
12208 else
12209 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12210 fi
12211 LIBS=$ac_save_LIBS
12212
12213
12214
12215 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12216 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12217 if test "${ac_cv_sys_largefile_source+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 else
12220 while :; do
12221 ac_cv_sys_largefile_source=no
12222 cat >conftest.$ac_ext <<_ACEOF
12223 #line $LINENO "configure"
12224 #include "confdefs.h"
12225 #include <stdio.h>
12226 #ifdef F77_DUMMY_MAIN
12227 # ifdef __cplusplus
12228 extern "C"
12229 # endif
12230 int F77_DUMMY_MAIN() { return 1; }
12231 #endif
12232 int
12233 main ()
12234 {
12235 return !fseeko;
12236 ;
12237 return 0;
12238 }
12239 _ACEOF
12240 rm -f conftest.$ac_objext
12241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12242 (eval $ac_compile) 2>&5
12243 ac_status=$?
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } &&
12246 { ac_try='test -s conftest.$ac_objext'
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12249 ac_status=$?
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; }; then
12252 break
12253 else
12254 echo "$as_me: failed program was:" >&5
12255 cat conftest.$ac_ext >&5
12256 fi
12257 rm -f conftest.$ac_objext conftest.$ac_ext
12258 cat >conftest.$ac_ext <<_ACEOF
12259 #line $LINENO "configure"
12260 #include "confdefs.h"
12261 #define _LARGEFILE_SOURCE 1
12262 #include <stdio.h>
12263 #ifdef F77_DUMMY_MAIN
12264 # ifdef __cplusplus
12265 extern "C"
12266 # endif
12267 int F77_DUMMY_MAIN() { return 1; }
12268 #endif
12269 int
12270 main ()
12271 {
12272 return !fseeko;
12273 ;
12274 return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -s conftest.$ac_objext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_cv_sys_largefile_source=1; break
12290 else
12291 echo "$as_me: failed program was:" >&5
12292 cat conftest.$ac_ext >&5
12293 fi
12294 rm -f conftest.$ac_objext conftest.$ac_ext
12295 break
12296 done
12297 fi
12298 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12299 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12300 if test "$ac_cv_sys_largefile_source" != no; then
12301
12302 cat >>confdefs.h <<_ACEOF
12303 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12304 _ACEOF
12305
12306 fi
12307 rm -f conftest*
12308
12309 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12310 # in glibc 2.1.3, but that breaks too many other things.
12311 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12312 echo "$as_me:$LINENO: checking for fseeko" >&5
12313 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12314 if test "${ac_cv_func_fseeko+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317 cat >conftest.$ac_ext <<_ACEOF
12318 #line $LINENO "configure"
12319 #include "confdefs.h"
12320 #include <stdio.h>
12321 #ifdef F77_DUMMY_MAIN
12322 # ifdef __cplusplus
12323 extern "C"
12324 # endif
12325 int F77_DUMMY_MAIN() { return 1; }
12326 #endif
12327 int
12328 main ()
12329 {
12330 return fseeko && fseeko (stdin, 0, 0);
12331 ;
12332 return 0;
12333 }
12334 _ACEOF
12335 rm -f conftest.$ac_objext conftest$ac_exeext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337 (eval $ac_link) 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
12341 { ac_try='test -s conftest$ac_exeext'
12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; }; then
12347 ac_cv_func_fseeko=yes
12348 else
12349 echo "$as_me: failed program was:" >&5
12350 cat conftest.$ac_ext >&5
12351 ac_cv_func_fseeko=no
12352 fi
12353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12354 fi
12355 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12356 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12357 if test $ac_cv_func_fseeko = yes; then
12358
12359 cat >>confdefs.h <<\_ACEOF
12360 #define HAVE_FSEEKO 1
12361 _ACEOF
12362
12363 fi
12364
12365
12366 # UNIX98 PTYs.
12367
12368 for ac_func in grantpt
12369 do
12370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12371 echo "$as_me:$LINENO: checking for $ac_func" >&5
12372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12373 if eval "test \"\${$as_ac_var+set}\" = set"; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 else
12376 cat >conftest.$ac_ext <<_ACEOF
12377 #line $LINENO "configure"
12378 #include "confdefs.h"
12379 /* System header to define __stub macros and hopefully few prototypes,
12380 which can conflict with char $ac_func (); below. */
12381 #include <assert.h>
12382 /* Override any gcc2 internal prototype to avoid an error. */
12383 #ifdef __cplusplus
12384 extern "C"
12385 #endif
12386 /* We use char because int might match the return type of a gcc2
12387 builtin and then its argument prototype would still apply. */
12388 char $ac_func ();
12389 char (*f) ();
12390
12391 #ifdef F77_DUMMY_MAIN
12392 # ifdef __cplusplus
12393 extern "C"
12394 # endif
12395 int F77_DUMMY_MAIN() { return 1; }
12396 #endif
12397 int
12398 main ()
12399 {
12400 /* The GNU C library defines this for functions which it implements
12401 to always fail with ENOSYS. Some functions are actually named
12402 something starting with __ and the normal name is an alias. */
12403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12404 choke me
12405 #else
12406 f = $ac_func;
12407 #endif
12408
12409 ;
12410 return 0;
12411 }
12412 _ACEOF
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12415 (eval $ac_link) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
12419 { ac_try='test -s conftest$ac_exeext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 eval "$as_ac_var=yes"
12426 else
12427 echo "$as_me: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12429 eval "$as_ac_var=no"
12430 fi
12431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12432 fi
12433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12435 if test `eval echo '${'$as_ac_var'}'` = yes; then
12436 cat >>confdefs.h <<_ACEOF
12437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12438 _ACEOF
12439
12440 fi
12441 done
12442
12443
12444 # PTY-related GNU extensions.
12445
12446 for ac_func in getpt
12447 do
12448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12449 echo "$as_me:$LINENO: checking for $ac_func" >&5
12450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12451 if eval "test \"\${$as_ac_var+set}\" = set"; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12453 else
12454 cat >conftest.$ac_ext <<_ACEOF
12455 #line $LINENO "configure"
12456 #include "confdefs.h"
12457 /* System header to define __stub macros and hopefully few prototypes,
12458 which can conflict with char $ac_func (); below. */
12459 #include <assert.h>
12460 /* Override any gcc2 internal prototype to avoid an error. */
12461 #ifdef __cplusplus
12462 extern "C"
12463 #endif
12464 /* We use char because int might match the return type of a gcc2
12465 builtin and then its argument prototype would still apply. */
12466 char $ac_func ();
12467 char (*f) ();
12468
12469 #ifdef F77_DUMMY_MAIN
12470 # ifdef __cplusplus
12471 extern "C"
12472 # endif
12473 int F77_DUMMY_MAIN() { return 1; }
12474 #endif
12475 int
12476 main ()
12477 {
12478 /* The GNU C library defines this for functions which it implements
12479 to always fail with ENOSYS. Some functions are actually named
12480 something starting with __ and the normal name is an alias. */
12481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12482 choke me
12483 #else
12484 f = $ac_func;
12485 #endif
12486
12487 ;
12488 return 0;
12489 }
12490 _ACEOF
12491 rm -f conftest.$ac_objext conftest$ac_exeext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12493 (eval $ac_link) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -s conftest$ac_exeext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 eval "$as_ac_var=yes"
12504 else
12505 echo "$as_me: failed program was:" >&5
12506 cat conftest.$ac_ext >&5
12507 eval "$as_ac_var=no"
12508 fi
12509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12510 fi
12511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12513 if test `eval echo '${'$as_ac_var'}'` = yes; then
12514 cat >>confdefs.h <<_ACEOF
12515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12516 _ACEOF
12517
12518 fi
12519 done
12520
12521
12522 # Check this now, so that we will NOT find the above functions in ncurses.
12523 # That is because we have not set up to link ncurses in lib-src.
12524 # It's better to believe a function is not available
12525 # than to expect to find it in ncurses.
12526
12527 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
12528 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
12529 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532 ac_check_lib_save_LIBS=$LIBS
12533 LIBS="-lncurses $LIBS"
12534 cat >conftest.$ac_ext <<_ACEOF
12535 #line $LINENO "configure"
12536 #include "confdefs.h"
12537
12538 /* Override any gcc2 internal prototype to avoid an error. */
12539 #ifdef __cplusplus
12540 extern "C"
12541 #endif
12542 /* We use char because int might match the return type of a gcc2
12543 builtin and then its argument prototype would still apply. */
12544 char tparm ();
12545 #ifdef F77_DUMMY_MAIN
12546 # ifdef __cplusplus
12547 extern "C"
12548 # endif
12549 int F77_DUMMY_MAIN() { return 1; }
12550 #endif
12551 int
12552 main ()
12553 {
12554 tparm ();
12555 ;
12556 return 0;
12557 }
12558 _ACEOF
12559 rm -f conftest.$ac_objext conftest$ac_exeext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12561 (eval $ac_link) 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try='test -s conftest$ac_exeext'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 ac_cv_lib_ncurses_tparm=yes
12572 else
12573 echo "$as_me: failed program was:" >&5
12574 cat conftest.$ac_ext >&5
12575 ac_cv_lib_ncurses_tparm=no
12576 fi
12577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12578 LIBS=$ac_check_lib_save_LIBS
12579 fi
12580 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
12581 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
12582 if test $ac_cv_lib_ncurses_tparm = yes; then
12583 cat >>confdefs.h <<_ACEOF
12584 #define HAVE_LIBNCURSES 1
12585 _ACEOF
12586
12587 LIBS="-lncurses $LIBS"
12588
12589 fi
12590
12591
12592 # Do we need the Hesiod library to provide the support routines?
12593 if test "$with_hesiod" = yes ; then
12594 # Don't set $LIBS here -- see comments above.
12595 resolv=no
12596 echo "$as_me:$LINENO: checking for res_send" >&5
12597 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
12598 if test "${ac_cv_func_res_send+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 else
12601 cat >conftest.$ac_ext <<_ACEOF
12602 #line $LINENO "configure"
12603 #include "confdefs.h"
12604 /* System header to define __stub macros and hopefully few prototypes,
12605 which can conflict with char res_send (); below. */
12606 #include <assert.h>
12607 /* Override any gcc2 internal prototype to avoid an error. */
12608 #ifdef __cplusplus
12609 extern "C"
12610 #endif
12611 /* We use char because int might match the return type of a gcc2
12612 builtin and then its argument prototype would still apply. */
12613 char res_send ();
12614 char (*f) ();
12615
12616 #ifdef F77_DUMMY_MAIN
12617 # ifdef __cplusplus
12618 extern "C"
12619 # endif
12620 int F77_DUMMY_MAIN() { return 1; }
12621 #endif
12622 int
12623 main ()
12624 {
12625 /* The GNU C library defines this for functions which it implements
12626 to always fail with ENOSYS. Some functions are actually named
12627 something starting with __ and the normal name is an alias. */
12628 #if defined (__stub_res_send) || defined (__stub___res_send)
12629 choke me
12630 #else
12631 f = res_send;
12632 #endif
12633
12634 ;
12635 return 0;
12636 }
12637 _ACEOF
12638 rm -f conftest.$ac_objext conftest$ac_exeext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12640 (eval $ac_link) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try='test -s conftest$ac_exeext'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 ac_cv_func_res_send=yes
12651 else
12652 echo "$as_me: failed program was:" >&5
12653 cat conftest.$ac_ext >&5
12654 ac_cv_func_res_send=no
12655 fi
12656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12657 fi
12658 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
12659 echo "${ECHO_T}$ac_cv_func_res_send" >&6
12660 if test $ac_cv_func_res_send = yes; then
12661 :
12662 else
12663 echo "$as_me:$LINENO: checking for __res_send" >&5
12664 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
12665 if test "${ac_cv_func___res_send+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 else
12668 cat >conftest.$ac_ext <<_ACEOF
12669 #line $LINENO "configure"
12670 #include "confdefs.h"
12671 /* System header to define __stub macros and hopefully few prototypes,
12672 which can conflict with char __res_send (); below. */
12673 #include <assert.h>
12674 /* Override any gcc2 internal prototype to avoid an error. */
12675 #ifdef __cplusplus
12676 extern "C"
12677 #endif
12678 /* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12680 char __res_send ();
12681 char (*f) ();
12682
12683 #ifdef F77_DUMMY_MAIN
12684 # ifdef __cplusplus
12685 extern "C"
12686 # endif
12687 int F77_DUMMY_MAIN() { return 1; }
12688 #endif
12689 int
12690 main ()
12691 {
12692 /* The GNU C library defines this for functions which it implements
12693 to always fail with ENOSYS. Some functions are actually named
12694 something starting with __ and the normal name is an alias. */
12695 #if defined (__stub___res_send) || defined (__stub_____res_send)
12696 choke me
12697 #else
12698 f = __res_send;
12699 #endif
12700
12701 ;
12702 return 0;
12703 }
12704 _ACEOF
12705 rm -f conftest.$ac_objext conftest$ac_exeext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12707 (eval $ac_link) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try='test -s conftest$ac_exeext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_cv_func___res_send=yes
12718 else
12719 echo "$as_me: failed program was:" >&5
12720 cat conftest.$ac_ext >&5
12721 ac_cv_func___res_send=no
12722 fi
12723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12724 fi
12725 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
12726 echo "${ECHO_T}$ac_cv_func___res_send" >&6
12727 if test $ac_cv_func___res_send = yes; then
12728 :
12729 else
12730 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12731 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
12732 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 else
12735 ac_check_lib_save_LIBS=$LIBS
12736 LIBS="-lresolv $LIBS"
12737 cat >conftest.$ac_ext <<_ACEOF
12738 #line $LINENO "configure"
12739 #include "confdefs.h"
12740
12741 /* Override any gcc2 internal prototype to avoid an error. */
12742 #ifdef __cplusplus
12743 extern "C"
12744 #endif
12745 /* We use char because int might match the return type of a gcc2
12746 builtin and then its argument prototype would still apply. */
12747 char res_send ();
12748 #ifdef F77_DUMMY_MAIN
12749 # ifdef __cplusplus
12750 extern "C"
12751 # endif
12752 int F77_DUMMY_MAIN() { return 1; }
12753 #endif
12754 int
12755 main ()
12756 {
12757 res_send ();
12758 ;
12759 return 0;
12760 }
12761 _ACEOF
12762 rm -f conftest.$ac_objext conftest$ac_exeext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12764 (eval $ac_link) 2>&5
12765 ac_status=$?
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } &&
12768 { ac_try='test -s conftest$ac_exeext'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12771 ac_status=$?
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; }; then
12774 ac_cv_lib_resolv_res_send=yes
12775 else
12776 echo "$as_me: failed program was:" >&5
12777 cat conftest.$ac_ext >&5
12778 ac_cv_lib_resolv_res_send=no
12779 fi
12780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12782 fi
12783 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12784 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
12785 if test $ac_cv_lib_resolv_res_send = yes; then
12786 resolv=yes
12787 else
12788 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12789 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
12790 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 else
12793 ac_check_lib_save_LIBS=$LIBS
12794 LIBS="-lresolv $LIBS"
12795 cat >conftest.$ac_ext <<_ACEOF
12796 #line $LINENO "configure"
12797 #include "confdefs.h"
12798
12799 /* Override any gcc2 internal prototype to avoid an error. */
12800 #ifdef __cplusplus
12801 extern "C"
12802 #endif
12803 /* We use char because int might match the return type of a gcc2
12804 builtin and then its argument prototype would still apply. */
12805 char __res_send ();
12806 #ifdef F77_DUMMY_MAIN
12807 # ifdef __cplusplus
12808 extern "C"
12809 # endif
12810 int F77_DUMMY_MAIN() { return 1; }
12811 #endif
12812 int
12813 main ()
12814 {
12815 __res_send ();
12816 ;
12817 return 0;
12818 }
12819 _ACEOF
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12822 (eval $ac_link) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try='test -s conftest$ac_exeext'
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12832 ac_cv_lib_resolv___res_send=yes
12833 else
12834 echo "$as_me: failed program was:" >&5
12835 cat conftest.$ac_ext >&5
12836 ac_cv_lib_resolv___res_send=no
12837 fi
12838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12839 LIBS=$ac_check_lib_save_LIBS
12840 fi
12841 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12842 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
12843 if test $ac_cv_lib_resolv___res_send = yes; then
12844 resolv=yes
12845 fi
12846
12847 fi
12848
12849 fi
12850
12851 fi
12852
12853 if test "$resolv" = yes ; then
12854 RESOLVLIB=-lresolv
12855
12856 cat >>confdefs.h <<\_ACEOF
12857 #define HAVE_LIBRESOLV 1
12858 _ACEOF
12859
12860 else
12861 RESOLVLIB=
12862 fi
12863 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12864 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
12865 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 else
12868 cat >conftest.$ac_ext <<_ACEOF
12869 #line $LINENO "configure"
12870 #include "confdefs.h"
12871 /* System header to define __stub macros and hopefully few prototypes,
12872 which can conflict with char hes_getmailhost (); below. */
12873 #include <assert.h>
12874 /* Override any gcc2 internal prototype to avoid an error. */
12875 #ifdef __cplusplus
12876 extern "C"
12877 #endif
12878 /* We use char because int might match the return type of a gcc2
12879 builtin and then its argument prototype would still apply. */
12880 char hes_getmailhost ();
12881 char (*f) ();
12882
12883 #ifdef F77_DUMMY_MAIN
12884 # ifdef __cplusplus
12885 extern "C"
12886 # endif
12887 int F77_DUMMY_MAIN() { return 1; }
12888 #endif
12889 int
12890 main ()
12891 {
12892 /* The GNU C library defines this for functions which it implements
12893 to always fail with ENOSYS. Some functions are actually named
12894 something starting with __ and the normal name is an alias. */
12895 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
12896 choke me
12897 #else
12898 f = hes_getmailhost;
12899 #endif
12900
12901 ;
12902 return 0;
12903 }
12904 _ACEOF
12905 rm -f conftest.$ac_objext conftest$ac_exeext
12906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12907 (eval $ac_link) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -s conftest$ac_exeext'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 ac_cv_func_hes_getmailhost=yes
12918 else
12919 echo "$as_me: failed program was:" >&5
12920 cat conftest.$ac_ext >&5
12921 ac_cv_func_hes_getmailhost=no
12922 fi
12923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12924 fi
12925 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
12926 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
12927 if test $ac_cv_func_hes_getmailhost = yes; then
12928 :
12929 else
12930 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
12931 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
12932 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935 ac_check_lib_save_LIBS=$LIBS
12936 LIBS="-lhesiod $RESOLVLIB $LIBS"
12937 cat >conftest.$ac_ext <<_ACEOF
12938 #line $LINENO "configure"
12939 #include "confdefs.h"
12940
12941 /* Override any gcc2 internal prototype to avoid an error. */
12942 #ifdef __cplusplus
12943 extern "C"
12944 #endif
12945 /* We use char because int might match the return type of a gcc2
12946 builtin and then its argument prototype would still apply. */
12947 char hes_getmailhost ();
12948 #ifdef F77_DUMMY_MAIN
12949 # ifdef __cplusplus
12950 extern "C"
12951 # endif
12952 int F77_DUMMY_MAIN() { return 1; }
12953 #endif
12954 int
12955 main ()
12956 {
12957 hes_getmailhost ();
12958 ;
12959 return 0;
12960 }
12961 _ACEOF
12962 rm -f conftest.$ac_objext conftest$ac_exeext
12963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12964 (eval $ac_link) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try='test -s conftest$ac_exeext'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12971 ac_status=$?
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
12974 ac_cv_lib_hesiod_hes_getmailhost=yes
12975 else
12976 echo "$as_me: failed program was:" >&5
12977 cat conftest.$ac_ext >&5
12978 ac_cv_lib_hesiod_hes_getmailhost=no
12979 fi
12980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12981 LIBS=$ac_check_lib_save_LIBS
12982 fi
12983 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12984 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
12985 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
12986
12987 cat >>confdefs.h <<\_ACEOF
12988 #define HAVE_LIBHESIOD 1
12989 _ACEOF
12990
12991 else
12992 :
12993 fi
12994
12995 fi
12996
12997 fi
12998
12999 # These tell us which Kerberos-related libraries to use.
13000 if test "${with_kerberos+set}" = set; then
13001
13002 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
13003 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
13004 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007 ac_check_lib_save_LIBS=$LIBS
13008 LIBS="-lcom_err $LIBS"
13009 cat >conftest.$ac_ext <<_ACEOF
13010 #line $LINENO "configure"
13011 #include "confdefs.h"
13012
13013 /* Override any gcc2 internal prototype to avoid an error. */
13014 #ifdef __cplusplus
13015 extern "C"
13016 #endif
13017 /* We use char because int might match the return type of a gcc2
13018 builtin and then its argument prototype would still apply. */
13019 char com_err ();
13020 #ifdef F77_DUMMY_MAIN
13021 # ifdef __cplusplus
13022 extern "C"
13023 # endif
13024 int F77_DUMMY_MAIN() { return 1; }
13025 #endif
13026 int
13027 main ()
13028 {
13029 com_err ();
13030 ;
13031 return 0;
13032 }
13033 _ACEOF
13034 rm -f conftest.$ac_objext conftest$ac_exeext
13035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13036 (eval $ac_link) 2>&5
13037 ac_status=$?
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try='test -s conftest$ac_exeext'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; }; then
13046 ac_cv_lib_com_err_com_err=yes
13047 else
13048 echo "$as_me: failed program was:" >&5
13049 cat conftest.$ac_ext >&5
13050 ac_cv_lib_com_err_com_err=no
13051 fi
13052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13053 LIBS=$ac_check_lib_save_LIBS
13054 fi
13055 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
13056 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
13057 if test $ac_cv_lib_com_err_com_err = yes; then
13058 cat >>confdefs.h <<_ACEOF
13059 #define HAVE_LIBCOM_ERR 1
13060 _ACEOF
13061
13062 LIBS="-lcom_err $LIBS"
13063
13064 fi
13065
13066
13067 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13068 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
13069 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 else
13072 ac_check_lib_save_LIBS=$LIBS
13073 LIBS="-lk5crypto $LIBS"
13074 cat >conftest.$ac_ext <<_ACEOF
13075 #line $LINENO "configure"
13076 #include "confdefs.h"
13077
13078 /* Override any gcc2 internal prototype to avoid an error. */
13079 #ifdef __cplusplus
13080 extern "C"
13081 #endif
13082 /* We use char because int might match the return type of a gcc2
13083 builtin and then its argument prototype would still apply. */
13084 char mit_des_cbc_encrypt ();
13085 #ifdef F77_DUMMY_MAIN
13086 # ifdef __cplusplus
13087 extern "C"
13088 # endif
13089 int F77_DUMMY_MAIN() { return 1; }
13090 #endif
13091 int
13092 main ()
13093 {
13094 mit_des_cbc_encrypt ();
13095 ;
13096 return 0;
13097 }
13098 _ACEOF
13099 rm -f conftest.$ac_objext conftest$ac_exeext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13101 (eval $ac_link) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try='test -s conftest$ac_exeext'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13112 else
13113 echo "$as_me: failed program was:" >&5
13114 cat conftest.$ac_ext >&5
13115 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13116 fi
13117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13118 LIBS=$ac_check_lib_save_LIBS
13119 fi
13120 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13121 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
13122 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
13123 cat >>confdefs.h <<_ACEOF
13124 #define HAVE_LIBK5CRYPTO 1
13125 _ACEOF
13126
13127 LIBS="-lk5crypto $LIBS"
13128
13129 fi
13130
13131
13132 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13133 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13134 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 else
13137 ac_check_lib_save_LIBS=$LIBS
13138 LIBS="-lcrypto $LIBS"
13139 cat >conftest.$ac_ext <<_ACEOF
13140 #line $LINENO "configure"
13141 #include "confdefs.h"
13142
13143 /* Override any gcc2 internal prototype to avoid an error. */
13144 #ifdef __cplusplus
13145 extern "C"
13146 #endif
13147 /* We use char because int might match the return type of a gcc2
13148 builtin and then its argument prototype would still apply. */
13149 char mit_des_cbc_encrypt ();
13150 #ifdef F77_DUMMY_MAIN
13151 # ifdef __cplusplus
13152 extern "C"
13153 # endif
13154 int F77_DUMMY_MAIN() { return 1; }
13155 #endif
13156 int
13157 main ()
13158 {
13159 mit_des_cbc_encrypt ();
13160 ;
13161 return 0;
13162 }
13163 _ACEOF
13164 rm -f conftest.$ac_objext conftest$ac_exeext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13166 (eval $ac_link) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
13170 { ac_try='test -s conftest$ac_exeext'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }; then
13176 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13177 else
13178 echo "$as_me: failed program was:" >&5
13179 cat conftest.$ac_ext >&5
13180 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13181 fi
13182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13183 LIBS=$ac_check_lib_save_LIBS
13184 fi
13185 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13186 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
13187 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
13188 cat >>confdefs.h <<_ACEOF
13189 #define HAVE_LIBCRYPTO 1
13190 _ACEOF
13191
13192 LIBS="-lcrypto $LIBS"
13193
13194 fi
13195
13196
13197 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
13198 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
13199 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202 ac_check_lib_save_LIBS=$LIBS
13203 LIBS="-lkrb5 $LIBS"
13204 cat >conftest.$ac_ext <<_ACEOF
13205 #line $LINENO "configure"
13206 #include "confdefs.h"
13207
13208 /* Override any gcc2 internal prototype to avoid an error. */
13209 #ifdef __cplusplus
13210 extern "C"
13211 #endif
13212 /* We use char because int might match the return type of a gcc2
13213 builtin and then its argument prototype would still apply. */
13214 char krb5_init_context ();
13215 #ifdef F77_DUMMY_MAIN
13216 # ifdef __cplusplus
13217 extern "C"
13218 # endif
13219 int F77_DUMMY_MAIN() { return 1; }
13220 #endif
13221 int
13222 main ()
13223 {
13224 krb5_init_context ();
13225 ;
13226 return 0;
13227 }
13228 _ACEOF
13229 rm -f conftest.$ac_objext conftest$ac_exeext
13230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13231 (eval $ac_link) 2>&5
13232 ac_status=$?
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } &&
13235 { ac_try='test -s conftest$ac_exeext'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
13241 ac_cv_lib_krb5_krb5_init_context=yes
13242 else
13243 echo "$as_me: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13245 ac_cv_lib_krb5_krb5_init_context=no
13246 fi
13247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13248 LIBS=$ac_check_lib_save_LIBS
13249 fi
13250 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13251 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
13252 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
13253 cat >>confdefs.h <<_ACEOF
13254 #define HAVE_LIBKRB5 1
13255 _ACEOF
13256
13257 LIBS="-lkrb5 $LIBS"
13258
13259 fi
13260
13261 if test "${with_kerberos5+set}" != set; then
13262
13263 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13264 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13265 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13267 else
13268 ac_check_lib_save_LIBS=$LIBS
13269 LIBS="-ldes425 $LIBS"
13270 cat >conftest.$ac_ext <<_ACEOF
13271 #line $LINENO "configure"
13272 #include "confdefs.h"
13273
13274 /* Override any gcc2 internal prototype to avoid an error. */
13275 #ifdef __cplusplus
13276 extern "C"
13277 #endif
13278 /* We use char because int might match the return type of a gcc2
13279 builtin and then its argument prototype would still apply. */
13280 char des_cbc_encrypt ();
13281 #ifdef F77_DUMMY_MAIN
13282 # ifdef __cplusplus
13283 extern "C"
13284 # endif
13285 int F77_DUMMY_MAIN() { return 1; }
13286 #endif
13287 int
13288 main ()
13289 {
13290 des_cbc_encrypt ();
13291 ;
13292 return 0;
13293 }
13294 _ACEOF
13295 rm -f conftest.$ac_objext conftest$ac_exeext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13297 (eval $ac_link) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try='test -s conftest$ac_exeext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_cv_lib_des425_des_cbc_encrypt=yes
13308 else
13309 echo "$as_me: failed program was:" >&5
13310 cat conftest.$ac_ext >&5
13311 ac_cv_lib_des425_des_cbc_encrypt=no
13312 fi
13313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13314 LIBS=$ac_check_lib_save_LIBS
13315 fi
13316 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13317 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13318 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13319 cat >>confdefs.h <<_ACEOF
13320 #define HAVE_LIBDES425 1
13321 _ACEOF
13322
13323 LIBS="-ldes425 $LIBS"
13324
13325 else
13326
13327 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13328 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13329 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 else
13332 ac_check_lib_save_LIBS=$LIBS
13333 LIBS="-ldes $LIBS"
13334 cat >conftest.$ac_ext <<_ACEOF
13335 #line $LINENO "configure"
13336 #include "confdefs.h"
13337
13338 /* Override any gcc2 internal prototype to avoid an error. */
13339 #ifdef __cplusplus
13340 extern "C"
13341 #endif
13342 /* We use char because int might match the return type of a gcc2
13343 builtin and then its argument prototype would still apply. */
13344 char des_cbc_encrypt ();
13345 #ifdef F77_DUMMY_MAIN
13346 # ifdef __cplusplus
13347 extern "C"
13348 # endif
13349 int F77_DUMMY_MAIN() { return 1; }
13350 #endif
13351 int
13352 main ()
13353 {
13354 des_cbc_encrypt ();
13355 ;
13356 return 0;
13357 }
13358 _ACEOF
13359 rm -f conftest.$ac_objext conftest$ac_exeext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13361 (eval $ac_link) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -s conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_cv_lib_des_des_cbc_encrypt=yes
13372 else
13373 echo "$as_me: failed program was:" >&5
13374 cat conftest.$ac_ext >&5
13375 ac_cv_lib_des_des_cbc_encrypt=no
13376 fi
13377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13378 LIBS=$ac_check_lib_save_LIBS
13379 fi
13380 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13381 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13382 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13383 cat >>confdefs.h <<_ACEOF
13384 #define HAVE_LIBDES 1
13385 _ACEOF
13386
13387 LIBS="-ldes $LIBS"
13388
13389 fi
13390
13391 fi
13392
13393
13394 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13395 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13396 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399 ac_check_lib_save_LIBS=$LIBS
13400 LIBS="-lkrb4 $LIBS"
13401 cat >conftest.$ac_ext <<_ACEOF
13402 #line $LINENO "configure"
13403 #include "confdefs.h"
13404
13405 /* Override any gcc2 internal prototype to avoid an error. */
13406 #ifdef __cplusplus
13407 extern "C"
13408 #endif
13409 /* We use char because int might match the return type of a gcc2
13410 builtin and then its argument prototype would still apply. */
13411 char krb_get_cred ();
13412 #ifdef F77_DUMMY_MAIN
13413 # ifdef __cplusplus
13414 extern "C"
13415 # endif
13416 int F77_DUMMY_MAIN() { return 1; }
13417 #endif
13418 int
13419 main ()
13420 {
13421 krb_get_cred ();
13422 ;
13423 return 0;
13424 }
13425 _ACEOF
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428 (eval $ac_link) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
13432 { ac_try='test -s conftest$ac_exeext'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 ac_cv_lib_krb4_krb_get_cred=yes
13439 else
13440 echo "$as_me: failed program was:" >&5
13441 cat conftest.$ac_ext >&5
13442 ac_cv_lib_krb4_krb_get_cred=no
13443 fi
13444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13445 LIBS=$ac_check_lib_save_LIBS
13446 fi
13447 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13448 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13449 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13450 cat >>confdefs.h <<_ACEOF
13451 #define HAVE_LIBKRB4 1
13452 _ACEOF
13453
13454 LIBS="-lkrb4 $LIBS"
13455
13456 else
13457
13458 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13459 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13460 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463 ac_check_lib_save_LIBS=$LIBS
13464 LIBS="-lkrb $LIBS"
13465 cat >conftest.$ac_ext <<_ACEOF
13466 #line $LINENO "configure"
13467 #include "confdefs.h"
13468
13469 /* Override any gcc2 internal prototype to avoid an error. */
13470 #ifdef __cplusplus
13471 extern "C"
13472 #endif
13473 /* We use char because int might match the return type of a gcc2
13474 builtin and then its argument prototype would still apply. */
13475 char krb_get_cred ();
13476 #ifdef F77_DUMMY_MAIN
13477 # ifdef __cplusplus
13478 extern "C"
13479 # endif
13480 int F77_DUMMY_MAIN() { return 1; }
13481 #endif
13482 int
13483 main ()
13484 {
13485 krb_get_cred ();
13486 ;
13487 return 0;
13488 }
13489 _ACEOF
13490 rm -f conftest.$ac_objext conftest$ac_exeext
13491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13492 (eval $ac_link) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -s conftest$ac_exeext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 ac_cv_lib_krb_krb_get_cred=yes
13503 else
13504 echo "$as_me: failed program was:" >&5
13505 cat conftest.$ac_ext >&5
13506 ac_cv_lib_krb_krb_get_cred=no
13507 fi
13508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13509 LIBS=$ac_check_lib_save_LIBS
13510 fi
13511 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13512 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13513 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13514 cat >>confdefs.h <<_ACEOF
13515 #define HAVE_LIBKRB 1
13516 _ACEOF
13517
13518 LIBS="-lkrb $LIBS"
13519
13520 fi
13521
13522 fi
13523
13524 fi
13525
13526 if test "${with_kerberos5+set}" = set; then
13527
13528 for ac_header in krb5.h
13529 do
13530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13532 echo "$as_me:$LINENO: checking for $ac_header" >&5
13533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 fi
13537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13539 else
13540 # Is the header compilable?
13541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13543 cat >conftest.$ac_ext <<_ACEOF
13544 #line $LINENO "configure"
13545 #include "confdefs.h"
13546 $ac_includes_default
13547 #include <$ac_header>
13548 _ACEOF
13549 rm -f conftest.$ac_objext
13550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13551 (eval $ac_compile) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try='test -s conftest.$ac_objext'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_header_compiler=yes
13562 else
13563 echo "$as_me: failed program was:" >&5
13564 cat conftest.$ac_ext >&5
13565 ac_header_compiler=no
13566 fi
13567 rm -f conftest.$ac_objext conftest.$ac_ext
13568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13569 echo "${ECHO_T}$ac_header_compiler" >&6
13570
13571 # Is the header present?
13572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13574 cat >conftest.$ac_ext <<_ACEOF
13575 #line $LINENO "configure"
13576 #include "confdefs.h"
13577 #include <$ac_header>
13578 _ACEOF
13579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13581 ac_status=$?
13582 egrep -v '^ *\+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } >/dev/null; then
13587 if test -s conftest.err; then
13588 ac_cpp_err=$ac_c_preproc_warn_flag
13589 else
13590 ac_cpp_err=
13591 fi
13592 else
13593 ac_cpp_err=yes
13594 fi
13595 if test -z "$ac_cpp_err"; then
13596 ac_header_preproc=yes
13597 else
13598 echo "$as_me: failed program was:" >&5
13599 cat conftest.$ac_ext >&5
13600 ac_header_preproc=no
13601 fi
13602 rm -f conftest.err conftest.$ac_ext
13603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13604 echo "${ECHO_T}$ac_header_preproc" >&6
13605
13606 # So? What about this header?
13607 case $ac_header_compiler:$ac_header_preproc in
13608 yes:no )
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13613 no:yes )
13614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13620 esac
13621 echo "$as_me:$LINENO: checking for $ac_header" >&5
13622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13625 else
13626 eval "$as_ac_Header=$ac_header_preproc"
13627 fi
13628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13630
13631 fi
13632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13633 cat >>confdefs.h <<_ACEOF
13634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13635 _ACEOF
13636
13637 fi
13638
13639 done
13640
13641 else
13642
13643 for ac_header in des.h
13644 do
13645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13647 echo "$as_me:$LINENO: checking for $ac_header" >&5
13648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 fi
13652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13654 else
13655 # Is the header compilable?
13656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13658 cat >conftest.$ac_ext <<_ACEOF
13659 #line $LINENO "configure"
13660 #include "confdefs.h"
13661 $ac_includes_default
13662 #include <$ac_header>
13663 _ACEOF
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666 (eval $ac_compile) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -s conftest.$ac_objext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 ac_header_compiler=yes
13677 else
13678 echo "$as_me: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13680 ac_header_compiler=no
13681 fi
13682 rm -f conftest.$ac_objext conftest.$ac_ext
13683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13684 echo "${ECHO_T}$ac_header_compiler" >&6
13685
13686 # Is the header present?
13687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13689 cat >conftest.$ac_ext <<_ACEOF
13690 #line $LINENO "configure"
13691 #include "confdefs.h"
13692 #include <$ac_header>
13693 _ACEOF
13694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13696 ac_status=$?
13697 egrep -v '^ *\+' conftest.er1 >conftest.err
13698 rm -f conftest.er1
13699 cat conftest.err >&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } >/dev/null; then
13702 if test -s conftest.err; then
13703 ac_cpp_err=$ac_c_preproc_warn_flag
13704 else
13705 ac_cpp_err=
13706 fi
13707 else
13708 ac_cpp_err=yes
13709 fi
13710 if test -z "$ac_cpp_err"; then
13711 ac_header_preproc=yes
13712 else
13713 echo "$as_me: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13715 ac_header_preproc=no
13716 fi
13717 rm -f conftest.err conftest.$ac_ext
13718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13719 echo "${ECHO_T}$ac_header_preproc" >&6
13720
13721 # So? What about this header?
13722 case $ac_header_compiler:$ac_header_preproc in
13723 yes:no )
13724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13728 no:yes )
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13735 esac
13736 echo "$as_me:$LINENO: checking for $ac_header" >&5
13737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741 eval "$as_ac_Header=$ac_header_preproc"
13742 fi
13743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13745
13746 fi
13747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13748 cat >>confdefs.h <<_ACEOF
13749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13750 _ACEOF
13751
13752 else
13753
13754 for ac_header in kerberosIV/des.h
13755 do
13756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13758 echo "$as_me:$LINENO: checking for $ac_header" >&5
13759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 fi
13763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13765 else
13766 # Is the header compilable?
13767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13769 cat >conftest.$ac_ext <<_ACEOF
13770 #line $LINENO "configure"
13771 #include "confdefs.h"
13772 $ac_includes_default
13773 #include <$ac_header>
13774 _ACEOF
13775 rm -f conftest.$ac_objext
13776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13777 (eval $ac_compile) 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -s conftest.$ac_objext'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_header_compiler=yes
13788 else
13789 echo "$as_me: failed program was:" >&5
13790 cat conftest.$ac_ext >&5
13791 ac_header_compiler=no
13792 fi
13793 rm -f conftest.$ac_objext conftest.$ac_ext
13794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13795 echo "${ECHO_T}$ac_header_compiler" >&6
13796
13797 # Is the header present?
13798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13800 cat >conftest.$ac_ext <<_ACEOF
13801 #line $LINENO "configure"
13802 #include "confdefs.h"
13803 #include <$ac_header>
13804 _ACEOF
13805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13807 ac_status=$?
13808 egrep -v '^ *\+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } >/dev/null; then
13813 if test -s conftest.err; then
13814 ac_cpp_err=$ac_c_preproc_warn_flag
13815 else
13816 ac_cpp_err=
13817 fi
13818 else
13819 ac_cpp_err=yes
13820 fi
13821 if test -z "$ac_cpp_err"; then
13822 ac_header_preproc=yes
13823 else
13824 echo "$as_me: failed program was:" >&5
13825 cat conftest.$ac_ext >&5
13826 ac_header_preproc=no
13827 fi
13828 rm -f conftest.err conftest.$ac_ext
13829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13830 echo "${ECHO_T}$ac_header_preproc" >&6
13831
13832 # So? What about this header?
13833 case $ac_header_compiler:$ac_header_preproc in
13834 yes:no )
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13839 no:yes )
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13846 esac
13847 echo "$as_me:$LINENO: checking for $ac_header" >&5
13848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852 eval "$as_ac_Header=$ac_header_preproc"
13853 fi
13854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13856
13857 fi
13858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13859 cat >>confdefs.h <<_ACEOF
13860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13861 _ACEOF
13862
13863 else
13864
13865 for ac_header in kerberos/des.h
13866 do
13867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13869 echo "$as_me:$LINENO: checking for $ac_header" >&5
13870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 fi
13874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13876 else
13877 # Is the header compilable?
13878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13880 cat >conftest.$ac_ext <<_ACEOF
13881 #line $LINENO "configure"
13882 #include "confdefs.h"
13883 $ac_includes_default
13884 #include <$ac_header>
13885 _ACEOF
13886 rm -f conftest.$ac_objext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13888 (eval $ac_compile) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -s conftest.$ac_objext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 ac_header_compiler=yes
13899 else
13900 echo "$as_me: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13902 ac_header_compiler=no
13903 fi
13904 rm -f conftest.$ac_objext conftest.$ac_ext
13905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13906 echo "${ECHO_T}$ac_header_compiler" >&6
13907
13908 # Is the header present?
13909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13911 cat >conftest.$ac_ext <<_ACEOF
13912 #line $LINENO "configure"
13913 #include "confdefs.h"
13914 #include <$ac_header>
13915 _ACEOF
13916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13918 ac_status=$?
13919 egrep -v '^ *\+' conftest.er1 >conftest.err
13920 rm -f conftest.er1
13921 cat conftest.err >&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } >/dev/null; then
13924 if test -s conftest.err; then
13925 ac_cpp_err=$ac_c_preproc_warn_flag
13926 else
13927 ac_cpp_err=
13928 fi
13929 else
13930 ac_cpp_err=yes
13931 fi
13932 if test -z "$ac_cpp_err"; then
13933 ac_header_preproc=yes
13934 else
13935 echo "$as_me: failed program was:" >&5
13936 cat conftest.$ac_ext >&5
13937 ac_header_preproc=no
13938 fi
13939 rm -f conftest.err conftest.$ac_ext
13940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13941 echo "${ECHO_T}$ac_header_preproc" >&6
13942
13943 # So? What about this header?
13944 case $ac_header_compiler:$ac_header_preproc in
13945 yes:no )
13946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13950 no:yes )
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13957 esac
13958 echo "$as_me:$LINENO: checking for $ac_header" >&5
13959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 else
13963 eval "$as_ac_Header=$ac_header_preproc"
13964 fi
13965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13967
13968 fi
13969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13970 cat >>confdefs.h <<_ACEOF
13971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13972 _ACEOF
13973
13974 fi
13975
13976 done
13977
13978 fi
13979
13980 done
13981
13982 fi
13983
13984 done
13985
13986
13987 for ac_header in krb.h
13988 do
13989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13991 echo "$as_me:$LINENO: checking for $ac_header" >&5
13992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 fi
13996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13998 else
13999 # Is the header compilable?
14000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14002 cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 #include "confdefs.h"
14005 $ac_includes_default
14006 #include <$ac_header>
14007 _ACEOF
14008 rm -f conftest.$ac_objext
14009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010 (eval $ac_compile) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try='test -s conftest.$ac_objext'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14020 ac_header_compiler=yes
14021 else
14022 echo "$as_me: failed program was:" >&5
14023 cat conftest.$ac_ext >&5
14024 ac_header_compiler=no
14025 fi
14026 rm -f conftest.$ac_objext conftest.$ac_ext
14027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14028 echo "${ECHO_T}$ac_header_compiler" >&6
14029
14030 # Is the header present?
14031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14033 cat >conftest.$ac_ext <<_ACEOF
14034 #line $LINENO "configure"
14035 #include "confdefs.h"
14036 #include <$ac_header>
14037 _ACEOF
14038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14040 ac_status=$?
14041 egrep -v '^ *\+' conftest.er1 >conftest.err
14042 rm -f conftest.er1
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } >/dev/null; then
14046 if test -s conftest.err; then
14047 ac_cpp_err=$ac_c_preproc_warn_flag
14048 else
14049 ac_cpp_err=
14050 fi
14051 else
14052 ac_cpp_err=yes
14053 fi
14054 if test -z "$ac_cpp_err"; then
14055 ac_header_preproc=yes
14056 else
14057 echo "$as_me: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14059 ac_header_preproc=no
14060 fi
14061 rm -f conftest.err conftest.$ac_ext
14062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14063 echo "${ECHO_T}$ac_header_preproc" >&6
14064
14065 # So? What about this header?
14066 case $ac_header_compiler:$ac_header_preproc in
14067 yes:no )
14068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14072 no:yes )
14073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14079 esac
14080 echo "$as_me:$LINENO: checking for $ac_header" >&5
14081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 else
14085 eval "$as_ac_Header=$ac_header_preproc"
14086 fi
14087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14089
14090 fi
14091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14092 cat >>confdefs.h <<_ACEOF
14093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14094 _ACEOF
14095
14096 else
14097
14098 for ac_header in kerberosIV/krb.h
14099 do
14100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14102 echo "$as_me:$LINENO: checking for $ac_header" >&5
14103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 fi
14107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14109 else
14110 # Is the header compilable?
14111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14113 cat >conftest.$ac_ext <<_ACEOF
14114 #line $LINENO "configure"
14115 #include "confdefs.h"
14116 $ac_includes_default
14117 #include <$ac_header>
14118 _ACEOF
14119 rm -f conftest.$ac_objext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14121 (eval $ac_compile) 2>&5
14122 ac_status=$?
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
14125 { ac_try='test -s conftest.$ac_objext'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; }; then
14131 ac_header_compiler=yes
14132 else
14133 echo "$as_me: failed program was:" >&5
14134 cat conftest.$ac_ext >&5
14135 ac_header_compiler=no
14136 fi
14137 rm -f conftest.$ac_objext conftest.$ac_ext
14138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14139 echo "${ECHO_T}$ac_header_compiler" >&6
14140
14141 # Is the header present?
14142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14144 cat >conftest.$ac_ext <<_ACEOF
14145 #line $LINENO "configure"
14146 #include "confdefs.h"
14147 #include <$ac_header>
14148 _ACEOF
14149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14151 ac_status=$?
14152 egrep -v '^ *\+' conftest.er1 >conftest.err
14153 rm -f conftest.er1
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } >/dev/null; then
14157 if test -s conftest.err; then
14158 ac_cpp_err=$ac_c_preproc_warn_flag
14159 else
14160 ac_cpp_err=
14161 fi
14162 else
14163 ac_cpp_err=yes
14164 fi
14165 if test -z "$ac_cpp_err"; then
14166 ac_header_preproc=yes
14167 else
14168 echo "$as_me: failed program was:" >&5
14169 cat conftest.$ac_ext >&5
14170 ac_header_preproc=no
14171 fi
14172 rm -f conftest.err conftest.$ac_ext
14173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14174 echo "${ECHO_T}$ac_header_preproc" >&6
14175
14176 # So? What about this header?
14177 case $ac_header_compiler:$ac_header_preproc in
14178 yes:no )
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14183 no:yes )
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14190 esac
14191 echo "$as_me:$LINENO: checking for $ac_header" >&5
14192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14195 else
14196 eval "$as_ac_Header=$ac_header_preproc"
14197 fi
14198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14200
14201 fi
14202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14203 cat >>confdefs.h <<_ACEOF
14204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14205 _ACEOF
14206
14207 else
14208
14209 for ac_header in kerberos/krb.h
14210 do
14211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213 echo "$as_me:$LINENO: checking for $ac_header" >&5
14214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 fi
14218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14220 else
14221 # Is the header compilable?
14222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14224 cat >conftest.$ac_ext <<_ACEOF
14225 #line $LINENO "configure"
14226 #include "confdefs.h"
14227 $ac_includes_default
14228 #include <$ac_header>
14229 _ACEOF
14230 rm -f conftest.$ac_objext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232 (eval $ac_compile) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try='test -s conftest.$ac_objext'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 ac_header_compiler=yes
14243 else
14244 echo "$as_me: failed program was:" >&5
14245 cat conftest.$ac_ext >&5
14246 ac_header_compiler=no
14247 fi
14248 rm -f conftest.$ac_objext conftest.$ac_ext
14249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14250 echo "${ECHO_T}$ac_header_compiler" >&6
14251
14252 # Is the header present?
14253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14255 cat >conftest.$ac_ext <<_ACEOF
14256 #line $LINENO "configure"
14257 #include "confdefs.h"
14258 #include <$ac_header>
14259 _ACEOF
14260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14262 ac_status=$?
14263 egrep -v '^ *\+' conftest.er1 >conftest.err
14264 rm -f conftest.er1
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } >/dev/null; then
14268 if test -s conftest.err; then
14269 ac_cpp_err=$ac_c_preproc_warn_flag
14270 else
14271 ac_cpp_err=
14272 fi
14273 else
14274 ac_cpp_err=yes
14275 fi
14276 if test -z "$ac_cpp_err"; then
14277 ac_header_preproc=yes
14278 else
14279 echo "$as_me: failed program was:" >&5
14280 cat conftest.$ac_ext >&5
14281 ac_header_preproc=no
14282 fi
14283 rm -f conftest.err conftest.$ac_ext
14284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14285 echo "${ECHO_T}$ac_header_preproc" >&6
14286
14287 # So? What about this header?
14288 case $ac_header_compiler:$ac_header_preproc in
14289 yes:no )
14290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14294 no:yes )
14295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14301 esac
14302 echo "$as_me:$LINENO: checking for $ac_header" >&5
14303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 else
14307 eval "$as_ac_Header=$ac_header_preproc"
14308 fi
14309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14311
14312 fi
14313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14314 cat >>confdefs.h <<_ACEOF
14315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14316 _ACEOF
14317
14318 fi
14319
14320 done
14321
14322 fi
14323
14324 done
14325
14326 fi
14327
14328 done
14329
14330 fi
14331
14332 for ac_header in com_err.h
14333 do
14334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14336 echo "$as_me:$LINENO: checking for $ac_header" >&5
14337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 fi
14341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14343 else
14344 # Is the header compilable?
14345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14347 cat >conftest.$ac_ext <<_ACEOF
14348 #line $LINENO "configure"
14349 #include "confdefs.h"
14350 $ac_includes_default
14351 #include <$ac_header>
14352 _ACEOF
14353 rm -f conftest.$ac_objext
14354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14355 (eval $ac_compile) 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } &&
14359 { ac_try='test -s conftest.$ac_objext'
14360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361 (eval $ac_try) 2>&5
14362 ac_status=$?
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; }; then
14365 ac_header_compiler=yes
14366 else
14367 echo "$as_me: failed program was:" >&5
14368 cat conftest.$ac_ext >&5
14369 ac_header_compiler=no
14370 fi
14371 rm -f conftest.$ac_objext conftest.$ac_ext
14372 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14373 echo "${ECHO_T}$ac_header_compiler" >&6
14374
14375 # Is the header present?
14376 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14378 cat >conftest.$ac_ext <<_ACEOF
14379 #line $LINENO "configure"
14380 #include "confdefs.h"
14381 #include <$ac_header>
14382 _ACEOF
14383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14385 ac_status=$?
14386 egrep -v '^ *\+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } >/dev/null; then
14391 if test -s conftest.err; then
14392 ac_cpp_err=$ac_c_preproc_warn_flag
14393 else
14394 ac_cpp_err=
14395 fi
14396 else
14397 ac_cpp_err=yes
14398 fi
14399 if test -z "$ac_cpp_err"; then
14400 ac_header_preproc=yes
14401 else
14402 echo "$as_me: failed program was:" >&5
14403 cat conftest.$ac_ext >&5
14404 ac_header_preproc=no
14405 fi
14406 rm -f conftest.err conftest.$ac_ext
14407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14408 echo "${ECHO_T}$ac_header_preproc" >&6
14409
14410 # So? What about this header?
14411 case $ac_header_compiler:$ac_header_preproc in
14412 yes:no )
14413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14417 no:yes )
14418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14424 esac
14425 echo "$as_me:$LINENO: checking for $ac_header" >&5
14426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 else
14430 eval "$as_ac_Header=$ac_header_preproc"
14431 fi
14432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14434
14435 fi
14436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14437 cat >>confdefs.h <<_ACEOF
14438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14439 _ACEOF
14440
14441 fi
14442
14443 done
14444
14445 fi
14446
14447 # Solaris requires -lintl if you want strerror (which calls dgettext)
14448 # to return localized messages.
14449
14450 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14451 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14452 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 ac_check_lib_save_LIBS=$LIBS
14456 LIBS="-lintl $LIBS"
14457 cat >conftest.$ac_ext <<_ACEOF
14458 #line $LINENO "configure"
14459 #include "confdefs.h"
14460
14461 /* Override any gcc2 internal prototype to avoid an error. */
14462 #ifdef __cplusplus
14463 extern "C"
14464 #endif
14465 /* We use char because int might match the return type of a gcc2
14466 builtin and then its argument prototype would still apply. */
14467 char dgettext ();
14468 #ifdef F77_DUMMY_MAIN
14469 # ifdef __cplusplus
14470 extern "C"
14471 # endif
14472 int F77_DUMMY_MAIN() { return 1; }
14473 #endif
14474 int
14475 main ()
14476 {
14477 dgettext ();
14478 ;
14479 return 0;
14480 }
14481 _ACEOF
14482 rm -f conftest.$ac_objext conftest$ac_exeext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14484 (eval $ac_link) 2>&5
14485 ac_status=$?
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } &&
14488 { ac_try='test -s conftest$ac_exeext'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }; then
14494 ac_cv_lib_intl_dgettext=yes
14495 else
14496 echo "$as_me: failed program was:" >&5
14497 cat conftest.$ac_ext >&5
14498 ac_cv_lib_intl_dgettext=no
14499 fi
14500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14501 LIBS=$ac_check_lib_save_LIBS
14502 fi
14503 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14504 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14505 if test $ac_cv_lib_intl_dgettext = yes; then
14506 cat >>confdefs.h <<_ACEOF
14507 #define HAVE_LIBINTL 1
14508 _ACEOF
14509
14510 LIBS="-lintl $LIBS"
14511
14512 fi
14513
14514
14515 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14516 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14517 if test "${emacs_cv_localtime_cache+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 else
14520 if test x$ac_cv_func_tzset = xyes; then
14521 if test "$cross_compiling" = yes; then
14522 # If we have tzset, assume the worst when cross-compiling.
14523 emacs_cv_localtime_cache=yes
14524 else
14525 cat >conftest.$ac_ext <<_ACEOF
14526 #line $LINENO "configure"
14527 #include "confdefs.h"
14528 #include <time.h>
14529 extern char **environ;
14530 unset_TZ ()
14531 {
14532 char **from, **to;
14533 for (to = from = environ; (*to = *from); from++)
14534 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14535 to++;
14536 }
14537 char TZ_GMT0[] = "TZ=GMT0";
14538 char TZ_PST8[] = "TZ=PST8";
14539 main()
14540 {
14541 time_t now = time ((time_t *) 0);
14542 int hour_GMT0, hour_unset;
14543 if (putenv (TZ_GMT0) != 0)
14544 exit (1);
14545 hour_GMT0 = localtime (&now)->tm_hour;
14546 unset_TZ ();
14547 hour_unset = localtime (&now)->tm_hour;
14548 if (putenv (TZ_PST8) != 0)
14549 exit (1);
14550 if (localtime (&now)->tm_hour == hour_GMT0)
14551 exit (1);
14552 unset_TZ ();
14553 if (localtime (&now)->tm_hour != hour_unset)
14554 exit (1);
14555 exit (0);
14556 }
14557 _ACEOF
14558 rm -f conftest$ac_exeext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14560 (eval $ac_link) 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 emacs_cv_localtime_cache=no
14570 else
14571 echo "$as_me: program exited with status $ac_status" >&5
14572 echo "$as_me: failed program was:" >&5
14573 cat conftest.$ac_ext >&5
14574 ( exit $ac_status )
14575 emacs_cv_localtime_cache=yes
14576 fi
14577 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14578 fi
14579 else
14580 # If we lack tzset, report that localtime does not cache TZ,
14581 # since we can't invalidate the cache if we don't have tzset.
14582 emacs_cv_localtime_cache=no
14583 fi
14584 fi
14585 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14586 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14587 if test $emacs_cv_localtime_cache = yes; then
14588
14589 cat >>confdefs.h <<\_ACEOF
14590 #define LOCALTIME_CACHE 1
14591 _ACEOF
14592
14593 fi
14594
14595 if test "x$HAVE_TIMEVAL" = xyes; then
14596
14597 for ac_func in gettimeofday
14598 do
14599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14600 echo "$as_me:$LINENO: checking for $ac_func" >&5
14601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14602 if eval "test \"\${$as_ac_var+set}\" = set"; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605 cat >conftest.$ac_ext <<_ACEOF
14606 #line $LINENO "configure"
14607 #include "confdefs.h"
14608 /* System header to define __stub macros and hopefully few prototypes,
14609 which can conflict with char $ac_func (); below. */
14610 #include <assert.h>
14611 /* Override any gcc2 internal prototype to avoid an error. */
14612 #ifdef __cplusplus
14613 extern "C"
14614 #endif
14615 /* We use char because int might match the return type of a gcc2
14616 builtin and then its argument prototype would still apply. */
14617 char $ac_func ();
14618 char (*f) ();
14619
14620 #ifdef F77_DUMMY_MAIN
14621 # ifdef __cplusplus
14622 extern "C"
14623 # endif
14624 int F77_DUMMY_MAIN() { return 1; }
14625 #endif
14626 int
14627 main ()
14628 {
14629 /* The GNU C library defines this for functions which it implements
14630 to always fail with ENOSYS. Some functions are actually named
14631 something starting with __ and the normal name is an alias. */
14632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14633 choke me
14634 #else
14635 f = $ac_func;
14636 #endif
14637
14638 ;
14639 return 0;
14640 }
14641 _ACEOF
14642 rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14644 (eval $ac_link) 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
14648 { ac_try='test -s conftest$ac_exeext'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14651 ac_status=$?
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14654 eval "$as_ac_var=yes"
14655 else
14656 echo "$as_me: failed program was:" >&5
14657 cat conftest.$ac_ext >&5
14658 eval "$as_ac_var=no"
14659 fi
14660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14661 fi
14662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14664 if test `eval echo '${'$as_ac_var'}'` = yes; then
14665 cat >>confdefs.h <<_ACEOF
14666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14667 _ACEOF
14668
14669 fi
14670 done
14671
14672 if test $ac_cv_func_gettimeofday = yes; then
14673 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
14674 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
14675 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678 cat >conftest.$ac_ext <<_ACEOF
14679 #line $LINENO "configure"
14680 #include "confdefs.h"
14681
14682 #ifdef TIME_WITH_SYS_TIME
14683 #include <sys/time.h>
14684 #include <time.h>
14685 #else
14686 #ifdef HAVE_SYS_TIME_H
14687 #include <sys/time.h>
14688 #else
14689 #include <time.h>
14690 #endif
14691 #endif
14692 #ifdef F77_DUMMY_MAIN
14693 # ifdef __cplusplus
14694 extern "C"
14695 # endif
14696 int F77_DUMMY_MAIN() { return 1; }
14697 #endif
14698 int
14699 main ()
14700 {
14701 struct timeval time;
14702 gettimeofday (&time, 0);
14703 ;
14704 return 0;
14705 }
14706 _ACEOF
14707 rm -f conftest.$ac_objext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14709 (eval $ac_compile) 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -s conftest.$ac_objext'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14716 ac_status=$?
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
14719 emacs_cv_gettimeofday_two_arguments=yes
14720 else
14721 echo "$as_me: failed program was:" >&5
14722 cat conftest.$ac_ext >&5
14723 emacs_cv_gettimeofday_two_arguments=no
14724 fi
14725 rm -f conftest.$ac_objext conftest.$ac_ext
14726 fi
14727 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
14728 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
14729 if test $emacs_cv_gettimeofday_two_arguments = no; then
14730
14731 cat >>confdefs.h <<\_ACEOF
14732 #define GETTIMEOFDAY_ONE_ARGUMENT 1
14733 _ACEOF
14734
14735 fi
14736 fi
14737 fi
14738
14739 if test "$ac_cv_func_gettimeofday" = yes; then
14740 echo "$as_me:$LINENO: checking for struct timezone" >&5
14741 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
14742 if test "${emacs_cv_struct_timezone+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745 cat >conftest.$ac_ext <<_ACEOF
14746 #line $LINENO "configure"
14747 #include "confdefs.h"
14748 #include <sys/time.h>
14749 #ifdef F77_DUMMY_MAIN
14750 # ifdef __cplusplus
14751 extern "C"
14752 # endif
14753 int F77_DUMMY_MAIN() { return 1; }
14754 #endif
14755 int
14756 main ()
14757 {
14758 struct timezone tz;
14759 ;
14760 return 0;
14761 }
14762 _ACEOF
14763 rm -f conftest.$ac_objext
14764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14765 (eval $ac_compile) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
14769 { ac_try='test -s conftest.$ac_objext'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 if test "$cross_compiling" = yes; then
14776 emacs_cv_struct_timezone=yes
14777 else
14778 cat >conftest.$ac_ext <<_ACEOF
14779 #line $LINENO "configure"
14780 #include "confdefs.h"
14781
14782 #ifdef TIME_WITH_SYS_TIME
14783 #include <sys/time.h>
14784 #include <time.h>
14785 #else
14786 #ifdef HAVE_SYS_TIME_H
14787 #include <sys/time.h>
14788 #else
14789 #include <time.h>
14790 #endif
14791 #endif
14792 main () {
14793 struct timeval time;
14794 struct timezone dummy;
14795 exit (gettimeofday (&time, &dummy));
14796 }
14797 _ACEOF
14798 rm -f conftest$ac_exeext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14800 (eval $ac_link) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 emacs_cv_struct_timezone=yes
14810 else
14811 echo "$as_me: program exited with status $ac_status" >&5
14812 echo "$as_me: failed program was:" >&5
14813 cat conftest.$ac_ext >&5
14814 ( exit $ac_status )
14815 emacs_cv_struct_timezone=no
14816 fi
14817 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14818 fi
14819 else
14820 echo "$as_me: failed program was:" >&5
14821 cat conftest.$ac_ext >&5
14822 emacs_cv_struct_timezone=no
14823 fi
14824 rm -f conftest.$ac_objext conftest.$ac_ext
14825 fi
14826 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
14827 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
14828 fi
14829
14830 ok_so_far=yes
14831 echo "$as_me:$LINENO: checking for socket" >&5
14832 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14833 if test "${ac_cv_func_socket+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836 cat >conftest.$ac_ext <<_ACEOF
14837 #line $LINENO "configure"
14838 #include "confdefs.h"
14839 /* System header to define __stub macros and hopefully few prototypes,
14840 which can conflict with char socket (); below. */
14841 #include <assert.h>
14842 /* Override any gcc2 internal prototype to avoid an error. */
14843 #ifdef __cplusplus
14844 extern "C"
14845 #endif
14846 /* We use char because int might match the return type of a gcc2
14847 builtin and then its argument prototype would still apply. */
14848 char socket ();
14849 char (*f) ();
14850
14851 #ifdef F77_DUMMY_MAIN
14852 # ifdef __cplusplus
14853 extern "C"
14854 # endif
14855 int F77_DUMMY_MAIN() { return 1; }
14856 #endif
14857 int
14858 main ()
14859 {
14860 /* The GNU C library defines this for functions which it implements
14861 to always fail with ENOSYS. Some functions are actually named
14862 something starting with __ and the normal name is an alias. */
14863 #if defined (__stub_socket) || defined (__stub___socket)
14864 choke me
14865 #else
14866 f = socket;
14867 #endif
14868
14869 ;
14870 return 0;
14871 }
14872 _ACEOF
14873 rm -f conftest.$ac_objext conftest$ac_exeext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14875 (eval $ac_link) 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -s conftest$ac_exeext'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_cv_func_socket=yes
14886 else
14887 echo "$as_me: failed program was:" >&5
14888 cat conftest.$ac_ext >&5
14889 ac_cv_func_socket=no
14890 fi
14891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14892 fi
14893 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14894 echo "${ECHO_T}$ac_cv_func_socket" >&6
14895 if test $ac_cv_func_socket = yes; then
14896 :
14897 else
14898 ok_so_far=no
14899 fi
14900
14901 if test $ok_so_far = yes; then
14902 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14903 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
14904 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
14905 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 fi
14908 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
14909 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
14910 else
14911 # Is the header compilable?
14912 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
14913 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
14914 cat >conftest.$ac_ext <<_ACEOF
14915 #line $LINENO "configure"
14916 #include "confdefs.h"
14917 $ac_includes_default
14918 #include <netinet/in.h>
14919 _ACEOF
14920 rm -f conftest.$ac_objext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14922 (eval $ac_compile) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -s conftest.$ac_objext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14932 ac_header_compiler=yes
14933 else
14934 echo "$as_me: failed program was:" >&5
14935 cat conftest.$ac_ext >&5
14936 ac_header_compiler=no
14937 fi
14938 rm -f conftest.$ac_objext conftest.$ac_ext
14939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14940 echo "${ECHO_T}$ac_header_compiler" >&6
14941
14942 # Is the header present?
14943 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
14944 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
14945 cat >conftest.$ac_ext <<_ACEOF
14946 #line $LINENO "configure"
14947 #include "confdefs.h"
14948 #include <netinet/in.h>
14949 _ACEOF
14950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14952 ac_status=$?
14953 egrep -v '^ *\+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } >/dev/null; then
14958 if test -s conftest.err; then
14959 ac_cpp_err=$ac_c_preproc_warn_flag
14960 else
14961 ac_cpp_err=
14962 fi
14963 else
14964 ac_cpp_err=yes
14965 fi
14966 if test -z "$ac_cpp_err"; then
14967 ac_header_preproc=yes
14968 else
14969 echo "$as_me: failed program was:" >&5
14970 cat conftest.$ac_ext >&5
14971 ac_header_preproc=no
14972 fi
14973 rm -f conftest.err conftest.$ac_ext
14974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14975 echo "${ECHO_T}$ac_header_preproc" >&6
14976
14977 # So? What about this header?
14978 case $ac_header_compiler:$ac_header_preproc in
14979 yes:no )
14980 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
14981 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
14983 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
14984 no:yes )
14985 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
14986 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
14988 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
14990 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
14991 esac
14992 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
14993 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
14994 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997 ac_cv_header_netinet_in_h=$ac_header_preproc
14998 fi
14999 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15000 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15001
15002 fi
15003 if test $ac_cv_header_netinet_in_h = yes; then
15004 :
15005 else
15006 ok_so_far=no
15007 fi
15008
15009
15010 fi
15011 if test $ok_so_far = yes; then
15012 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15013 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15014 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15015 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15017 fi
15018 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15019 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15020 else
15021 # Is the header compilable?
15022 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
15023 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
15024 cat >conftest.$ac_ext <<_ACEOF
15025 #line $LINENO "configure"
15026 #include "confdefs.h"
15027 $ac_includes_default
15028 #include <arpa/inet.h>
15029 _ACEOF
15030 rm -f conftest.$ac_objext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15032 (eval $ac_compile) 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_header_compiler=yes
15043 else
15044 echo "$as_me: failed program was:" >&5
15045 cat conftest.$ac_ext >&5
15046 ac_header_compiler=no
15047 fi
15048 rm -f conftest.$ac_objext conftest.$ac_ext
15049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15050 echo "${ECHO_T}$ac_header_compiler" >&6
15051
15052 # Is the header present?
15053 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
15054 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
15055 cat >conftest.$ac_ext <<_ACEOF
15056 #line $LINENO "configure"
15057 #include "confdefs.h"
15058 #include <arpa/inet.h>
15059 _ACEOF
15060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15062 ac_status=$?
15063 egrep -v '^ *\+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } >/dev/null; then
15068 if test -s conftest.err; then
15069 ac_cpp_err=$ac_c_preproc_warn_flag
15070 else
15071 ac_cpp_err=
15072 fi
15073 else
15074 ac_cpp_err=yes
15075 fi
15076 if test -z "$ac_cpp_err"; then
15077 ac_header_preproc=yes
15078 else
15079 echo "$as_me: failed program was:" >&5
15080 cat conftest.$ac_ext >&5
15081 ac_header_preproc=no
15082 fi
15083 rm -f conftest.err conftest.$ac_ext
15084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15085 echo "${ECHO_T}$ac_header_preproc" >&6
15086
15087 # So? What about this header?
15088 case $ac_header_compiler:$ac_header_preproc in
15089 yes:no )
15090 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
15091 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15093 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15094 no:yes )
15095 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
15096 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
15097 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
15098 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
15099 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15100 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15101 esac
15102 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15103 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15104 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107 ac_cv_header_arpa_inet_h=$ac_header_preproc
15108 fi
15109 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15110 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15111
15112 fi
15113 if test $ac_cv_header_arpa_inet_h = yes; then
15114 :
15115 else
15116 ok_so_far=no
15117 fi
15118
15119
15120 fi
15121 if test $ok_so_far = yes; then
15122
15123 cat >>confdefs.h <<\_ACEOF
15124 #define HAVE_INET_SOCKETS 1
15125 _ACEOF
15126
15127 fi
15128
15129 if test -f /usr/lpp/X11/bin/smt.exp; then
15130
15131 cat >>confdefs.h <<\_ACEOF
15132 #define HAVE_AIX_SMT_EXP 1
15133 _ACEOF
15134
15135 fi
15136
15137 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
15138 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
15139 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15140 echo "$as_me:$LINENO: result: yes" >&5
15141 echo "${ECHO_T}yes" >&6
15142
15143 cat >>confdefs.h <<\_ACEOF
15144 #define HAVE_DEV_PTMX 1
15145 _ACEOF
15146
15147 else
15148 echo "$as_me:$LINENO: result: no" >&5
15149 echo "${ECHO_T}no" >&6
15150 fi
15151
15152 echo "$as_me:$LINENO: checking for pid_t" >&5
15153 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15154 if test "${ac_cv_type_pid_t+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157 cat >conftest.$ac_ext <<_ACEOF
15158 #line $LINENO "configure"
15159 #include "confdefs.h"
15160 $ac_includes_default
15161 #ifdef F77_DUMMY_MAIN
15162 # ifdef __cplusplus
15163 extern "C"
15164 # endif
15165 int F77_DUMMY_MAIN() { return 1; }
15166 #endif
15167 int
15168 main ()
15169 {
15170 if ((pid_t *) 0)
15171 return 0;
15172 if (sizeof (pid_t))
15173 return 0;
15174 ;
15175 return 0;
15176 }
15177 _ACEOF
15178 rm -f conftest.$ac_objext
15179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15180 (eval $ac_compile) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try='test -s conftest.$ac_objext'
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15190 ac_cv_type_pid_t=yes
15191 else
15192 echo "$as_me: failed program was:" >&5
15193 cat conftest.$ac_ext >&5
15194 ac_cv_type_pid_t=no
15195 fi
15196 rm -f conftest.$ac_objext conftest.$ac_ext
15197 fi
15198 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15199 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15200 if test $ac_cv_type_pid_t = yes; then
15201 :
15202 else
15203
15204 cat >>confdefs.h <<_ACEOF
15205 #define pid_t int
15206 _ACEOF
15207
15208 fi
15209
15210
15211
15212 for ac_header in unistd.h vfork.h
15213 do
15214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15216 echo "$as_me:$LINENO: checking for $ac_header" >&5
15217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15220 fi
15221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15223 else
15224 # Is the header compilable?
15225 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15227 cat >conftest.$ac_ext <<_ACEOF
15228 #line $LINENO "configure"
15229 #include "confdefs.h"
15230 $ac_includes_default
15231 #include <$ac_header>
15232 _ACEOF
15233 rm -f conftest.$ac_objext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15235 (eval $ac_compile) 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -s conftest.$ac_objext'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 ac_header_compiler=yes
15246 else
15247 echo "$as_me: failed program was:" >&5
15248 cat conftest.$ac_ext >&5
15249 ac_header_compiler=no
15250 fi
15251 rm -f conftest.$ac_objext conftest.$ac_ext
15252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15253 echo "${ECHO_T}$ac_header_compiler" >&6
15254
15255 # Is the header present?
15256 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15258 cat >conftest.$ac_ext <<_ACEOF
15259 #line $LINENO "configure"
15260 #include "confdefs.h"
15261 #include <$ac_header>
15262 _ACEOF
15263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15265 ac_status=$?
15266 egrep -v '^ *\+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } >/dev/null; then
15271 if test -s conftest.err; then
15272 ac_cpp_err=$ac_c_preproc_warn_flag
15273 else
15274 ac_cpp_err=
15275 fi
15276 else
15277 ac_cpp_err=yes
15278 fi
15279 if test -z "$ac_cpp_err"; then
15280 ac_header_preproc=yes
15281 else
15282 echo "$as_me: failed program was:" >&5
15283 cat conftest.$ac_ext >&5
15284 ac_header_preproc=no
15285 fi
15286 rm -f conftest.err conftest.$ac_ext
15287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15288 echo "${ECHO_T}$ac_header_preproc" >&6
15289
15290 # So? What about this header?
15291 case $ac_header_compiler:$ac_header_preproc in
15292 yes:no )
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15297 no:yes )
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15304 esac
15305 echo "$as_me:$LINENO: checking for $ac_header" >&5
15306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 else
15310 eval "$as_ac_Header=$ac_header_preproc"
15311 fi
15312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15314
15315 fi
15316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15317 cat >>confdefs.h <<_ACEOF
15318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15319 _ACEOF
15320
15321 fi
15322
15323 done
15324
15325
15326
15327 for ac_func in fork vfork
15328 do
15329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15330 echo "$as_me:$LINENO: checking for $ac_func" >&5
15331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15332 if eval "test \"\${$as_ac_var+set}\" = set"; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335 cat >conftest.$ac_ext <<_ACEOF
15336 #line $LINENO "configure"
15337 #include "confdefs.h"
15338 /* System header to define __stub macros and hopefully few prototypes,
15339 which can conflict with char $ac_func (); below. */
15340 #include <assert.h>
15341 /* Override any gcc2 internal prototype to avoid an error. */
15342 #ifdef __cplusplus
15343 extern "C"
15344 #endif
15345 /* We use char because int might match the return type of a gcc2
15346 builtin and then its argument prototype would still apply. */
15347 char $ac_func ();
15348 char (*f) ();
15349
15350 #ifdef F77_DUMMY_MAIN
15351 # ifdef __cplusplus
15352 extern "C"
15353 # endif
15354 int F77_DUMMY_MAIN() { return 1; }
15355 #endif
15356 int
15357 main ()
15358 {
15359 /* The GNU C library defines this for functions which it implements
15360 to always fail with ENOSYS. Some functions are actually named
15361 something starting with __ and the normal name is an alias. */
15362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15363 choke me
15364 #else
15365 f = $ac_func;
15366 #endif
15367
15368 ;
15369 return 0;
15370 }
15371 _ACEOF
15372 rm -f conftest.$ac_objext conftest$ac_exeext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15374 (eval $ac_link) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -s conftest$ac_exeext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 eval "$as_ac_var=yes"
15385 else
15386 echo "$as_me: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15388 eval "$as_ac_var=no"
15389 fi
15390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15391 fi
15392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15394 if test `eval echo '${'$as_ac_var'}'` = yes; then
15395 cat >>confdefs.h <<_ACEOF
15396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15397 _ACEOF
15398
15399 fi
15400 done
15401
15402 ac_cv_func_fork_works=$ac_cv_func_fork
15403 if test "x$ac_cv_func_fork" = xyes; then
15404 echo "$as_me:$LINENO: checking for working fork" >&5
15405 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15406 if test "${ac_cv_func_fork_works+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 else
15409 if test "$cross_compiling" = yes; then
15410 ac_cv_func_fork_works=cross
15411 else
15412 cat >conftest.$ac_ext <<_ACEOF
15413 /* By Ruediger Kuhlmann. */
15414 #include <sys/types.h>
15415 #if HAVE_UNISTD_H
15416 # include <unistd.h>
15417 #endif
15418 /* Some systems only have a dummy stub for fork() */
15419 int main ()
15420 {
15421 if (fork() < 0)
15422 exit (1);
15423 exit (0);
15424 }
15425 _ACEOF
15426 rm -f conftest$ac_exeext
15427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15428 (eval $ac_link) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 ac_cv_func_fork_works=yes
15438 else
15439 echo "$as_me: program exited with status $ac_status" >&5
15440 echo "$as_me: failed program was:" >&5
15441 cat conftest.$ac_ext >&5
15442 ( exit $ac_status )
15443 ac_cv_func_fork_works=no
15444 fi
15445 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15446 fi
15447 fi
15448 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15449 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15450
15451 fi
15452 if test "x$ac_cv_func_fork_works" = xcross; then
15453 case $host in
15454 *-*-amigaos* | *-*-msdosdjgpp*)
15455 # Override, as these systems have only a dummy fork() stub
15456 ac_cv_func_fork_works=no
15457 ;;
15458 *)
15459 ac_cv_func_fork_works=yes
15460 ;;
15461 esac
15462 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15463 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15464 fi
15465 ac_cv_func_vfork_works=$ac_cv_func_vfork
15466 if test "x$ac_cv_func_vfork" = xyes; then
15467 echo "$as_me:$LINENO: checking for working vfork" >&5
15468 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15469 if test "${ac_cv_func_vfork_works+set}" = set; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15471 else
15472 if test "$cross_compiling" = yes; then
15473 ac_cv_func_vfork_works=cross
15474 else
15475 cat >conftest.$ac_ext <<_ACEOF
15476 #line $LINENO "configure"
15477 #include "confdefs.h"
15478 /* Thanks to Paul Eggert for this test. */
15479 #include <stdio.h>
15480 #include <sys/types.h>
15481 #include <sys/stat.h>
15482 #if HAVE_UNISTD_H
15483 # include <unistd.h>
15484 #endif
15485 #if HAVE_VFORK_H
15486 # include <vfork.h>
15487 #endif
15488 /* On some sparc systems, changes by the child to local and incoming
15489 argument registers are propagated back to the parent. The compiler
15490 is told about this with #include <vfork.h>, but some compilers
15491 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15492 static variable whose address is put into a register that is
15493 clobbered by the vfork. */
15494 static
15495 #ifdef __cplusplus
15496 sparc_address_test (int arg)
15497 # else
15498 sparc_address_test (arg) int arg;
15499 #endif
15500 {
15501 static pid_t child;
15502 if (!child) {
15503 child = vfork ();
15504 if (child < 0) {
15505 perror ("vfork");
15506 _exit(2);
15507 }
15508 if (!child) {
15509 arg = getpid();
15510 write(-1, "", 0);
15511 _exit (arg);
15512 }
15513 }
15514 }
15515
15516 int
15517 main ()
15518 {
15519 pid_t parent = getpid ();
15520 pid_t child;
15521
15522 sparc_address_test ();
15523
15524 child = vfork ();
15525
15526 if (child == 0) {
15527 /* Here is another test for sparc vfork register problems. This
15528 test uses lots of local variables, at least as many local
15529 variables as main has allocated so far including compiler
15530 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15531 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15532 reuse the register of parent for one of the local variables,
15533 since it will think that parent can't possibly be used any more
15534 in this routine. Assigning to the local variable will thus
15535 munge parent in the parent process. */
15536 pid_t
15537 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15538 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15539 /* Convince the compiler that p..p7 are live; otherwise, it might
15540 use the same hardware register for all 8 local variables. */
15541 if (p != p1 || p != p2 || p != p3 || p != p4
15542 || p != p5 || p != p6 || p != p7)
15543 _exit(1);
15544
15545 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15546 from child file descriptors. If the child closes a descriptor
15547 before it execs or exits, this munges the parent's descriptor
15548 as well. Test for this by closing stdout in the child. */
15549 _exit(close(fileno(stdout)) != 0);
15550 } else {
15551 int status;
15552 struct stat st;
15553
15554 while (wait(&status) != child)
15555 ;
15556 exit(
15557 /* Was there some problem with vforking? */
15558 child < 0
15559
15560 /* Did the child fail? (This shouldn't happen.) */
15561 || status
15562
15563 /* Did the vfork/compiler bug occur? */
15564 || parent != getpid()
15565
15566 /* Did the file descriptor bug occur? */
15567 || fstat(fileno(stdout), &st) != 0
15568 );
15569 }
15570 }
15571 _ACEOF
15572 rm -f conftest$ac_exeext
15573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15574 (eval $ac_link) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; }; then
15583 ac_cv_func_vfork_works=yes
15584 else
15585 echo "$as_me: program exited with status $ac_status" >&5
15586 echo "$as_me: failed program was:" >&5
15587 cat conftest.$ac_ext >&5
15588 ( exit $ac_status )
15589 ac_cv_func_vfork_works=no
15590 fi
15591 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15592 fi
15593 fi
15594 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15595 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15596
15597 fi;
15598 if test "x$ac_cv_func_fork_works" = xcross; then
15599 ac_cv_func_vfork_works=ac_cv_func_vfork
15600 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15601 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15602 fi
15603
15604 if test "x$ac_cv_func_vfork_works" = xyes; then
15605
15606 cat >>confdefs.h <<\_ACEOF
15607 #define HAVE_WORKING_VFORK 1
15608 _ACEOF
15609
15610 else
15611
15612 cat >>confdefs.h <<\_ACEOF
15613 #define vfork fork
15614 _ACEOF
15615
15616 fi
15617 if test "x$ac_cv_func_fork_works" = xyes; then
15618
15619 cat >>confdefs.h <<\_ACEOF
15620 #define HAVE_WORKING_FORK 1
15621 _ACEOF
15622
15623 fi
15624
15625
15626 # Fixme: This should be replaced when we have autoconf 2.14.
15627 echo "$as_me:$LINENO: checking for size_t" >&5
15628 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15629 if test "${ac_cv_type_size_t+set}" = set; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15631 else
15632 cat >conftest.$ac_ext <<_ACEOF
15633 #line $LINENO "configure"
15634 #include "confdefs.h"
15635 $ac_includes_default
15636 #ifdef F77_DUMMY_MAIN
15637 # ifdef __cplusplus
15638 extern "C"
15639 # endif
15640 int F77_DUMMY_MAIN() { return 1; }
15641 #endif
15642 int
15643 main ()
15644 {
15645 if ((size_t *) 0)
15646 return 0;
15647 if (sizeof (size_t))
15648 return 0;
15649 ;
15650 return 0;
15651 }
15652 _ACEOF
15653 rm -f conftest.$ac_objext
15654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15655 (eval $ac_compile) 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
15659 { ac_try='test -s conftest.$ac_objext'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }; then
15665 ac_cv_type_size_t=yes
15666 else
15667 echo "$as_me: failed program was:" >&5
15668 cat conftest.$ac_ext >&5
15669 ac_cv_type_size_t=no
15670 fi
15671 rm -f conftest.$ac_objext conftest.$ac_ext
15672 fi
15673 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15674 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15675 if test $ac_cv_type_size_t = yes; then
15676 :
15677 else
15678
15679 cat >>confdefs.h <<_ACEOF
15680 #define size_t unsigned
15681 _ACEOF
15682
15683 fi
15684
15685
15686 # Set up the CFLAGS for real compilation, so we can substitute it.
15687 CFLAGS="$REAL_CFLAGS"
15688 CPPFLAGS="$REAL_CPPFLAGS"
15689
15690 #### Find out which version of Emacs this is.
15691 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
15692 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15693 if test x"${version}" = x; then
15694 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
15695 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
15696 { (exit 1); exit 1; }; }
15697 fi
15698
15699 ### Specify what sort of things we'll be editing into Makefile and config.h.
15700 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735 cat >>confdefs.h <<_ACEOF
15736 #define EMACS_CONFIGURATION "${canonical}"
15737 _ACEOF
15738
15739
15740 cat >>confdefs.h <<_ACEOF
15741 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15742 _ACEOF
15743
15744
15745 cat >>confdefs.h <<_ACEOF
15746 #define config_machfile "${machfile}"
15747 _ACEOF
15748
15749
15750 cat >>confdefs.h <<_ACEOF
15751 #define config_opsysfile "${opsysfile}"
15752 _ACEOF
15753
15754
15755 cat >>confdefs.h <<_ACEOF
15756 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
15757 _ACEOF
15758
15759
15760 cat >>confdefs.h <<_ACEOF
15761 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
15762 _ACEOF
15763
15764
15765 cat >>confdefs.h <<_ACEOF
15766 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
15767 _ACEOF
15768
15769
15770 cat >>confdefs.h <<_ACEOF
15771 #define UNEXEC_SRC ${UNEXEC_SRC}
15772 _ACEOF
15773
15774
15775 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15776
15777 cat >>confdefs.h <<\_ACEOF
15778 #define HAVE_X_WINDOWS 1
15779 _ACEOF
15780
15781 fi
15782 if test "${USE_X_TOOLKIT}" != "none" ; then
15783
15784 cat >>confdefs.h <<\_ACEOF
15785 #define USE_X_TOOLKIT 1
15786 _ACEOF
15787
15788 fi
15789 if test "${HAVE_X11}" = "yes" ; then
15790
15791 cat >>confdefs.h <<\_ACEOF
15792 #define HAVE_X11 1
15793 _ACEOF
15794
15795 fi
15796 if test "${HAVE_XFREE386}" = "yes" ; then
15797
15798 cat >>confdefs.h <<\_ACEOF
15799 #define HAVE_XFREE386 1
15800 _ACEOF
15801
15802 fi
15803 if test "${HAVE_MENUS}" = "yes" ; then
15804
15805 cat >>confdefs.h <<\_ACEOF
15806 #define HAVE_MENUS 1
15807 _ACEOF
15808
15809 fi
15810 if test "${GNU_MALLOC}" = "yes" ; then
15811
15812 cat >>confdefs.h <<\_ACEOF
15813 #define GNU_MALLOC 1
15814 _ACEOF
15815
15816 fi
15817 if test "${REL_ALLOC}" = "yes" ; then
15818
15819 cat >>confdefs.h <<\_ACEOF
15820 #define REL_ALLOC 1
15821 _ACEOF
15822
15823 fi
15824
15825
15826 for ac_header in nlist.h
15827 do
15828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15830 echo "$as_me:$LINENO: checking for $ac_header" >&5
15831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15834 fi
15835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15837 else
15838 # Is the header compilable?
15839 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15841 cat >conftest.$ac_ext <<_ACEOF
15842 #line $LINENO "configure"
15843 #include "confdefs.h"
15844 $ac_includes_default
15845 #include <$ac_header>
15846 _ACEOF
15847 rm -f conftest.$ac_objext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>&5
15850 ac_status=$?
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try='test -s conftest.$ac_objext'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 ac_header_compiler=yes
15860 else
15861 echo "$as_me: failed program was:" >&5
15862 cat conftest.$ac_ext >&5
15863 ac_header_compiler=no
15864 fi
15865 rm -f conftest.$ac_objext conftest.$ac_ext
15866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15867 echo "${ECHO_T}$ac_header_compiler" >&6
15868
15869 # Is the header present?
15870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15872 cat >conftest.$ac_ext <<_ACEOF
15873 #line $LINENO "configure"
15874 #include "confdefs.h"
15875 #include <$ac_header>
15876 _ACEOF
15877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15879 ac_status=$?
15880 egrep -v '^ *\+' conftest.er1 >conftest.err
15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } >/dev/null; then
15885 if test -s conftest.err; then
15886 ac_cpp_err=$ac_c_preproc_warn_flag
15887 else
15888 ac_cpp_err=
15889 fi
15890 else
15891 ac_cpp_err=yes
15892 fi
15893 if test -z "$ac_cpp_err"; then
15894 ac_header_preproc=yes
15895 else
15896 echo "$as_me: failed program was:" >&5
15897 cat conftest.$ac_ext >&5
15898 ac_header_preproc=no
15899 fi
15900 rm -f conftest.err conftest.$ac_ext
15901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15902 echo "${ECHO_T}$ac_header_preproc" >&6
15903
15904 # So? What about this header?
15905 case $ac_header_compiler:$ac_header_preproc in
15906 yes:no )
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15911 no:yes )
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15918 esac
15919 echo "$as_me:$LINENO: checking for $ac_header" >&5
15920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15923 else
15924 eval "$as_ac_Header=$ac_header_preproc"
15925 fi
15926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15928
15929 fi
15930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15931 cat >>confdefs.h <<_ACEOF
15932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15933 _ACEOF
15934
15935 cat >>confdefs.h <<\_ACEOF
15936 #define NLIST_STRUCT 1
15937 _ACEOF
15938
15939 fi
15940
15941 done
15942
15943
15944
15945
15946
15947
15948 #### Report on what we decided to do.
15949 echo "
15950 Configured for \`${canonical}'.
15951
15952 Where should the build process find the source code? ${srcdir}
15953 What operating system and machine description files should Emacs use?
15954 \`${opsysfile}' and \`${machfile}'
15955 What compiler should emacs be built with? ${CC} ${CFLAGS}
15956 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
15957 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
15958 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
15959 What window system should Emacs use? ${window_system}
15960 What toolkit should Emacs use? ${USE_X_TOOLKIT}
15961 Should Emacs use a shared game state directory? ${gamedir}"
15962
15963 if test -n "${x_includes}"; then
15964 echo " Where do we find X Windows header files? ${x_includes}"
15965 else
15966 echo " Where do we find X Windows header files? Standard dirs"
15967 fi
15968 if test -n "${x_libraries}"; then
15969 echo " Where do we find X Windows libraries? ${x_libraries}"
15970 else
15971 echo " Where do we find X Windows libraries? Standard dirs"
15972 fi
15973
15974 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
15975 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
15976 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
15977 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
15978 echo " Does Emacs use -lungif? ${HAVE_GIF}"
15979 echo " Does Emacs use -lpng? ${HAVE_PNG}"
15980 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
15981 echo
15982
15983 # Remove any trailing slashes in these variables.
15984 test "${prefix}" != NONE &&
15985 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15986 test "${exec_prefix}" != NONE &&
15987 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15988
15989 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
15990 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
15991 ## from Makefile.c can correctly provide the arg `-traditional' to the
15992 ## C preprocessor.
15993
15994 cat >conftest.$ac_ext <<_ACEOF
15995 #line $LINENO "configure"
15996 #include "confdefs.h"
15997 yes..yes
15998 _ACEOF
15999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16000 egrep "yes..yes" >/dev/null 2>&1; then
16001 CPP_NEED_TRADITIONAL=no
16002 else
16003 CPP_NEED_TRADITIONAL=yes
16004 fi
16005 rm -f conftest*
16006
16007
16008 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
16009 ac_config_commands="$ac_config_commands default"
16010 cat >confcache <<\_ACEOF
16011 # This file is a shell script that caches the results of configure
16012 # tests run on this system so they can be shared between configure
16013 # scripts and configure runs, see configure's option --config-cache.
16014 # It is not useful on other systems. If it contains results you don't
16015 # want to keep, you may remove or edit it.
16016 #
16017 # config.status only pays attention to the cache file if you give it
16018 # the --recheck option to rerun configure.
16019 #
16020 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16022 # following values.
16023
16024 _ACEOF
16025
16026 # The following way of writing the cache mishandles newlines in values,
16027 # but we know of no workaround that is simple, portable, and efficient.
16028 # So, don't put newlines in cache variables' values.
16029 # Ultrix sh set writes to stderr and can't be redirected directly,
16030 # and sets the high bit in the cache file unless we assign to the vars.
16031 {
16032 (set) 2>&1 |
16033 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16034 *ac_space=\ *)
16035 # `set' does not quote correctly, so add quotes (double-quote
16036 # substitution turns \\\\ into \\, and sed turns \\ into \).
16037 sed -n \
16038 "s/'/'\\\\''/g;
16039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16040 ;;
16041 *)
16042 # `set' quotes correctly as required by POSIX, so do not add quotes.
16043 sed -n \
16044 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16045 ;;
16046 esac;
16047 } |
16048 sed '
16049 t clear
16050 : clear
16051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16052 t end
16053 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16054 : end' >>confcache
16055 if cmp -s $cache_file confcache; then :; else
16056 if test -w $cache_file; then
16057 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16058 cat confcache >$cache_file
16059 else
16060 echo "not updating unwritable cache $cache_file"
16061 fi
16062 fi
16063 rm -f confcache
16064
16065 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16066 # Let make expand exec_prefix.
16067 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16068
16069 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16070 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16071 # trailing colons and then remove the whole line if VPATH becomes empty
16072 # (actually we leave an empty line to preserve line numbers).
16073 if test "x$srcdir" = x.; then
16074 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16075 s/:*\$(srcdir):*/:/;
16076 s/:*\${srcdir}:*/:/;
16077 s/:*@srcdir@:*/:/;
16078 s/^\([^=]*=[ ]*\):*/\1/;
16079 s/:*$//;
16080 s/^[^=]*=[ ]*$//;
16081 }'
16082 fi
16083
16084 DEFS=-DHAVE_CONFIG_H
16085
16086
16087 : ${CONFIG_STATUS=./config.status}
16088 ac_clean_files_save=$ac_clean_files
16089 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16090 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16091 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16092 cat >$CONFIG_STATUS <<_ACEOF
16093 #! $SHELL
16094 # Generated by $as_me.
16095 # Run this file to recreate the current configuration.
16096 # Compiler output produced by configure, useful for debugging
16097 # configure, is in config.log if it exists.
16098
16099 debug=false
16100 SHELL=\${CONFIG_SHELL-$SHELL}
16101 _ACEOF
16102
16103 cat >>$CONFIG_STATUS <<\_ACEOF
16104
16105 ## --------------------- ##
16106 ## M4sh Initialization. ##
16107 ## --------------------- ##
16108
16109 # Be Bourne compatible
16110 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16111 emulate sh
16112 NULLCMD=:
16113 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16114 set -o posix
16115 fi
16116
16117 # NLS nuisances.
16118 # Support unset when possible.
16119 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16120 as_unset=unset
16121 else
16122 as_unset=false
16123 fi
16124
16125 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16126 { $as_unset LANG || test "${LANG+set}" != set; } ||
16127 { LANG=C; export LANG; }
16128 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16129 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16130 { LC_ALL=C; export LC_ALL; }
16131 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16132 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16133 { LC_TIME=C; export LC_TIME; }
16134 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16135 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16136 { LC_CTYPE=C; export LC_CTYPE; }
16137 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16138 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16139 { LANGUAGE=C; export LANGUAGE; }
16140 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16141 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16142 { LC_COLLATE=C; export LC_COLLATE; }
16143 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16144 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16145 { LC_NUMERIC=C; export LC_NUMERIC; }
16146 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16147 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16148 { LC_MESSAGES=C; export LC_MESSAGES; }
16149
16150
16151 # Name of the executable.
16152 as_me=`(basename "$0") 2>/dev/null ||
16153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16154 X"$0" : 'X\(//\)$' \| \
16155 X"$0" : 'X\(/\)$' \| \
16156 . : '\(.\)' 2>/dev/null ||
16157 echo X/"$0" |
16158 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16159 /^X\/\(\/\/\)$/{ s//\1/; q; }
16160 /^X\/\(\/\).*/{ s//\1/; q; }
16161 s/.*/./; q'`
16162
16163 # PATH needs CR, and LINENO needs CR and PATH.
16164 # Avoid depending upon Character Ranges.
16165 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16166 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16167 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16168 as_cr_digits='0123456789'
16169 as_cr_alnum=$as_cr_Letters$as_cr_digits
16170
16171 # The user is always right.
16172 if test "${PATH_SEPARATOR+set}" != set; then
16173 echo "#! /bin/sh" >conftest.sh
16174 echo "exit 0" >>conftest.sh
16175 chmod +x conftest.sh
16176 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16177 PATH_SEPARATOR=';'
16178 else
16179 PATH_SEPARATOR=:
16180 fi
16181 rm -f conftest.sh
16182 fi
16183
16184
16185 as_lineno_1=$LINENO
16186 as_lineno_2=$LINENO
16187 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16188 test "x$as_lineno_1" != "x$as_lineno_2" &&
16189 test "x$as_lineno_3" = "x$as_lineno_2" || {
16190 # Find who we are. Look in the path if we contain no path at all
16191 # relative or not.
16192 case $0 in
16193 *[\\/]* ) as_myself=$0 ;;
16194 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16195 for as_dir in $PATH
16196 do
16197 IFS=$as_save_IFS
16198 test -z "$as_dir" && as_dir=.
16199 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16200 done
16201
16202 ;;
16203 esac
16204 # We did not find ourselves, most probably we were run as `sh COMMAND'
16205 # in which case we are not to be found in the path.
16206 if test "x$as_myself" = x; then
16207 as_myself=$0
16208 fi
16209 if test ! -f "$as_myself"; then
16210 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16211 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16212 { (exit 1); exit 1; }; }
16213 fi
16214 case $CONFIG_SHELL in
16215 '')
16216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16217 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16218 do
16219 IFS=$as_save_IFS
16220 test -z "$as_dir" && as_dir=.
16221 for as_base in sh bash ksh sh5; do
16222 case $as_dir in
16223 /*)
16224 if ("$as_dir/$as_base" -c '
16225 as_lineno_1=$LINENO
16226 as_lineno_2=$LINENO
16227 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16228 test "x$as_lineno_1" != "x$as_lineno_2" &&
16229 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16230 CONFIG_SHELL=$as_dir/$as_base
16231 export CONFIG_SHELL
16232 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16233 fi;;
16234 esac
16235 done
16236 done
16237 ;;
16238 esac
16239
16240 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16241 # uniformly replaced by the line number. The first 'sed' inserts a
16242 # line-number line before each line; the second 'sed' does the real
16243 # work. The second script uses 'N' to pair each line-number line
16244 # with the numbered line, and appends trailing '-' during
16245 # substitution so that $LINENO is not a special case at line end.
16246 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16247 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16248 sed '=' <$as_myself |
16249 sed '
16250 N
16251 s,$,-,
16252 : loop
16253 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16254 t loop
16255 s,-$,,
16256 s,^['$as_cr_digits']*\n,,
16257 ' >$as_me.lineno &&
16258 chmod +x $as_me.lineno ||
16259 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16260 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16261 { (exit 1); exit 1; }; }
16262
16263 # Don't try to exec as it changes $[0], causing all sort of problems
16264 # (the dirname of $[0] is not the place where we might find the
16265 # original and so on. Autoconf is especially sensible to this).
16266 . ./$as_me.lineno
16267 # Exit status is that of the last command.
16268 exit
16269 }
16270
16271
16272 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16273 *c*,-n*) ECHO_N= ECHO_C='
16274 ' ECHO_T=' ' ;;
16275 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16276 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16277 esac
16278
16279 if expr a : '\(a\)' >/dev/null 2>&1; then
16280 as_expr=expr
16281 else
16282 as_expr=false
16283 fi
16284
16285 rm -f conf$$ conf$$.exe conf$$.file
16286 echo >conf$$.file
16287 if ln -s conf$$.file conf$$ 2>/dev/null; then
16288 # We could just check for DJGPP; but this test a) works b) is more generic
16289 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16290 if test -f conf$$.exe; then
16291 # Don't use ln at all; we don't have any links
16292 as_ln_s='cp -p'
16293 else
16294 as_ln_s='ln -s'
16295 fi
16296 elif ln conf$$.file conf$$ 2>/dev/null; then
16297 as_ln_s=ln
16298 else
16299 as_ln_s='cp -p'
16300 fi
16301 rm -f conf$$ conf$$.exe conf$$.file
16302
16303 as_executable_p="test -f"
16304
16305 # Sed expression to map a string onto a valid CPP name.
16306 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16307
16308 # Sed expression to map a string onto a valid variable name.
16309 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16310
16311
16312 # IFS
16313 # We need space, tab and new line, in precisely that order.
16314 as_nl='
16315 '
16316 IFS=" $as_nl"
16317
16318 # CDPATH.
16319 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16320
16321 exec 6>&1
16322
16323 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16324 # report actual input values of CONFIG_FILES etc. instead of their
16325 # values after options handling. Logging --version etc. is OK.
16326 exec 5>>config.log
16327 {
16328 echo
16329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16330 ## Running $as_me. ##
16331 _ASBOX
16332 } >&5
16333 cat >&5 <<_CSEOF
16334
16335 This file was extended by $as_me, which was
16336 generated by GNU Autoconf 2.53. Invocation command line was
16337
16338 CONFIG_FILES = $CONFIG_FILES
16339 CONFIG_HEADERS = $CONFIG_HEADERS
16340 CONFIG_LINKS = $CONFIG_LINKS
16341 CONFIG_COMMANDS = $CONFIG_COMMANDS
16342 $ $0 $@
16343
16344 _CSEOF
16345 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16346 echo >&5
16347 _ACEOF
16348
16349 # Files that config.status was made for.
16350 if test -n "$ac_config_files"; then
16351 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16352 fi
16353
16354 if test -n "$ac_config_headers"; then
16355 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16356 fi
16357
16358 if test -n "$ac_config_links"; then
16359 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16360 fi
16361
16362 if test -n "$ac_config_commands"; then
16363 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16364 fi
16365
16366 cat >>$CONFIG_STATUS <<\_ACEOF
16367
16368 ac_cs_usage="\
16369 \`$as_me' instantiates files from templates according to the
16370 current configuration.
16371
16372 Usage: $0 [OPTIONS] [FILE]...
16373
16374 -h, --help print this help, then exit
16375 -V, --version print version number, then exit
16376 -d, --debug don't remove temporary files
16377 --recheck update $as_me by reconfiguring in the same conditions
16378 --file=FILE[:TEMPLATE]
16379 instantiate the configuration file FILE
16380 --header=FILE[:TEMPLATE]
16381 instantiate the configuration header FILE
16382
16383 Configuration files:
16384 $config_files
16385
16386 Configuration headers:
16387 $config_headers
16388
16389 Configuration commands:
16390 $config_commands
16391
16392 Report bugs to <bug-autoconf@gnu.org>."
16393 _ACEOF
16394
16395 cat >>$CONFIG_STATUS <<_ACEOF
16396 ac_cs_version="\\
16397 config.status
16398 configured by $0, generated by GNU Autoconf 2.53,
16399 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16400
16401 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16402 Free Software Foundation, Inc.
16403 This config.status script is free software; the Free Software Foundation
16404 gives unlimited permission to copy, distribute and modify it."
16405 srcdir=$srcdir
16406 INSTALL="$INSTALL"
16407 _ACEOF
16408
16409 cat >>$CONFIG_STATUS <<\_ACEOF
16410 # If no file are specified by the user, then we need to provide default
16411 # value. By we need to know if files were specified by the user.
16412 ac_need_defaults=:
16413 while test $# != 0
16414 do
16415 case $1 in
16416 --*=*)
16417 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16418 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16419 shift
16420 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16421 shift
16422 ;;
16423 -*);;
16424 *) # This is not an option, so the user has probably given explicit
16425 # arguments.
16426 ac_need_defaults=false;;
16427 esac
16428
16429 case $1 in
16430 # Handling of the options.
16431 _ACEOF
16432 cat >>$CONFIG_STATUS <<_ACEOF
16433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16434 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16435 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16436 _ACEOF
16437 cat >>$CONFIG_STATUS <<\_ACEOF
16438 --version | --vers* | -V )
16439 echo "$ac_cs_version"; exit 0 ;;
16440 --he | --h)
16441 # Conflict between --help and --header
16442 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16443 Try \`$0 --help' for more information." >&5
16444 echo "$as_me: error: ambiguous option: $1
16445 Try \`$0 --help' for more information." >&2;}
16446 { (exit 1); exit 1; }; };;
16447 --help | --hel | -h )
16448 echo "$ac_cs_usage"; exit 0 ;;
16449 --debug | --d* | -d )
16450 debug=: ;;
16451 --file | --fil | --fi | --f )
16452 shift
16453 CONFIG_FILES="$CONFIG_FILES $1"
16454 ac_need_defaults=false;;
16455 --header | --heade | --head | --hea )
16456 shift
16457 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16458 ac_need_defaults=false;;
16459
16460 # This is an error.
16461 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16462 Try \`$0 --help' for more information." >&5
16463 echo "$as_me: error: unrecognized option: $1
16464 Try \`$0 --help' for more information." >&2;}
16465 { (exit 1); exit 1; }; } ;;
16466
16467 *) ac_config_targets="$ac_config_targets $1" ;;
16468
16469 esac
16470 shift
16471 done
16472
16473 _ACEOF
16474
16475 cat >>$CONFIG_STATUS <<_ACEOF
16476 #
16477 # INIT-COMMANDS section.
16478 #
16479
16480 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
16481
16482 _ACEOF
16483
16484
16485
16486 cat >>$CONFIG_STATUS <<\_ACEOF
16487 for ac_config_target in $ac_config_targets
16488 do
16489 case "$ac_config_target" in
16490 # Handling of arguments.
16491 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16492 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
16493 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
16494 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16495 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
16496 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
16497 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
16498 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
16499 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
16500 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
16501 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16502 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16503 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16504 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16505 { (exit 1); exit 1; }; };;
16506 esac
16507 done
16508
16509 # If the user did not use the arguments to specify the items to instantiate,
16510 # then the envvar interface is used. Set only those that are not.
16511 # We use the long form for the default assignment because of an extremely
16512 # bizarre bug on SunOS 4.1.3.
16513 if $ac_need_defaults; then
16514 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16515 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16516 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16517 fi
16518
16519 # Create a temporary directory, and hook for its removal unless debugging.
16520 $debug ||
16521 {
16522 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16523 trap '{ (exit 1); exit 1; }' 1 2 13 15
16524 }
16525
16526 # Create a (secure) tmp directory for tmp files.
16527 : ${TMPDIR=/tmp}
16528 {
16529 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16530 test -n "$tmp" && test -d "$tmp"
16531 } ||
16532 {
16533 tmp=$TMPDIR/cs$$-$RANDOM
16534 (umask 077 && mkdir $tmp)
16535 } ||
16536 {
16537 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16538 { (exit 1); exit 1; }
16539 }
16540
16541 _ACEOF
16542
16543 cat >>$CONFIG_STATUS <<_ACEOF
16544
16545 #
16546 # CONFIG_FILES section.
16547 #
16548
16549 # No need to generate the scripts if there are no CONFIG_FILES.
16550 # This happens for instance when ./config.status config.h
16551 if test -n "\$CONFIG_FILES"; then
16552 # Protect against being on the right side of a sed subst in config.status.
16553 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16554 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16555 s,@SHELL@,$SHELL,;t t
16556 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16557 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16558 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16559 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16560 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16561 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16562 s,@exec_prefix@,$exec_prefix,;t t
16563 s,@prefix@,$prefix,;t t
16564 s,@program_transform_name@,$program_transform_name,;t t
16565 s,@bindir@,$bindir,;t t
16566 s,@sbindir@,$sbindir,;t t
16567 s,@libexecdir@,$libexecdir,;t t
16568 s,@datadir@,$datadir,;t t
16569 s,@sysconfdir@,$sysconfdir,;t t
16570 s,@sharedstatedir@,$sharedstatedir,;t t
16571 s,@localstatedir@,$localstatedir,;t t
16572 s,@libdir@,$libdir,;t t
16573 s,@includedir@,$includedir,;t t
16574 s,@oldincludedir@,$oldincludedir,;t t
16575 s,@infodir@,$infodir,;t t
16576 s,@mandir@,$mandir,;t t
16577 s,@build_alias@,$build_alias,;t t
16578 s,@host_alias@,$host_alias,;t t
16579 s,@target_alias@,$target_alias,;t t
16580 s,@DEFS@,$DEFS,;t t
16581 s,@ECHO_C@,$ECHO_C,;t t
16582 s,@ECHO_N@,$ECHO_N,;t t
16583 s,@ECHO_T@,$ECHO_T,;t t
16584 s,@LIBS@,$LIBS,;t t
16585 s,@build@,$build,;t t
16586 s,@build_cpu@,$build_cpu,;t t
16587 s,@build_vendor@,$build_vendor,;t t
16588 s,@build_os@,$build_os,;t t
16589 s,@host@,$host,;t t
16590 s,@host_cpu@,$host_cpu,;t t
16591 s,@host_vendor@,$host_vendor,;t t
16592 s,@host_os@,$host_os,;t t
16593 s,@CC@,$CC,;t t
16594 s,@CFLAGS@,$CFLAGS,;t t
16595 s,@LDFLAGS@,$LDFLAGS,;t t
16596 s,@CPPFLAGS@,$CPPFLAGS,;t t
16597 s,@ac_ct_CC@,$ac_ct_CC,;t t
16598 s,@EXEEXT@,$EXEEXT,;t t
16599 s,@OBJEXT@,$OBJEXT,;t t
16600 s,@LN_S@,$LN_S,;t t
16601 s,@CPP@,$CPP,;t t
16602 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16603 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16604 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16605 s,@YACC@,$YACC,;t t
16606 s,@RANLIB@,$RANLIB,;t t
16607 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16608 s,@LIBSOUND@,$LIBSOUND,;t t
16609 s,@SET_MAKE@,$SET_MAKE,;t t
16610 s,@ALLOCA@,$ALLOCA,;t t
16611 s,@liblockfile@,$liblockfile,;t t
16612 s,@LIBOBJS@,$LIBOBJS,;t t
16613 s,@NEED_SETGID@,$NEED_SETGID,;t t
16614 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
16615 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
16616 s,@version@,$version,;t t
16617 s,@configuration@,$configuration,;t t
16618 s,@canonical@,$canonical,;t t
16619 s,@srcdir@,$srcdir,;t t
16620 s,@lispdir@,$lispdir,;t t
16621 s,@locallisppath@,$locallisppath,;t t
16622 s,@lisppath@,$lisppath,;t t
16623 s,@x_default_search_path@,$x_default_search_path,;t t
16624 s,@etcdir@,$etcdir,;t t
16625 s,@archlibdir@,$archlibdir,;t t
16626 s,@docdir@,$docdir,;t t
16627 s,@bitmapdir@,$bitmapdir,;t t
16628 s,@gamedir@,$gamedir,;t t
16629 s,@gameuser@,$gameuser,;t t
16630 s,@c_switch_system@,$c_switch_system,;t t
16631 s,@c_switch_machine@,$c_switch_machine,;t t
16632 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
16633 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
16634 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
16635 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
16636 s,@machfile@,$machfile,;t t
16637 s,@opsysfile@,$opsysfile,;t t
16638 CEOF
16639
16640 _ACEOF
16641
16642 cat >>$CONFIG_STATUS <<\_ACEOF
16643 # Split the substitutions into bite-sized pieces for seds with
16644 # small command number limits, like on Digital OSF/1 and HP-UX.
16645 ac_max_sed_lines=48
16646 ac_sed_frag=1 # Number of current file.
16647 ac_beg=1 # First line for current file.
16648 ac_end=$ac_max_sed_lines # Line after last line for current file.
16649 ac_more_lines=:
16650 ac_sed_cmds=
16651 while $ac_more_lines; do
16652 if test $ac_beg -gt 1; then
16653 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16654 else
16655 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16656 fi
16657 if test ! -s $tmp/subs.frag; then
16658 ac_more_lines=false
16659 else
16660 # The purpose of the label and of the branching condition is to
16661 # speed up the sed processing (if there are no `@' at all, there
16662 # is no need to browse any of the substitutions).
16663 # These are the two extra sed commands mentioned above.
16664 (echo ':t
16665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16666 if test -z "$ac_sed_cmds"; then
16667 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16668 else
16669 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16670 fi
16671 ac_sed_frag=`expr $ac_sed_frag + 1`
16672 ac_beg=$ac_end
16673 ac_end=`expr $ac_end + $ac_max_sed_lines`
16674 fi
16675 done
16676 if test -z "$ac_sed_cmds"; then
16677 ac_sed_cmds=cat
16678 fi
16679 fi # test -n "$CONFIG_FILES"
16680
16681 _ACEOF
16682 cat >>$CONFIG_STATUS <<\_ACEOF
16683 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16684 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16685 case $ac_file in
16686 - | *:- | *:-:* ) # input from stdin
16687 cat >$tmp/stdin
16688 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16690 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16691 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16692 * ) ac_file_in=$ac_file.in ;;
16693 esac
16694
16695 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16696 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16698 X"$ac_file" : 'X\(//\)[^/]' \| \
16699 X"$ac_file" : 'X\(//\)$' \| \
16700 X"$ac_file" : 'X\(/\)' \| \
16701 . : '\(.\)' 2>/dev/null ||
16702 echo X"$ac_file" |
16703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16705 /^X\(\/\/\)$/{ s//\1/; q; }
16706 /^X\(\/\).*/{ s//\1/; q; }
16707 s/.*/./; q'`
16708 { case "$ac_dir" in
16709 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16710 *) as_incr_dir=.;;
16711 esac
16712 as_dummy="$ac_dir"
16713 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16714 case $as_mkdir_dir in
16715 # Skip DOS drivespec
16716 ?:) as_incr_dir=$as_mkdir_dir ;;
16717 *)
16718 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16719 test -d "$as_incr_dir" ||
16720 mkdir "$as_incr_dir" ||
16721 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16722 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16723 { (exit 1); exit 1; }; }
16724 ;;
16725 esac
16726 done; }
16727
16728 ac_builddir=.
16729
16730 if test "$ac_dir" != .; then
16731 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16732 # A "../" for each directory in $ac_dir_suffix.
16733 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16734 else
16735 ac_dir_suffix= ac_top_builddir=
16736 fi
16737
16738 case $srcdir in
16739 .) # No --srcdir option. We are building in place.
16740 ac_srcdir=.
16741 if test -z "$ac_top_builddir"; then
16742 ac_top_srcdir=.
16743 else
16744 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16745 fi ;;
16746 [\\/]* | ?:[\\/]* ) # Absolute path.
16747 ac_srcdir=$srcdir$ac_dir_suffix;
16748 ac_top_srcdir=$srcdir ;;
16749 *) # Relative path.
16750 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16751 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16752 esac
16753 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16754 # absolute.
16755 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16756 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16757 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16758 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16759
16760
16761 case $INSTALL in
16762 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16763 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16764 esac
16765
16766 if test x"$ac_file" != x-; then
16767 { echo "$as_me:$LINENO: creating $ac_file" >&5
16768 echo "$as_me: creating $ac_file" >&6;}
16769 rm -f "$ac_file"
16770 fi
16771 # Let's still pretend it is `configure' which instantiates (i.e., don't
16772 # use $as_me), people would be surprised to read:
16773 # /* config.h. Generated by config.status. */
16774 if test x"$ac_file" = x-; then
16775 configure_input=
16776 else
16777 configure_input="$ac_file. "
16778 fi
16779 configure_input=$configure_input"Generated from `echo $ac_file_in |
16780 sed 's,.*/,,'` by configure."
16781
16782 # First look for the input files in the build tree, otherwise in the
16783 # src tree.
16784 ac_file_inputs=`IFS=:
16785 for f in $ac_file_in; do
16786 case $f in
16787 -) echo $tmp/stdin ;;
16788 [\\/$]*)
16789 # Absolute (can't be DOS-style, as IFS=:)
16790 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16791 echo "$as_me: error: cannot find input file: $f" >&2;}
16792 { (exit 1); exit 1; }; }
16793 echo $f;;
16794 *) # Relative
16795 if test -f "$f"; then
16796 # Build tree
16797 echo $f
16798 elif test -f "$srcdir/$f"; then
16799 # Source tree
16800 echo $srcdir/$f
16801 else
16802 # /dev/null tree
16803 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16804 echo "$as_me: error: cannot find input file: $f" >&2;}
16805 { (exit 1); exit 1; }; }
16806 fi;;
16807 esac
16808 done` || { (exit 1); exit 1; }
16809 _ACEOF
16810 cat >>$CONFIG_STATUS <<_ACEOF
16811 sed "$ac_vpsub
16812 $extrasub
16813 _ACEOF
16814 cat >>$CONFIG_STATUS <<\_ACEOF
16815 :t
16816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16817 s,@configure_input@,$configure_input,;t t
16818 s,@srcdir@,$ac_srcdir,;t t
16819 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16820 s,@top_srcdir@,$ac_top_srcdir,;t t
16821 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16822 s,@builddir@,$ac_builddir,;t t
16823 s,@abs_builddir@,$ac_abs_builddir,;t t
16824 s,@top_builddir@,$ac_top_builddir,;t t
16825 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16826 s,@INSTALL@,$ac_INSTALL,;t t
16827 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16828 rm -f $tmp/stdin
16829 if test x"$ac_file" != x-; then
16830 mv $tmp/out $ac_file
16831 else
16832 cat $tmp/out
16833 rm -f $tmp/out
16834 fi
16835
16836 done
16837 _ACEOF
16838 cat >>$CONFIG_STATUS <<\_ACEOF
16839
16840 #
16841 # CONFIG_HEADER section.
16842 #
16843
16844 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16845 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16846 #
16847 # ac_d sets the value in "#define NAME VALUE" lines.
16848 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16849 ac_dB='[ ].*$,\1#\2'
16850 ac_dC=' '
16851 ac_dD=',;t'
16852 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16853 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16854 ac_uB='$,\1#\2define\3'
16855 ac_uC=' '
16856 ac_uD=',;t'
16857
16858 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16859 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16860 case $ac_file in
16861 - | *:- | *:-:* ) # input from stdin
16862 cat >$tmp/stdin
16863 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16864 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16865 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16866 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16867 * ) ac_file_in=$ac_file.in ;;
16868 esac
16869
16870 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16871 echo "$as_me: creating $ac_file" >&6;}
16872
16873 # First look for the input files in the build tree, otherwise in the
16874 # src tree.
16875 ac_file_inputs=`IFS=:
16876 for f in $ac_file_in; do
16877 case $f in
16878 -) echo $tmp/stdin ;;
16879 [\\/$]*)
16880 # Absolute (can't be DOS-style, as IFS=:)
16881 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16882 echo "$as_me: error: cannot find input file: $f" >&2;}
16883 { (exit 1); exit 1; }; }
16884 echo $f;;
16885 *) # Relative
16886 if test -f "$f"; then
16887 # Build tree
16888 echo $f
16889 elif test -f "$srcdir/$f"; then
16890 # Source tree
16891 echo $srcdir/$f
16892 else
16893 # /dev/null tree
16894 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16895 echo "$as_me: error: cannot find input file: $f" >&2;}
16896 { (exit 1); exit 1; }; }
16897 fi;;
16898 esac
16899 done` || { (exit 1); exit 1; }
16900 # Remove the trailing spaces.
16901 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16902
16903 _ACEOF
16904
16905 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16906 # `conftest.undefs', that substitutes the proper values into
16907 # config.h.in to produce config.h. The first handles `#define'
16908 # templates, and the second `#undef' templates.
16909 # And first: Protect against being on the right side of a sed subst in
16910 # config.status. Protect against being in an unquoted here document
16911 # in config.status.
16912 rm -f conftest.defines conftest.undefs
16913 # Using a here document instead of a string reduces the quoting nightmare.
16914 # Putting comments in sed scripts is not portable.
16915 #
16916 # `end' is used to avoid that the second main sed command (meant for
16917 # 0-ary CPP macros) applies to n-ary macro definitions.
16918 # See the Autoconf documentation for `clear'.
16919 cat >confdef2sed.sed <<\_ACEOF
16920 s/[\\&,]/\\&/g
16921 s,[\\$`],\\&,g
16922 t clear
16923 : clear
16924 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16925 t end
16926 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16927 : end
16928 _ACEOF
16929 # If some macros were called several times there might be several times
16930 # the same #defines, which is useless. Nevertheless, we may not want to
16931 # sort them, since we want the *last* AC-DEFINE to be honored.
16932 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16933 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16934 rm -f confdef2sed.sed
16935
16936 # This sed command replaces #undef with comments. This is necessary, for
16937 # example, in the case of _POSIX_SOURCE, which is predefined and required
16938 # on some systems where configure will not decide to define it.
16939 cat >>conftest.undefs <<\_ACEOF
16940 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16941 _ACEOF
16942
16943 # Break up conftest.defines because some shells have a limit on the size
16944 # of here documents, and old seds have small limits too (100 cmds).
16945 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16946 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16947 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16948 echo ' :' >>$CONFIG_STATUS
16949 rm -f conftest.tail
16950 while grep . conftest.defines >/dev/null
16951 do
16952 # Write a limited-size here document to $tmp/defines.sed.
16953 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16954 # Speed up: don't consider the non `#define' lines.
16955 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16956 # Work around the forget-to-reset-the-flag bug.
16957 echo 't clr' >>$CONFIG_STATUS
16958 echo ': clr' >>$CONFIG_STATUS
16959 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16960 echo 'CEOF
16961 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16962 rm -f $tmp/in
16963 mv $tmp/out $tmp/in
16964 ' >>$CONFIG_STATUS
16965 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16966 rm -f conftest.defines
16967 mv conftest.tail conftest.defines
16968 done
16969 rm -f conftest.defines
16970 echo ' fi # egrep' >>$CONFIG_STATUS
16971 echo >>$CONFIG_STATUS
16972
16973 # Break up conftest.undefs because some shells have a limit on the size
16974 # of here documents, and old seds have small limits too (100 cmds).
16975 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16976 rm -f conftest.tail
16977 while grep . conftest.undefs >/dev/null
16978 do
16979 # Write a limited-size here document to $tmp/undefs.sed.
16980 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16981 # Speed up: don't consider the non `#undef'
16982 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16983 # Work around the forget-to-reset-the-flag bug.
16984 echo 't clr' >>$CONFIG_STATUS
16985 echo ': clr' >>$CONFIG_STATUS
16986 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16987 echo 'CEOF
16988 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16989 rm -f $tmp/in
16990 mv $tmp/out $tmp/in
16991 ' >>$CONFIG_STATUS
16992 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16993 rm -f conftest.undefs
16994 mv conftest.tail conftest.undefs
16995 done
16996 rm -f conftest.undefs
16997
16998 cat >>$CONFIG_STATUS <<\_ACEOF
16999 # Let's still pretend it is `configure' which instantiates (i.e., don't
17000 # use $as_me), people would be surprised to read:
17001 # /* config.h. Generated by config.status. */
17002 if test x"$ac_file" = x-; then
17003 echo "/* Generated by configure. */" >$tmp/config.h
17004 else
17005 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17006 fi
17007 cat $tmp/in >>$tmp/config.h
17008 rm -f $tmp/in
17009 if test x"$ac_file" != x-; then
17010 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17011 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17012 echo "$as_me: $ac_file is unchanged" >&6;}
17013 else
17014 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17016 X"$ac_file" : 'X\(//\)[^/]' \| \
17017 X"$ac_file" : 'X\(//\)$' \| \
17018 X"$ac_file" : 'X\(/\)' \| \
17019 . : '\(.\)' 2>/dev/null ||
17020 echo X"$ac_file" |
17021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17023 /^X\(\/\/\)$/{ s//\1/; q; }
17024 /^X\(\/\).*/{ s//\1/; q; }
17025 s/.*/./; q'`
17026 { case "$ac_dir" in
17027 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17028 *) as_incr_dir=.;;
17029 esac
17030 as_dummy="$ac_dir"
17031 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17032 case $as_mkdir_dir in
17033 # Skip DOS drivespec
17034 ?:) as_incr_dir=$as_mkdir_dir ;;
17035 *)
17036 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17037 test -d "$as_incr_dir" ||
17038 mkdir "$as_incr_dir" ||
17039 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17040 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17041 { (exit 1); exit 1; }; }
17042 ;;
17043 esac
17044 done; }
17045
17046 rm -f $ac_file
17047 mv $tmp/config.h $ac_file
17048 fi
17049 else
17050 cat $tmp/config.h
17051 rm -f $tmp/config.h
17052 fi
17053 done
17054 _ACEOF
17055 cat >>$CONFIG_STATUS <<\_ACEOF
17056
17057 #
17058 # CONFIG_COMMANDS section.
17059 #
17060 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17061 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17062 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17063 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17064 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17065 X"$ac_dest" : 'X\(//\)[^/]' \| \
17066 X"$ac_dest" : 'X\(//\)$' \| \
17067 X"$ac_dest" : 'X\(/\)' \| \
17068 . : '\(.\)' 2>/dev/null ||
17069 echo X"$ac_dest" |
17070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17072 /^X\(\/\/\)$/{ s//\1/; q; }
17073 /^X\(\/\).*/{ s//\1/; q; }
17074 s/.*/./; q'`
17075 ac_builddir=.
17076
17077 if test "$ac_dir" != .; then
17078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17079 # A "../" for each directory in $ac_dir_suffix.
17080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17081 else
17082 ac_dir_suffix= ac_top_builddir=
17083 fi
17084
17085 case $srcdir in
17086 .) # No --srcdir option. We are building in place.
17087 ac_srcdir=.
17088 if test -z "$ac_top_builddir"; then
17089 ac_top_srcdir=.
17090 else
17091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17092 fi ;;
17093 [\\/]* | ?:[\\/]* ) # Absolute path.
17094 ac_srcdir=$srcdir$ac_dir_suffix;
17095 ac_top_srcdir=$srcdir ;;
17096 *) # Relative path.
17097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17099 esac
17100 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17101 # absolute.
17102 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17103 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17104 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17105 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17106
17107
17108 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17109 echo "$as_me: executing $ac_dest commands" >&6;}
17110 case $ac_dest in
17111 default )
17112
17113 ### Make the necessary directories, if they don't exist.
17114 for dir in etc lisp ; do
17115 test -d ${dir} || mkdir ${dir}
17116 done
17117
17118 # Build src/Makefile from ${srcdir}/src/Makefile.c
17119 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
17120 # This must be done after src/config.h is built, since we rely on that file.
17121
17122 # Now get this: Some word that is part of the ${srcdir} directory name
17123 # or the ${configuration} value might, just might, happen to be an
17124 # identifier like `sun4' or `i386' or something, and be predefined by
17125 # the C preprocessor to some helpful value like 1, or maybe the empty
17126 # string. Needless to say consequent macro substitutions are less
17127 # than conducive to the makefile finding the correct directory.
17128 undefs="`echo $top_srcdir $configuration $canonical |
17129 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
17130 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
17131 `"
17132
17133 echo creating src/epaths.h
17134 ${MAKE-make} epaths-force
17135
17136 # As of 2000-11-19, newest development versions of GNU cpp preprocess
17137 # `..' to `. .' unless invoked with -traditional
17138
17139 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
17140 CPPFLAGS="$CPPFLAGS -traditional"
17141 fi
17142
17143 echo creating lib-src/Makefile
17144 ( cd lib-src
17145 rm -f junk.c junk1.c junk2.c
17146 sed -e '/start of cpp stuff/q' \
17147 < Makefile.c > junk1.c
17148 sed -e '1,/start of cpp stuff/d'\
17149 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17150 < Makefile.c > junk.c
17151 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
17152 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17153 cat junk1.c junk2.c > Makefile.new
17154 rm -f junk.c junk1.c junk2.c
17155 chmod 444 Makefile.new
17156 mv -f Makefile.new Makefile
17157 )
17158
17159 echo creating src/Makefile
17160 ( cd src
17161 rm -f junk.c junk1.c junk2.c
17162 sed -e '/start of cpp stuff/q' \
17163 < Makefile.c > junk1.c
17164 sed -e '1,/start of cpp stuff/d'\
17165 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17166 < Makefile.c > junk.c
17167 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
17168 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17169 cat junk1.c junk2.c > Makefile.new
17170 rm -f junk.c junk1.c junk2.c
17171 chmod 444 Makefile.new
17172 mv -f Makefile.new Makefile
17173 )
17174
17175 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
17176 echo creating src/.gdbinit
17177 echo source $srcdir/src/.gdbinit > src/.gdbinit
17178 fi
17179
17180 # This is how we know whether to re-run configure in certain cases.
17181 touch src/config.stamp
17182
17183 ;;
17184 esac
17185 done
17186 _ACEOF
17187
17188 cat >>$CONFIG_STATUS <<\_ACEOF
17189
17190 { (exit 0); exit 0; }
17191 _ACEOF
17192 chmod +x $CONFIG_STATUS
17193 ac_clean_files=$ac_clean_files_save
17194
17195
17196 # configure is writing to config.log, and then calls config.status.
17197 # config.status does its own redirection, appending to config.log.
17198 # Unfortunately, on DOS this fails, as config.log is still kept open
17199 # by configure, so config.status won't be able to write to it; its
17200 # output is simply discarded. So we exec the FD to /dev/null,
17201 # effectively closing config.log, so it can be properly (re)opened and
17202 # appended to by config.status. When coming back to configure, we
17203 # need to make the FD available again.
17204 if test "$no_create" != yes; then
17205 ac_cs_success=:
17206 exec 5>/dev/null
17207 $SHELL $CONFIG_STATUS || ac_cs_success=false
17208 exec 5>>config.log
17209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17210 # would make configure fail if this is the last instruction.
17211 $ac_cs_success || { (exit 1); exit 1; }
17212 fi
17213
17214