]> code.delx.au - gnu-emacs/blob - configure
(Freplace_match): Doc fix.
[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 --without-carbon don't use Carbon GUI on Mac OS X
861 --with-x use the X Window System
862
863 Some influential environment variables:
864 CC C compiler command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
870 CPP C preprocessor
871
872 Use these variables to override the choices made by `configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
874
875 _ACEOF
876 fi
877
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
884
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 else
890 ac_dir_suffix= ac_top_builddir=
891 fi
892
893 case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 esac
908 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
909 # absolute.
910 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
911 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
912 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
913 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
914
915 cd $ac_dir
916 # Check for guested configure; otherwise get Cygnus style configure.
917 if test -f $ac_srcdir/configure.gnu; then
918 echo
919 $SHELL $ac_srcdir/configure.gnu --help=recursive
920 elif test -f $ac_srcdir/configure; then
921 echo
922 $SHELL $ac_srcdir/configure --help=recursive
923 elif test -f $ac_srcdir/configure.ac ||
924 test -f $ac_srcdir/configure.in; then
925 echo
926 $ac_configure --help
927 else
928 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
929 fi
930 cd $ac_popdir
931 done
932 fi
933
934 test -n "$ac_init_help" && exit 0
935 if $ac_init_version; then
936 cat <<\_ACEOF
937
938 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
939 Free Software Foundation, Inc.
940 This configure script is free software; the Free Software Foundation
941 gives unlimited permission to copy, distribute and modify it.
942 _ACEOF
943 exit 0
944 fi
945 exec 5>config.log
946 cat >&5 <<_ACEOF
947 This file contains any messages produced by compilers while
948 running configure, to aid debugging if configure makes a mistake.
949
950 It was created by $as_me, which was
951 generated by GNU Autoconf 2.53. Invocation command line was
952
953 $ $0 $@
954
955 _ACEOF
956 {
957 cat <<_ASUNAME
958 ## --------- ##
959 ## Platform. ##
960 ## --------- ##
961
962 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
963 uname -m = `(uname -m) 2>/dev/null || echo unknown`
964 uname -r = `(uname -r) 2>/dev/null || echo unknown`
965 uname -s = `(uname -s) 2>/dev/null || echo unknown`
966 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967
968 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
969 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970
971 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
972 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
973 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
974 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
975 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
976 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
977 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978
979 _ASUNAME
980
981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
982 for as_dir in $PATH
983 do
984 IFS=$as_save_IFS
985 test -z "$as_dir" && as_dir=.
986 echo "PATH: $as_dir"
987 done
988
989 } >&5
990
991 cat >&5 <<_ACEOF
992
993
994 ## ----------- ##
995 ## Core tests. ##
996 ## ----------- ##
997
998 _ACEOF
999
1000
1001 # Keep a trace of the command line.
1002 # Strip out --no-create and --no-recursion so they do not pile up.
1003 # Also quote any args containing shell meta-characters.
1004 ac_configure_args=
1005 ac_sep=
1006 for ac_arg
1007 do
1008 case $ac_arg in
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n ) continue ;;
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 continue ;;
1014 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016 esac
1017 case " $ac_configure_args " in
1018 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1019 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1020 ac_sep=" " ;;
1021 esac
1022 # Get rid of the leading space.
1023 done
1024
1025 # When interrupted or exit'd, cleanup temporary files, and complete
1026 # config.log. We remove comments because anyway the quotes in there
1027 # would cause problems or look ugly.
1028 # WARNING: Be sure not to use single quotes in there, as some shells,
1029 # such as our DU 5.0 friend, will then `close' the trap.
1030 trap 'exit_status=$?
1031 # Save into config.log some information that might help in debugging.
1032 {
1033 echo
1034 cat <<\_ASBOX
1035 ## ---------------- ##
1036 ## Cache variables. ##
1037 ## ---------------- ##
1038 _ASBOX
1039 echo
1040 # The following way of writing the cache mishandles newlines in values,
1041 {
1042 (set) 2>&1 |
1043 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1044 *ac_space=\ *)
1045 sed -n \
1046 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1048 ;;
1049 *)
1050 sed -n \
1051 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1052 ;;
1053 esac;
1054 }
1055 echo
1056 if test -s confdefs.h; then
1057 cat <<\_ASBOX
1058 ## ----------- ##
1059 ## confdefs.h. ##
1060 ## ----------- ##
1061 _ASBOX
1062 echo
1063 sed "/^$/d" confdefs.h
1064 echo
1065 fi
1066 test "$ac_signal" != 0 &&
1067 echo "$as_me: caught signal $ac_signal"
1068 echo "$as_me: exit $exit_status"
1069 } >&5
1070 rm -f core core.* *.core &&
1071 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1072 exit $exit_status
1073 ' 0
1074 for ac_signal in 1 2 13 15; do
1075 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1076 done
1077 ac_signal=0
1078
1079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1080 rm -rf conftest* confdefs.h
1081 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1082 echo >confdefs.h
1083
1084 # Predefined preprocessor variables.
1085
1086 cat >>confdefs.h <<_ACEOF
1087 #define PACKAGE_NAME "$PACKAGE_NAME"
1088 _ACEOF
1089
1090
1091 cat >>confdefs.h <<_ACEOF
1092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1093 _ACEOF
1094
1095
1096 cat >>confdefs.h <<_ACEOF
1097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1098 _ACEOF
1099
1100
1101 cat >>confdefs.h <<_ACEOF
1102 #define PACKAGE_STRING "$PACKAGE_STRING"
1103 _ACEOF
1104
1105
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1108 _ACEOF
1109
1110
1111 # Let the site file select an alternate cache file if it wants to.
1112 # Prefer explicitly selected file to automatically selected ones.
1113 if test -z "$CONFIG_SITE"; then
1114 if test "x$prefix" != xNONE; then
1115 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1116 else
1117 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1118 fi
1119 fi
1120 for ac_site_file in $CONFIG_SITE; do
1121 if test -r "$ac_site_file"; then
1122 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1123 echo "$as_me: loading site script $ac_site_file" >&6;}
1124 sed 's/^/| /' "$ac_site_file" >&5
1125 . "$ac_site_file"
1126 fi
1127 done
1128
1129 if test -r "$cache_file"; then
1130 # Some versions of bash will fail to source /dev/null (special
1131 # files actually), so we avoid doing that.
1132 if test -f "$cache_file"; then
1133 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1134 echo "$as_me: loading cache $cache_file" >&6;}
1135 case $cache_file in
1136 [\\/]* | ?:[\\/]* ) . $cache_file;;
1137 *) . ./$cache_file;;
1138 esac
1139 fi
1140 else
1141 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1142 echo "$as_me: creating cache $cache_file" >&6;}
1143 >$cache_file
1144 fi
1145
1146 # Check that the precious variables saved in the cache have kept the same
1147 # value.
1148 ac_cache_corrupted=false
1149 for ac_var in `(set) 2>&1 |
1150 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1151 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1152 eval ac_new_set=\$ac_env_${ac_var}_set
1153 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1154 eval ac_new_val="\$ac_env_${ac_var}_value"
1155 case $ac_old_set,$ac_new_set in
1156 set,)
1157 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1158 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1159 ac_cache_corrupted=: ;;
1160 ,set)
1161 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1162 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1163 ac_cache_corrupted=: ;;
1164 ,);;
1165 *)
1166 if test "x$ac_old_val" != "x$ac_new_val"; then
1167 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1168 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1169 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1170 echo "$as_me: former value: $ac_old_val" >&2;}
1171 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1172 echo "$as_me: current value: $ac_new_val" >&2;}
1173 ac_cache_corrupted=:
1174 fi;;
1175 esac
1176 # Pass precious variables to config.status.
1177 if test "$ac_new_set" = set; then
1178 case $ac_new_val in
1179 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1180 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1181 *) ac_arg=$ac_var=$ac_new_val ;;
1182 esac
1183 case " $ac_configure_args " in
1184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1185 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1186 esac
1187 fi
1188 done
1189 if $ac_cache_corrupted; then
1190 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1191 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1192 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1193 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1194 { (exit 1); exit 1; }; }
1195 fi
1196
1197 ac_ext=c
1198 ac_cpp='$CPP $CPPFLAGS'
1199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1221
1222
1223 test "$program_prefix" != NONE &&
1224 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1225 # Use a double $ so make ignores it.
1226 test "$program_suffix" != NONE &&
1227 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1228 # Double any \ or $. echo might interpret backslashes.
1229 # By default was `s,x,x', remove it if useless.
1230 cat <<\_ACEOF >conftest.sed
1231 s/[\\$]/&&/g;s/;s,x,x,$//
1232 _ACEOF
1233 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1234 rm conftest.sed
1235
1236
1237 lispdir='${datadir}/emacs/${version}/lisp'
1238 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1239 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1240 lisppath='${locallisppath}:${lispdir}'
1241 etcdir='${datadir}/emacs/${version}/etc'
1242 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1243 docdir='${datadir}/emacs/${version}/etc'
1244 gamedir=yes
1245
1246
1247 # Check whether --with-game-dir or --without-game-dir was given.
1248 if test "${with_game_dir+set}" = set; then
1249 withval="$with_game_dir"
1250
1251 gamedir="$withval"
1252
1253 fi;
1254 if test "$gamedir" = yes; then
1255 gamedir="${localstatedir}/games/emacs"
1256 fi
1257 eval tgamedir=\"$gamedir\"
1258 if test "$gamedir" != no; then
1259
1260 cat >>confdefs.h <<_ACEOF
1261 #define HAVE_SHARED_GAME_DIR "$tgamedir"
1262 _ACEOF
1263
1264 fi
1265
1266 gameuser=games
1267
1268 # Check whether --with-game-user or --without-game-user was given.
1269 if test "${with_game_user+set}" = set; then
1270 withval="$with_game_user"
1271 gameuser="$withval"
1272 fi;
1273
1274
1275 # Check whether --with-gcc or --without-gcc was given.
1276 if test "${with_gcc+set}" = set; then
1277 withval="$with_gcc"
1278
1279 fi;
1280
1281 # Check whether --with-pop or --without-pop was given.
1282 if test "${with_pop+set}" = set; then
1283 withval="$with_pop"
1284 if test "$withval" = yes; then
1285 cat >>confdefs.h <<\_ACEOF
1286 #define MAIL_USE_POP 1
1287 _ACEOF
1288
1289 else :
1290 fi
1291 else
1292 cat >>confdefs.h <<\_ACEOF
1293 #define MAIL_USE_POP 1
1294 _ACEOF
1295
1296 fi;
1297
1298
1299 # Check whether --with-kerberos or --without-kerberos was given.
1300 if test "${with_kerberos+set}" = set; then
1301 withval="$with_kerberos"
1302 cat >>confdefs.h <<\_ACEOF
1303 #define KERBEROS 1
1304 _ACEOF
1305
1306 fi;
1307
1308
1309 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1310 if test "${with_kerberos5+set}" = set; then
1311 withval="$with_kerberos5"
1312 if test "${with_kerberos5+set}" = set; then
1313 if test "${with_kerberos+set}" != set; then
1314 with_kerberos=yes
1315 cat >>confdefs.h <<\_ACEOF
1316 #define KERBEROS 1
1317 _ACEOF
1318
1319 fi
1320 fi
1321
1322 cat >>confdefs.h <<\_ACEOF
1323 #define KERBEROS5 1
1324 _ACEOF
1325
1326 fi;
1327
1328 # Check whether --with-hesiod or --without-hesiod was given.
1329 if test "${with_hesiod+set}" = set; then
1330 withval="$with_hesiod"
1331
1332 cat >>confdefs.h <<\_ACEOF
1333 #define HESIOD 1
1334 _ACEOF
1335
1336 fi;
1337
1338
1339 # Check whether --with-sound or --without-sound was given.
1340 if test "${with_sound+set}" = set; then
1341 withval="$with_sound"
1342
1343 fi;
1344
1345
1346 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1347 if test "${with_x_toolkit+set}" = set; then
1348 withval="$with_x_toolkit"
1349 case "${withval}" in
1350 y | ye | yes ) val=athena ;;
1351 n | no ) val=no ;;
1352 l | lu | luc | luci | lucid ) val=lucid ;;
1353 a | at | ath | athe | athen | athena ) val=athena ;;
1354 m | mo | mot | moti | motif ) val=motif ;;
1355 * )
1356 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1357 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1358 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1359 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1360 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1361 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1362 { (exit 1); exit 1; }; }
1363 ;;
1364 esac
1365 with_x_toolkit=$val
1366
1367 fi;
1368
1369 # Check whether --with-xpm or --without-xpm was given.
1370 if test "${with_xpm+set}" = set; then
1371 withval="$with_xpm"
1372
1373 fi;
1374
1375 # Check whether --with-jpeg or --without-jpeg was given.
1376 if test "${with_jpeg+set}" = set; then
1377 withval="$with_jpeg"
1378
1379 fi;
1380
1381 # Check whether --with-tiff or --without-tiff was given.
1382 if test "${with_tiff+set}" = set; then
1383 withval="$with_tiff"
1384
1385 fi;
1386
1387 # Check whether --with-gif or --without-gif was given.
1388 if test "${with_gif+set}" = set; then
1389 withval="$with_gif"
1390
1391 fi;
1392
1393 # Check whether --with-png or --without-png was given.
1394 if test "${with_png+set}" = set; then
1395 withval="$with_png"
1396
1397 fi;
1398
1399 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1400 if test "${with_toolkit_scroll_bars+set}" = set; then
1401 withval="$with_toolkit_scroll_bars"
1402
1403 fi;
1404
1405 # Check whether --with-xim or --without-xim was given.
1406 if test "${with_xim+set}" = set; then
1407 withval="$with_xim"
1408
1409 fi;
1410
1411 # Check whether --with-carbon or --without-carbon was given.
1412 if test "${with_carbon+set}" = set; then
1413 withval="$with_carbon"
1414
1415 fi;
1416
1417 #### Make srcdir absolute, if it isn't already. It's important to
1418 #### avoid running the path through pwd unnecessarily, since pwd can
1419 #### give you automounter prefixes, which can go away. We do all this
1420 #### so Emacs can find its files when run uninstalled.
1421 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1422 unset CDPATH
1423 case "${srcdir}" in
1424 /* ) ;;
1425 . )
1426 ## We may be able to use the $PWD environment variable to make this
1427 ## absolute. But sometimes PWD is inaccurate.
1428 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1429 ## but that tested only for a well-formed and valid PWD,
1430 ## it did not object when PWD was well-formed and valid but just wrong.
1431 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1432 then
1433 srcdir="$PWD"
1434 else
1435 srcdir="`(cd ${srcdir}; pwd)`"
1436 fi
1437 ;;
1438 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1439 esac
1440
1441 #### Check if the source directory already has a configured system in it.
1442 if test `pwd` != `(cd ${srcdir} && pwd)` \
1443 && test -f "${srcdir}/src/config.h" ; then
1444 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1445 as a build directory right now; it has been configured in its own
1446 right. To configure in another directory as well, you MUST
1447 use GNU make. If you do not have GNU make, then you must
1448 now do \`make distclean' in ${srcdir},
1449 and then run $0 again." >&5
1450 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1451 as a build directory right now; it has been configured in its own
1452 right. To configure in another directory as well, you MUST
1453 use GNU make. If you do not have GNU make, then you must
1454 now do \`make distclean' in ${srcdir},
1455 and then run $0 again." >&2;}
1456
1457 extrasub='/^VPATH[ ]*=/c\
1458 vpath %.c $(srcdir)\
1459 vpath %.h $(srcdir)\
1460 vpath %.y $(srcdir)\
1461 vpath %.l $(srcdir)\
1462 vpath %.s $(srcdir)\
1463 vpath %.in $(srcdir)\
1464 vpath %.texi $(srcdir)'
1465 fi
1466
1467 #### Given the configuration name, set machfile and opsysfile to the
1468 #### names of the m/*.h and s/*.h files we should use.
1469
1470 ### Canonicalize the configuration name.
1471
1472 ac_aux_dir=
1473 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
1486 fi
1487 done
1488 if test -z "$ac_aux_dir"; then
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
1492 fi
1493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1496
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1502
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 ac_cv_build_alias=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520 fi
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1523 build=$ac_cv_build
1524 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527
1528
1529 echo "$as_me:$LINENO: checking host system type" >&5
1530 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1531 if test "${ac_cv_host+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534 ac_cv_host_alias=$host_alias
1535 test -z "$ac_cv_host_alias" &&
1536 ac_cv_host_alias=$ac_cv_build_alias
1537 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1541
1542 fi
1543 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1544 echo "${ECHO_T}$ac_cv_host" >&6
1545 host=$ac_cv_host
1546 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549
1550
1551 canonical=$host
1552 configuration=${host_alias-$host}
1553
1554
1555 ### If you add support for a new configuration, add code to this
1556 ### switch statement to recognize your configuration name and select
1557 ### the appropriate operating system and machine description files.
1558
1559 ### You would hope that you could choose an m/*.h file pretty much
1560 ### based on the machine portion of the configuration name, and an s-
1561 ### file based on the operating system portion. However, it turns out
1562 ### that each m/*.h file is pretty manufacturer-specific - for
1563 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1564 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1565 ### machines. So we basically have to have a special case for each
1566 ### configuration name.
1567 ###
1568 ### As far as handling version numbers on operating systems is
1569 ### concerned, make sure things will fail in a fixable way. If
1570 ### /etc/MACHINES doesn't say anything about version numbers, be
1571 ### prepared to handle anything reasonably. If version numbers
1572 ### matter, be sure /etc/MACHINES says something about it.
1573 ###
1574 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1575 ### "System V Release 4"; he writes, "The old convention encouraged
1576 ### confusion between `system' and `release' levels'."
1577
1578 machine='' opsys='' unported=no
1579 case "${canonical}" in
1580
1581 ## FreeBSD ports
1582 *-*-freebsd* )
1583 opsys=freebsd
1584 case "${canonical}" in
1585 alpha*-*-freebsd*) machine=alpha ;;
1586 i[3456]86-*-freebsd*) machine=intel386 ;;
1587 esac
1588 ;;
1589
1590 ## NetBSD ports
1591 *-*-netbsd* )
1592 opsys=netbsd
1593 case "${canonical}" in
1594 alpha*-*-netbsd*) machine=alpha ;;
1595 i[3456]86-*-netbsd*) machine=intel386 ;;
1596 m68k-*-netbsd*)
1597 # This is somewhat bogus.
1598 machine=hp9000s300 ;;
1599 powerpc-apple-netbsd*) machine=macppc ;;
1600 mips-*-netbsd*) machine=pmax ;;
1601 mipsel-*-netbsd*) machine=pmax ;;
1602 ns32k-*-netbsd*) machine=ns32000 ;;
1603 powerpc-*-netbsd*) machine=macppc ;;
1604 sparc*-*-netbsd*) machine=sparc ;;
1605 vax-*-netbsd*) machine=vax ;;
1606 arm-*-netbsd*) machine=arm ;;
1607 esac
1608 ;;
1609
1610 ## OpenBSD ports
1611 *-*-openbsd* )
1612 opsys=openbsd
1613 case "${canonical}" in
1614 alpha*-*-openbsd*) machine=alpha ;;
1615 i386-*-openbsd*) machine=intel386 ;;
1616 m68k-*-openbsd*) machine=hp9000s300 ;;
1617 mipsel-*-openbsd*) machine=pmax ;;
1618 ns32k-*-openbsd*) machine=ns32000 ;;
1619 sparc-*-openbsd*) machine=sparc ;;
1620 vax-*-openbsd*) machine=vax ;;
1621 esac
1622 ;;
1623
1624 ## Acorn RISCiX:
1625 arm-acorn-riscix1.1* )
1626 machine=acorn opsys=riscix1-1
1627 ;;
1628 arm-acorn-riscix1.2* | arm-acorn-riscix )
1629 ## This name is riscix12 instead of riscix1.2
1630 ## to avoid a file name conflict on MSDOS.
1631 machine=acorn opsys=riscix12
1632 ;;
1633
1634 ## BSDI ports
1635 *-*-bsdi* )
1636 opsys=bsdi
1637 case "${canonical}" in
1638 i[345]86-*-bsdi*) machine=intel386 ;;
1639 sparc-*-bsdi*) machine=sparc ;;
1640 powerpc-*-bsdi*) machine=macppc ;;
1641 esac
1642 case "${canonical}" in
1643 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1644 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1645 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1646 *-*-bsdi3* ) opsys=bsdos3 ;;
1647 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1648 esac
1649 ;;
1650
1651 ## Alliant machines
1652 ## Strictly speaking, we need the version of the alliant operating
1653 ## system to choose the right machine file, but currently the
1654 ## configuration name doesn't tell us enough to choose the right
1655 ## one; we need to give alliants their own operating system name to
1656 ## do this right. When someone cares, they can help us.
1657 fx80-alliant-* )
1658 machine=alliant4 opsys=bsd4-2
1659 ;;
1660 i860-alliant-* )
1661 machine=alliant-2800 opsys=bsd4-3
1662 ;;
1663
1664 ## Alpha (DEC) machines.
1665 alpha*-dec-osf* )
1666 machine=alpha opsys=osf1
1667 # This is needed to find X11R6.1 libraries for certain tests.
1668 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1669 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1670 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1671 # due to non-traditional preprocessing with the current compiler
1672 # defaults. OSF 4 can also have that compiler version, and there
1673 # seems always to have been a usable /usr/bin/cpp.
1674 NON_GNU_CPP=/usr/bin/cpp
1675 case "${canonical}" in
1676 alpha*-dec-osf[5-9]*)
1677 opsys=osf5-0 ;;
1678 esac
1679 ;;
1680
1681 alpha*-*-linux-gnu* )
1682 machine=alpha opsys=gnu-linux
1683 ;;
1684
1685 arm*-*-linux-gnu* )
1686 machine=arm opsys=gnu-linux
1687 ;;
1688
1689 ppc-*-linux | \
1690 powerpc-*-linux* )
1691 machine=macppc opsys=gnu-linux
1692 ;;
1693
1694 ## Altos 3068
1695 m68*-altos-sysv* )
1696 machine=altos opsys=usg5-2
1697 ;;
1698
1699 ## Amdahl UTS
1700 580-amdahl-sysv* )
1701 machine=amdahl opsys=usg5-2-2
1702 ;;
1703
1704 ## Apollo, Domain/OS
1705 m68*-apollo-* )
1706 machine=apollo opsys=bsd4-3
1707 ;;
1708
1709 ## AT&T 3b2, 3b5, 3b15, 3b20
1710 we32k-att-sysv* )
1711 machine=att3b opsys=usg5-2-2
1712 ;;
1713
1714 ## AT&T 3b1 - The Mighty Unix PC!
1715 m68*-att-sysv* )
1716 machine=7300 opsys=usg5-2-2
1717 ;;
1718
1719 ## Bull dpx20
1720 rs6000-bull-bosx* )
1721 machine=ibmrs6000 opsys=aix3-2
1722 ;;
1723
1724 ## Bull dpx2
1725 m68*-bull-sysv3* )
1726 machine=dpx2 opsys=usg5-3
1727 ;;
1728
1729 ## Bull sps7
1730 m68*-bull-sysv2* )
1731 machine=sps7 opsys=usg5-2
1732 ;;
1733
1734 ## CCI 5/32, 6/32 -- see "Tahoe".
1735
1736 ## Celerity
1737 ## I don't know what configuration name to use for this; config.sub
1738 ## doesn't seem to know anything about it. Hey, Celerity users, get
1739 ## in touch with us!
1740 celerity-celerity-bsd* )
1741 machine=celerity opsys=bsd4-2
1742 ;;
1743
1744 ## Clipper
1745 ## What operating systems does this chip run that Emacs has been
1746 ## tested on?
1747 clipper-* )
1748 machine=clipper
1749 ## We'll use the catch-all code at the bottom to guess the
1750 ## operating system.
1751 ;;
1752
1753 ## Compaq Nonstop
1754 mips-compaq-nonstopux* )
1755 machine=nonstopux opsys=nonstopux
1756 ;;
1757
1758 ## Convex
1759 *-convex-bsd* | *-convex-convexos* )
1760 machine=convex opsys=bsd4-3
1761 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1762 NON_GNU_CPP="cc -E -P"
1763 ;;
1764
1765 ## Cubix QBx/386
1766 i[3456]86-cubix-sysv* )
1767 machine=intel386 opsys=usg5-3
1768 ;;
1769
1770 ## Cydra 5
1771 cydra*-cydrome-sysv* )
1772 machine=cydra5 opsys=usg5-3
1773 ;;
1774
1775 ## Data General AViiON Machines
1776 ## DG changed naming conventions with the release of 5.4.4.10, they
1777 ## dropped the initial 5.4 but left the intervening R. Because of the
1778 ## R this shouldn't conflict with older versions of the OS (which I
1779 ## think were named like dgux4.*). In addition, DG new AViiONs series
1780 ## uses either Motorola M88k or Intel Pentium CPUs.
1781 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1782 machine=aviion opsys=dgux4
1783 ;;
1784 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1785 ## This name is dgux5-4-3 instead of dgux5-4r3
1786 ## to avoid a file name conflict on MSDOS.
1787 machine=aviion opsys=dgux5-4-3
1788 ;;
1789 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1790 machine=aviion opsys=dgux5-4r2
1791 ;;
1792 m88k-dg-dgux* )
1793 machine=aviion opsys=dgux
1794 ;;
1795
1796 ## Data General AViiON Intel (x86) Machines
1797 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1798 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1799 i[345]86-dg-dguxR4* )
1800 machine=aviion-intel opsys=dgux4
1801 ;;
1802
1803 ## DECstations
1804 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1805 machine=pmax opsys=bsd4-2
1806 ;;
1807 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1808 machine=pmax opsys=bsd4-3
1809 ;;
1810 mips-dec-ultrix* )
1811 machine=pmax opsys=ultrix4-3
1812 ;;
1813 mips-dec-osf* )
1814 machine=pmax opsys=osf1
1815 ;;
1816 mips-dec-mach_bsd4.3* )
1817 machine=pmax opsys=mach-bsd4-3
1818 ;;
1819
1820 ## Motorola Delta machines
1821 m68k-motorola-sysv* | m68000-motorola-sysv* )
1822 machine=delta opsys=usg5-3
1823 if test -z "`type gnucc | grep 'not found'`"
1824 then
1825 if test -s /etc/167config
1826 then CC="gnucc -m68040"
1827 else CC="gnucc -m68881"
1828 fi
1829 else
1830 if test -z "`type gcc | grep 'not found'`"
1831 then CC=gcc
1832 else CC=cc
1833 fi
1834 fi
1835 ;;
1836 m88k-motorola-sysv4* )
1837 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1838 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1839 # I hope there are not other 4.0 versions for this machine
1840 # which really need usg5-4 instead.
1841 machine=delta88k opsys=usg5-4-2
1842 ;;
1843 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1844 machine=delta88k opsys=usg5-3
1845 ;;
1846
1847 ## Dual machines
1848 m68*-dual-sysv* )
1849 machine=dual opsys=usg5-2
1850 ;;
1851 m68*-dual-uniplus* )
1852 machine=dual opsys=unipl5-2
1853 ;;
1854
1855 ## Elxsi 6400
1856 elxsi-elxsi-sysv* )
1857 machine=elxsi opsys=usg5-2
1858 ;;
1859
1860 ## Encore machines
1861 ns16k-encore-bsd* )
1862 machine=ns16000 opsys=umax
1863 ;;
1864
1865 ## The GEC 63 - apparently, this port isn't really finished yet.
1866 # I'm sure we finished off the last of the machines, though. -- fx
1867
1868 ## Gould Power Node and NP1
1869 pn-gould-bsd4.2* )
1870 machine=gould opsys=bsd4-2
1871 ;;
1872 pn-gould-bsd4.3* )
1873 machine=gould opsys=bsd4-3
1874 ;;
1875 np1-gould-bsd* )
1876 machine=gould-np1 opsys=bsd4-3
1877 ;;
1878
1879 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1880 ## as far as Emacs is concerned).
1881 m88k-harris-cxux* )
1882 # Build needs to be different on 7.0 and later releases
1883 case "`uname -r`" in
1884 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1885 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1886 esac
1887 NON_GNU_CPP="/lib/cpp"
1888 ;;
1889 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1890 m68k-harris-cxux* )
1891 machine=nh3000 opsys=cxux
1892 ;;
1893 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1894 powerpc-harris-powerunix )
1895 machine=nh6000 opsys=powerunix
1896 NON_GNU_CPP="cc -Xo -E -P"
1897 ;;
1898 ## SR2001/SR2201 running HI-UX/MPP
1899 hppa1.1-hitachi-hiuxmpp* )
1900 machine=sr2k opsys=hiuxmpp
1901 ;;
1902 hppa1.1-hitachi-hiuxwe2* )
1903 machine=sr2k opsys=hiuxwe2
1904 ;;
1905 ## Honeywell XPS100
1906 xps*-honeywell-sysv* )
1907 machine=xps100 opsys=usg5-2
1908 ;;
1909
1910 ## HP 9000 series 200 or 300
1911 m68*-hp-bsd* )
1912 machine=hp9000s300 opsys=bsd4-3
1913 ;;
1914 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1915 m68*-hp-hpux* )
1916 case "`uname -r`" in
1917 ## Someone's system reports A.B8.05 for this.
1918 ## I wonder what other possibilities there are.
1919 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1920 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1921 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1922 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1923 *) machine=hp9000s300 opsys=hpux ;;
1924 esac
1925 ;;
1926
1927 ## HP 9000 series 700 and 800, running HP/UX
1928 hppa*-hp-hpux7* )
1929 machine=hp800 opsys=hpux
1930 ;;
1931 hppa*-hp-hpux8* )
1932 machine=hp800 opsys=hpux8
1933 ;;
1934 hppa*-hp-hpux9shr* )
1935 machine=hp800 opsys=hpux9shr
1936 ;;
1937 hppa*-hp-hpux9* )
1938 machine=hp800 opsys=hpux9
1939 ;;
1940 hppa*-hp-hpux10* )
1941 machine=hp800 opsys=hpux10
1942 ;;
1943 hppa*-hp-hpux1[1-9]* )
1944 machine=hp800 opsys=hpux11
1945 ;;
1946
1947 hppa*-*-linux-gnu* )
1948 machine=hp800 opsys=gnu-linux
1949 ;;
1950
1951 ## HP 9000 series 700 and 800, running HP/UX
1952 hppa*-hp-hpux* )
1953 ## Cross-compilation? Nah!
1954 case "`uname -r`" in
1955 ## Someone's system reports A.B8.05 for this.
1956 ## I wonder what other possibilities there are.
1957 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1958 *.08.* ) machine=hp800 opsys=hpux8 ;;
1959 *.09.* ) machine=hp800 opsys=hpux9 ;;
1960 *) machine=hp800 opsys=hpux10 ;;
1961 esac
1962 ;;
1963 hppa*-*-nextstep* )
1964 machine=hp800 opsys=nextstep
1965 ;;
1966
1967 ## Orion machines
1968 orion-orion-bsd* )
1969 machine=orion opsys=bsd4-2
1970 ;;
1971 clipper-orion-bsd* )
1972 machine=orion105 opsys=bsd4-2
1973 ;;
1974
1975 ## IBM machines
1976 i[3456]86-ibm-aix1.1* )
1977 machine=ibmps2-aix opsys=usg5-2-2
1978 ;;
1979 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1980 machine=ibmps2-aix opsys=usg5-3
1981 ;;
1982 i370-ibm-aix*)
1983 machine=ibm370aix opsys=usg5-3
1984 ;;
1985 s390-*-linux-gnu)
1986 machine=ibms390 opsys=gnu-linux
1987 ;;
1988 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
1989 machine=ibmrs6000 opsys=aix3-1
1990 ;;
1991 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
1992 machine=ibmrs6000 opsys=aix3-2-5
1993 ;;
1994 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
1995 machine=ibmrs6000 opsys=aix4-1
1996 ;;
1997 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
1998 machine=ibmrs6000 opsys=aix4-2
1999 ;;
2000 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2001 machine=ibmrs6000 opsys=aix4-2
2002 ;;
2003 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2004 machine=ibmrs6000 opsys=aix4
2005 ;;
2006 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2007 machine=ibmrs6000 opsys=aix4-1
2008 ;;
2009 rs6000-ibm-aix* | powerpc-ibm-aix* )
2010 machine=ibmrs6000 opsys=aix3-2
2011 ;;
2012 romp-ibm-bsd4.3* )
2013 machine=ibmrt opsys=bsd4-3
2014 ;;
2015 romp-ibm-bsd4.2* )
2016 machine=ibmrt opsys=bsd4-2
2017 ;;
2018 romp-ibm-aos4.3* )
2019 machine=ibmrt opsys=bsd4-3
2020 ;;
2021 romp-ibm-aos4.2* )
2022 machine=ibmrt opsys=bsd4-2
2023 ;;
2024 romp-ibm-aos* )
2025 machine=ibmrt opsys=bsd4-3
2026 ;;
2027 romp-ibm-bsd* )
2028 machine=ibmrt opsys=bsd4-3
2029 ;;
2030 romp-ibm-aix* )
2031 machine=ibmrt-aix opsys=usg5-2-2
2032 ;;
2033
2034 ## Integrated Solutions `Optimum V'
2035 m68*-isi-bsd4.2* )
2036 machine=isi-ov opsys=bsd4-2
2037 ;;
2038 m68*-isi-bsd4.3* )
2039 machine=isi-ov opsys=bsd4-3
2040 ;;
2041
2042 ## Intel 386 machines where we do care about the manufacturer
2043 i[3456]86-intsys-sysv* )
2044 machine=is386 opsys=usg5-2-2
2045 ;;
2046
2047 ## Prime EXL
2048 i[3456]86-prime-sysv* )
2049 machine=i386 opsys=usg5-3
2050 ;;
2051
2052 ## Sequent Symmetry running Dynix
2053 i[3456]86-sequent-bsd* )
2054 machine=symmetry opsys=bsd4-3
2055 ;;
2056
2057 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2058 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2059 machine=sequent-ptx opsys=ptx4
2060 NON_GNU_CPP=/lib/cpp
2061 ;;
2062
2063 ## Sequent Symmetry running DYNIX/ptx
2064 ## Use the old cpp rather than the newer ANSI one.
2065 i[3456]86-sequent-ptx* )
2066 machine=sequent-ptx opsys=ptx
2067 NON_GNU_CPP="/lib/cpp"
2068 ;;
2069
2070 ## ncr machine running svr4.3.
2071 i[3456]86-ncr-sysv4.3 )
2072 machine=ncr386 opsys=usg5-4-3
2073 ;;
2074
2075 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2076 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2077 i[3456]86-ncr-sysv* )
2078 machine=ncr386 opsys=usg5-4-2
2079 ;;
2080
2081 ## Intel Paragon OSF/1
2082 i860-intel-osf1* )
2083 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2084 ;;
2085
2086 ## Intel 860
2087 i860-*-sysv4* )
2088 machine=i860 opsys=usg5-4
2089 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2090 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2091 ;;
2092
2093 ## Macintosh PowerPC
2094 powerpc*-*-linux-gnu* )
2095 machine=macppc opsys=gnu-linux
2096 ;;
2097
2098 ## Masscomp machines
2099 m68*-masscomp-rtu* )
2100 machine=masscomp opsys=rtu
2101 ;;
2102
2103 ## Megatest machines
2104 m68*-megatest-bsd* )
2105 machine=mega68 opsys=bsd4-2
2106 ;;
2107
2108 ## Workstations sold by MIPS
2109 ## This is not necessarily all workstations using the MIPS processor -
2110 ## Irises are produced by SGI, and DECstations by DEC.
2111
2112 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2113 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2114 ## it gives for choosing between the alternatives seems to be "Use
2115 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2116 ## the BSD world." I'll assume that these are instructions for
2117 ## handling two odd situations, and that every other situation
2118 ## should use mips.h and usg5-2-2, they being listed first.
2119 mips-mips-usg* )
2120 machine=mips4
2121 ## Fall through to the general code at the bottom to decide on the OS.
2122 ;;
2123 mips-mips-riscos4* )
2124 machine=mips4 opsys=bsd4-3
2125 NON_GNU_CC="cc -systype bsd43"
2126 NON_GNU_CPP="cc -systype bsd43 -E"
2127 ;;
2128 mips-mips-riscos5* )
2129 machine=mips4 opsys=riscos5
2130 NON_GNU_CC="cc -systype bsd43"
2131 NON_GNU_CPP="cc -systype bsd43 -E"
2132 ;;
2133 mips-mips-bsd* )
2134 machine=mips opsys=bsd4-3
2135 ;;
2136 mips-mips-* )
2137 machine=mips opsys=usg5-2-2
2138 ;;
2139
2140 ## NeXT
2141 m68*-next-* | m68k-*-nextstep* )
2142 machine=m68k opsys=nextstep
2143 ;;
2144
2145 ## The complete machine from National Semiconductor
2146 ns32k-ns-genix* )
2147 machine=ns32000 opsys=usg5-2
2148 ;;
2149
2150 ## NCR machines
2151 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2152 machine=tower32 opsys=usg5-2-2
2153 ;;
2154 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2155 machine=tower32v3 opsys=usg5-3
2156 ;;
2157
2158 ## NEC EWS4800
2159 mips-nec-sysv4*)
2160 machine=ews4800 opsys=ux4800
2161 ;;
2162
2163 ## Nixdorf Targon 31
2164 m68*-nixdorf-sysv* )
2165 machine=targon31 opsys=usg5-2-2
2166 ;;
2167
2168 ## Nu (TI or LMI)
2169 m68*-nu-sysv* )
2170 machine=nu opsys=usg5-2
2171 ;;
2172
2173 ## Plexus
2174 m68*-plexus-sysv* )
2175 machine=plexus opsys=usg5-2
2176 ;;
2177
2178 ## PowerPC reference platform
2179 powerpcle-*-solaris2* )
2180 machine=prep
2181 opsys=sol2-5
2182 ;;
2183
2184 ## Pyramid machines
2185 ## I don't really have any idea what sort of processor the Pyramid has,
2186 ## so I'm assuming it is its own architecture.
2187 pyramid-pyramid-bsd* )
2188 machine=pyramid opsys=bsd4-2
2189 ;;
2190
2191 ## Sequent Balance
2192 ns32k-sequent-bsd4.2* )
2193 machine=sequent opsys=bsd4-2
2194 ;;
2195 ns32k-sequent-bsd4.3* )
2196 machine=sequent opsys=bsd4-3
2197 ;;
2198
2199 ## Siemens Nixdorf
2200 mips-siemens-sysv* | mips-sni-sysv*)
2201 machine=mips-siemens opsys=usg5-4
2202 NON_GNU_CC=/usr/ccs/bin/cc
2203 NON_GNU_CPP=/usr/ccs/lib/cpp
2204 ;;
2205
2206 ## Silicon Graphics machines
2207 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2208 m68*-sgi-iris3.5* )
2209 machine=irist opsys=iris3-5
2210 ;;
2211 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2212 machine=irist opsys=iris3-6
2213 ;;
2214 ## Iris 4D
2215 mips-sgi-irix3* )
2216 machine=iris4d opsys=irix3-3
2217 ;;
2218 mips-sgi-irix4* )
2219 machine=iris4d opsys=irix4-0
2220 ;;
2221 mips-sgi-irix6.5 )
2222 machine=iris4d opsys=irix6-5
2223 # Without defining _LANGUAGE_C, things get masked out in the headers
2224 # so that, for instance, grepping for `free' in stdlib.h fails and
2225 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2226 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2227 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2228 ;;
2229 mips-sgi-irix6* )
2230 machine=iris4d opsys=irix6-0
2231 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2232 # but presumably it does no harm.
2233 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2234 # -32 probably isn't necessary in later v.6s -- anyone know which?
2235 NON_GCC_TEST_OPTIONS=-32
2236 ;;
2237 mips-sgi-irix5.[01]* )
2238 machine=iris4d opsys=irix5-0
2239 ;;
2240 mips-sgi-irix5* | mips-sgi-irix* )
2241 machine=iris4d opsys=irix5-2
2242 ;;
2243
2244 ## SONY machines
2245 m68*-sony-bsd4.2* )
2246 machine=news opsys=bsd4-2
2247 ;;
2248 m68*-sony-bsd4.3* )
2249 machine=news opsys=bsd4-3
2250 ;;
2251 m68*-sony-newsos3* | m68*-sony-news3*)
2252 machine=news opsys=bsd4-3
2253 ;;
2254 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2255 machine=news-risc opsys=bsd4-3
2256 ;;
2257 mips-sony-newsos6* )
2258 machine=news-r6 opsys=newsos6
2259 ;;
2260 mips-sony-news* )
2261 machine=news-risc opsys=newsos5
2262 ;;
2263
2264 ## Stride
2265 m68*-stride-sysv* )
2266 machine=stride opsys=usg5-2
2267 ;;
2268
2269 ## Suns
2270 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2271 machine=sparc opsys=gnu-linux
2272 ;;
2273
2274 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2275 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2276 | rs6000-*-solaris2*)
2277 case "${canonical}" in
2278 m68*-sunos1* ) machine=sun1 ;;
2279 m68*-sunos2* ) machine=sun2 ;;
2280 m68* ) machine=sun3 ;;
2281 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2282 i[3456]86-*-* ) machine=intel386 ;;
2283 powerpcle* ) machine=powerpcle ;;
2284 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2285 sparc* ) machine=sparc ;;
2286 * ) unported=yes ;;
2287 esac
2288 case "${canonical}" in
2289 ## The Sun386 didn't get past 4.0.
2290 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2291 *-sunos4.0* ) opsys=sunos4-0 ;;
2292 *-sunos4.1.[3-9]*noshare )
2293 ## This name is sunos413 instead of sunos4-1-3
2294 ## to avoid a file name conflict on MSDOS.
2295 opsys=sunos413
2296 NON_GNU_CPP=/usr/lib/cpp
2297 NON_GCC_TEST_OPTIONS=-Bstatic
2298 GCC_TEST_OPTIONS=-static
2299 ;;
2300 *-sunos4.1.[3-9]* | *-sunos4shr*)
2301 opsys=sunos4shr
2302 NON_GNU_CPP=/usr/lib/cpp
2303 ;;
2304 *-sunos4* | *-sunos )
2305 opsys=sunos4-1
2306 NON_GCC_TEST_OPTIONS=-Bstatic
2307 GCC_TEST_OPTIONS=-static
2308 ;;
2309 *-sunos5.3* | *-solaris2.3* )
2310 opsys=sol2-3
2311 NON_GNU_CPP=/usr/ccs/lib/cpp
2312 ;;
2313 *-sunos5.4* | *-solaris2.4* )
2314 opsys=sol2-4
2315 NON_GNU_CPP=/usr/ccs/lib/cpp
2316 RANLIB="ar -ts"
2317 ;;
2318 *-sunos5.5* | *-solaris2.5* )
2319 opsys=sol2-5
2320 NON_GNU_CPP=/usr/ccs/lib/cpp
2321 RANLIB="ar -ts"
2322 ;;
2323 *-sunos5* | *-solaris* )
2324 opsys=sol2-5
2325 NON_GNU_CPP=/usr/ccs/lib/cpp
2326 ;;
2327 * ) opsys=bsd4-2 ;;
2328 esac
2329 ## Watch out for a compiler that we know will not work.
2330 case "${canonical}" in
2331 *-solaris* | *-sunos5* )
2332 if [ "x$CC" = x/usr/ucb/cc ]; then
2333 ## /usr/ucb/cc doesn't work;
2334 ## we should find some other compiler that does work.
2335 unset CC
2336 fi
2337 ;;
2338 *) ;;
2339 esac
2340 ;;
2341 sparc-*-nextstep* )
2342 machine=sparc opsys=nextstep
2343 ;;
2344
2345 ## Tadpole 68k
2346 m68*-tadpole-sysv* )
2347 machine=tad68k opsys=usg5-3
2348 ;;
2349
2350 ## Tahoe machines
2351 tahoe-tahoe-bsd4.2* )
2352 machine=tahoe opsys=bsd4-2
2353 ;;
2354 tahoe-tahoe-bsd4.3* )
2355 machine=tahoe opsys=bsd4-3
2356 ;;
2357
2358 ## Tandem Integrity S2
2359 mips-tandem-sysv* )
2360 machine=tandem-s2 opsys=usg5-3
2361 ;;
2362
2363 ## Tektronix XD88
2364 m88k-tektronix-sysv3* )
2365 machine=tekxd88 opsys=usg5-3
2366 ;;
2367
2368 ## Tektronix 16000 box (6130?)
2369 ns16k-tektronix-bsd* )
2370 machine=ns16000 opsys=bsd4-2
2371 ;;
2372 ## Tektronix 4300
2373 ## src/m/tek4300.h hints that this is a m68k machine.
2374 m68*-tektronix-bsd* )
2375 machine=tek4300 opsys=bsd4-3
2376 ;;
2377
2378 ## Titan P2 or P3
2379 ## We seem to have lost the machine-description file titan.h!
2380 titan-titan-sysv* )
2381 machine=titan opsys=usg5-3
2382 ;;
2383
2384 ## Ustation E30 (SS5E)
2385 m68*-unisys-uniplus* )
2386 machine=ustation opsystem=unipl5-2
2387 ;;
2388
2389 ## Vaxen.
2390 vax-dec-* )
2391 machine=vax
2392 case "${canonical}" in
2393 *-bsd4.1* ) opsys=bsd4-1 ;;
2394 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2395 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2396 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2397 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2398 *-vms* ) opsys=vms ;;
2399 * ) unported=yes
2400 esac
2401 ;;
2402
2403 ## Whitechapel MG1
2404 ns16k-whitechapel-* )
2405 machine=mg1
2406 ## We don't know what sort of OS runs on these; we'll let the
2407 ## operating system guessing code below try.
2408 ;;
2409
2410 ## Wicat
2411 m68*-wicat-sysv* )
2412 machine=wicat opsys=usg5-2
2413 ;;
2414
2415 ## IA-64
2416 ia64*-*-linux* )
2417 machine=ia64 opsys=gnu-linux
2418 ;;
2419
2420 ## Intel 386 machines where we don't care about the manufacturer
2421 i[3456]86-*-* )
2422 machine=intel386
2423 case "${canonical}" in
2424 *-lynxos* ) opsys=lynxos ;;
2425 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2426 *-isc2.2* ) opsys=isc2-2 ;;
2427 *-isc4.0* ) opsys=isc4-0 ;;
2428 *-isc4.* ) opsys=isc4-1
2429 GCC_TEST_OPTIONS=-posix
2430 NON_GCC_TEST_OPTIONS=-Xp
2431 ;;
2432 *-isc* ) opsys=isc3-0 ;;
2433 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2434 *-esix* ) opsys=esix ;;
2435 *-xenix* ) opsys=xenix ;;
2436 *-linux-gnu* ) opsys=gnu-linux ;;
2437 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2438 *-sco3.2v5* ) opsys=sco5
2439 NON_GNU_CPP=/lib/cpp
2440 # Prevent -belf from being passed to $CPP.
2441 # /lib/cpp does not accept it.
2442 OVERRIDE_CPPFLAGS=" "
2443 ;;
2444 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2445 *-386bsd* ) opsys=386bsd ;;
2446 *-nextstep* ) opsys=nextstep ;;
2447 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2448 esac
2449 ;;
2450
2451 ## m68k Linux-based GNU system
2452 m68k-*-linux-gnu* )
2453 machine=m68k opsys=gnu-linux
2454 ;;
2455
2456 ## Mips Linux-based GNU system
2457 mips-*-linux-gnu* )
2458 machine=mips opsys=gnu-linux
2459 ;;
2460
2461 ## UXP/DS
2462 sparc-fujitsu-sysv4* )
2463 machine=sparc opsys=uxpds
2464 NON_GNU_CPP=/usr/ccs/lib/cpp
2465 RANLIB="ar -ts"
2466 ;;
2467
2468 ## UXP/V
2469 f301-fujitsu-uxpv4.1)
2470 machine=f301 opsys=uxpv
2471 ;;
2472
2473 ## Darwin / Mac OS X
2474 powerpc-apple-darwin* )
2475 machine=powermac opsys=darwin
2476 # Define CPP as follows to make autoconf work correctly.
2477 CPP="cc -E -traditional-cpp"
2478 ;;
2479
2480 * )
2481 unported=yes
2482 ;;
2483 esac
2484
2485 ### If the code above didn't choose an operating system, just choose
2486 ### an operating system based on the configuration name. You really
2487 ### only want to use this when you have no idea what the right
2488 ### operating system is; if you know what operating systems a machine
2489 ### runs, it's cleaner to make it explicit in the case statement
2490 ### above.
2491 if test x"${opsys}" = x; then
2492 case "${canonical}" in
2493 *-gnu* ) opsys=gnu ;;
2494 *-bsd4.[01] ) opsys=bsd4-1 ;;
2495 *-bsd4.2 ) opsys=bsd4-2 ;;
2496 *-bsd4.3 ) opsys=bsd4-3 ;;
2497 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2498 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2499 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2500 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2501 *-sysv4.2uw* ) opsys=unixware ;;
2502 *-sysv4.1* | *-sysvr4.1* )
2503 NON_GNU_CPP=/usr/lib/cpp
2504 opsys=usg5-4 ;;
2505 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2506 if [ x$NON_GNU_CPP = x ]; then
2507 if [ -f /usr/ccs/lib/cpp ]; then
2508 NON_GNU_CPP=/usr/ccs/lib/cpp
2509 else
2510 NON_GNU_CPP=/lib/cpp
2511 fi
2512 fi
2513 opsys=usg5-4-2 ;;
2514 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2515 * )
2516 unported=yes
2517 ;;
2518 esac
2519 fi
2520
2521
2522 if test $unported = yes; then
2523 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2524 Check \`etc/MACHINES' for recognized configuration names." >&5
2525 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2526 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2527 { (exit 1); exit 1; }; }
2528 fi
2529
2530 machfile="m/${machine}.h"
2531 opsysfile="s/${opsys}.h"
2532
2533
2534 #### Choose a compiler.
2535 test -n "$CC" && cc_specified=yes
2536
2537 # Save the value of CFLAGS that the user specified.
2538 SPECIFIED_CFLAGS="$CFLAGS"
2539
2540 case ${with_gcc} in
2541 "yes" ) CC="gcc" GCC=yes ;;
2542 "no" ) : ${CC=cc} ;;
2543 * )
2544 esac
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2553 echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574
2575 fi
2576 fi
2577 CC=$ac_cv_prog_CC
2578 if test -n "$CC"; then
2579 echo "$as_me:$LINENO: result: $CC" >&5
2580 echo "${ECHO_T}$CC" >&6
2581 else
2582 echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2584 fi
2585
2586 fi
2587 if test -z "$ac_cv_prog_CC"; then
2588 ac_ct_CC=$CC
2589 # Extract the first word of "gcc", so it can be a program name with args.
2590 set dummy gcc; ac_word=$2
2591 echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596 if test -n "$ac_ct_CC"; then
2597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 ac_cv_prog_ac_ct_CC="gcc"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2609 fi
2610 done
2611 done
2612
2613 fi
2614 fi
2615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2616 if test -n "$ac_ct_CC"; then
2617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2618 echo "${ECHO_T}$ac_ct_CC" >&6
2619 else
2620 echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6
2622 fi
2623
2624 CC=$ac_ct_CC
2625 else
2626 CC="$ac_cv_prog_CC"
2627 fi
2628
2629 if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2632 set dummy ${ac_tool_prefix}cc; ac_word=$2
2633 echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_CC="${ac_tool_prefix}cc"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2651 fi
2652 done
2653 done
2654
2655 fi
2656 fi
2657 CC=$ac_cv_prog_CC
2658 if test -n "$CC"; then
2659 echo "$as_me:$LINENO: result: $CC" >&5
2660 echo "${ECHO_T}$CC" >&6
2661 else
2662 echo "$as_me:$LINENO: result: no" >&5
2663 echo "${ECHO_T}no" >&6
2664 fi
2665
2666 fi
2667 if test -z "$ac_cv_prog_CC"; then
2668 ac_ct_CC=$CC
2669 # Extract the first word of "cc", so it can be a program name with args.
2670 set dummy cc; ac_word=$2
2671 echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676 if test -n "$ac_ct_CC"; then
2677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_ac_ct_CC="cc"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2689 fi
2690 done
2691 done
2692
2693 fi
2694 fi
2695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698 echo "${ECHO_T}$ac_ct_CC" >&6
2699 else
2700 echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6
2702 fi
2703
2704 CC=$ac_ct_CC
2705 else
2706 CC="$ac_cv_prog_CC"
2707 fi
2708
2709 fi
2710 if test -z "$CC"; then
2711 # Extract the first word of "cc", so it can be a program name with args.
2712 set dummy cc; ac_word=$2
2713 echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2720 else
2721 ac_prog_rejected=no
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2730 ac_prog_rejected=yes
2731 continue
2732 fi
2733 ac_cv_prog_CC="cc"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739
2740 if test $ac_prog_rejected = yes; then
2741 # We found a bogon in the path, so make sure we never use it.
2742 set dummy $ac_cv_prog_CC
2743 shift
2744 if test $# != 0; then
2745 # We chose a different compiler from the bogus one.
2746 # However, it has the same basename, so the bogon will be chosen
2747 # first if we set CC to just the basename; use the full file name.
2748 shift
2749 set dummy "$as_dir/$ac_word" ${1+"$@"}
2750 shift
2751 ac_cv_prog_CC="$@"
2752 fi
2753 fi
2754 fi
2755 fi
2756 CC=$ac_cv_prog_CC
2757 if test -n "$CC"; then
2758 echo "$as_me:$LINENO: result: $CC" >&5
2759 echo "${ECHO_T}$CC" >&6
2760 else
2761 echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6
2763 fi
2764
2765 fi
2766 if test -z "$CC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in cl
2769 do
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_prog_CC+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793
2794 fi
2795 fi
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798 echo "$as_me:$LINENO: result: $CC" >&5
2799 echo "${ECHO_T}$CC" >&6
2800 else
2801 echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6
2803 fi
2804
2805 test -n "$CC" && break
2806 done
2807 fi
2808 if test -z "$CC"; then
2809 ac_ct_CC=$CC
2810 for ac_prog in cl
2811 do
2812 # Extract the first word of "$ac_prog", so it can be a program name with args.
2813 set dummy $ac_prog; ac_word=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819 if test -n "$ac_ct_CC"; then
2820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_CC="$ac_prog"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833 done
2834 done
2835
2836 fi
2837 fi
2838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841 echo "${ECHO_T}$ac_ct_CC" >&6
2842 else
2843 echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2845 fi
2846
2847 test -n "$ac_ct_CC" && break
2848 done
2849
2850 CC=$ac_ct_CC
2851 fi
2852
2853 fi
2854
2855
2856 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2857 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2858 { (exit 1); exit 1; }; }
2859
2860 # Provide some information about the compiler.
2861 echo "$as_me:$LINENO:" \
2862 "checking for C compiler version" >&5
2863 ac_compiler=`set X $ac_compile; echo $2`
2864 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2865 (eval $ac_compiler --version </dev/null >&5) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }
2869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2870 (eval $ac_compiler -v </dev/null >&5) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2875 (eval $ac_compiler -V </dev/null >&5) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }
2879
2880 cat >conftest.$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2882 #include "confdefs.h"
2883
2884 #ifdef F77_DUMMY_MAIN
2885 # ifdef __cplusplus
2886 extern "C"
2887 # endif
2888 int F77_DUMMY_MAIN() { return 1; }
2889 #endif
2890 int
2891 main ()
2892 {
2893
2894 ;
2895 return 0;
2896 }
2897 _ACEOF
2898 ac_clean_files_save=$ac_clean_files
2899 ac_clean_files="$ac_clean_files a.out a.exe"
2900 # Try to create an executable without -o first, disregard a.out.
2901 # It will help us diagnose broken compilers, and finding out an intuition
2902 # of exeext.
2903 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2904 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2905 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2906 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2907 (eval $ac_link_default) 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
2911 # Find the output, starting from the most likely. This scheme is
2912 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2913 # resort.
2914
2915 # Be careful to initialize this variable, since it used to be cached.
2916 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2917 ac_cv_exeext=
2918 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2919 ls a.out conftest 2>/dev/null;
2920 ls a.* conftest.* 2>/dev/null`; do
2921 case $ac_file in
2922 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2923 a.out ) # We found the default executable, but exeext='' is most
2924 # certainly right.
2925 break;;
2926 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2928 export ac_cv_exeext
2929 break;;
2930 * ) break;;
2931 esac
2932 done
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2936 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2937 echo "$as_me: error: C compiler cannot create executables" >&2;}
2938 { (exit 77); exit 77; }; }
2939 fi
2940
2941 ac_exeext=$ac_cv_exeext
2942 echo "$as_me:$LINENO: result: $ac_file" >&5
2943 echo "${ECHO_T}$ac_file" >&6
2944
2945 # Check the compiler produces executables we can run. If not, either
2946 # the compiler is broken, or we cross compile.
2947 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2948 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2949 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2950 # If not cross compiling, check that we can run a simple program.
2951 if test "$cross_compiling" != yes; then
2952 if { ac_try='./$ac_file'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 (eval $ac_try) 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 cross_compiling=no
2959 else
2960 if test "$cross_compiling" = maybe; then
2961 cross_compiling=yes
2962 else
2963 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2964 If you meant to cross compile, use \`--host'." >&5
2965 echo "$as_me: error: cannot run C compiled programs.
2966 If you meant to cross compile, use \`--host'." >&2;}
2967 { (exit 1); exit 1; }; }
2968 fi
2969 fi
2970 fi
2971 echo "$as_me:$LINENO: result: yes" >&5
2972 echo "${ECHO_T}yes" >&6
2973
2974 rm -f a.out a.exe conftest$ac_cv_exeext
2975 ac_clean_files=$ac_clean_files_save
2976 # Check the compiler produces executables we can run. If not, either
2977 # the compiler is broken, or we cross compile.
2978 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2979 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2980 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2981 echo "${ECHO_T}$cross_compiling" >&6
2982
2983 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2984 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986 (eval $ac_link) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2991 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2992 # work properly (i.e., refer to `conftest.exe'), while it won't with
2993 # `rm'.
2994 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2995 case $ac_file in
2996 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2998 export ac_cv_exeext
2999 break;;
3000 * ) break;;
3001 esac
3002 done
3003 else
3004 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
3005 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
3006 { (exit 1); exit 1; }; }
3007 fi
3008
3009 rm -f conftest$ac_cv_exeext
3010 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3011 echo "${ECHO_T}$ac_cv_exeext" >&6
3012
3013 rm -f conftest.$ac_ext
3014 EXEEXT=$ac_cv_exeext
3015 ac_exeext=$EXEEXT
3016 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3018 if test "${ac_cv_objext+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021 cat >conftest.$ac_ext <<_ACEOF
3022 #line $LINENO "configure"
3023 #include "confdefs.h"
3024
3025 #ifdef F77_DUMMY_MAIN
3026 # ifdef __cplusplus
3027 extern "C"
3028 # endif
3029 int F77_DUMMY_MAIN() { return 1; }
3030 #endif
3031 int
3032 main ()
3033 {
3034
3035 ;
3036 return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.o conftest.obj
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; then
3045 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3046 case $ac_file in
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
3048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3049 break;;
3050 esac
3051 done
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3055 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3056 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3057 { (exit 1); exit 1; }; }
3058 fi
3059
3060 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3061 fi
3062 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3063 echo "${ECHO_T}$ac_cv_objext" >&6
3064 OBJEXT=$ac_cv_objext
3065 ac_objext=$OBJEXT
3066 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 cat >conftest.$ac_ext <<_ACEOF
3072 #line $LINENO "configure"
3073 #include "confdefs.h"
3074
3075 #ifdef F77_DUMMY_MAIN
3076 # ifdef __cplusplus
3077 extern "C"
3078 # endif
3079 int F77_DUMMY_MAIN() { return 1; }
3080 #endif
3081 int
3082 main ()
3083 {
3084 #ifndef __GNUC__
3085 choke me
3086 #endif
3087
3088 ;
3089 return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_compiler_gnu=yes
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3108 ac_compiler_gnu=no
3109 fi
3110 rm -f conftest.$ac_objext conftest.$ac_ext
3111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3112
3113 fi
3114 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3115 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3116 GCC=`test $ac_compiler_gnu = yes && echo yes`
3117 ac_test_CFLAGS=${CFLAGS+set}
3118 ac_save_CFLAGS=$CFLAGS
3119 CFLAGS="-g"
3120 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3121 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3122 if test "${ac_cv_prog_cc_g+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 cat >conftest.$ac_ext <<_ACEOF
3126 #line $LINENO "configure"
3127 #include "confdefs.h"
3128
3129 #ifdef F77_DUMMY_MAIN
3130 # ifdef __cplusplus
3131 extern "C"
3132 # endif
3133 int F77_DUMMY_MAIN() { return 1; }
3134 #endif
3135 int
3136 main ()
3137 {
3138
3139 ;
3140 return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest.$ac_objext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 ac_cv_prog_cc_g=yes
3156 else
3157 echo "$as_me: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3159 ac_cv_prog_cc_g=no
3160 fi
3161 rm -f conftest.$ac_objext conftest.$ac_ext
3162 fi
3163 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3164 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3165 if test "$ac_test_CFLAGS" = set; then
3166 CFLAGS=$ac_save_CFLAGS
3167 elif test $ac_cv_prog_cc_g = yes; then
3168 if test "$GCC" = yes; then
3169 CFLAGS="-g -O2"
3170 else
3171 CFLAGS="-g"
3172 fi
3173 else
3174 if test "$GCC" = yes; then
3175 CFLAGS="-O2"
3176 else
3177 CFLAGS=
3178 fi
3179 fi
3180 # Some people use a C++ compiler to compile C. Since we use `exit',
3181 # in C++ we need to declare it. In case someone uses the same compiler
3182 # for both compiling C and C++ we need to have the C++ compiler decide
3183 # the declaration of exit, since it's the most demanding environment.
3184 cat >conftest.$ac_ext <<_ACEOF
3185 #ifndef __cplusplus
3186 choke me
3187 #endif
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 (eval $ac_try) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 for ac_declaration in \
3202 ''\
3203 '#include <stdlib.h>' \
3204 'extern "C" void std::exit (int) throw (); using std::exit;' \
3205 'extern "C" void std::exit (int); using std::exit;' \
3206 'extern "C" void exit (int) throw ();' \
3207 'extern "C" void exit (int);' \
3208 'void exit (int);'
3209 do
3210 cat >conftest.$ac_ext <<_ACEOF
3211 #line $LINENO "configure"
3212 #include "confdefs.h"
3213 #include <stdlib.h>
3214 $ac_declaration
3215 #ifdef F77_DUMMY_MAIN
3216 # ifdef __cplusplus
3217 extern "C"
3218 # endif
3219 int F77_DUMMY_MAIN() { return 1; }
3220 #endif
3221 int
3222 main ()
3223 {
3224 exit (42);
3225 ;
3226 return 0;
3227 }
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 (eval $ac_try) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 :
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3245 continue
3246 fi
3247 rm -f conftest.$ac_objext conftest.$ac_ext
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 #include "confdefs.h"
3251 $ac_declaration
3252 #ifdef F77_DUMMY_MAIN
3253 # ifdef __cplusplus
3254 extern "C"
3255 # endif
3256 int F77_DUMMY_MAIN() { return 1; }
3257 #endif
3258 int
3259 main ()
3260 {
3261 exit (42);
3262 ;
3263 return 0;
3264 }
3265 _ACEOF
3266 rm -f conftest.$ac_objext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268 (eval $ac_compile) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 break
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3282 fi
3283 rm -f conftest.$ac_objext conftest.$ac_ext
3284 done
3285 rm -f conftest*
3286 if test -n "$ac_declaration"; then
3287 echo '#ifdef __cplusplus' >>confdefs.h
3288 echo $ac_declaration >>confdefs.h
3289 echo '#endif' >>confdefs.h
3290 fi
3291
3292 else
3293 echo "$as_me: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3295 fi
3296 rm -f conftest.$ac_objext conftest.$ac_ext
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302
3303
3304 # On Suns, sometimes $CPP names a directory.
3305 if test -n "$CPP" && test -d "$CPP"; then
3306 CPP=
3307 fi
3308
3309 #### Some systems specify a CPP to use unless we are using GCC.
3310 #### Now that we know whether we are using GCC, we can decide whether
3311 #### to use that one.
3312 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3313 then
3314 CPP="$NON_GNU_CPP"
3315 fi
3316
3317 #### Some systems specify a CC to use unless we are using GCC.
3318 #### Now that we know whether we are using GCC, we can decide whether
3319 #### to use that one.
3320 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3321 test x$cc_specified != xyes
3322 then
3323 CC="$NON_GNU_CC"
3324 fi
3325
3326 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3327 then
3328 CC="$CC $GCC_TEST_OPTIONS"
3329 fi
3330
3331 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3332 then
3333 CC="$CC $NON_GCC_TEST_OPTIONS"
3334 fi
3335
3336 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3337 then
3338 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3339 fi
3340
3341 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3342 then
3343 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3344 fi
3345
3346 #### Some other nice autoconf tests. If you add a test here which
3347 #### should make an entry in src/config.h, don't forget to add an
3348 #### #undef clause to src/config.h.in for autoconf to modify.
3349
3350 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3351 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3352 LN_S=$as_ln_s
3353 if test "$LN_S" = "ln -s"; then
3354 echo "$as_me:$LINENO: result: yes" >&5
3355 echo "${ECHO_T}yes" >&6
3356 else
3357 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3358 echo "${ECHO_T}no, using $LN_S" >&6
3359 fi
3360
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3368 # On Suns, sometimes $CPP names a directory.
3369 if test -n "$CPP" && test -d "$CPP"; then
3370 CPP=
3371 fi
3372 if test -z "$CPP"; then
3373 if test "${ac_cv_prog_CPP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 # Double quotes because CPP needs to be expanded
3377 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3378 do
3379 ac_preproc_ok=false
3380 for ac_c_preproc_warn_flag in '' yes
3381 do
3382 # Use a header file that comes with gcc, so configuring glibc
3383 # with a fresh cross-compiler works.
3384 # On the NeXT, cc -E runs the code through the compiler's parser,
3385 # not just through cpp. "Syntax error" is here to catch this case.
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3388 #include "confdefs.h"
3389 #include <assert.h>
3390 Syntax error
3391 _ACEOF
3392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3394 ac_status=$?
3395 egrep -v '^ *\+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } >/dev/null; then
3400 if test -s conftest.err; then
3401 ac_cpp_err=$ac_c_preproc_warn_flag
3402 else
3403 ac_cpp_err=
3404 fi
3405 else
3406 ac_cpp_err=yes
3407 fi
3408 if test -z "$ac_cpp_err"; then
3409 :
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3413 # Broken: fails on valid input.
3414 continue
3415 fi
3416 rm -f conftest.err conftest.$ac_ext
3417
3418 # OK, works on sane cases. Now check whether non-existent headers
3419 # can be detected and how.
3420 cat >conftest.$ac_ext <<_ACEOF
3421 #line $LINENO "configure"
3422 #include "confdefs.h"
3423 #include <ac_nonexistent.h>
3424 _ACEOF
3425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3427 ac_status=$?
3428 egrep -v '^ *\+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev/null; then
3433 if test -s conftest.err; then
3434 ac_cpp_err=$ac_c_preproc_warn_flag
3435 else
3436 ac_cpp_err=
3437 fi
3438 else
3439 ac_cpp_err=yes
3440 fi
3441 if test -z "$ac_cpp_err"; then
3442 # Broken: success on invalid input.
3443 continue
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3447 # Passes both tests.
3448 ac_preproc_ok=:
3449 break
3450 fi
3451 rm -f conftest.err conftest.$ac_ext
3452
3453 done
3454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455 rm -f conftest.err conftest.$ac_ext
3456 if $ac_preproc_ok; then
3457 break
3458 fi
3459
3460 done
3461 ac_cv_prog_CPP=$CPP
3462
3463 fi
3464 CPP=$ac_cv_prog_CPP
3465 else
3466 ac_cv_prog_CPP=$CPP
3467 fi
3468 echo "$as_me:$LINENO: result: $CPP" >&5
3469 echo "${ECHO_T}$CPP" >&6
3470 ac_preproc_ok=false
3471 for ac_c_preproc_warn_flag in '' yes
3472 do
3473 # Use a header file that comes with gcc, so configuring glibc
3474 # with a fresh cross-compiler works.
3475 # On the NeXT, cc -E runs the code through the compiler's parser,
3476 # not just through cpp. "Syntax error" is here to catch this case.
3477 cat >conftest.$ac_ext <<_ACEOF
3478 #line $LINENO "configure"
3479 #include "confdefs.h"
3480 #include <assert.h>
3481 Syntax error
3482 _ACEOF
3483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3485 ac_status=$?
3486 egrep -v '^ *\+' conftest.er1 >conftest.err
3487 rm -f conftest.er1
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev/null; then
3491 if test -s conftest.err; then
3492 ac_cpp_err=$ac_c_preproc_warn_flag
3493 else
3494 ac_cpp_err=
3495 fi
3496 else
3497 ac_cpp_err=yes
3498 fi
3499 if test -z "$ac_cpp_err"; then
3500 :
3501 else
3502 echo "$as_me: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 # Broken: fails on valid input.
3505 continue
3506 fi
3507 rm -f conftest.err conftest.$ac_ext
3508
3509 # OK, works on sane cases. Now check whether non-existent headers
3510 # can be detected and how.
3511 cat >conftest.$ac_ext <<_ACEOF
3512 #line $LINENO "configure"
3513 #include "confdefs.h"
3514 #include <ac_nonexistent.h>
3515 _ACEOF
3516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3518 ac_status=$?
3519 egrep -v '^ *\+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } >/dev/null; then
3524 if test -s conftest.err; then
3525 ac_cpp_err=$ac_c_preproc_warn_flag
3526 else
3527 ac_cpp_err=
3528 fi
3529 else
3530 ac_cpp_err=yes
3531 fi
3532 if test -z "$ac_cpp_err"; then
3533 # Broken: success on invalid input.
3534 continue
3535 else
3536 echo "$as_me: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 # Passes both tests.
3539 ac_preproc_ok=:
3540 break
3541 fi
3542 rm -f conftest.err conftest.$ac_ext
3543
3544 done
3545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546 rm -f conftest.err conftest.$ac_ext
3547 if $ac_preproc_ok; then
3548 :
3549 else
3550 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3551 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3552 { (exit 1); exit 1; }; }
3553 fi
3554
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560
3561 # Find a good install program. We prefer a C program (faster),
3562 # so one script is as good as another. But avoid the broken or
3563 # incompatible versions:
3564 # SysV /etc/install, /usr/sbin/install
3565 # SunOS /usr/etc/install
3566 # IRIX /sbin/install
3567 # AIX /bin/install
3568 # AmigaOS /C/install, which installs bootblocks on floppy discs
3569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3572 # ./install, which can be erroneously created by make from ./install.sh.
3573 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3574 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3575 if test -z "$INSTALL"; then
3576 if test "${ac_cv_path_install+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3581 do
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 # Account for people who put trailing slashes in PATH elements.
3585 case $as_dir/ in
3586 ./ | .// | /cC/* | \
3587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3588 /usr/ucb/* ) ;;
3589 *)
3590 # OSF1 and SCO ODT 3.0 have their own names for install.
3591 # Don't use installbsd from OSF since it installs stuff as root
3592 # by default.
3593 for ac_prog in ginstall scoinst install; do
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3596 if test $ac_prog = install &&
3597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3598 # AIX install. It has an incompatible calling convention.
3599 :
3600 elif test $ac_prog = install &&
3601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3602 # program-specific install script used by HP pwplus--don't use.
3603 :
3604 else
3605 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3606 break 3
3607 fi
3608 fi
3609 done
3610 done
3611 ;;
3612 esac
3613 done
3614
3615
3616 fi
3617 if test "${ac_cv_path_install+set}" = set; then
3618 INSTALL=$ac_cv_path_install
3619 else
3620 # As a last resort, use the slow shell script. We don't cache a
3621 # path for INSTALL within a source directory, because that will
3622 # break other packages using the cache if that directory is
3623 # removed, or if the path is relative.
3624 INSTALL=$ac_install_sh
3625 fi
3626 fi
3627 echo "$as_me:$LINENO: result: $INSTALL" >&5
3628 echo "${ECHO_T}$INSTALL" >&6
3629
3630 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3631 # It thinks the first close brace ends the variable substitution.
3632 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3633
3634 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3635
3636 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3637
3638 for ac_prog in 'bison -y' byacc
3639 do
3640 # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy $ac_prog; ac_word=$2
3642 echo "$as_me:$LINENO: checking for $ac_word" >&5
3643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644 if test "${ac_cv_prog_YACC+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 if test -n "$YACC"; then
3648 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3652 do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_YACC="$ac_prog"
3658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 break 2
3660 fi
3661 done
3662 done
3663
3664 fi
3665 fi
3666 YACC=$ac_cv_prog_YACC
3667 if test -n "$YACC"; then
3668 echo "$as_me:$LINENO: result: $YACC" >&5
3669 echo "${ECHO_T}$YACC" >&6
3670 else
3671 echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3673 fi
3674
3675 test -n "$YACC" && break
3676 done
3677 test -n "$YACC" || YACC="yacc"
3678
3679 if test "x$RANLIB" = x; then
3680 if test -n "$ac_tool_prefix"; then
3681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3682 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3683 echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685 if test "${ac_cv_prog_RANLIB+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688 if test -n "$RANLIB"; then
3689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3693 do
3694 IFS=$as_save_IFS
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 break 2
3701 fi
3702 done
3703 done
3704
3705 fi
3706 fi
3707 RANLIB=$ac_cv_prog_RANLIB
3708 if test -n "$RANLIB"; then
3709 echo "$as_me:$LINENO: result: $RANLIB" >&5
3710 echo "${ECHO_T}$RANLIB" >&6
3711 else
3712 echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6
3714 fi
3715
3716 fi
3717 if test -z "$ac_cv_prog_RANLIB"; then
3718 ac_ct_RANLIB=$RANLIB
3719 # Extract the first word of "ranlib", so it can be a program name with args.
3720 set dummy ranlib; ac_word=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 if test -n "$ac_ct_RANLIB"; then
3727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_ac_ct_RANLIB="ranlib"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3739 fi
3740 done
3741 done
3742
3743 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3744 fi
3745 fi
3746 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3747 if test -n "$ac_ct_RANLIB"; then
3748 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3749 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3750 else
3751 echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6
3753 fi
3754
3755 RANLIB=$ac_ct_RANLIB
3756 else
3757 RANLIB="$ac_cv_prog_RANLIB"
3758 fi
3759
3760 fi
3761
3762
3763
3764
3765 echo "$as_me:$LINENO: checking for AIX" >&5
3766 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3767 cat >conftest.$ac_ext <<_ACEOF
3768 #line $LINENO "configure"
3769 #include "confdefs.h"
3770 #ifdef _AIX
3771 yes
3772 #endif
3773
3774 _ACEOF
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 egrep "yes" >/dev/null 2>&1; then
3777 echo "$as_me:$LINENO: result: yes" >&5
3778 echo "${ECHO_T}yes" >&6
3779 cat >>confdefs.h <<\_ACEOF
3780 #define _ALL_SOURCE 1
3781 _ACEOF
3782
3783 else
3784 echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3786 fi
3787 rm -f conftest*
3788
3789
3790
3791 #### Extract some information from the operating system and machine files.
3792
3793 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3794 - which libraries the lib-src programs will want, and
3795 - whether the GNU malloc routines are usable..." >&5
3796 echo "$as_me: checking the machine- and system-dependent files to find out
3797 - which libraries the lib-src programs will want, and
3798 - whether the GNU malloc routines are usable..." >&6;}
3799
3800 ### First figure out CFLAGS (which we use for running the compiler here)
3801 ### and REAL_CFLAGS (which we use for real compilation).
3802 ### The two are the same except on a few systems, where they are made
3803 ### different to work around various lossages. For example,
3804 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3805 ### as implying static linking.
3806
3807 ### If the CFLAGS env var is specified, we use that value
3808 ### instead of the default.
3809
3810 ### It's not important that this name contain the PID; you can't run
3811 ### two configures in the same directory and have anything work
3812 ### anyway.
3813 tempcname="conftest.c"
3814
3815 echo '
3816 #include "'${srcdir}'/src/'${opsysfile}'"
3817 #include "'${srcdir}'/src/'${machfile}'"
3818 #ifndef LIBS_MACHINE
3819 #define LIBS_MACHINE
3820 #endif
3821 #ifndef LIBS_SYSTEM
3822 #define LIBS_SYSTEM
3823 #endif
3824 #ifndef C_SWITCH_SYSTEM
3825 #define C_SWITCH_SYSTEM
3826 #endif
3827 #ifndef C_SWITCH_MACHINE
3828 #define C_SWITCH_MACHINE
3829 #endif
3830 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3831 configure___ c_switch_system=C_SWITCH_SYSTEM
3832 configure___ c_switch_machine=C_SWITCH_MACHINE
3833
3834 #ifndef LIB_X11_LIB
3835 #define LIB_X11_LIB -lX11
3836 #endif
3837
3838 #ifndef LIBX11_MACHINE
3839 #define LIBX11_MACHINE
3840 #endif
3841
3842 #ifndef LIBX11_SYSTEM
3843 #define LIBX11_SYSTEM
3844 #endif
3845 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3846
3847 #ifdef UNEXEC
3848 configure___ unexec=UNEXEC
3849 #else
3850 configure___ unexec=unexec.o
3851 #endif
3852
3853 #ifdef SYSTEM_MALLOC
3854 configure___ system_malloc=yes
3855 #else
3856 configure___ system_malloc=no
3857 #endif
3858
3859 #ifdef USE_MMAP_FOR_BUFFERS
3860 configure___ use_mmap_for_buffers=yes
3861 #else
3862 configure___ use_mmap_for_buffers=no
3863 #endif
3864
3865 #ifndef C_DEBUG_SWITCH
3866 #define C_DEBUG_SWITCH -g
3867 #endif
3868
3869 #ifndef C_OPTIMIZE_SWITCH
3870 #ifdef __GNUC__
3871 #define C_OPTIMIZE_SWITCH -O2
3872 #else
3873 #define C_OPTIMIZE_SWITCH -O
3874 #endif
3875 #endif
3876
3877 #ifndef LD_SWITCH_MACHINE
3878 #define LD_SWITCH_MACHINE
3879 #endif
3880
3881 #ifndef LD_SWITCH_SYSTEM
3882 #define LD_SWITCH_SYSTEM
3883 #endif
3884
3885 #ifndef LD_SWITCH_X_SITE_AUX
3886 #define LD_SWITCH_X_SITE_AUX
3887 #endif
3888
3889 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3890 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3891
3892 #ifdef THIS_IS_CONFIGURE
3893
3894 /* Get the CFLAGS for tests in configure. */
3895 #ifdef __GNUC__
3896 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3897 #else
3898 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3899 #endif
3900
3901 #else /* not THIS_IS_CONFIGURE */
3902
3903 /* Get the CFLAGS for real compilation. */
3904 #ifdef __GNUC__
3905 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3906 #else
3907 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3908 #endif
3909
3910 #endif /* not THIS_IS_CONFIGURE */
3911 ' > ${tempcname}
3912
3913 # The value of CPP is a quoted variable reference, so we need to do this
3914 # to get its actual value...
3915 CPP=`eval "echo $CPP"`
3916 eval `${CPP} -Isrc ${tempcname} \
3917 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3918 if test "x$SPECIFIED_CFLAGS" = x; then
3919 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3920 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3921 else
3922 REAL_CFLAGS="$CFLAGS"
3923 fi
3924 rm ${tempcname}
3925
3926 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3927
3928 ### Make sure subsequent tests use flags consistent with the build flags.
3929
3930 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3931 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3932 else
3933 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3934 fi
3935
3936 # Check whether --enable-largefile or --disable-largefile was given.
3937 if test "${enable_largefile+set}" = set; then
3938 enableval="$enable_largefile"
3939
3940 fi;
3941 if test "$enable_largefile" != no; then
3942
3943 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3944 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3945 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948 ac_cv_sys_largefile_CC=no
3949 if test "$GCC" != yes; then
3950 ac_save_CC=$CC
3951 while :; do
3952 # IRIX 6.2 and later do not support large files by default,
3953 # so use the C compiler's -n32 option if that helps.
3954 cat >conftest.$ac_ext <<_ACEOF
3955 #line $LINENO "configure"
3956 #include "confdefs.h"
3957 #include <sys/types.h>
3958 /* Check that off_t can represent 2**63 - 1 correctly.
3959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3960 since some C++ compilers masquerading as C compilers
3961 incorrectly reject 9223372036854775807. */
3962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3964 && LARGE_OFF_T % 2147483647 == 1)
3965 ? 1 : -1];
3966 #ifdef F77_DUMMY_MAIN
3967 # ifdef __cplusplus
3968 extern "C"
3969 # endif
3970 int F77_DUMMY_MAIN() { return 1; }
3971 #endif
3972 int
3973 main ()
3974 {
3975
3976 ;
3977 return 0;
3978 }
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982 (eval $ac_compile) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -s conftest.$ac_objext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 break
3993 else
3994 echo "$as_me: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3996 fi
3997 rm -f conftest.$ac_objext
3998 CC="$CC -n32"
3999 rm -f conftest.$ac_objext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001 (eval $ac_compile) 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -s conftest.$ac_objext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_sys_largefile_CC=' -n32'; break
4012 else
4013 echo "$as_me: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4015 fi
4016 rm -f conftest.$ac_objext
4017 break
4018 done
4019 CC=$ac_save_CC
4020 rm -f conftest.$ac_ext
4021 fi
4022 fi
4023 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4024 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4025 if test "$ac_cv_sys_largefile_CC" != no; then
4026 CC=$CC$ac_cv_sys_largefile_CC
4027 fi
4028
4029 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4030 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4031 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034 while :; do
4035 ac_cv_sys_file_offset_bits=no
4036 cat >conftest.$ac_ext <<_ACEOF
4037 #line $LINENO "configure"
4038 #include "confdefs.h"
4039 #include <sys/types.h>
4040 /* Check that off_t can represent 2**63 - 1 correctly.
4041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4042 since some C++ compilers masquerading as C compilers
4043 incorrectly reject 9223372036854775807. */
4044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4046 && LARGE_OFF_T % 2147483647 == 1)
4047 ? 1 : -1];
4048 #ifdef F77_DUMMY_MAIN
4049 # ifdef __cplusplus
4050 extern "C"
4051 # endif
4052 int F77_DUMMY_MAIN() { return 1; }
4053 #endif
4054 int
4055 main ()
4056 {
4057
4058 ;
4059 return 0;
4060 }
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 break
4075 else
4076 echo "$as_me: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4078 fi
4079 rm -f conftest.$ac_objext conftest.$ac_ext
4080 cat >conftest.$ac_ext <<_ACEOF
4081 #line $LINENO "configure"
4082 #include "confdefs.h"
4083 #define _FILE_OFFSET_BITS 64
4084 #include <sys/types.h>
4085 /* Check that off_t can represent 2**63 - 1 correctly.
4086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4087 since some C++ compilers masquerading as C compilers
4088 incorrectly reject 9223372036854775807. */
4089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4091 && LARGE_OFF_T % 2147483647 == 1)
4092 ? 1 : -1];
4093 #ifdef F77_DUMMY_MAIN
4094 # ifdef __cplusplus
4095 extern "C"
4096 # endif
4097 int F77_DUMMY_MAIN() { return 1; }
4098 #endif
4099 int
4100 main ()
4101 {
4102
4103 ;
4104 return 0;
4105 }
4106 _ACEOF
4107 rm -f conftest.$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>&5
4110 ac_status=$?
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -s conftest.$ac_objext'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 (eval $ac_try) 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 ac_cv_sys_file_offset_bits=64; break
4120 else
4121 echo "$as_me: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4123 fi
4124 rm -f conftest.$ac_objext conftest.$ac_ext
4125 break
4126 done
4127 fi
4128 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4129 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4130 if test "$ac_cv_sys_file_offset_bits" != no; then
4131
4132 cat >>confdefs.h <<_ACEOF
4133 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4134 _ACEOF
4135
4136 fi
4137 rm -f conftest*
4138 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4139 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4140 if test "${ac_cv_sys_large_files+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143 while :; do
4144 ac_cv_sys_large_files=no
4145 cat >conftest.$ac_ext <<_ACEOF
4146 #line $LINENO "configure"
4147 #include "confdefs.h"
4148 #include <sys/types.h>
4149 /* Check that off_t can represent 2**63 - 1 correctly.
4150 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4151 since some C++ compilers masquerading as C compilers
4152 incorrectly reject 9223372036854775807. */
4153 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4154 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4155 && LARGE_OFF_T % 2147483647 == 1)
4156 ? 1 : -1];
4157 #ifdef F77_DUMMY_MAIN
4158 # ifdef __cplusplus
4159 extern "C"
4160 # endif
4161 int F77_DUMMY_MAIN() { return 1; }
4162 #endif
4163 int
4164 main ()
4165 {
4166
4167 ;
4168 return 0;
4169 }
4170 _ACEOF
4171 rm -f conftest.$ac_objext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 break
4184 else
4185 echo "$as_me: failed program was:" >&5
4186 cat conftest.$ac_ext >&5
4187 fi
4188 rm -f conftest.$ac_objext conftest.$ac_ext
4189 cat >conftest.$ac_ext <<_ACEOF
4190 #line $LINENO "configure"
4191 #include "confdefs.h"
4192 #define _LARGE_FILES 1
4193 #include <sys/types.h>
4194 /* Check that off_t can represent 2**63 - 1 correctly.
4195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4196 since some C++ compilers masquerading as C compilers
4197 incorrectly reject 9223372036854775807. */
4198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4200 && LARGE_OFF_T % 2147483647 == 1)
4201 ? 1 : -1];
4202 #ifdef F77_DUMMY_MAIN
4203 # ifdef __cplusplus
4204 extern "C"
4205 # endif
4206 int F77_DUMMY_MAIN() { return 1; }
4207 #endif
4208 int
4209 main ()
4210 {
4211
4212 ;
4213 return 0;
4214 }
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try='test -s conftest.$ac_objext'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 (eval $ac_try) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 ac_cv_sys_large_files=1; break
4229 else
4230 echo "$as_me: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4232 fi
4233 rm -f conftest.$ac_objext conftest.$ac_ext
4234 break
4235 done
4236 fi
4237 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4238 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4239 if test "$ac_cv_sys_large_files" != no; then
4240
4241 cat >>confdefs.h <<_ACEOF
4242 #define _LARGE_FILES $ac_cv_sys_large_files
4243 _ACEOF
4244
4245 fi
4246 rm -f conftest*
4247 fi
4248
4249
4250 if test "${with_sound}" != "no"; then
4251 # Sound support for GNU/Linux and the free BSDs.
4252 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4253 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4254 if test "${ac_cv_header_stdc+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257 cat >conftest.$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4259 #include "confdefs.h"
4260 #include <stdlib.h>
4261 #include <stdarg.h>
4262 #include <string.h>
4263 #include <float.h>
4264
4265 _ACEOF
4266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4268 ac_status=$?
4269 egrep -v '^ *\+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } >/dev/null; then
4274 if test -s conftest.err; then
4275 ac_cpp_err=$ac_c_preproc_warn_flag
4276 else
4277 ac_cpp_err=
4278 fi
4279 else
4280 ac_cpp_err=yes
4281 fi
4282 if test -z "$ac_cpp_err"; then
4283 ac_cv_header_stdc=yes
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4287 ac_cv_header_stdc=no
4288 fi
4289 rm -f conftest.err conftest.$ac_ext
4290
4291 if test $ac_cv_header_stdc = yes; then
4292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4293 cat >conftest.$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4295 #include "confdefs.h"
4296 #include <string.h>
4297
4298 _ACEOF
4299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4300 egrep "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4311 cat >conftest.$ac_ext <<_ACEOF
4312 #line $LINENO "configure"
4313 #include "confdefs.h"
4314 #include <stdlib.h>
4315
4316 _ACEOF
4317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4318 egrep "free" >/dev/null 2>&1; then
4319 :
4320 else
4321 ac_cv_header_stdc=no
4322 fi
4323 rm -f conftest*
4324
4325 fi
4326
4327 if test $ac_cv_header_stdc = yes; then
4328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4329 if test "$cross_compiling" = yes; then
4330 :
4331 else
4332 cat >conftest.$ac_ext <<_ACEOF
4333 #line $LINENO "configure"
4334 #include "confdefs.h"
4335 #include <ctype.h>
4336 #if ((' ' & 0x0FF) == 0x020)
4337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4339 #else
4340 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4341 || ('j' <= (c) && (c) <= 'r') \
4342 || ('s' <= (c) && (c) <= 'z'))
4343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4344 #endif
4345
4346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4347 int
4348 main ()
4349 {
4350 int i;
4351 for (i = 0; i < 256; i++)
4352 if (XOR (islower (i), ISLOWER (i))
4353 || toupper (i) != TOUPPER (i))
4354 exit(2);
4355 exit (0);
4356 }
4357 _ACEOF
4358 rm -f conftest$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 :
4370 else
4371 echo "$as_me: program exited with status $ac_status" >&5
4372 echo "$as_me: failed program was:" >&5
4373 cat conftest.$ac_ext >&5
4374 ( exit $ac_status )
4375 ac_cv_header_stdc=no
4376 fi
4377 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4378 fi
4379 fi
4380 fi
4381 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4382 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4383 if test $ac_cv_header_stdc = yes; then
4384
4385 cat >>confdefs.h <<\_ACEOF
4386 #define STDC_HEADERS 1
4387 _ACEOF
4388
4389 fi
4390
4391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4402 inttypes.h stdint.h unistd.h
4403 do
4404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4405 echo "$as_me:$LINENO: checking for $ac_header" >&5
4406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410 cat >conftest.$ac_ext <<_ACEOF
4411 #line $LINENO "configure"
4412 #include "confdefs.h"
4413 $ac_includes_default
4414
4415 #include <$ac_header>
4416 _ACEOF
4417 rm -f conftest.$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 eval "$as_ac_Header=yes"
4430 else
4431 echo "$as_me: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4433 eval "$as_ac_Header=no"
4434 fi
4435 rm -f conftest.$ac_objext conftest.$ac_ext
4436 fi
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4440 cat >>confdefs.h <<_ACEOF
4441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4442 _ACEOF
4443
4444 fi
4445
4446 done
4447
4448
4449
4450
4451
4452 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4453 do
4454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4456 echo "$as_me:$LINENO: checking for $ac_header" >&5
4457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 fi
4461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4463 else
4464 # Is the header compilable?
4465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4467 cat >conftest.$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4469 #include "confdefs.h"
4470 $ac_includes_default
4471 #include <$ac_header>
4472 _ACEOF
4473 rm -f conftest.$ac_objext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -s conftest.$ac_objext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 ac_header_compiler=yes
4486 else
4487 echo "$as_me: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4489 ac_header_compiler=no
4490 fi
4491 rm -f conftest.$ac_objext conftest.$ac_ext
4492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4493 echo "${ECHO_T}$ac_header_compiler" >&6
4494
4495 # Is the header present?
4496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4498 cat >conftest.$ac_ext <<_ACEOF
4499 #line $LINENO "configure"
4500 #include "confdefs.h"
4501 #include <$ac_header>
4502 _ACEOF
4503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4505 ac_status=$?
4506 egrep -v '^ *\+' conftest.er1 >conftest.err
4507 rm -f conftest.er1
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } >/dev/null; then
4511 if test -s conftest.err; then
4512 ac_cpp_err=$ac_c_preproc_warn_flag
4513 else
4514 ac_cpp_err=
4515 fi
4516 else
4517 ac_cpp_err=yes
4518 fi
4519 if test -z "$ac_cpp_err"; then
4520 ac_header_preproc=yes
4521 else
4522 echo "$as_me: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4524 ac_header_preproc=no
4525 fi
4526 rm -f conftest.err conftest.$ac_ext
4527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4528 echo "${ECHO_T}$ac_header_preproc" >&6
4529
4530 # So? What about this header?
4531 case $ac_header_compiler:$ac_header_preproc in
4532 yes:no )
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4537 no:yes )
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4544 esac
4545 echo "$as_me:$LINENO: checking for $ac_header" >&5
4546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550 eval "$as_ac_Header=$ac_header_preproc"
4551 fi
4552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4554
4555 fi
4556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4557 cat >>confdefs.h <<_ACEOF
4558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4559 _ACEOF
4560
4561 fi
4562
4563 done
4564
4565 # Emulation library used on NetBSD.
4566 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4567 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4568 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 ac_check_lib_save_LIBS=$LIBS
4572 LIBS="-lossaudio $LIBS"
4573 cat >conftest.$ac_ext <<_ACEOF
4574 #line $LINENO "configure"
4575 #include "confdefs.h"
4576
4577 /* Override any gcc2 internal prototype to avoid an error. */
4578 #ifdef __cplusplus
4579 extern "C"
4580 #endif
4581 /* We use char because int might match the return type of a gcc2
4582 builtin and then its argument prototype would still apply. */
4583 char _oss_ioctl ();
4584 #ifdef F77_DUMMY_MAIN
4585 # ifdef __cplusplus
4586 extern "C"
4587 # endif
4588 int F77_DUMMY_MAIN() { return 1; }
4589 #endif
4590 int
4591 main ()
4592 {
4593 _oss_ioctl ();
4594 ;
4595 return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest.$ac_objext conftest$ac_exeext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600 (eval $ac_link) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -s conftest$ac_exeext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_cv_lib_ossaudio__oss_ioctl=yes
4611 else
4612 echo "$as_me: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4614 ac_cv_lib_ossaudio__oss_ioctl=no
4615 fi
4616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4617 LIBS=$ac_check_lib_save_LIBS
4618 fi
4619 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4620 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4621 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4622 LIBSOUND=-lossaudio
4623 else
4624 LIBSOUND=
4625 fi
4626
4627
4628 fi
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4648 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4649 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
4650 do
4651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4653 echo "$as_me:$LINENO: checking for $ac_header" >&5
4654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 fi
4658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4660 else
4661 # Is the header compilable?
4662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4664 cat >conftest.$ac_ext <<_ACEOF
4665 #line $LINENO "configure"
4666 #include "confdefs.h"
4667 $ac_includes_default
4668 #include <$ac_header>
4669 _ACEOF
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -s conftest.$ac_objext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_header_compiler=yes
4683 else
4684 echo "$as_me: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4686 ac_header_compiler=no
4687 fi
4688 rm -f conftest.$ac_objext conftest.$ac_ext
4689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4690 echo "${ECHO_T}$ac_header_compiler" >&6
4691
4692 # Is the header present?
4693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4695 cat >conftest.$ac_ext <<_ACEOF
4696 #line $LINENO "configure"
4697 #include "confdefs.h"
4698 #include <$ac_header>
4699 _ACEOF
4700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4702 ac_status=$?
4703 egrep -v '^ *\+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev/null; then
4708 if test -s conftest.err; then
4709 ac_cpp_err=$ac_c_preproc_warn_flag
4710 else
4711 ac_cpp_err=
4712 fi
4713 else
4714 ac_cpp_err=yes
4715 fi
4716 if test -z "$ac_cpp_err"; then
4717 ac_header_preproc=yes
4718 else
4719 echo "$as_me: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4721 ac_header_preproc=no
4722 fi
4723 rm -f conftest.err conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725 echo "${ECHO_T}$ac_header_preproc" >&6
4726
4727 # So? What about this header?
4728 case $ac_header_compiler:$ac_header_preproc in
4729 yes:no )
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4734 no:yes )
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4741 esac
4742 echo "$as_me:$LINENO: checking for $ac_header" >&5
4743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 eval "$as_ac_Header=$ac_header_preproc"
4748 fi
4749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4751
4752 fi
4753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4754 cat >>confdefs.h <<_ACEOF
4755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4756 _ACEOF
4757
4758 fi
4759
4760 done
4761
4762 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4763 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4764 if test "${ac_cv_header_stdc+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 cat >conftest.$ac_ext <<_ACEOF
4768 #line $LINENO "configure"
4769 #include "confdefs.h"
4770 #include <stdlib.h>
4771 #include <stdarg.h>
4772 #include <string.h>
4773 #include <float.h>
4774
4775 _ACEOF
4776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4778 ac_status=$?
4779 egrep -v '^ *\+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } >/dev/null; then
4784 if test -s conftest.err; then
4785 ac_cpp_err=$ac_c_preproc_warn_flag
4786 else
4787 ac_cpp_err=
4788 fi
4789 else
4790 ac_cpp_err=yes
4791 fi
4792 if test -z "$ac_cpp_err"; then
4793 ac_cv_header_stdc=yes
4794 else
4795 echo "$as_me: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4797 ac_cv_header_stdc=no
4798 fi
4799 rm -f conftest.err conftest.$ac_ext
4800
4801 if test $ac_cv_header_stdc = yes; then
4802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4803 cat >conftest.$ac_ext <<_ACEOF
4804 #line $LINENO "configure"
4805 #include "confdefs.h"
4806 #include <string.h>
4807
4808 _ACEOF
4809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4810 egrep "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4821 cat >conftest.$ac_ext <<_ACEOF
4822 #line $LINENO "configure"
4823 #include "confdefs.h"
4824 #include <stdlib.h>
4825
4826 _ACEOF
4827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4828 egrep "free" >/dev/null 2>&1; then
4829 :
4830 else
4831 ac_cv_header_stdc=no
4832 fi
4833 rm -f conftest*
4834
4835 fi
4836
4837 if test $ac_cv_header_stdc = yes; then
4838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4839 if test "$cross_compiling" = yes; then
4840 :
4841 else
4842 cat >conftest.$ac_ext <<_ACEOF
4843 #line $LINENO "configure"
4844 #include "confdefs.h"
4845 #include <ctype.h>
4846 #if ((' ' & 0x0FF) == 0x020)
4847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4849 #else
4850 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4851 || ('j' <= (c) && (c) <= 'r') \
4852 || ('s' <= (c) && (c) <= 'z'))
4853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4854 #endif
4855
4856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4857 int
4858 main ()
4859 {
4860 int i;
4861 for (i = 0; i < 256; i++)
4862 if (XOR (islower (i), ISLOWER (i))
4863 || toupper (i) != TOUPPER (i))
4864 exit(2);
4865 exit (0);
4866 }
4867 _ACEOF
4868 rm -f conftest$ac_exeext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4870 (eval $ac_link) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 (eval $ac_try) 2>&5
4876 ac_status=$?
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4879 :
4880 else
4881 echo "$as_me: program exited with status $ac_status" >&5
4882 echo "$as_me: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4884 ( exit $ac_status )
4885 ac_cv_header_stdc=no
4886 fi
4887 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4888 fi
4889 fi
4890 fi
4891 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4892 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4893 if test $ac_cv_header_stdc = yes; then
4894
4895 cat >>confdefs.h <<\_ACEOF
4896 #define STDC_HEADERS 1
4897 _ACEOF
4898
4899 fi
4900
4901 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4902 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4903 if test "${ac_cv_header_time+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 cat >conftest.$ac_ext <<_ACEOF
4907 #line $LINENO "configure"
4908 #include "confdefs.h"
4909 #include <sys/types.h>
4910 #include <sys/time.h>
4911 #include <time.h>
4912
4913 #ifdef F77_DUMMY_MAIN
4914 # ifdef __cplusplus
4915 extern "C"
4916 # endif
4917 int F77_DUMMY_MAIN() { return 1; }
4918 #endif
4919 int
4920 main ()
4921 {
4922 if ((struct tm *) 0)
4923 return 0;
4924 ;
4925 return 0;
4926 }
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_cv_header_time=yes
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4944 ac_cv_header_time=no
4945 fi
4946 rm -f conftest.$ac_objext conftest.$ac_ext
4947 fi
4948 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4949 echo "${ECHO_T}$ac_cv_header_time" >&6
4950 if test $ac_cv_header_time = yes; then
4951
4952 cat >>confdefs.h <<\_ACEOF
4953 #define TIME_WITH_SYS_TIME 1
4954 _ACEOF
4955
4956 fi
4957
4958 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4959 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4960 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 cat >conftest.$ac_ext <<_ACEOF
4964 #line $LINENO "configure"
4965 #include "confdefs.h"
4966 #include <sys/types.h>
4967 #include <signal.h>
4968 /* NetBSD declares sys_siglist in unistd.h. */
4969 #if HAVE_UNISTD_H
4970 # include <unistd.h>
4971 #endif
4972
4973 #ifdef F77_DUMMY_MAIN
4974 # ifdef __cplusplus
4975 extern "C"
4976 # endif
4977 int F77_DUMMY_MAIN() { return 1; }
4978 #endif
4979 int
4980 main ()
4981 {
4982 char *msg = *(sys_siglist + 1);
4983 ;
4984 return 0;
4985 }
4986 _ACEOF
4987 rm -f conftest.$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } &&
4993 { ac_try='test -s conftest.$ac_objext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 ac_cv_decl_sys_siglist=yes
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 cat conftest.$ac_ext >&5
5003 ac_cv_decl_sys_siglist=no
5004 fi
5005 rm -f conftest.$ac_objext conftest.$ac_ext
5006 fi
5007 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
5008 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
5009 if test $ac_cv_decl_sys_siglist = yes; then
5010
5011 cat >>confdefs.h <<\_ACEOF
5012 #define SYS_SIGLIST_DECLARED 1
5013 _ACEOF
5014
5015 fi
5016
5017 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5018 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5019 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 cat >conftest.$ac_ext <<_ACEOF
5023 #line $LINENO "configure"
5024 #include "confdefs.h"
5025 #include <sys/types.h>
5026 #include <sys/wait.h>
5027 #ifndef WEXITSTATUS
5028 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5029 #endif
5030 #ifndef WIFEXITED
5031 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5032 #endif
5033
5034 #ifdef F77_DUMMY_MAIN
5035 # ifdef __cplusplus
5036 extern "C"
5037 # endif
5038 int F77_DUMMY_MAIN() { return 1; }
5039 #endif
5040 int
5041 main ()
5042 {
5043 int s;
5044 wait (&s);
5045 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5046 ;
5047 return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -s conftest.$ac_objext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_cv_header_sys_wait_h=yes
5063 else
5064 echo "$as_me: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5066 ac_cv_header_sys_wait_h=no
5067 fi
5068 rm -f conftest.$ac_objext conftest.$ac_ext
5069 fi
5070 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5071 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5072 if test $ac_cv_header_sys_wait_h = yes; then
5073
5074 cat >>confdefs.h <<\_ACEOF
5075 #define HAVE_SYS_WAIT_H 1
5076 _ACEOF
5077
5078 fi
5079
5080
5081 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5082 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5083 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 cat >conftest.$ac_ext <<_ACEOF
5087 #line $LINENO "configure"
5088 #include "confdefs.h"
5089 #ifdef TIME_WITH_SYS_TIME
5090 #include <sys/time.h>
5091 #include <time.h>
5092 #else
5093 #ifdef HAVE_SYS_TIME_H
5094 #include <sys/time.h>
5095 #else
5096 #include <time.h>
5097 #endif
5098 #endif
5099 #ifdef HAVE_UTIME_H
5100 #include <utime.h>
5101 #endif
5102 #ifdef F77_DUMMY_MAIN
5103 # ifdef __cplusplus
5104 extern "C"
5105 # endif
5106 int F77_DUMMY_MAIN() { return 1; }
5107 #endif
5108 int
5109 main ()
5110 {
5111 static struct utimbuf x; x.actime = x.modtime;
5112 ;
5113 return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5118 (eval $ac_compile) 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try='test -s conftest.$ac_objext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 (eval $ac_try) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 emacs_cv_struct_utimbuf=yes
5129 else
5130 echo "$as_me: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5132 emacs_cv_struct_utimbuf=no
5133 fi
5134 rm -f conftest.$ac_objext conftest.$ac_ext
5135 fi
5136 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5137 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5138 if test $emacs_cv_struct_utimbuf = yes; then
5139
5140 cat >>confdefs.h <<\_ACEOF
5141 #define HAVE_STRUCT_UTIMBUF 1
5142 _ACEOF
5143
5144 fi
5145
5146 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5147 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5148 if test "${ac_cv_type_signal+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151 cat >conftest.$ac_ext <<_ACEOF
5152 #line $LINENO "configure"
5153 #include "confdefs.h"
5154 #include <sys/types.h>
5155 #include <signal.h>
5156 #ifdef signal
5157 # undef signal
5158 #endif
5159 #ifdef __cplusplus
5160 extern "C" void (*signal (int, void (*)(int)))(int);
5161 #else
5162 void (*signal ()) ();
5163 #endif
5164
5165 #ifdef F77_DUMMY_MAIN
5166 # ifdef __cplusplus
5167 extern "C"
5168 # endif
5169 int F77_DUMMY_MAIN() { return 1; }
5170 #endif
5171 int
5172 main ()
5173 {
5174 int i;
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 rm -f conftest.$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } &&
5185 { ac_try='test -s conftest.$ac_objext'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 (eval $ac_try) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; }; then
5191 ac_cv_type_signal=void
5192 else
5193 echo "$as_me: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5195 ac_cv_type_signal=int
5196 fi
5197 rm -f conftest.$ac_objext conftest.$ac_ext
5198 fi
5199 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5200 echo "${ECHO_T}$ac_cv_type_signal" >&6
5201
5202 cat >>confdefs.h <<_ACEOF
5203 #define RETSIGTYPE $ac_cv_type_signal
5204 _ACEOF
5205
5206
5207
5208 echo "$as_me:$LINENO: checking for speed_t" >&5
5209 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5210 if test "${emacs_cv_speed_t+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 cat >conftest.$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5215 #include "confdefs.h"
5216 #include <termios.h>
5217 #ifdef F77_DUMMY_MAIN
5218 # ifdef __cplusplus
5219 extern "C"
5220 # endif
5221 int F77_DUMMY_MAIN() { return 1; }
5222 #endif
5223 int
5224 main ()
5225 {
5226 speed_t x = 1;
5227 ;
5228 return 0;
5229 }
5230 _ACEOF
5231 rm -f conftest.$ac_objext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -s conftest.$ac_objext'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 (eval $ac_try) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; }; then
5243 emacs_cv_speed_t=yes
5244 else
5245 echo "$as_me: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5247 emacs_cv_speed_t=no
5248 fi
5249 rm -f conftest.$ac_objext conftest.$ac_ext
5250 fi
5251 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5252 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5253 if test $emacs_cv_speed_t = yes; then
5254
5255 cat >>confdefs.h <<\_ACEOF
5256 #define HAVE_SPEED_T 1
5257 _ACEOF
5258
5259 fi
5260
5261 echo "$as_me:$LINENO: checking for struct timeval" >&5
5262 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5263 if test "${emacs_cv_struct_timeval+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266 cat >conftest.$ac_ext <<_ACEOF
5267 #line $LINENO "configure"
5268 #include "confdefs.h"
5269 #ifdef TIME_WITH_SYS_TIME
5270 #include <sys/time.h>
5271 #include <time.h>
5272 #else
5273 #ifdef HAVE_SYS_TIME_H
5274 #include <sys/time.h>
5275 #else
5276 #include <time.h>
5277 #endif
5278 #endif
5279 #ifdef F77_DUMMY_MAIN
5280 # ifdef __cplusplus
5281 extern "C"
5282 # endif
5283 int F77_DUMMY_MAIN() { return 1; }
5284 #endif
5285 int
5286 main ()
5287 {
5288 static struct timeval x; x.tv_sec = x.tv_usec;
5289 ;
5290 return 0;
5291 }
5292 _ACEOF
5293 rm -f conftest.$ac_objext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5295 (eval $ac_compile) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -s conftest.$ac_objext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 emacs_cv_struct_timeval=yes
5306 else
5307 echo "$as_me: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5309 emacs_cv_struct_timeval=no
5310 fi
5311 rm -f conftest.$ac_objext conftest.$ac_ext
5312 fi
5313 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5314 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5315 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5316 if test $emacs_cv_struct_timeval = yes; then
5317
5318 cat >>confdefs.h <<\_ACEOF
5319 #define HAVE_TIMEVAL 1
5320 _ACEOF
5321
5322 fi
5323
5324 echo "$as_me:$LINENO: checking for struct exception" >&5
5325 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5326 if test "${emacs_cv_struct_exception+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329 cat >conftest.$ac_ext <<_ACEOF
5330 #line $LINENO "configure"
5331 #include "confdefs.h"
5332 #include <math.h>
5333 #ifdef F77_DUMMY_MAIN
5334 # ifdef __cplusplus
5335 extern "C"
5336 # endif
5337 int F77_DUMMY_MAIN() { return 1; }
5338 #endif
5339 int
5340 main ()
5341 {
5342 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5343 ;
5344 return 0;
5345 }
5346 _ACEOF
5347 rm -f conftest.$ac_objext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349 (eval $ac_compile) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try='test -s conftest.$ac_objext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 (eval $ac_try) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 emacs_cv_struct_exception=yes
5360 else
5361 echo "$as_me: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5363 emacs_cv_struct_exception=no
5364 fi
5365 rm -f conftest.$ac_objext conftest.$ac_ext
5366 fi
5367 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5368 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5369 HAVE_EXCEPTION=$emacs_cv_struct_exception
5370 if test $emacs_cv_struct_exception != yes; then
5371
5372 cat >>confdefs.h <<\_ACEOF
5373 #define NO_MATHERR 1
5374 _ACEOF
5375
5376 fi
5377
5378 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5379 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5380 if test "${ac_cv_struct_tm+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383 cat >conftest.$ac_ext <<_ACEOF
5384 #line $LINENO "configure"
5385 #include "confdefs.h"
5386 #include <sys/types.h>
5387 #include <time.h>
5388
5389 #ifdef F77_DUMMY_MAIN
5390 # ifdef __cplusplus
5391 extern "C"
5392 # endif
5393 int F77_DUMMY_MAIN() { return 1; }
5394 #endif
5395 int
5396 main ()
5397 {
5398 struct tm *tp; tp->tm_sec;
5399 ;
5400 return 0;
5401 }
5402 _ACEOF
5403 rm -f conftest.$ac_objext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try='test -s conftest.$ac_objext'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 (eval $ac_try) 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 ac_cv_struct_tm=time.h
5416 else
5417 echo "$as_me: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5419 ac_cv_struct_tm=sys/time.h
5420 fi
5421 rm -f conftest.$ac_objext conftest.$ac_ext
5422 fi
5423 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5424 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5425 if test $ac_cv_struct_tm = sys/time.h; then
5426
5427 cat >>confdefs.h <<\_ACEOF
5428 #define TM_IN_SYS_TIME 1
5429 _ACEOF
5430
5431 fi
5432
5433 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5434 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5435 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438 cat >conftest.$ac_ext <<_ACEOF
5439 #line $LINENO "configure"
5440 #include "confdefs.h"
5441 #include <sys/types.h>
5442 #include <$ac_cv_struct_tm>
5443
5444
5445 #ifdef F77_DUMMY_MAIN
5446 # ifdef __cplusplus
5447 extern "C"
5448 # endif
5449 int F77_DUMMY_MAIN() { return 1; }
5450 #endif
5451 int
5452 main ()
5453 {
5454 static struct tm ac_aggr;
5455 if (ac_aggr.tm_zone)
5456 return 0;
5457 ;
5458 return 0;
5459 }
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463 (eval $ac_compile) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_cv_member_struct_tm_tm_zone=yes
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5477 ac_cv_member_struct_tm_tm_zone=no
5478 fi
5479 rm -f conftest.$ac_objext conftest.$ac_ext
5480 fi
5481 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5482 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5483 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5484
5485 cat >>confdefs.h <<_ACEOF
5486 #define HAVE_STRUCT_TM_TM_ZONE 1
5487 _ACEOF
5488
5489
5490 fi
5491
5492 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5493
5494 cat >>confdefs.h <<\_ACEOF
5495 #define HAVE_TM_ZONE 1
5496 _ACEOF
5497
5498 else
5499 echo "$as_me:$LINENO: checking for tzname" >&5
5500 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5501 if test "${ac_cv_var_tzname+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504 cat >conftest.$ac_ext <<_ACEOF
5505 #line $LINENO "configure"
5506 #include "confdefs.h"
5507 #include <time.h>
5508 #ifndef tzname /* For SGI. */
5509 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5510 #endif
5511
5512 #ifdef F77_DUMMY_MAIN
5513 # ifdef __cplusplus
5514 extern "C"
5515 # endif
5516 int F77_DUMMY_MAIN() { return 1; }
5517 #endif
5518 int
5519 main ()
5520 {
5521 atoi(*tzname);
5522 ;
5523 return 0;
5524 }
5525 _ACEOF
5526 rm -f conftest.$ac_objext conftest$ac_exeext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528 (eval $ac_link) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -s conftest$ac_exeext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_var_tzname=yes
5539 else
5540 echo "$as_me: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5542 ac_cv_var_tzname=no
5543 fi
5544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5545 fi
5546 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5547 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5548 if test $ac_cv_var_tzname = yes; then
5549
5550 cat >>confdefs.h <<\_ACEOF
5551 #define HAVE_TZNAME 1
5552 _ACEOF
5553
5554 fi
5555 fi
5556
5557 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5558 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5559 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 cat >conftest.$ac_ext <<_ACEOF
5563 #line $LINENO "configure"
5564 #include "confdefs.h"
5565 #include <time.h>
5566
5567 #ifdef F77_DUMMY_MAIN
5568 # ifdef __cplusplus
5569 extern "C"
5570 # endif
5571 int F77_DUMMY_MAIN() { return 1; }
5572 #endif
5573 int
5574 main ()
5575 {
5576 static struct tm ac_aggr;
5577 if (ac_aggr.tm_gmtoff)
5578 return 0;
5579 ;
5580 return 0;
5581 }
5582 _ACEOF
5583 rm -f conftest.$ac_objext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585 (eval $ac_compile) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try='test -s conftest.$ac_objext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 ac_cv_member_struct_tm_tm_gmtoff=yes
5596 else
5597 echo "$as_me: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5599 ac_cv_member_struct_tm_tm_gmtoff=no
5600 fi
5601 rm -f conftest.$ac_objext conftest.$ac_ext
5602 fi
5603 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5604 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5605 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5606
5607 cat >>confdefs.h <<\_ACEOF
5608 #define HAVE_TM_GMTOFF 1
5609 _ACEOF
5610
5611 fi
5612
5613
5614
5615 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5616 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5617 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620 ac_cv_prog_cc_stdc=no
5621 ac_save_CC=$CC
5622 cat >conftest.$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5624 #include "confdefs.h"
5625 #include <stdarg.h>
5626 #include <stdio.h>
5627 #include <sys/types.h>
5628 #include <sys/stat.h>
5629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5630 struct buf { int x; };
5631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5632 static char *e (p, i)
5633 char **p;
5634 int i;
5635 {
5636 return p[i];
5637 }
5638 static char *f (char * (*g) (char **, int), char **p, ...)
5639 {
5640 char *s;
5641 va_list v;
5642 va_start (v,p);
5643 s = g (p, va_arg (v,int));
5644 va_end (v);
5645 return s;
5646 }
5647 int test (int i, double x);
5648 struct s1 {int (*f) (int a);};
5649 struct s2 {int (*f) (double a);};
5650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5651 int argc;
5652 char **argv;
5653 #ifdef F77_DUMMY_MAIN
5654 # ifdef __cplusplus
5655 extern "C"
5656 # endif
5657 int F77_DUMMY_MAIN() { return 1; }
5658 #endif
5659 int
5660 main ()
5661 {
5662 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5663 ;
5664 return 0;
5665 }
5666 _ACEOF
5667 # Don't try gcc -ansi; that turns off useful extensions and
5668 # breaks some systems' header files.
5669 # AIX -qlanglvl=ansi
5670 # Ultrix and OSF/1 -std1
5671 # HP-UX 10.20 and later -Ae
5672 # HP-UX older versions -Aa -D_HPUX_SOURCE
5673 # SVR4 -Xc -D__EXTENSIONS__
5674 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5675 do
5676 CC="$ac_save_CC $ac_arg"
5677 rm -f conftest.$ac_objext
5678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679 (eval $ac_compile) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } &&
5683 { ac_try='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 ac_cv_prog_cc_stdc=$ac_arg
5690 break
5691 else
5692 echo "$as_me: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 fi
5695 rm -f conftest.$ac_objext
5696 done
5697 rm -f conftest.$ac_ext conftest.$ac_objext
5698 CC=$ac_save_CC
5699
5700 fi
5701
5702 case "x$ac_cv_prog_cc_stdc" in
5703 x|xno)
5704 echo "$as_me:$LINENO: result: none needed" >&5
5705 echo "${ECHO_T}none needed" >&6 ;;
5706 *)
5707 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5708 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5709 CC="$CC $ac_cv_prog_cc_stdc" ;;
5710 esac
5711
5712 echo "$as_me:$LINENO: checking for function prototypes" >&5
5713 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5714 if test "$ac_cv_prog_cc_stdc" != no; then
5715 echo "$as_me:$LINENO: result: yes" >&5
5716 echo "${ECHO_T}yes" >&6
5717
5718 cat >>confdefs.h <<\_ACEOF
5719 #define PROTOTYPES 1
5720 _ACEOF
5721
5722
5723 cat >>confdefs.h <<\_ACEOF
5724 #define __PROTOTYPES 1
5725 _ACEOF
5726
5727 else
5728 echo "$as_me:$LINENO: result: no" >&5
5729 echo "${ECHO_T}no" >&6
5730 fi
5731
5732 echo "$as_me:$LINENO: checking for working volatile" >&5
5733 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5734 if test "${ac_cv_c_volatile+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737 cat >conftest.$ac_ext <<_ACEOF
5738 #line $LINENO "configure"
5739 #include "confdefs.h"
5740
5741 #ifdef F77_DUMMY_MAIN
5742 # ifdef __cplusplus
5743 extern "C"
5744 # endif
5745 int F77_DUMMY_MAIN() { return 1; }
5746 #endif
5747 int
5748 main ()
5749 {
5750
5751 volatile int x;
5752 int * volatile y;
5753 ;
5754 return 0;
5755 }
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -s conftest.$ac_objext'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 ac_cv_c_volatile=yes
5770 else
5771 echo "$as_me: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5773 ac_cv_c_volatile=no
5774 fi
5775 rm -f conftest.$ac_objext conftest.$ac_ext
5776 fi
5777 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5778 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5779 if test $ac_cv_c_volatile = no; then
5780
5781 cat >>confdefs.h <<\_ACEOF
5782 #define volatile
5783 _ACEOF
5784
5785 fi
5786
5787 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5788 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5789 if test "${ac_cv_c_const+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792 cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 #include "confdefs.h"
5795
5796 #ifdef F77_DUMMY_MAIN
5797 # ifdef __cplusplus
5798 extern "C"
5799 # endif
5800 int F77_DUMMY_MAIN() { return 1; }
5801 #endif
5802 int
5803 main ()
5804 {
5805 /* FIXME: Include the comments suggested by Paul. */
5806 #ifndef __cplusplus
5807 /* Ultrix mips cc rejects this. */
5808 typedef int charset[2];
5809 const charset x;
5810 /* SunOS 4.1.1 cc rejects this. */
5811 char const *const *ccp;
5812 char **p;
5813 /* NEC SVR4.0.2 mips cc rejects this. */
5814 struct point {int x, y;};
5815 static struct point const zero = {0,0};
5816 /* AIX XL C 1.02.0.0 rejects this.
5817 It does not let you subtract one const X* pointer from another in
5818 an arm of an if-expression whose if-part is not a constant
5819 expression */
5820 const char *g = "string";
5821 ccp = &g + (g ? g-g : 0);
5822 /* HPUX 7.0 cc rejects these. */
5823 ++ccp;
5824 p = (char**) ccp;
5825 ccp = (char const *const *) p;
5826 { /* SCO 3.2v4 cc rejects this. */
5827 char *t;
5828 char const *s = 0 ? (char *) 0 : (char const *) 0;
5829
5830 *t++ = 0;
5831 }
5832 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5833 int x[] = {25, 17};
5834 const int *foo = &x[0];
5835 ++foo;
5836 }
5837 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5838 typedef const int *iptr;
5839 iptr p = 0;
5840 ++p;
5841 }
5842 { /* AIX XL C 1.02.0.0 rejects this saying
5843 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5844 struct s { int j; const int *ap[3]; };
5845 struct s *b; b->j = 5;
5846 }
5847 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5848 const int foo = 10;
5849 }
5850 #endif
5851
5852 ;
5853 return 0;
5854 }
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_cv_c_const=yes
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5872 ac_cv_c_const=no
5873 fi
5874 rm -f conftest.$ac_objext conftest.$ac_ext
5875 fi
5876 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5877 echo "${ECHO_T}$ac_cv_c_const" >&6
5878 if test $ac_cv_c_const = no; then
5879
5880 cat >>confdefs.h <<\_ACEOF
5881 #define const
5882 _ACEOF
5883
5884 fi
5885
5886 echo "$as_me:$LINENO: checking for void * support" >&5
5887 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5888 if test "${emacs_cv_void_star+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891 cat >conftest.$ac_ext <<_ACEOF
5892 #line $LINENO "configure"
5893 #include "confdefs.h"
5894
5895 #ifdef F77_DUMMY_MAIN
5896 # ifdef __cplusplus
5897 extern "C"
5898 # endif
5899 int F77_DUMMY_MAIN() { return 1; }
5900 #endif
5901 int
5902 main ()
5903 {
5904 void * foo;
5905 ;
5906 return 0;
5907 }
5908 _ACEOF
5909 rm -f conftest.$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try='test -s conftest.$ac_objext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 emacs_cv_void_star=yes
5922 else
5923 echo "$as_me: failed program was:" >&5
5924 cat conftest.$ac_ext >&5
5925 emacs_cv_void_star=no
5926 fi
5927 rm -f conftest.$ac_objext conftest.$ac_ext
5928 fi
5929 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5930 echo "${ECHO_T}$emacs_cv_void_star" >&6
5931 if test $emacs_cv_void_star = yes; then
5932 cat >>confdefs.h <<\_ACEOF
5933 #define POINTER_TYPE void
5934 _ACEOF
5935
5936 else
5937 cat >>confdefs.h <<\_ACEOF
5938 #define POINTER_TYPE char
5939 _ACEOF
5940
5941 fi
5942
5943
5944 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5945 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5946 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5947 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950 cat >conftest.make <<\_ACEOF
5951 all:
5952 @echo 'ac_maketemp="${MAKE}"'
5953 _ACEOF
5954 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5955 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5956 if test -n "$ac_maketemp"; then
5957 eval ac_cv_prog_make_${ac_make}_set=yes
5958 else
5959 eval ac_cv_prog_make_${ac_make}_set=no
5960 fi
5961 rm -f conftest.make
5962 fi
5963 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5964 echo "$as_me:$LINENO: result: yes" >&5
5965 echo "${ECHO_T}yes" >&6
5966 SET_MAKE=
5967 else
5968 echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5970 SET_MAKE="MAKE=${MAKE-make}"
5971 fi
5972
5973
5974 echo "$as_me:$LINENO: checking for long file names" >&5
5975 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5976 if test "${ac_cv_sys_long_file_names+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 ac_cv_sys_long_file_names=yes
5980 # Test for long file names in all the places we know might matter:
5981 # . the current directory, where building will happen
5982 # $prefix/lib where we will be installing things
5983 # $exec_prefix/lib likewise
5984 # eval it to expand exec_prefix.
5985 # $TMPDIR if set, where it might want to write temporary files
5986 # if $TMPDIR is not set:
5987 # /tmp where it might want to write temporary files
5988 # /var/tmp likewise
5989 # /usr/tmp likewise
5990 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5991 ac_tmpdirs=$TMPDIR
5992 else
5993 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
5994 fi
5995 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5996 test -d $ac_dir || continue
5997 test -w $ac_dir || continue # It is less confusing to not echo anything here.
5998 ac_xdir=$ac_dir/cf$$
5999 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6000 ac_tf1=$ac_xdir/conftest9012345
6001 ac_tf2=$ac_xdir/conftest9012346
6002 (echo 1 >$ac_tf1) 2>/dev/null
6003 (echo 2 >$ac_tf2) 2>/dev/null
6004 ac_val=`cat $ac_tf1 2>/dev/null`
6005 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6006 ac_cv_sys_long_file_names=no
6007 rm -rf $ac_xdir 2>/dev/null
6008 break
6009 fi
6010 rm -rf $ac_xdir 2>/dev/null
6011 done
6012 fi
6013 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6014 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6015 if test $ac_cv_sys_long_file_names = yes; then
6016
6017 cat >>confdefs.h <<\_ACEOF
6018 #define HAVE_LONG_FILE_NAMES 1
6019 _ACEOF
6020
6021 fi
6022
6023
6024 #### Choose a window system.
6025
6026 echo "$as_me:$LINENO: checking for X" >&5
6027 echo $ECHO_N "checking for X... $ECHO_C" >&6
6028
6029
6030 # Check whether --with-x or --without-x was given.
6031 if test "${with_x+set}" = set; then
6032 withval="$with_x"
6033
6034 fi;
6035 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6036 if test "x$with_x" = xno; then
6037 # The user explicitly disabled X.
6038 have_x=disabled
6039 else
6040 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6041 # Both variables are already set.
6042 have_x=yes
6043 else
6044 if test "${ac_cv_have_x+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047 # One or both of the vars are not set, and there is no cached value.
6048 ac_x_includes=no ac_x_libraries=no
6049 rm -fr conftest.dir
6050 if mkdir conftest.dir; then
6051 cd conftest.dir
6052 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6053 cat >Imakefile <<'_ACEOF'
6054 acfindx:
6055 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6056 _ACEOF
6057 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6059 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6060 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6061 for ac_extension in a so sl; do
6062 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6063 test -f $ac_im_libdir/libX11.$ac_extension; then
6064 ac_im_usrlibdir=$ac_im_libdir; break
6065 fi
6066 done
6067 # Screen out bogus values from the imake configuration. They are
6068 # bogus both because they are the default anyway, and because
6069 # using them would break gcc on systems where it needs fixed includes.
6070 case $ac_im_incroot in
6071 /usr/include) ;;
6072 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6073 esac
6074 case $ac_im_usrlibdir in
6075 /usr/lib | /lib) ;;
6076 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6077 esac
6078 fi
6079 cd ..
6080 rm -fr conftest.dir
6081 fi
6082
6083 # Standard set of common directories for X headers.
6084 # Check X11 before X11Rn because it is often a symlink to the current release.
6085 ac_x_header_dirs='
6086 /usr/X11/include
6087 /usr/X11R6/include
6088 /usr/X11R5/include
6089 /usr/X11R4/include
6090
6091 /usr/include/X11
6092 /usr/include/X11R6
6093 /usr/include/X11R5
6094 /usr/include/X11R4
6095
6096 /usr/local/X11/include
6097 /usr/local/X11R6/include
6098 /usr/local/X11R5/include
6099 /usr/local/X11R4/include
6100
6101 /usr/local/include/X11
6102 /usr/local/include/X11R6
6103 /usr/local/include/X11R5
6104 /usr/local/include/X11R4
6105
6106 /usr/X386/include
6107 /usr/x386/include
6108 /usr/XFree86/include/X11
6109
6110 /usr/include
6111 /usr/local/include
6112 /usr/unsupported/include
6113 /usr/athena/include
6114 /usr/local/x11r5/include
6115 /usr/lpp/Xamples/include
6116
6117 /usr/openwin/include
6118 /usr/openwin/share/include'
6119
6120 if test "$ac_x_includes" = no; then
6121 # Guess where to find include files, by looking for Intrinsic.h.
6122 # First, try using that file with no special directory specified.
6123 cat >conftest.$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6125 #include "confdefs.h"
6126 #include <X11/Intrinsic.h>
6127 _ACEOF
6128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6130 ac_status=$?
6131 egrep -v '^ *\+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } >/dev/null; then
6136 if test -s conftest.err; then
6137 ac_cpp_err=$ac_c_preproc_warn_flag
6138 else
6139 ac_cpp_err=
6140 fi
6141 else
6142 ac_cpp_err=yes
6143 fi
6144 if test -z "$ac_cpp_err"; then
6145 # We can compile using X headers with no special include directory.
6146 ac_x_includes=
6147 else
6148 echo "$as_me: failed program was:" >&5
6149 cat conftest.$ac_ext >&5
6150 for ac_dir in $ac_x_header_dirs; do
6151 if test -r "$ac_dir/X11/Intrinsic.h"; then
6152 ac_x_includes=$ac_dir
6153 break
6154 fi
6155 done
6156 fi
6157 rm -f conftest.err conftest.$ac_ext
6158 fi # $ac_x_includes = no
6159
6160 if test "$ac_x_libraries" = no; then
6161 # Check for the libraries.
6162 # See if we find them without any special options.
6163 # Don't add to $LIBS permanently.
6164 ac_save_LIBS=$LIBS
6165 LIBS="-lXt $LIBS"
6166 cat >conftest.$ac_ext <<_ACEOF
6167 #line $LINENO "configure"
6168 #include "confdefs.h"
6169 #include <X11/Intrinsic.h>
6170 #ifdef F77_DUMMY_MAIN
6171 # ifdef __cplusplus
6172 extern "C"
6173 # endif
6174 int F77_DUMMY_MAIN() { return 1; }
6175 #endif
6176 int
6177 main ()
6178 {
6179 XtMalloc (0)
6180 ;
6181 return 0;
6182 }
6183 _ACEOF
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186 (eval $ac_link) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try='test -s conftest$ac_exeext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 LIBS=$ac_save_LIBS
6197 # We can link X programs with no special library path.
6198 ac_x_libraries=
6199 else
6200 echo "$as_me: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6202 LIBS=$ac_save_LIBS
6203 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6204 do
6205 # Don't even attempt the hair of trying to link an X program!
6206 for ac_extension in a so sl; do
6207 if test -r $ac_dir/libXt.$ac_extension; then
6208 ac_x_libraries=$ac_dir
6209 break 2
6210 fi
6211 done
6212 done
6213 fi
6214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6215 fi # $ac_x_libraries = no
6216
6217 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6218 # Didn't find X anywhere. Cache the known absence of X.
6219 ac_cv_have_x="have_x=no"
6220 else
6221 # Record where we found X for the cache.
6222 ac_cv_have_x="have_x=yes \
6223 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6224 fi
6225 fi
6226
6227 fi
6228 eval "$ac_cv_have_x"
6229 fi # $with_x != no
6230
6231 if test "$have_x" != yes; then
6232 echo "$as_me:$LINENO: result: $have_x" >&5
6233 echo "${ECHO_T}$have_x" >&6
6234 no_x=yes
6235 else
6236 # If each of the values was on the command line, it overrides each guess.
6237 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6238 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6239 # Update the cache value to reflect the command line values.
6240 ac_cv_have_x="have_x=yes \
6241 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6242 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6243 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6244 fi
6245
6246 if test "$no_x" = yes; then
6247 window_system=none
6248 else
6249 window_system=x11
6250 fi
6251
6252 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6253 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6254 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6255 x_default_search_path=""
6256 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6257 x_search_path="\
6258 ${x_library}/X11/%L/%T/%N%C%S:\
6259 ${x_library}/X11/%l/%T/%N%C%S:\
6260 ${x_library}/X11/%T/%N%C%S:\
6261 ${x_library}/X11/%L/%T/%N%S:\
6262 ${x_library}/X11/%l/%T/%N%S:\
6263 ${x_library}/X11/%T/%N%S"
6264 if test x"${x_default_search_path}" = x; then
6265 x_default_search_path=${x_search_path}
6266 else
6267 x_default_search_path="${x_search_path}:${x_default_search_path}"
6268 fi
6269 done
6270 fi
6271 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6272 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6273 fi
6274
6275 if test x"${x_includes}" = x; then
6276 bitmapdir=/usr/include/X11/bitmaps
6277 else
6278 # accumulate include directories that have X11 bitmap subdirectories
6279 bmd_acc="dummyval"
6280 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6281 if test -d "${bmd}/X11/bitmaps"; then
6282 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6283 fi
6284 if test -d "${bmd}/bitmaps"; then
6285 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6286 fi
6287 done
6288 if test ${bmd_acc} != "dummyval"; then
6289 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6290 fi
6291 fi
6292
6293 case "${window_system}" in
6294 x11 )
6295 HAVE_X_WINDOWS=yes
6296 HAVE_X11=yes
6297 case "${with_x_toolkit}" in
6298 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6299 motif ) USE_X_TOOLKIT=MOTIF ;;
6300 no ) USE_X_TOOLKIT=none ;;
6301 * ) USE_X_TOOLKIT=maybe ;;
6302 esac
6303 ;;
6304 none )
6305 HAVE_X_WINDOWS=no
6306 HAVE_X11=no
6307 USE_X_TOOLKIT=none
6308 ;;
6309 esac
6310
6311 ### If we're using X11, we should use the X menu package.
6312 HAVE_MENUS=no
6313 case ${HAVE_X11} in
6314 yes ) HAVE_MENUS=yes ;;
6315 esac
6316
6317 if test "${opsys}" = "hpux9"; then
6318 case "${x_libraries}" in
6319 *X11R4* )
6320 opsysfile="s/hpux9-x11r4.h"
6321 ;;
6322 esac
6323 fi
6324
6325 if test "${opsys}" = "hpux9shr"; then
6326 case "${x_libraries}" in
6327 *X11R4* )
6328 opsysfile="s/hpux9shxr4.h"
6329 ;;
6330 esac
6331 fi
6332
6333 ### Compute the unexec source name from the object name.
6334 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6335
6336 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6337 # Assume not, until told otherwise.
6338 GNU_MALLOC=yes
6339 doug_lea_malloc=yes
6340 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6341 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6342 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345 cat >conftest.$ac_ext <<_ACEOF
6346 #line $LINENO "configure"
6347 #include "confdefs.h"
6348 /* System header to define __stub macros and hopefully few prototypes,
6349 which can conflict with char malloc_get_state (); below. */
6350 #include <assert.h>
6351 /* Override any gcc2 internal prototype to avoid an error. */
6352 #ifdef __cplusplus
6353 extern "C"
6354 #endif
6355 /* We use char because int might match the return type of a gcc2
6356 builtin and then its argument prototype would still apply. */
6357 char malloc_get_state ();
6358 char (*f) ();
6359
6360 #ifdef F77_DUMMY_MAIN
6361 # ifdef __cplusplus
6362 extern "C"
6363 # endif
6364 int F77_DUMMY_MAIN() { return 1; }
6365 #endif
6366 int
6367 main ()
6368 {
6369 /* The GNU C library defines this for functions which it implements
6370 to always fail with ENOSYS. Some functions are actually named
6371 something starting with __ and the normal name is an alias. */
6372 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6373 choke me
6374 #else
6375 f = malloc_get_state;
6376 #endif
6377
6378 ;
6379 return 0;
6380 }
6381 _ACEOF
6382 rm -f conftest.$ac_objext conftest$ac_exeext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6384 (eval $ac_link) 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try='test -s conftest$ac_exeext'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 (eval $ac_try) 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; }; then
6394 ac_cv_func_malloc_get_state=yes
6395 else
6396 echo "$as_me: failed program was:" >&5
6397 cat conftest.$ac_ext >&5
6398 ac_cv_func_malloc_get_state=no
6399 fi
6400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6401 fi
6402 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6403 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6404 if test $ac_cv_func_malloc_get_state = yes; then
6405 :
6406 else
6407 doug_lea_malloc=no
6408 fi
6409
6410 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6411 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6412 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 #include "confdefs.h"
6418 /* System header to define __stub macros and hopefully few prototypes,
6419 which can conflict with char malloc_set_state (); below. */
6420 #include <assert.h>
6421 /* Override any gcc2 internal prototype to avoid an error. */
6422 #ifdef __cplusplus
6423 extern "C"
6424 #endif
6425 /* We use char because int might match the return type of a gcc2
6426 builtin and then its argument prototype would still apply. */
6427 char malloc_set_state ();
6428 char (*f) ();
6429
6430 #ifdef F77_DUMMY_MAIN
6431 # ifdef __cplusplus
6432 extern "C"
6433 # endif
6434 int F77_DUMMY_MAIN() { return 1; }
6435 #endif
6436 int
6437 main ()
6438 {
6439 /* The GNU C library defines this for functions which it implements
6440 to always fail with ENOSYS. Some functions are actually named
6441 something starting with __ and the normal name is an alias. */
6442 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6443 choke me
6444 #else
6445 f = malloc_set_state;
6446 #endif
6447
6448 ;
6449 return 0;
6450 }
6451 _ACEOF
6452 rm -f conftest.$ac_objext conftest$ac_exeext
6453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6454 (eval $ac_link) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -s conftest$ac_exeext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_cv_func_malloc_set_state=yes
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 cat conftest.$ac_ext >&5
6468 ac_cv_func_malloc_set_state=no
6469 fi
6470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6471 fi
6472 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6473 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6474 if test $ac_cv_func_malloc_set_state = yes; then
6475 :
6476 else
6477 doug_lea_malloc=no
6478 fi
6479
6480 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6481 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6482 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 cat >conftest.$ac_ext <<_ACEOF
6486 #line $LINENO "configure"
6487 #include "confdefs.h"
6488 extern void (* __after_morecore_hook)();
6489 #ifdef F77_DUMMY_MAIN
6490 # ifdef __cplusplus
6491 extern "C"
6492 # endif
6493 int F77_DUMMY_MAIN() { return 1; }
6494 #endif
6495 int
6496 main ()
6497 {
6498 __after_morecore_hook = 0
6499 ;
6500 return 0;
6501 }
6502 _ACEOF
6503 rm -f conftest.$ac_objext conftest$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } &&
6509 { ac_try='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 emacs_cv_var___after_morecore_hook=yes
6516 else
6517 echo "$as_me: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6519 emacs_cv_var___after_morecore_hook=no
6520 fi
6521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6522 fi
6523 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6524 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6525 if test $emacs_cv_var___after_morecore_hook = no; then
6526 doug_lea_malloc=no
6527 fi
6528 if test "${system_malloc}" = "yes"; then
6529 GNU_MALLOC=no
6530 GNU_MALLOC_reason="
6531 (The GNU allocators don't work with this system configuration.)"
6532 fi
6533 if test "$doug_lea_malloc" = "yes" ; then
6534 if test "$GNU_MALLOC" = yes ; then
6535 GNU_MALLOC_reason="
6536 (Using Doug Lea's new malloc from the GNU C Library.)"
6537 fi
6538
6539 cat >>confdefs.h <<\_ACEOF
6540 #define DOUG_LEA_MALLOC 1
6541 _ACEOF
6542
6543 fi
6544
6545 if test x"${REL_ALLOC}" = x; then
6546 REL_ALLOC=${GNU_MALLOC}
6547 fi
6548
6549
6550
6551
6552 for ac_header in stdlib.h unistd.h
6553 do
6554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556 echo "$as_me:$LINENO: checking for $ac_header" >&5
6557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 fi
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6563 else
6564 # Is the header compilable?
6565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6567 cat >conftest.$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6569 #include "confdefs.h"
6570 $ac_includes_default
6571 #include <$ac_header>
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575 (eval $ac_compile) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -s conftest.$ac_objext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 ac_header_compiler=yes
6586 else
6587 echo "$as_me: failed program was:" >&5
6588 cat conftest.$ac_ext >&5
6589 ac_header_compiler=no
6590 fi
6591 rm -f conftest.$ac_objext conftest.$ac_ext
6592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6593 echo "${ECHO_T}$ac_header_compiler" >&6
6594
6595 # Is the header present?
6596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6598 cat >conftest.$ac_ext <<_ACEOF
6599 #line $LINENO "configure"
6600 #include "confdefs.h"
6601 #include <$ac_header>
6602 _ACEOF
6603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6605 ac_status=$?
6606 egrep -v '^ *\+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } >/dev/null; then
6611 if test -s conftest.err; then
6612 ac_cpp_err=$ac_c_preproc_warn_flag
6613 else
6614 ac_cpp_err=
6615 fi
6616 else
6617 ac_cpp_err=yes
6618 fi
6619 if test -z "$ac_cpp_err"; then
6620 ac_header_preproc=yes
6621 else
6622 echo "$as_me: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6624 ac_header_preproc=no
6625 fi
6626 rm -f conftest.err conftest.$ac_ext
6627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6628 echo "${ECHO_T}$ac_header_preproc" >&6
6629
6630 # So? What about this header?
6631 case $ac_header_compiler:$ac_header_preproc in
6632 yes:no )
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6637 no:yes )
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6644 esac
6645 echo "$as_me:$LINENO: checking for $ac_header" >&5
6646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 eval "$as_ac_Header=$ac_header_preproc"
6651 fi
6652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6654
6655 fi
6656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6657 cat >>confdefs.h <<_ACEOF
6658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6659 _ACEOF
6660
6661 fi
6662
6663 done
6664
6665
6666 for ac_func in getpagesize
6667 do
6668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6669 echo "$as_me:$LINENO: checking for $ac_func" >&5
6670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6671 if eval "test \"\${$as_ac_var+set}\" = set"; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 cat >conftest.$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6676 #include "confdefs.h"
6677 /* System header to define __stub macros and hopefully few prototypes,
6678 which can conflict with char $ac_func (); below. */
6679 #include <assert.h>
6680 /* Override any gcc2 internal prototype to avoid an error. */
6681 #ifdef __cplusplus
6682 extern "C"
6683 #endif
6684 /* We use char because int might match the return type of a gcc2
6685 builtin and then its argument prototype would still apply. */
6686 char $ac_func ();
6687 char (*f) ();
6688
6689 #ifdef F77_DUMMY_MAIN
6690 # ifdef __cplusplus
6691 extern "C"
6692 # endif
6693 int F77_DUMMY_MAIN() { return 1; }
6694 #endif
6695 int
6696 main ()
6697 {
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6702 choke me
6703 #else
6704 f = $ac_func;
6705 #endif
6706
6707 ;
6708 return 0;
6709 }
6710 _ACEOF
6711 rm -f conftest.$ac_objext conftest$ac_exeext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713 (eval $ac_link) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -s conftest$ac_exeext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 eval "$as_ac_var=yes"
6724 else
6725 echo "$as_me: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6727 eval "$as_ac_var=no"
6728 fi
6729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6730 fi
6731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6733 if test `eval echo '${'$as_ac_var'}'` = yes; then
6734 cat >>confdefs.h <<_ACEOF
6735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6736 _ACEOF
6737
6738 fi
6739 done
6740
6741 echo "$as_me:$LINENO: checking for working mmap" >&5
6742 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6743 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746 if test "$cross_compiling" = yes; then
6747 ac_cv_func_mmap_fixed_mapped=no
6748 else
6749 cat >conftest.$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6751 #include "confdefs.h"
6752 $ac_includes_default
6753 /* malloc might have been renamed as rpl_malloc. */
6754 #undef malloc
6755
6756 /* Thanks to Mike Haertel and Jim Avera for this test.
6757 Here is a matrix of mmap possibilities:
6758 mmap private not fixed
6759 mmap private fixed at somewhere currently unmapped
6760 mmap private fixed at somewhere already mapped
6761 mmap shared not fixed
6762 mmap shared fixed at somewhere currently unmapped
6763 mmap shared fixed at somewhere already mapped
6764 For private mappings, we should verify that changes cannot be read()
6765 back from the file, nor mmap's back from the file at a different
6766 address. (There have been systems where private was not correctly
6767 implemented like the infamous i386 svr4.0, and systems where the
6768 VM page cache was not coherent with the file system buffer cache
6769 like early versions of FreeBSD and possibly contemporary NetBSD.)
6770 For shared mappings, we should conversely verify that changes get
6771 propagated back to all the places they're supposed to be.
6772
6773 Grep wants private fixed already mapped.
6774 The main things grep needs to know about mmap are:
6775 * does it exist and is it safe to write into the mmap'd area
6776 * how to use it (BSD variants) */
6777
6778 #include <fcntl.h>
6779 #include <sys/mman.h>
6780
6781 #if !STDC_HEADERS && !HAVE_STDLIB_H
6782 char *malloc ();
6783 #endif
6784
6785 /* This mess was copied from the GNU getpagesize.h. */
6786 #if !HAVE_GETPAGESIZE
6787 /* Assume that all systems that can run configure have sys/param.h. */
6788 # if !HAVE_SYS_PARAM_H
6789 # define HAVE_SYS_PARAM_H 1
6790 # endif
6791
6792 # ifdef _SC_PAGESIZE
6793 # define getpagesize() sysconf(_SC_PAGESIZE)
6794 # else /* no _SC_PAGESIZE */
6795 # if HAVE_SYS_PARAM_H
6796 # include <sys/param.h>
6797 # ifdef EXEC_PAGESIZE
6798 # define getpagesize() EXEC_PAGESIZE
6799 # else /* no EXEC_PAGESIZE */
6800 # ifdef NBPG
6801 # define getpagesize() NBPG * CLSIZE
6802 # ifndef CLSIZE
6803 # define CLSIZE 1
6804 # endif /* no CLSIZE */
6805 # else /* no NBPG */
6806 # ifdef NBPC
6807 # define getpagesize() NBPC
6808 # else /* no NBPC */
6809 # ifdef PAGESIZE
6810 # define getpagesize() PAGESIZE
6811 # endif /* PAGESIZE */
6812 # endif /* no NBPC */
6813 # endif /* no NBPG */
6814 # endif /* no EXEC_PAGESIZE */
6815 # else /* no HAVE_SYS_PARAM_H */
6816 # define getpagesize() 8192 /* punt totally */
6817 # endif /* no HAVE_SYS_PARAM_H */
6818 # endif /* no _SC_PAGESIZE */
6819
6820 #endif /* no HAVE_GETPAGESIZE */
6821
6822 int
6823 main ()
6824 {
6825 char *data, *data2, *data3;
6826 int i, pagesize;
6827 int fd;
6828
6829 pagesize = getpagesize ();
6830
6831 /* First, make a file with some known garbage in it. */
6832 data = (char *) malloc (pagesize);
6833 if (!data)
6834 exit (1);
6835 for (i = 0; i < pagesize; ++i)
6836 *(data + i) = rand ();
6837 umask (0);
6838 fd = creat ("conftest.mmap", 0600);
6839 if (fd < 0)
6840 exit (1);
6841 if (write (fd, data, pagesize) != pagesize)
6842 exit (1);
6843 close (fd);
6844
6845 /* Next, try to mmap the file at a fixed address which already has
6846 something else allocated at it. If we can, also make sure that
6847 we see the same garbage. */
6848 fd = open ("conftest.mmap", O_RDWR);
6849 if (fd < 0)
6850 exit (1);
6851 data2 = (char *) malloc (2 * pagesize);
6852 if (!data2)
6853 exit (1);
6854 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6855 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6856 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6857 exit (1);
6858 for (i = 0; i < pagesize; ++i)
6859 if (*(data + i) != *(data2 + i))
6860 exit (1);
6861
6862 /* Finally, make sure that changes to the mapped area do not
6863 percolate back to the file as seen by read(). (This is a bug on
6864 some variants of i386 svr4.0.) */
6865 for (i = 0; i < pagesize; ++i)
6866 *(data2 + i) = *(data2 + i) + 1;
6867 data3 = (char *) malloc (pagesize);
6868 if (!data3)
6869 exit (1);
6870 if (read (fd, data3, pagesize) != pagesize)
6871 exit (1);
6872 for (i = 0; i < pagesize; ++i)
6873 if (*(data + i) != *(data3 + i))
6874 exit (1);
6875 close (fd);
6876 exit (0);
6877 }
6878 _ACEOF
6879 rm -f conftest$ac_exeext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6881 (eval $ac_link) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 (eval $ac_try) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
6890 ac_cv_func_mmap_fixed_mapped=yes
6891 else
6892 echo "$as_me: program exited with status $ac_status" >&5
6893 echo "$as_me: failed program was:" >&5
6894 cat conftest.$ac_ext >&5
6895 ( exit $ac_status )
6896 ac_cv_func_mmap_fixed_mapped=no
6897 fi
6898 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6899 fi
6900 fi
6901 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6902 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6903 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6904
6905 cat >>confdefs.h <<\_ACEOF
6906 #define HAVE_MMAP 1
6907 _ACEOF
6908
6909 fi
6910 rm -f conftest.mmap
6911
6912 if test $use_mmap_for_buffers = yes; then
6913 REL_ALLOC=no
6914 fi
6915
6916 LIBS="$libsrc_libs $LIBS"
6917
6918
6919 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6920 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6921 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 ac_check_lib_save_LIBS=$LIBS
6925 LIBS="-ldnet $LIBS"
6926 cat >conftest.$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6928 #include "confdefs.h"
6929
6930 /* Override any gcc2 internal prototype to avoid an error. */
6931 #ifdef __cplusplus
6932 extern "C"
6933 #endif
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6936 char dnet_ntoa ();
6937 #ifdef F77_DUMMY_MAIN
6938 # ifdef __cplusplus
6939 extern "C"
6940 # endif
6941 int F77_DUMMY_MAIN() { return 1; }
6942 #endif
6943 int
6944 main ()
6945 {
6946 dnet_ntoa ();
6947 ;
6948 return 0;
6949 }
6950 _ACEOF
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953 (eval $ac_link) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6963 ac_cv_lib_dnet_dnet_ntoa=yes
6964 else
6965 echo "$as_me: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6967 ac_cv_lib_dnet_dnet_ntoa=no
6968 fi
6969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6970 LIBS=$ac_check_lib_save_LIBS
6971 fi
6972 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6973 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6974 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6975 cat >>confdefs.h <<_ACEOF
6976 #define HAVE_LIBDNET 1
6977 _ACEOF
6978
6979 LIBS="-ldnet $LIBS"
6980
6981 fi
6982
6983
6984 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
6985 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6986 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 ac_check_lib_save_LIBS=$LIBS
6990 LIBS="-lXbsd $LIBS"
6991 cat >conftest.$ac_ext <<_ACEOF
6992 #line $LINENO "configure"
6993 #include "confdefs.h"
6994
6995
6996 #ifdef F77_DUMMY_MAIN
6997 # ifdef __cplusplus
6998 extern "C"
6999 # endif
7000 int F77_DUMMY_MAIN() { return 1; }
7001 #endif
7002 int
7003 main ()
7004 {
7005 main ();
7006 ;
7007 return 0;
7008 }
7009 _ACEOF
7010 rm -f conftest.$ac_objext conftest$ac_exeext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012 (eval $ac_link) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -s conftest$ac_exeext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_cv_lib_Xbsd_main=yes
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 cat conftest.$ac_ext >&5
7026 ac_cv_lib_Xbsd_main=no
7027 fi
7028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7029 LIBS=$ac_check_lib_save_LIBS
7030 fi
7031 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7032 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7033 if test $ac_cv_lib_Xbsd_main = yes; then
7034 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7035 fi
7036
7037
7038
7039 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7040 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7041 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 ac_check_lib_save_LIBS=$LIBS
7045 LIBS="-lpthreads $LIBS"
7046 cat >conftest.$ac_ext <<_ACEOF
7047 #line $LINENO "configure"
7048 #include "confdefs.h"
7049
7050 /* Override any gcc2 internal prototype to avoid an error. */
7051 #ifdef __cplusplus
7052 extern "C"
7053 #endif
7054 /* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7056 char cma_open ();
7057 #ifdef F77_DUMMY_MAIN
7058 # ifdef __cplusplus
7059 extern "C"
7060 # endif
7061 int F77_DUMMY_MAIN() { return 1; }
7062 #endif
7063 int
7064 main ()
7065 {
7066 cma_open ();
7067 ;
7068 return 0;
7069 }
7070 _ACEOF
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073 (eval $ac_link) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try='test -s conftest$ac_exeext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 (eval $ac_try) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_lib_pthreads_cma_open=yes
7084 else
7085 echo "$as_me: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7087 ac_cv_lib_pthreads_cma_open=no
7088 fi
7089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7090 LIBS=$ac_check_lib_save_LIBS
7091 fi
7092 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7093 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7094 if test $ac_cv_lib_pthreads_cma_open = yes; then
7095 cat >>confdefs.h <<_ACEOF
7096 #define HAVE_LIBPTHREADS 1
7097 _ACEOF
7098
7099 LIBS="-lpthreads $LIBS"
7100
7101 fi
7102
7103
7104 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7105 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7106 if test -d /usr/X386/include; then
7107 HAVE_XFREE386=yes
7108 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7109 else
7110 HAVE_XFREE386=no
7111 fi
7112 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7113 echo "${ECHO_T}$HAVE_XFREE386" >&6
7114
7115 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
7116 # for the tests that follow. We set it back to REAL_CFLAGS later on.
7117
7118 REAL_CPPFLAGS="$CPPFLAGS"
7119
7120 if test "${HAVE_X11}" = "yes"; then
7121 DEFS="$C_SWITCH_X_SITE $DEFS"
7122 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7123 LIBS="$LIBX $LIBS"
7124 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7125 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7126
7127 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7128 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7129 # but it's more convenient here to set LD_RUN_PATH
7130 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7131 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7132 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7133 export LD_RUN_PATH
7134 fi
7135
7136 if test "${opsys}" = "gnu-linux"; then
7137 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7138 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7139 cat >conftest.$ac_ext <<_ACEOF
7140 #line $LINENO "configure"
7141 #include "confdefs.h"
7142
7143 #ifdef F77_DUMMY_MAIN
7144 # ifdef __cplusplus
7145 extern "C"
7146 # endif
7147 int F77_DUMMY_MAIN() { return 1; }
7148 #endif
7149 int
7150 main ()
7151 {
7152 XOpenDisplay ("foo");
7153 ;
7154 return 0;
7155 }
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -s conftest$ac_exeext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 xlinux_first_failure=no
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7173 xlinux_first_failure=yes
7174 fi
7175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7176 if test "${xlinux_first_failure}" = "yes"; then
7177 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7178 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7179 OLD_CPPFLAGS="$CPPFLAGS"
7180 OLD_LIBS="$LIBS"
7181 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7182 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7183 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7184 LIBS="$LIBS -b i486-linuxaout"
7185 cat >conftest.$ac_ext <<_ACEOF
7186 #line $LINENO "configure"
7187 #include "confdefs.h"
7188
7189 #ifdef F77_DUMMY_MAIN
7190 # ifdef __cplusplus
7191 extern "C"
7192 # endif
7193 int F77_DUMMY_MAIN() { return 1; }
7194 #endif
7195 int
7196 main ()
7197 {
7198 XOpenDisplay ("foo");
7199 ;
7200 return 0;
7201 }
7202 _ACEOF
7203 rm -f conftest.$ac_objext conftest$ac_exeext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7205 (eval $ac_link) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try='test -s conftest$ac_exeext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 (eval $ac_try) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 xlinux_second_failure=no
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 cat conftest.$ac_ext >&5
7219 xlinux_second_failure=yes
7220 fi
7221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7222 if test "${xlinux_second_failure}" = "yes"; then
7223 # If we get the same failure with -b, there is no use adding -b.
7224 # So take it out. This plays safe.
7225 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7226 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7227 CPPFLAGS="$OLD_CPPFLAGS"
7228 LIBS="$OLD_LIBS"
7229 echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6
7231 else
7232 echo "$as_me:$LINENO: result: yes" >&5
7233 echo "${ECHO_T}yes" >&6
7234 fi
7235 else
7236 echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6
7238 fi
7239 fi
7240
7241 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7242 # header files included from there.
7243 echo "$as_me:$LINENO: checking for Xkb" >&5
7244 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7245 cat >conftest.$ac_ext <<_ACEOF
7246 #line $LINENO "configure"
7247 #include "confdefs.h"
7248 #include <X11/Xlib.h>
7249 #include <X11/XKBlib.h>
7250 #ifdef F77_DUMMY_MAIN
7251 # ifdef __cplusplus
7252 extern "C"
7253 # endif
7254 int F77_DUMMY_MAIN() { return 1; }
7255 #endif
7256 int
7257 main ()
7258 {
7259 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7260 ;
7261 return 0;
7262 }
7263 _ACEOF
7264 rm -f conftest.$ac_objext conftest$ac_exeext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7266 (eval $ac_link) 2>&5
7267 ac_status=$?
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try='test -s conftest$ac_exeext'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 (eval $ac_try) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; }; then
7276 emacs_xkb=yes
7277 else
7278 echo "$as_me: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7280 emacs_xkb=no
7281 fi
7282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7283 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7284 echo "${ECHO_T}$emacs_xkb" >&6
7285 if test $emacs_xkb = yes; then
7286
7287 cat >>confdefs.h <<\_ACEOF
7288 #define HAVE_XKBGETKEYBOARD 1
7289 _ACEOF
7290
7291 fi
7292
7293
7294
7295
7296
7297 for ac_func in XrmSetDatabase XScreenResourceString \
7298 XScreenNumberOfScreen XSetWMProtocols
7299 do
7300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7301 echo "$as_me:$LINENO: checking for $ac_func" >&5
7302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7303 if eval "test \"\${$as_ac_var+set}\" = set"; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 cat >conftest.$ac_ext <<_ACEOF
7307 #line $LINENO "configure"
7308 #include "confdefs.h"
7309 /* System header to define __stub macros and hopefully few prototypes,
7310 which can conflict with char $ac_func (); below. */
7311 #include <assert.h>
7312 /* Override any gcc2 internal prototype to avoid an error. */
7313 #ifdef __cplusplus
7314 extern "C"
7315 #endif
7316 /* We use char because int might match the return type of a gcc2
7317 builtin and then its argument prototype would still apply. */
7318 char $ac_func ();
7319 char (*f) ();
7320
7321 #ifdef F77_DUMMY_MAIN
7322 # ifdef __cplusplus
7323 extern "C"
7324 # endif
7325 int F77_DUMMY_MAIN() { return 1; }
7326 #endif
7327 int
7328 main ()
7329 {
7330 /* The GNU C library defines this for functions which it implements
7331 to always fail with ENOSYS. Some functions are actually named
7332 something starting with __ and the normal name is an alias. */
7333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7334 choke me
7335 #else
7336 f = $ac_func;
7337 #endif
7338
7339 ;
7340 return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest.$ac_objext conftest$ac_exeext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try='test -s conftest$ac_exeext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 eval "$as_ac_var=yes"
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 cat conftest.$ac_ext >&5
7359 eval "$as_ac_var=no"
7360 fi
7361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7362 fi
7363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7365 if test `eval echo '${'$as_ac_var'}'` = yes; then
7366 cat >>confdefs.h <<_ACEOF
7367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7368 _ACEOF
7369
7370 fi
7371 done
7372
7373 fi
7374
7375 if test "${window_system}" = "x11"; then
7376 echo "$as_me:$LINENO: checking X11 version 6" >&5
7377 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7378 if test "${emacs_cv_x11_version_6+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line $LINENO "configure"
7383 #include "confdefs.h"
7384 #include <X11/Xlib.h>
7385 #ifdef F77_DUMMY_MAIN
7386 # ifdef __cplusplus
7387 extern "C"
7388 # endif
7389 int F77_DUMMY_MAIN() { return 1; }
7390 #endif
7391 int
7392 main ()
7393 {
7394 #if XlibSpecificationRelease < 6
7395 fail;
7396 #endif
7397
7398 ;
7399 return 0;
7400 }
7401 _ACEOF
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404 (eval $ac_link) 2>&5
7405 ac_status=$?
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try='test -s conftest$ac_exeext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 (eval $ac_try) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7414 emacs_cv_x11_version_6=yes
7415 else
7416 echo "$as_me: failed program was:" >&5
7417 cat conftest.$ac_ext >&5
7418 emacs_cv_x11_version_6=no
7419 fi
7420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7421 fi
7422
7423 if test $emacs_cv_x11_version_6 = yes; then
7424 echo "$as_me:$LINENO: result: 6 or newer" >&5
7425 echo "${ECHO_T}6 or newer" >&6
7426
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_X11R6 1
7429 _ACEOF
7430
7431 else
7432 echo "$as_me:$LINENO: result: before 6" >&5
7433 echo "${ECHO_T}before 6" >&6
7434 fi
7435 fi
7436
7437 if test "${window_system}" = "x11"; then
7438 echo "$as_me:$LINENO: checking X11 version 5" >&5
7439 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7440 if test "${emacs_cv_x11_version_5+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443 cat >conftest.$ac_ext <<_ACEOF
7444 #line $LINENO "configure"
7445 #include "confdefs.h"
7446 #include <X11/Xlib.h>
7447 #ifdef F77_DUMMY_MAIN
7448 # ifdef __cplusplus
7449 extern "C"
7450 # endif
7451 int F77_DUMMY_MAIN() { return 1; }
7452 #endif
7453 int
7454 main ()
7455 {
7456 #if XlibSpecificationRelease < 5
7457 fail;
7458 #endif
7459
7460 ;
7461 return 0;
7462 }
7463 _ACEOF
7464 rm -f conftest.$ac_objext conftest$ac_exeext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7466 (eval $ac_link) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -s conftest$ac_exeext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 emacs_cv_x11_version_5=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7480 emacs_cv_x11_version_5=no
7481 fi
7482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7483 fi
7484
7485 if test $emacs_cv_x11_version_5 = yes; then
7486 echo "$as_me:$LINENO: result: 5 or newer" >&5
7487 echo "${ECHO_T}5 or newer" >&6
7488 HAVE_X11R5=yes
7489
7490 cat >>confdefs.h <<\_ACEOF
7491 #define HAVE_X11R5 1
7492 _ACEOF
7493
7494 else
7495 HAVE_X11R5=no
7496 echo "$as_me:$LINENO: result: before 5" >&5
7497 echo "${ECHO_T}before 5" >&6
7498 fi
7499 fi
7500
7501 if test x"${USE_X_TOOLKIT}" = xmaybe; then
7502 if test x"${HAVE_X11R5}" = xyes; then
7503 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7504 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7505 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508 cat >conftest.$ac_ext <<_ACEOF
7509 #line $LINENO "configure"
7510 #include "confdefs.h"
7511
7512 #include <X11/Intrinsic.h>
7513 #include <X11/Xaw/Simple.h>
7514 #ifdef F77_DUMMY_MAIN
7515 # ifdef __cplusplus
7516 extern "C"
7517 # endif
7518 int F77_DUMMY_MAIN() { return 1; }
7519 #endif
7520 int
7521 main ()
7522 {
7523
7524 ;
7525 return 0;
7526 }
7527 _ACEOF
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530 (eval $ac_link) 2>&5
7531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try='test -s conftest$ac_exeext'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 (eval $ac_try) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; }; then
7540 emacs_cv_x11_version_5_with_xaw=yes
7541 else
7542 echo "$as_me: failed program was:" >&5
7543 cat conftest.$ac_ext >&5
7544 emacs_cv_x11_version_5_with_xaw=no
7545 fi
7546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7547 fi
7548
7549 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7550 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7551 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7552 USE_X_TOOLKIT=LUCID
7553 else
7554 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7555 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7556 USE_X_TOOLKIT=none
7557 fi
7558 else
7559 USE_X_TOOLKIT=none
7560 fi
7561 fi
7562
7563 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
7564
7565 if test "${USE_X_TOOLKIT}" != "none"; then
7566 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7567 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7568 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571 cat >conftest.$ac_ext <<_ACEOF
7572 #line $LINENO "configure"
7573 #include "confdefs.h"
7574 #include <X11/Intrinsic.h>
7575 #ifdef F77_DUMMY_MAIN
7576 # ifdef __cplusplus
7577 extern "C"
7578 # endif
7579 int F77_DUMMY_MAIN() { return 1; }
7580 #endif
7581 int
7582 main ()
7583 {
7584 #if XtSpecificationRelease < 6
7585 fail;
7586 #endif
7587
7588 ;
7589 return 0;
7590 }
7591 _ACEOF
7592 rm -f conftest.$ac_objext conftest$ac_exeext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7594 (eval $ac_link) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -s conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 emacs_cv_x11_toolkit_version_6=yes
7605 else
7606 echo "$as_me: failed program was:" >&5
7607 cat conftest.$ac_ext >&5
7608 emacs_cv_x11_toolkit_version_6=no
7609 fi
7610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7611 fi
7612
7613 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
7614 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7615 echo "$as_me:$LINENO: result: 6 or newer" >&5
7616 echo "${ECHO_T}6 or newer" >&6
7617
7618 cat >>confdefs.h <<\_ACEOF
7619 #define HAVE_X11XTR6 1
7620 _ACEOF
7621
7622 else
7623 echo "$as_me:$LINENO: result: before 6" >&5
7624 echo "${ECHO_T}before 6" >&6
7625 fi
7626
7627 OLDLIBS="$LIBS"
7628 if test x$HAVE_X11XTR6 = xyes; then
7629 LIBS="-lXt -lSM -lICE $LIBS"
7630 else
7631 LIBS="-lXt $LIBS"
7632 fi
7633
7634 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7635 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7636 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639 ac_check_lib_save_LIBS=$LIBS
7640 LIBS="-lXmu $LIBS"
7641 cat >conftest.$ac_ext <<_ACEOF
7642 #line $LINENO "configure"
7643 #include "confdefs.h"
7644
7645 /* Override any gcc2 internal prototype to avoid an error. */
7646 #ifdef __cplusplus
7647 extern "C"
7648 #endif
7649 /* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7651 char XmuConvertStandardSelection ();
7652 #ifdef F77_DUMMY_MAIN
7653 # ifdef __cplusplus
7654 extern "C"
7655 # endif
7656 int F77_DUMMY_MAIN() { return 1; }
7657 #endif
7658 int
7659 main ()
7660 {
7661 XmuConvertStandardSelection ();
7662 ;
7663 return 0;
7664 }
7665 _ACEOF
7666 rm -f conftest.$ac_objext conftest$ac_exeext
7667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7668 (eval $ac_link) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } &&
7672 { ac_try='test -s conftest$ac_exeext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 (eval $ac_try) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
7679 else
7680 echo "$as_me: failed program was:" >&5
7681 cat conftest.$ac_ext >&5
7682 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
7683 fi
7684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7685 LIBS=$ac_check_lib_save_LIBS
7686 fi
7687 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7688 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7689 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7690 cat >>confdefs.h <<_ACEOF
7691 #define HAVE_LIBXMU 1
7692 _ACEOF
7693
7694 LIBS="-lXmu $LIBS"
7695
7696 fi
7697
7698 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
7699 fi
7700
7701 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7702 if test "${HAVE_X11}" = "yes"; then
7703 if test "${USE_X_TOOLKIT}" != "none"; then
7704
7705 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7706 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7707 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710 ac_check_lib_save_LIBS=$LIBS
7711 LIBS="-lXext $LIBS"
7712 cat >conftest.$ac_ext <<_ACEOF
7713 #line $LINENO "configure"
7714 #include "confdefs.h"
7715
7716 /* Override any gcc2 internal prototype to avoid an error. */
7717 #ifdef __cplusplus
7718 extern "C"
7719 #endif
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722 char XShapeQueryExtension ();
7723 #ifdef F77_DUMMY_MAIN
7724 # ifdef __cplusplus
7725 extern "C"
7726 # endif
7727 int F77_DUMMY_MAIN() { return 1; }
7728 #endif
7729 int
7730 main ()
7731 {
7732 XShapeQueryExtension ();
7733 ;
7734 return 0;
7735 }
7736 _ACEOF
7737 rm -f conftest.$ac_objext conftest$ac_exeext
7738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7739 (eval $ac_link) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try='test -s conftest$ac_exeext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 (eval $ac_try) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 ac_cv_lib_Xext_XShapeQueryExtension=yes
7750 else
7751 echo "$as_me: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7753 ac_cv_lib_Xext_XShapeQueryExtension=no
7754 fi
7755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7756 LIBS=$ac_check_lib_save_LIBS
7757 fi
7758 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7759 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7760 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7761 cat >>confdefs.h <<_ACEOF
7762 #define HAVE_LIBXEXT 1
7763 _ACEOF
7764
7765 LIBS="-lXext $LIBS"
7766
7767 fi
7768
7769 fi
7770 fi
7771
7772 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7773 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
7774 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
7775 if test "${emacs_cv_motif_version_2_1+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 else
7778 cat >conftest.$ac_ext <<_ACEOF
7779 #line $LINENO "configure"
7780 #include "confdefs.h"
7781 #include <Xm/Xm.h>
7782 #ifdef F77_DUMMY_MAIN
7783 # ifdef __cplusplus
7784 extern "C"
7785 # endif
7786 int F77_DUMMY_MAIN() { return 1; }
7787 #endif
7788 int
7789 main ()
7790 {
7791 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
7792 int x = 5;
7793 #else
7794 Motif version prior to 2.1.
7795 #endif
7796 ;
7797 return 0;
7798 }
7799 _ACEOF
7800 rm -f conftest.$ac_objext
7801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7802 (eval $ac_compile) 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } &&
7806 { ac_try='test -s conftest.$ac_objext'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808 (eval $ac_try) 2>&5
7809 ac_status=$?
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; }; then
7812 emacs_cv_motif_version_2_1=yes
7813 else
7814 echo "$as_me: failed program was:" >&5
7815 cat conftest.$ac_ext >&5
7816 emacs_cv_motif_version_2_1=no
7817 fi
7818 rm -f conftest.$ac_objext conftest.$ac_ext
7819 fi
7820 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
7821 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
7822 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
7823 if test $emacs_cv_motif_version_2_1 = yes; then
7824 HAVE_LIBXP=no
7825
7826 cat >>confdefs.h <<\_ACEOF
7827 #define HAVE_MOTIF_2_1 1
7828 _ACEOF
7829
7830 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
7831 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
7832 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835 ac_check_lib_save_LIBS=$LIBS
7836 LIBS="-lXp $LIBS"
7837 cat >conftest.$ac_ext <<_ACEOF
7838 #line $LINENO "configure"
7839 #include "confdefs.h"
7840
7841 /* Override any gcc2 internal prototype to avoid an error. */
7842 #ifdef __cplusplus
7843 extern "C"
7844 #endif
7845 /* We use char because int might match the return type of a gcc2
7846 builtin and then its argument prototype would still apply. */
7847 char XpCreateContext ();
7848 #ifdef F77_DUMMY_MAIN
7849 # ifdef __cplusplus
7850 extern "C"
7851 # endif
7852 int F77_DUMMY_MAIN() { return 1; }
7853 #endif
7854 int
7855 main ()
7856 {
7857 XpCreateContext ();
7858 ;
7859 return 0;
7860 }
7861 _ACEOF
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864 (eval $ac_link) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -s conftest$ac_exeext'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 (eval $ac_try) 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7874 ac_cv_lib_Xp_XpCreateContext=yes
7875 else
7876 echo "$as_me: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7878 ac_cv_lib_Xp_XpCreateContext=no
7879 fi
7880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7881 LIBS=$ac_check_lib_save_LIBS
7882 fi
7883 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
7884 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
7885 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
7886 HAVE_LIBXP=yes
7887 fi
7888
7889 if test ${HAVE_LIBXP} = yes; then
7890
7891 cat >>confdefs.h <<\_ACEOF
7892 #define HAVE_LIBXP 1
7893 _ACEOF
7894
7895 fi
7896 fi
7897 fi
7898
7899 ### Is -lXaw3d available?
7900 HAVE_XAW3D=no
7901 if test "${HAVE_X11}" = "yes"; then
7902 if test "${USE_X_TOOLKIT}" != "none"; then
7903 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7904 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7905 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7906 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 fi
7909 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7910 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7911 else
7912 # Is the header compilable?
7913 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
7914 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
7915 cat >conftest.$ac_ext <<_ACEOF
7916 #line $LINENO "configure"
7917 #include "confdefs.h"
7918 $ac_includes_default
7919 #include <X11/Xaw3d/Scrollbar.h>
7920 _ACEOF
7921 rm -f conftest.$ac_objext
7922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7923 (eval $ac_compile) 2>&5
7924 ac_status=$?
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -s conftest.$ac_objext'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 ac_header_compiler=yes
7934 else
7935 echo "$as_me: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7937 ac_header_compiler=no
7938 fi
7939 rm -f conftest.$ac_objext conftest.$ac_ext
7940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7941 echo "${ECHO_T}$ac_header_compiler" >&6
7942
7943 # Is the header present?
7944 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
7945 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
7946 cat >conftest.$ac_ext <<_ACEOF
7947 #line $LINENO "configure"
7948 #include "confdefs.h"
7949 #include <X11/Xaw3d/Scrollbar.h>
7950 _ACEOF
7951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7953 ac_status=$?
7954 egrep -v '^ *\+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } >/dev/null; then
7959 if test -s conftest.err; then
7960 ac_cpp_err=$ac_c_preproc_warn_flag
7961 else
7962 ac_cpp_err=
7963 fi
7964 else
7965 ac_cpp_err=yes
7966 fi
7967 if test -z "$ac_cpp_err"; then
7968 ac_header_preproc=yes
7969 else
7970 echo "$as_me: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7972 ac_header_preproc=no
7973 fi
7974 rm -f conftest.err conftest.$ac_ext
7975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7976 echo "${ECHO_T}$ac_header_preproc" >&6
7977
7978 # So? What about this header?
7979 case $ac_header_compiler:$ac_header_preproc in
7980 yes:no )
7981 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
7982 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7984 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7985 no:yes )
7986 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
7987 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
7989 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
7990 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7991 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7992 esac
7993 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7994 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7995 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 else
7998 ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
7999 fi
8000 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8001 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8002
8003 fi
8004 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8005 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8006 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8007 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010 ac_check_lib_save_LIBS=$LIBS
8011 LIBS="-lXaw3d $LIBS"
8012 cat >conftest.$ac_ext <<_ACEOF
8013 #line $LINENO "configure"
8014 #include "confdefs.h"
8015
8016 /* Override any gcc2 internal prototype to avoid an error. */
8017 #ifdef __cplusplus
8018 extern "C"
8019 #endif
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022 char XawScrollbarSetThumb ();
8023 #ifdef F77_DUMMY_MAIN
8024 # ifdef __cplusplus
8025 extern "C"
8026 # endif
8027 int F77_DUMMY_MAIN() { return 1; }
8028 #endif
8029 int
8030 main ()
8031 {
8032 XawScrollbarSetThumb ();
8033 ;
8034 return 0;
8035 }
8036 _ACEOF
8037 rm -f conftest.$ac_objext conftest$ac_exeext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8039 (eval $ac_link) 2>&5
8040 ac_status=$?
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try='test -s conftest$ac_exeext'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 (eval $ac_try) 2>&5
8046 ac_status=$?
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8049 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8050 else
8051 echo "$as_me: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8053 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8054 fi
8055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8056 LIBS=$ac_check_lib_save_LIBS
8057 fi
8058 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8059 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8060 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8061 HAVE_XAW3D=yes
8062 fi
8063
8064 fi
8065
8066
8067 if test "${HAVE_XAW3D}" = "yes"; then
8068
8069 cat >>confdefs.h <<\_ACEOF
8070 #define HAVE_XAW3D 1
8071 _ACEOF
8072
8073 fi
8074 fi
8075 fi
8076
8077
8078
8079 USE_TOOLKIT_SCROLL_BARS=no
8080 if test "${with_toolkit_scroll_bars}" != "no"; then
8081 if test "${USE_X_TOOLKIT}" != "none"; then
8082 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8083 cat >>confdefs.h <<\_ACEOF
8084 #define USE_TOOLKIT_SCROLL_BARS 1
8085 _ACEOF
8086
8087 HAVE_XAW3D=no
8088 USE_TOOLKIT_SCROLL_BARS=yes
8089 elif test "${HAVE_XAW3D}" = "yes"; then
8090 cat >>confdefs.h <<\_ACEOF
8091 #define USE_TOOLKIT_SCROLL_BARS 1
8092 _ACEOF
8093
8094 USE_TOOLKIT_SCROLL_BARS=yes
8095 fi
8096 fi
8097 fi
8098
8099
8100 if test "${with_xim}" != "no"; then
8101
8102 cat >>confdefs.h <<\_ACEOF
8103 #define USE_XIM 1
8104 _ACEOF
8105
8106 fi
8107
8108 ### Use -lXpm if available, unless `--with-xpm=no'.
8109 HAVE_XPM=no
8110 if test "${HAVE_X11}" = "yes"; then
8111 if test "${with_xpm}" != "no"; then
8112 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8113 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8114 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8115 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 fi
8118 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8119 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8120 else
8121 # Is the header compilable?
8122 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8123 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8124 cat >conftest.$ac_ext <<_ACEOF
8125 #line $LINENO "configure"
8126 #include "confdefs.h"
8127 $ac_includes_default
8128 #include <X11/xpm.h>
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try='test -s conftest.$ac_objext'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 (eval $ac_try) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142 ac_header_compiler=yes
8143 else
8144 echo "$as_me: failed program was:" >&5
8145 cat conftest.$ac_ext >&5
8146 ac_header_compiler=no
8147 fi
8148 rm -f conftest.$ac_objext conftest.$ac_ext
8149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8150 echo "${ECHO_T}$ac_header_compiler" >&6
8151
8152 # Is the header present?
8153 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8154 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8155 cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 #include "confdefs.h"
8158 #include <X11/xpm.h>
8159 _ACEOF
8160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8162 ac_status=$?
8163 egrep -v '^ *\+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } >/dev/null; then
8168 if test -s conftest.err; then
8169 ac_cpp_err=$ac_c_preproc_warn_flag
8170 else
8171 ac_cpp_err=
8172 fi
8173 else
8174 ac_cpp_err=yes
8175 fi
8176 if test -z "$ac_cpp_err"; then
8177 ac_header_preproc=yes
8178 else
8179 echo "$as_me: failed program was:" >&5
8180 cat conftest.$ac_ext >&5
8181 ac_header_preproc=no
8182 fi
8183 rm -f conftest.err conftest.$ac_ext
8184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8185 echo "${ECHO_T}$ac_header_preproc" >&6
8186
8187 # So? What about this header?
8188 case $ac_header_compiler:$ac_header_preproc in
8189 yes:no )
8190 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8191 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8193 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8194 no:yes )
8195 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8196 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8198 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8200 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8201 esac
8202 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8203 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8204 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207 ac_cv_header_X11_xpm_h=$ac_header_preproc
8208 fi
8209 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8210 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8211
8212 fi
8213 if test $ac_cv_header_X11_xpm_h = yes; then
8214 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8215 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8216 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219 ac_check_lib_save_LIBS=$LIBS
8220 LIBS="-lXpm -lX11 $LIBS"
8221 cat >conftest.$ac_ext <<_ACEOF
8222 #line $LINENO "configure"
8223 #include "confdefs.h"
8224
8225 /* Override any gcc2 internal prototype to avoid an error. */
8226 #ifdef __cplusplus
8227 extern "C"
8228 #endif
8229 /* We use char because int might match the return type of a gcc2
8230 builtin and then its argument prototype would still apply. */
8231 char XpmReadFileToPixmap ();
8232 #ifdef F77_DUMMY_MAIN
8233 # ifdef __cplusplus
8234 extern "C"
8235 # endif
8236 int F77_DUMMY_MAIN() { return 1; }
8237 #endif
8238 int
8239 main ()
8240 {
8241 XpmReadFileToPixmap ();
8242 ;
8243 return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext conftest$ac_exeext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8248 (eval $ac_link) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -s conftest$ac_exeext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8259 else
8260 echo "$as_me: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8262 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8263 fi
8264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8265 LIBS=$ac_check_lib_save_LIBS
8266 fi
8267 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8268 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8269 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8270 HAVE_XPM=yes
8271 fi
8272
8273 fi
8274
8275
8276 if test "${HAVE_XPM}" = "yes"; then
8277 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8278 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8279 cat >conftest.$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8281 #include "confdefs.h"
8282 #include "X11/xpm.h"
8283 #ifndef XpmReturnAllocPixels
8284 no_return_alloc_pixels
8285 #endif
8286
8287 _ACEOF
8288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8289 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
8290 HAVE_XPM=no
8291 else
8292 HAVE_XPM=yes
8293 fi
8294 rm -f conftest*
8295
8296
8297 if test "${HAVE_XPM}" = "yes"; then
8298 echo "$as_me:$LINENO: result: yes" >&5
8299 echo "${ECHO_T}yes" >&6
8300 else
8301 echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6
8303 fi
8304 fi
8305 fi
8306
8307 if test "${HAVE_XPM}" = "yes"; then
8308
8309 cat >>confdefs.h <<\_ACEOF
8310 #define HAVE_XPM 1
8311 _ACEOF
8312
8313 fi
8314 fi
8315
8316 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8317 HAVE_JPEG=no
8318 if test "${HAVE_X11}" = "yes"; then
8319 if test "${with_jpeg}" != "no"; then
8320 if test "${ac_cv_header_jerror_h+set}" = set; then
8321 echo "$as_me:$LINENO: checking for jerror.h" >&5
8322 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8323 if test "${ac_cv_header_jerror_h+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 fi
8326 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8327 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8328 else
8329 # Is the header compilable?
8330 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8331 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8332 cat >conftest.$ac_ext <<_ACEOF
8333 #line $LINENO "configure"
8334 #include "confdefs.h"
8335 $ac_includes_default
8336 #include <jerror.h>
8337 _ACEOF
8338 rm -f conftest.$ac_objext
8339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8340 (eval $ac_compile) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try='test -s conftest.$ac_objext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_header_compiler=yes
8351 else
8352 echo "$as_me: failed program was:" >&5
8353 cat conftest.$ac_ext >&5
8354 ac_header_compiler=no
8355 fi
8356 rm -f conftest.$ac_objext conftest.$ac_ext
8357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8358 echo "${ECHO_T}$ac_header_compiler" >&6
8359
8360 # Is the header present?
8361 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8362 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8363 cat >conftest.$ac_ext <<_ACEOF
8364 #line $LINENO "configure"
8365 #include "confdefs.h"
8366 #include <jerror.h>
8367 _ACEOF
8368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8370 ac_status=$?
8371 egrep -v '^ *\+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } >/dev/null; then
8376 if test -s conftest.err; then
8377 ac_cpp_err=$ac_c_preproc_warn_flag
8378 else
8379 ac_cpp_err=
8380 fi
8381 else
8382 ac_cpp_err=yes
8383 fi
8384 if test -z "$ac_cpp_err"; then
8385 ac_header_preproc=yes
8386 else
8387 echo "$as_me: failed program was:" >&5
8388 cat conftest.$ac_ext >&5
8389 ac_header_preproc=no
8390 fi
8391 rm -f conftest.err conftest.$ac_ext
8392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8393 echo "${ECHO_T}$ac_header_preproc" >&6
8394
8395 # So? What about this header?
8396 case $ac_header_compiler:$ac_header_preproc in
8397 yes:no )
8398 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8399 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8400 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8401 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8402 no:yes )
8403 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8404 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8405 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8406 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8408 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8409 esac
8410 echo "$as_me:$LINENO: checking for jerror.h" >&5
8411 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8412 if test "${ac_cv_header_jerror_h+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415 ac_cv_header_jerror_h=$ac_header_preproc
8416 fi
8417 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8418 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8419
8420 fi
8421 if test $ac_cv_header_jerror_h = yes; then
8422 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8423 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8424 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427 ac_check_lib_save_LIBS=$LIBS
8428 LIBS="-ljpeg $LIBS"
8429 cat >conftest.$ac_ext <<_ACEOF
8430 #line $LINENO "configure"
8431 #include "confdefs.h"
8432
8433 /* Override any gcc2 internal prototype to avoid an error. */
8434 #ifdef __cplusplus
8435 extern "C"
8436 #endif
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8439 char jpeg_destroy_compress ();
8440 #ifdef F77_DUMMY_MAIN
8441 # ifdef __cplusplus
8442 extern "C"
8443 # endif
8444 int F77_DUMMY_MAIN() { return 1; }
8445 #endif
8446 int
8447 main ()
8448 {
8449 jpeg_destroy_compress ();
8450 ;
8451 return 0;
8452 }
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 (eval $ac_try) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
8467 else
8468 echo "$as_me: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8470 ac_cv_lib_jpeg_jpeg_destroy_compress=no
8471 fi
8472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8473 LIBS=$ac_check_lib_save_LIBS
8474 fi
8475 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8476 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8477 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8478 HAVE_JPEG=yes
8479 fi
8480
8481 fi
8482
8483
8484 fi
8485
8486
8487 if test "${HAVE_JPEG}" = "yes"; then
8488 cat >>confdefs.h <<\_ACEOF
8489 #define HAVE_JPEG 1
8490 _ACEOF
8491
8492 cat >conftest.$ac_ext <<_ACEOF
8493 #line $LINENO "configure"
8494 #include "confdefs.h"
8495 #include <jpeglib.h>
8496 version=JPEG_LIB_VERSION
8497
8498 _ACEOF
8499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8500 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
8501 cat >>confdefs.h <<\_ACEOF
8502 #define HAVE_JPEG 1
8503 _ACEOF
8504
8505 else
8506 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8507 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8508 HAVE_JPEG=no
8509 fi
8510 rm -f conftest*
8511
8512 fi
8513 fi
8514
8515 ### Use -lpng if available, unless `--with-png=no'.
8516 HAVE_PNG=no
8517 if test "${HAVE_X11}" = "yes"; then
8518 if test "${with_png}" != "no"; then
8519 if test "${ac_cv_header_png_h+set}" = set; then
8520 echo "$as_me:$LINENO: checking for png.h" >&5
8521 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8522 if test "${ac_cv_header_png_h+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 fi
8525 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8526 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8527 else
8528 # Is the header compilable?
8529 echo "$as_me:$LINENO: checking png.h usability" >&5
8530 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8531 cat >conftest.$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8533 #include "confdefs.h"
8534 $ac_includes_default
8535 #include <png.h>
8536 _ACEOF
8537 rm -f conftest.$ac_objext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8539 (eval $ac_compile) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_header_compiler=yes
8550 else
8551 echo "$as_me: failed program was:" >&5
8552 cat conftest.$ac_ext >&5
8553 ac_header_compiler=no
8554 fi
8555 rm -f conftest.$ac_objext conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8557 echo "${ECHO_T}$ac_header_compiler" >&6
8558
8559 # Is the header present?
8560 echo "$as_me:$LINENO: checking png.h presence" >&5
8561 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8563 #line $LINENO "configure"
8564 #include "confdefs.h"
8565 #include <png.h>
8566 _ACEOF
8567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8569 ac_status=$?
8570 egrep -v '^ *\+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } >/dev/null; then
8575 if test -s conftest.err; then
8576 ac_cpp_err=$ac_c_preproc_warn_flag
8577 else
8578 ac_cpp_err=
8579 fi
8580 else
8581 ac_cpp_err=yes
8582 fi
8583 if test -z "$ac_cpp_err"; then
8584 ac_header_preproc=yes
8585 else
8586 echo "$as_me: failed program was:" >&5
8587 cat conftest.$ac_ext >&5
8588 ac_header_preproc=no
8589 fi
8590 rm -f conftest.err conftest.$ac_ext
8591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8592 echo "${ECHO_T}$ac_header_preproc" >&6
8593
8594 # So? What about this header?
8595 case $ac_header_compiler:$ac_header_preproc in
8596 yes:no )
8597 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8598 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8600 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8601 no:yes )
8602 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8603 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8605 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8607 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8608 esac
8609 echo "$as_me:$LINENO: checking for png.h" >&5
8610 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8611 if test "${ac_cv_header_png_h+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614 ac_cv_header_png_h=$ac_header_preproc
8615 fi
8616 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8617 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8618
8619 fi
8620 if test $ac_cv_header_png_h = yes; then
8621 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8622 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8623 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626 ac_check_lib_save_LIBS=$LIBS
8627 LIBS="-lpng -lz -lm $LIBS"
8628 cat >conftest.$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8630 #include "confdefs.h"
8631
8632 /* Override any gcc2 internal prototype to avoid an error. */
8633 #ifdef __cplusplus
8634 extern "C"
8635 #endif
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char png_get_channels ();
8639 #ifdef F77_DUMMY_MAIN
8640 # ifdef __cplusplus
8641 extern "C"
8642 # endif
8643 int F77_DUMMY_MAIN() { return 1; }
8644 #endif
8645 int
8646 main ()
8647 {
8648 png_get_channels ();
8649 ;
8650 return 0;
8651 }
8652 _ACEOF
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_lib_png_png_get_channels=yes
8666 else
8667 echo "$as_me: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8669 ac_cv_lib_png_png_get_channels=no
8670 fi
8671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8672 LIBS=$ac_check_lib_save_LIBS
8673 fi
8674 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8675 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8676 if test $ac_cv_lib_png_png_get_channels = yes; then
8677 HAVE_PNG=yes
8678 fi
8679
8680 fi
8681
8682
8683 fi
8684
8685 if test "${HAVE_PNG}" = "yes"; then
8686
8687 cat >>confdefs.h <<\_ACEOF
8688 #define HAVE_PNG 1
8689 _ACEOF
8690
8691 fi
8692 fi
8693
8694 ### Use -ltiff if available, unless `--with-tiff=no'.
8695 HAVE_TIFF=no
8696 if test "${HAVE_X11}" = "yes"; then
8697 if test "${with_tiff}" != "no"; then
8698 if test "${ac_cv_header_tiffio_h+set}" = set; then
8699 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8700 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8701 if test "${ac_cv_header_tiffio_h+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 fi
8704 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8705 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8706 else
8707 # Is the header compilable?
8708 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8709 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8710 cat >conftest.$ac_ext <<_ACEOF
8711 #line $LINENO "configure"
8712 #include "confdefs.h"
8713 $ac_includes_default
8714 #include <tiffio.h>
8715 _ACEOF
8716 rm -f conftest.$ac_objext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8718 (eval $ac_compile) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try='test -s conftest.$ac_objext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 ac_header_compiler=yes
8729 else
8730 echo "$as_me: failed program was:" >&5
8731 cat conftest.$ac_ext >&5
8732 ac_header_compiler=no
8733 fi
8734 rm -f conftest.$ac_objext conftest.$ac_ext
8735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8736 echo "${ECHO_T}$ac_header_compiler" >&6
8737
8738 # Is the header present?
8739 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8740 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8741 cat >conftest.$ac_ext <<_ACEOF
8742 #line $LINENO "configure"
8743 #include "confdefs.h"
8744 #include <tiffio.h>
8745 _ACEOF
8746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8748 ac_status=$?
8749 egrep -v '^ *\+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } >/dev/null; then
8754 if test -s conftest.err; then
8755 ac_cpp_err=$ac_c_preproc_warn_flag
8756 else
8757 ac_cpp_err=
8758 fi
8759 else
8760 ac_cpp_err=yes
8761 fi
8762 if test -z "$ac_cpp_err"; then
8763 ac_header_preproc=yes
8764 else
8765 echo "$as_me: failed program was:" >&5
8766 cat conftest.$ac_ext >&5
8767 ac_header_preproc=no
8768 fi
8769 rm -f conftest.err conftest.$ac_ext
8770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8771 echo "${ECHO_T}$ac_header_preproc" >&6
8772
8773 # So? What about this header?
8774 case $ac_header_compiler:$ac_header_preproc in
8775 yes:no )
8776 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8777 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8779 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8780 no:yes )
8781 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8782 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8784 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8786 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8787 esac
8788 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8789 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8790 if test "${ac_cv_header_tiffio_h+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793 ac_cv_header_tiffio_h=$ac_header_preproc
8794 fi
8795 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8796 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8797
8798 fi
8799 if test $ac_cv_header_tiffio_h = yes; then
8800 tifflibs="-lz -lm"
8801 # At least one tiff package requires the jpeg library.
8802 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
8803 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
8804 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
8805 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808 ac_check_lib_save_LIBS=$LIBS
8809 LIBS="-ltiff $tifflibs $LIBS"
8810 cat >conftest.$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8812 #include "confdefs.h"
8813
8814 /* Override any gcc2 internal prototype to avoid an error. */
8815 #ifdef __cplusplus
8816 extern "C"
8817 #endif
8818 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */
8820 char TIFFGetVersion ();
8821 #ifdef F77_DUMMY_MAIN
8822 # ifdef __cplusplus
8823 extern "C"
8824 # endif
8825 int F77_DUMMY_MAIN() { return 1; }
8826 #endif
8827 int
8828 main ()
8829 {
8830 TIFFGetVersion ();
8831 ;
8832 return 0;
8833 }
8834 _ACEOF
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837 (eval $ac_link) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -s conftest$ac_exeext'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 (eval $ac_try) 2>&5
8844 ac_status=$?
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; }; then
8847 ac_cv_lib_tiff_TIFFGetVersion=yes
8848 else
8849 echo "$as_me: failed program was:" >&5
8850 cat conftest.$ac_ext >&5
8851 ac_cv_lib_tiff_TIFFGetVersion=no
8852 fi
8853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8855 fi
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
8857 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
8858 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
8859 HAVE_TIFF=yes
8860 fi
8861
8862 fi
8863
8864
8865 fi
8866
8867 if test "${HAVE_TIFF}" = "yes"; then
8868
8869 cat >>confdefs.h <<\_ACEOF
8870 #define HAVE_TIFF 1
8871 _ACEOF
8872
8873 fi
8874 fi
8875
8876 ### Use -lgif if available, unless `--with-gif=no'.
8877 HAVE_GIF=no
8878 if test "${HAVE_X11}" = "yes"; then
8879 if test "${with_gif}" != "no"; then
8880 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8881 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8882 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8883 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 fi
8886 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8887 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8888 else
8889 # Is the header compilable?
8890 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8891 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8892 cat >conftest.$ac_ext <<_ACEOF
8893 #line $LINENO "configure"
8894 #include "confdefs.h"
8895 $ac_includes_default
8896 #include <gif_lib.h>
8897 _ACEOF
8898 rm -f conftest.$ac_objext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try='test -s conftest.$ac_objext'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 (eval $ac_try) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; }; then
8910 ac_header_compiler=yes
8911 else
8912 echo "$as_me: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8914 ac_header_compiler=no
8915 fi
8916 rm -f conftest.$ac_objext conftest.$ac_ext
8917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8918 echo "${ECHO_T}$ac_header_compiler" >&6
8919
8920 # Is the header present?
8921 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8922 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8923 cat >conftest.$ac_ext <<_ACEOF
8924 #line $LINENO "configure"
8925 #include "confdefs.h"
8926 #include <gif_lib.h>
8927 _ACEOF
8928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8930 ac_status=$?
8931 egrep -v '^ *\+' conftest.er1 >conftest.err
8932 rm -f conftest.er1
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } >/dev/null; then
8936 if test -s conftest.err; then
8937 ac_cpp_err=$ac_c_preproc_warn_flag
8938 else
8939 ac_cpp_err=
8940 fi
8941 else
8942 ac_cpp_err=yes
8943 fi
8944 if test -z "$ac_cpp_err"; then
8945 ac_header_preproc=yes
8946 else
8947 echo "$as_me: failed program was:" >&5
8948 cat conftest.$ac_ext >&5
8949 ac_header_preproc=no
8950 fi
8951 rm -f conftest.err conftest.$ac_ext
8952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8953 echo "${ECHO_T}$ac_header_preproc" >&6
8954
8955 # So? What about this header?
8956 case $ac_header_compiler:$ac_header_preproc in
8957 yes:no )
8958 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8959 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8961 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8962 no:yes )
8963 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
8964 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
8965 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
8966 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
8967 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8968 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8969 esac
8970 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8971 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8972 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 else
8975 ac_cv_header_gif_lib_h=$ac_header_preproc
8976 fi
8977 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8978 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8979
8980 fi
8981 if test $ac_cv_header_gif_lib_h = yes; then
8982 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
8983 # Earlier versions can crash Emacs.
8984 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
8985 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
8986 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 else
8989 ac_check_lib_save_LIBS=$LIBS
8990 LIBS="-lungif $LIBS"
8991 cat >conftest.$ac_ext <<_ACEOF
8992 #line $LINENO "configure"
8993 #include "confdefs.h"
8994
8995 /* Override any gcc2 internal prototype to avoid an error. */
8996 #ifdef __cplusplus
8997 extern "C"
8998 #endif
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9001 char EGifPutExtensionLast ();
9002 #ifdef F77_DUMMY_MAIN
9003 # ifdef __cplusplus
9004 extern "C"
9005 # endif
9006 int F77_DUMMY_MAIN() { return 1; }
9007 #endif
9008 int
9009 main ()
9010 {
9011 EGifPutExtensionLast ();
9012 ;
9013 return 0;
9014 }
9015 _ACEOF
9016 rm -f conftest.$ac_objext conftest$ac_exeext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9018 (eval $ac_link) 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } &&
9022 { ac_try='test -s conftest$ac_exeext'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 (eval $ac_try) 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; }; then
9028 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9029 else
9030 echo "$as_me: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9032 ac_cv_lib_ungif_EGifPutExtensionLast=no
9033 fi
9034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9036 fi
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9038 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9039 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9040 HAVE_GIF=yes
9041 fi
9042
9043 fi
9044
9045
9046 fi
9047
9048 if test "${HAVE_GIF}" = "yes"; then
9049
9050 cat >>confdefs.h <<\_ACEOF
9051 #define HAVE_GIF 1
9052 _ACEOF
9053
9054 fi
9055 fi
9056
9057 ### Use Mac OS X Carbon API to implement GUI.
9058 HAVE_CARBON=no
9059 if test "${with_carbon}" != "no"; then
9060 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9061 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9062 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9063 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9065 fi
9066 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9067 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9068 else
9069 # Is the header compilable?
9070 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9071 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9072 cat >conftest.$ac_ext <<_ACEOF
9073 #line $LINENO "configure"
9074 #include "confdefs.h"
9075 $ac_includes_default
9076 #include <Carbon/Carbon.h>
9077 _ACEOF
9078 rm -f conftest.$ac_objext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080 (eval $ac_compile) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } &&
9084 { ac_try='test -s conftest.$ac_objext'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 (eval $ac_try) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; }; then
9090 ac_header_compiler=yes
9091 else
9092 echo "$as_me: failed program was:" >&5
9093 cat conftest.$ac_ext >&5
9094 ac_header_compiler=no
9095 fi
9096 rm -f conftest.$ac_objext conftest.$ac_ext
9097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9098 echo "${ECHO_T}$ac_header_compiler" >&6
9099
9100 # Is the header present?
9101 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9102 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9103 cat >conftest.$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9105 #include "confdefs.h"
9106 #include <Carbon/Carbon.h>
9107 _ACEOF
9108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9110 ac_status=$?
9111 egrep -v '^ *\+' conftest.er1 >conftest.err
9112 rm -f conftest.er1
9113 cat conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } >/dev/null; then
9116 if test -s conftest.err; then
9117 ac_cpp_err=$ac_c_preproc_warn_flag
9118 else
9119 ac_cpp_err=
9120 fi
9121 else
9122 ac_cpp_err=yes
9123 fi
9124 if test -z "$ac_cpp_err"; then
9125 ac_header_preproc=yes
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 cat conftest.$ac_ext >&5
9129 ac_header_preproc=no
9130 fi
9131 rm -f conftest.err conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6
9134
9135 # So? What about this header?
9136 case $ac_header_compiler:$ac_header_preproc in
9137 yes:no )
9138 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9141 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9142 no:yes )
9143 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9144 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9145 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9146 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9148 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9149 esac
9150 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9151 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9152 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9156 fi
9157 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9158 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9159
9160 fi
9161 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9162 HAVE_CARBON=yes
9163 fi
9164
9165
9166 fi
9167
9168 if test "${HAVE_CARBON}" = "yes"; then
9169
9170 cat >>confdefs.h <<\_ACEOF
9171 #define HAVE_CARBON 1
9172 _ACEOF
9173
9174 fi
9175
9176 ### Use session management (-lSM -lICE) if available
9177 HAVE_X_SM=no
9178 if test "${HAVE_X11}" = "yes"; then
9179 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9180 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9181 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9182 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 fi
9185 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9186 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9187 else
9188 # Is the header compilable?
9189 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9190 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9191 cat >conftest.$ac_ext <<_ACEOF
9192 #line $LINENO "configure"
9193 #include "confdefs.h"
9194 $ac_includes_default
9195 #include <X11/SM/SMlib.h>
9196 _ACEOF
9197 rm -f conftest.$ac_objext
9198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9199 (eval $ac_compile) 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -s conftest.$ac_objext'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; }; then
9209 ac_header_compiler=yes
9210 else
9211 echo "$as_me: failed program was:" >&5
9212 cat conftest.$ac_ext >&5
9213 ac_header_compiler=no
9214 fi
9215 rm -f conftest.$ac_objext conftest.$ac_ext
9216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9217 echo "${ECHO_T}$ac_header_compiler" >&6
9218
9219 # Is the header present?
9220 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9221 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9222 cat >conftest.$ac_ext <<_ACEOF
9223 #line $LINENO "configure"
9224 #include "confdefs.h"
9225 #include <X11/SM/SMlib.h>
9226 _ACEOF
9227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9229 ac_status=$?
9230 egrep -v '^ *\+' conftest.er1 >conftest.err
9231 rm -f conftest.er1
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } >/dev/null; then
9235 if test -s conftest.err; then
9236 ac_cpp_err=$ac_c_preproc_warn_flag
9237 else
9238 ac_cpp_err=
9239 fi
9240 else
9241 ac_cpp_err=yes
9242 fi
9243 if test -z "$ac_cpp_err"; then
9244 ac_header_preproc=yes
9245 else
9246 echo "$as_me: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9248 ac_header_preproc=no
9249 fi
9250 rm -f conftest.err conftest.$ac_ext
9251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9252 echo "${ECHO_T}$ac_header_preproc" >&6
9253
9254 # So? What about this header?
9255 case $ac_header_compiler:$ac_header_preproc in
9256 yes:no )
9257 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9258 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9260 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9261 no:yes )
9262 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9263 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9265 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9266 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9267 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9268 esac
9269 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9270 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9271 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
9275 fi
9276 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9277 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9278
9279 fi
9280 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9281 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9282 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9283 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286 ac_check_lib_save_LIBS=$LIBS
9287 LIBS="-lSM $LIBS"
9288 cat >conftest.$ac_ext <<_ACEOF
9289 #line $LINENO "configure"
9290 #include "confdefs.h"
9291
9292 /* Override any gcc2 internal prototype to avoid an error. */
9293 #ifdef __cplusplus
9294 extern "C"
9295 #endif
9296 /* We use char because int might match the return type of a gcc2
9297 builtin and then its argument prototype would still apply. */
9298 char SmcOpenConnection ();
9299 #ifdef F77_DUMMY_MAIN
9300 # ifdef __cplusplus
9301 extern "C"
9302 # endif
9303 int F77_DUMMY_MAIN() { return 1; }
9304 #endif
9305 int
9306 main ()
9307 {
9308 SmcOpenConnection ();
9309 ;
9310 return 0;
9311 }
9312 _ACEOF
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9315 (eval $ac_link) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try='test -s conftest$ac_exeext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 (eval $ac_try) 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 ac_cv_lib_SM_SmcOpenConnection=yes
9326 else
9327 echo "$as_me: failed program was:" >&5
9328 cat conftest.$ac_ext >&5
9329 ac_cv_lib_SM_SmcOpenConnection=no
9330 fi
9331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9332 LIBS=$ac_check_lib_save_LIBS
9333 fi
9334 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9335 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9336 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9337 HAVE_X_SM=yes
9338 else
9339 -lICE
9340 fi
9341
9342 fi
9343
9344
9345
9346 if test "${HAVE_X_SM}" = "yes"; then
9347
9348 cat >>confdefs.h <<\_ACEOF
9349 #define HAVE_X_SM 1
9350 _ACEOF
9351
9352 case "$LIBS" in
9353 *-lSM*) ;;
9354 *) LIBS="-lSM -lICE $LIBS" ;;
9355 esac
9356 fi
9357 fi
9358
9359 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9360 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9361 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9362 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365 cat >conftest.$ac_ext <<_ACEOF
9366 #line $LINENO "configure"
9367 #include "confdefs.h"
9368 #include <netdb.h>
9369 #ifdef F77_DUMMY_MAIN
9370 # ifdef __cplusplus
9371 extern "C"
9372 # endif
9373 int F77_DUMMY_MAIN() { return 1; }
9374 #endif
9375 int
9376 main ()
9377 {
9378 return h_errno;
9379 ;
9380 return 0;
9381 }
9382 _ACEOF
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -s conftest$ac_exeext'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 (eval $ac_try) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
9395 emacs_cv_netdb_declares_h_errno=yes
9396 else
9397 echo "$as_me: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9399 emacs_cv_netdb_declares_h_errno=no
9400 fi
9401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9402 fi
9403 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9404 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9405 if test $emacs_cv_netdb_declares_h_errno = yes; then
9406
9407 cat >>confdefs.h <<\_ACEOF
9408 #define HAVE_H_ERRNO 1
9409 _ACEOF
9410
9411 fi
9412
9413 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9414 # for constant arguments. Useless!
9415 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9416 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9417 if test "${ac_cv_working_alloca_h+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420 cat >conftest.$ac_ext <<_ACEOF
9421 #line $LINENO "configure"
9422 #include "confdefs.h"
9423 #include <alloca.h>
9424 #ifdef F77_DUMMY_MAIN
9425 # ifdef __cplusplus
9426 extern "C"
9427 # endif
9428 int F77_DUMMY_MAIN() { return 1; }
9429 #endif
9430 int
9431 main ()
9432 {
9433 char *p = (char *) alloca (2 * sizeof (int));
9434 ;
9435 return 0;
9436 }
9437 _ACEOF
9438 rm -f conftest.$ac_objext conftest$ac_exeext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9440 (eval $ac_link) 2>&5
9441 ac_status=$?
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } &&
9444 { ac_try='test -s conftest$ac_exeext'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5
9447 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
9450 ac_cv_working_alloca_h=yes
9451 else
9452 echo "$as_me: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9454 ac_cv_working_alloca_h=no
9455 fi
9456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9457 fi
9458 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9459 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9460 if test $ac_cv_working_alloca_h = yes; then
9461
9462 cat >>confdefs.h <<\_ACEOF
9463 #define HAVE_ALLOCA_H 1
9464 _ACEOF
9465
9466 fi
9467
9468 echo "$as_me:$LINENO: checking for alloca" >&5
9469 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9470 if test "${ac_cv_func_alloca_works+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473 cat >conftest.$ac_ext <<_ACEOF
9474 #line $LINENO "configure"
9475 #include "confdefs.h"
9476 #ifdef __GNUC__
9477 # define alloca __builtin_alloca
9478 #else
9479 # ifdef _MSC_VER
9480 # include <malloc.h>
9481 # define alloca _alloca
9482 # else
9483 # if HAVE_ALLOCA_H
9484 # include <alloca.h>
9485 # else
9486 # ifdef _AIX
9487 #pragma alloca
9488 # else
9489 # ifndef alloca /* predefined by HP cc +Olibcalls */
9490 char *alloca ();
9491 # endif
9492 # endif
9493 # endif
9494 # endif
9495 #endif
9496
9497 #ifdef F77_DUMMY_MAIN
9498 # ifdef __cplusplus
9499 extern "C"
9500 # endif
9501 int F77_DUMMY_MAIN() { return 1; }
9502 #endif
9503 int
9504 main ()
9505 {
9506 char *p = (char *) alloca (1);
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 ac_cv_func_alloca_works=yes
9524 else
9525 echo "$as_me: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9527 ac_cv_func_alloca_works=no
9528 fi
9529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9530 fi
9531 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9532 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9533
9534 if test $ac_cv_func_alloca_works = yes; then
9535
9536 cat >>confdefs.h <<\_ACEOF
9537 #define HAVE_ALLOCA 1
9538 _ACEOF
9539
9540 else
9541 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9542 # that cause trouble. Some versions do not even contain alloca or
9543 # contain a buggy version. If you still want to use their alloca,
9544 # use ar to extract alloca.o from them instead of compiling alloca.c.
9545
9546 ALLOCA=alloca.$ac_objext
9547
9548 cat >>confdefs.h <<\_ACEOF
9549 #define C_ALLOCA 1
9550 _ACEOF
9551
9552
9553 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9554 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9555 if test "${ac_cv_os_cray+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558 cat >conftest.$ac_ext <<_ACEOF
9559 #line $LINENO "configure"
9560 #include "confdefs.h"
9561 #if defined(CRAY) && ! defined(CRAY2)
9562 webecray
9563 #else
9564 wenotbecray
9565 #endif
9566
9567 _ACEOF
9568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9569 egrep "webecray" >/dev/null 2>&1; then
9570 ac_cv_os_cray=yes
9571 else
9572 ac_cv_os_cray=no
9573 fi
9574 rm -f conftest*
9575
9576 fi
9577 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9578 echo "${ECHO_T}$ac_cv_os_cray" >&6
9579 if test $ac_cv_os_cray = yes; then
9580 for ac_func in _getb67 GETB67 getb67; do
9581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9582 echo "$as_me:$LINENO: checking for $ac_func" >&5
9583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9584 if eval "test \"\${$as_ac_var+set}\" = set"; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587 cat >conftest.$ac_ext <<_ACEOF
9588 #line $LINENO "configure"
9589 #include "confdefs.h"
9590 /* System header to define __stub macros and hopefully few prototypes,
9591 which can conflict with char $ac_func (); below. */
9592 #include <assert.h>
9593 /* Override any gcc2 internal prototype to avoid an error. */
9594 #ifdef __cplusplus
9595 extern "C"
9596 #endif
9597 /* We use char because int might match the return type of a gcc2
9598 builtin and then its argument prototype would still apply. */
9599 char $ac_func ();
9600 char (*f) ();
9601
9602 #ifdef F77_DUMMY_MAIN
9603 # ifdef __cplusplus
9604 extern "C"
9605 # endif
9606 int F77_DUMMY_MAIN() { return 1; }
9607 #endif
9608 int
9609 main ()
9610 {
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9615 choke me
9616 #else
9617 f = $ac_func;
9618 #endif
9619
9620 ;
9621 return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9626 (eval $ac_link) 2>&5
9627 ac_status=$?
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try='test -s conftest$ac_exeext'
9631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 (eval $ac_try) 2>&5
9633 ac_status=$?
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9636 eval "$as_ac_var=yes"
9637 else
9638 echo "$as_me: failed program was:" >&5
9639 cat conftest.$ac_ext >&5
9640 eval "$as_ac_var=no"
9641 fi
9642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9643 fi
9644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9646 if test `eval echo '${'$as_ac_var'}'` = yes; then
9647
9648 cat >>confdefs.h <<_ACEOF
9649 #define CRAY_STACKSEG_END $ac_func
9650 _ACEOF
9651
9652 break
9653 fi
9654
9655 done
9656 fi
9657
9658 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9659 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9660 if test "${ac_cv_c_stack_direction+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663 if test "$cross_compiling" = yes; then
9664 ac_cv_c_stack_direction=0
9665 else
9666 cat >conftest.$ac_ext <<_ACEOF
9667 #line $LINENO "configure"
9668 #include "confdefs.h"
9669 int
9670 find_stack_direction ()
9671 {
9672 static char *addr = 0;
9673 auto char dummy;
9674 if (addr == 0)
9675 {
9676 addr = &dummy;
9677 return find_stack_direction ();
9678 }
9679 else
9680 return (&dummy > addr) ? 1 : -1;
9681 }
9682
9683 int
9684 main ()
9685 {
9686 exit (find_stack_direction () < 0);
9687 }
9688 _ACEOF
9689 rm -f conftest$ac_exeext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9691 (eval $ac_link) 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 (eval $ac_try) 2>&5
9697 ac_status=$?
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
9700 ac_cv_c_stack_direction=1
9701 else
9702 echo "$as_me: program exited with status $ac_status" >&5
9703 echo "$as_me: failed program was:" >&5
9704 cat conftest.$ac_ext >&5
9705 ( exit $ac_status )
9706 ac_cv_c_stack_direction=-1
9707 fi
9708 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9709 fi
9710 fi
9711 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9712 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9713
9714 cat >>confdefs.h <<_ACEOF
9715 #define STACK_DIRECTION $ac_cv_c_stack_direction
9716 _ACEOF
9717
9718
9719 fi
9720
9721
9722 # fmod, logb, and frexp are found in -lm on most systems.
9723 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
9724
9725 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9726 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9727 if test "${ac_cv_lib_m_sqrt+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730 ac_check_lib_save_LIBS=$LIBS
9731 LIBS="-lm $LIBS"
9732 cat >conftest.$ac_ext <<_ACEOF
9733 #line $LINENO "configure"
9734 #include "confdefs.h"
9735
9736 /* Override any gcc2 internal prototype to avoid an error. */
9737 #ifdef __cplusplus
9738 extern "C"
9739 #endif
9740 /* We use char because int might match the return type of a gcc2
9741 builtin and then its argument prototype would still apply. */
9742 char sqrt ();
9743 #ifdef F77_DUMMY_MAIN
9744 # ifdef __cplusplus
9745 extern "C"
9746 # endif
9747 int F77_DUMMY_MAIN() { return 1; }
9748 #endif
9749 int
9750 main ()
9751 {
9752 sqrt ();
9753 ;
9754 return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759 (eval $ac_link) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -s conftest$ac_exeext'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_lib_m_sqrt=yes
9770 else
9771 echo "$as_me: failed program was:" >&5
9772 cat conftest.$ac_ext >&5
9773 ac_cv_lib_m_sqrt=no
9774 fi
9775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9776 LIBS=$ac_check_lib_save_LIBS
9777 fi
9778 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9779 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9780 if test $ac_cv_lib_m_sqrt = yes; then
9781 cat >>confdefs.h <<_ACEOF
9782 #define HAVE_LIBM 1
9783 _ACEOF
9784
9785 LIBS="-lm $LIBS"
9786
9787 fi
9788
9789
9790 # Check for mail-locking functions in a "mail" library
9791
9792 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9793 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
9794 if test "${ac_cv_lib_mail_maillock+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797 ac_check_lib_save_LIBS=$LIBS
9798 LIBS="-lmail $LIBS"
9799 cat >conftest.$ac_ext <<_ACEOF
9800 #line $LINENO "configure"
9801 #include "confdefs.h"
9802
9803 /* Override any gcc2 internal prototype to avoid an error. */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 /* We use char because int might match the return type of a gcc2
9808 builtin and then its argument prototype would still apply. */
9809 char maillock ();
9810 #ifdef F77_DUMMY_MAIN
9811 # ifdef __cplusplus
9812 extern "C"
9813 # endif
9814 int F77_DUMMY_MAIN() { return 1; }
9815 #endif
9816 int
9817 main ()
9818 {
9819 maillock ();
9820 ;
9821 return 0;
9822 }
9823 _ACEOF
9824 rm -f conftest.$ac_objext conftest$ac_exeext
9825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9826 (eval $ac_link) 2>&5
9827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -s conftest$ac_exeext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 (eval $ac_try) 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_cv_lib_mail_maillock=yes
9837 else
9838 echo "$as_me: failed program was:" >&5
9839 cat conftest.$ac_ext >&5
9840 ac_cv_lib_mail_maillock=no
9841 fi
9842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9843 LIBS=$ac_check_lib_save_LIBS
9844 fi
9845 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9846 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
9847 if test $ac_cv_lib_mail_maillock = yes; then
9848 cat >>confdefs.h <<_ACEOF
9849 #define HAVE_LIBMAIL 1
9850 _ACEOF
9851
9852 LIBS="-lmail $LIBS"
9853
9854 fi
9855
9856
9857 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
9858 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
9859 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 else
9862 ac_check_lib_save_LIBS=$LIBS
9863 LIBS="-llockfile $LIBS"
9864 cat >conftest.$ac_ext <<_ACEOF
9865 #line $LINENO "configure"
9866 #include "confdefs.h"
9867
9868 /* Override any gcc2 internal prototype to avoid an error. */
9869 #ifdef __cplusplus
9870 extern "C"
9871 #endif
9872 /* We use char because int might match the return type of a gcc2
9873 builtin and then its argument prototype would still apply. */
9874 char maillock ();
9875 #ifdef F77_DUMMY_MAIN
9876 # ifdef __cplusplus
9877 extern "C"
9878 # endif
9879 int F77_DUMMY_MAIN() { return 1; }
9880 #endif
9881 int
9882 main ()
9883 {
9884 maillock ();
9885 ;
9886 return 0;
9887 }
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>&5
9892 ac_status=$?
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } &&
9895 { ac_try='test -s conftest$ac_exeext'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 (eval $ac_try) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; }; then
9901 ac_cv_lib_lockfile_maillock=yes
9902 else
9903 echo "$as_me: failed program was:" >&5
9904 cat conftest.$ac_ext >&5
9905 ac_cv_lib_lockfile_maillock=no
9906 fi
9907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9909 fi
9910 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
9911 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
9912 if test $ac_cv_lib_lockfile_maillock = yes; then
9913 cat >>confdefs.h <<_ACEOF
9914 #define HAVE_LIBLOCKFILE 1
9915 _ACEOF
9916
9917 LIBS="-llockfile $LIBS"
9918
9919 fi
9920
9921 # If we have the shared liblockfile, assume we must use it for mail
9922 # locking (e.g. Debian). If we couldn't link against liblockfile
9923 # (no liblockfile.a installed), ensure that we don't need to.
9924 if test "$ac_cv_lib_lockfile_maillock" = no; then
9925 # Extract the first word of "liblockfile.so", so it can be a program name with args.
9926 set dummy liblockfile.so; ac_word=$2
9927 echo "$as_me:$LINENO: checking for $ac_word" >&5
9928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9929 if test "${ac_cv_prog_liblockfile+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932 if test -n "$liblockfile"; then
9933 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
9934 else
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 for as_dir in /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH
9937 do
9938 IFS=$as_save_IFS
9939 test -z "$as_dir" && as_dir=.
9940 for ac_exec_ext in '' $ac_executable_extensions; do
9941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9942 ac_cv_prog_liblockfile="yes"
9943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9944 break 2
9945 fi
9946 done
9947 done
9948
9949 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
9950 fi
9951 fi
9952 liblockfile=$ac_cv_prog_liblockfile
9953 if test -n "$liblockfile"; then
9954 echo "$as_me:$LINENO: result: $liblockfile" >&5
9955 echo "${ECHO_T}$liblockfile" >&6
9956 else
9957 echo "$as_me:$LINENO: result: no" >&5
9958 echo "${ECHO_T}no" >&6
9959 fi
9960
9961 if test $ac_cv_prog_liblockfile = yes; then
9962 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
9963 This probably means that movemail could lose mail.
9964 There may be a \`development' package to install containing liblockfile." >&5
9965 echo "$as_me: error: Shared liblockfile found but can't link against it.
9966 This probably means that movemail could lose mail.
9967 There may be a \`development' package to install containing liblockfile." >&2;}
9968 { (exit 1); exit 1; }; }
9969 else
9970 cat >>confdefs.h <<\_ACEOF
9971 #define LIBMAIL -llockfile
9972 _ACEOF
9973
9974 fi
9975 else :
9976 fi
9977
9978 for ac_func in touchlock
9979 do
9980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9981 echo "$as_me:$LINENO: checking for $ac_func" >&5
9982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9983 if eval "test \"\${$as_ac_var+set}\" = set"; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986 cat >conftest.$ac_ext <<_ACEOF
9987 #line $LINENO "configure"
9988 #include "confdefs.h"
9989 /* System header to define __stub macros and hopefully few prototypes,
9990 which can conflict with char $ac_func (); below. */
9991 #include <assert.h>
9992 /* Override any gcc2 internal prototype to avoid an error. */
9993 #ifdef __cplusplus
9994 extern "C"
9995 #endif
9996 /* We use char because int might match the return type of a gcc2
9997 builtin and then its argument prototype would still apply. */
9998 char $ac_func ();
9999 char (*f) ();
10000
10001 #ifdef F77_DUMMY_MAIN
10002 # ifdef __cplusplus
10003 extern "C"
10004 # endif
10005 int F77_DUMMY_MAIN() { return 1; }
10006 #endif
10007 int
10008 main ()
10009 {
10010 /* The GNU C library defines this for functions which it implements
10011 to always fail with ENOSYS. Some functions are actually named
10012 something starting with __ and the normal name is an alias. */
10013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10014 choke me
10015 #else
10016 f = $ac_func;
10017 #endif
10018
10019 ;
10020 return 0;
10021 }
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025 (eval $ac_link) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -s conftest$ac_exeext'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 eval "$as_ac_var=yes"
10036 else
10037 echo "$as_me: failed program was:" >&5
10038 cat conftest.$ac_ext >&5
10039 eval "$as_ac_var=no"
10040 fi
10041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10042 fi
10043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10045 if test `eval echo '${'$as_ac_var'}'` = yes; then
10046 cat >>confdefs.h <<_ACEOF
10047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10048 _ACEOF
10049
10050 fi
10051 done
10052
10053
10054 for ac_header in maillock.h
10055 do
10056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10058 echo "$as_me:$LINENO: checking for $ac_header" >&5
10059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 fi
10063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10065 else
10066 # Is the header compilable?
10067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10069 cat >conftest.$ac_ext <<_ACEOF
10070 #line $LINENO "configure"
10071 #include "confdefs.h"
10072 $ac_includes_default
10073 #include <$ac_header>
10074 _ACEOF
10075 rm -f conftest.$ac_objext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10077 (eval $ac_compile) 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -s conftest.$ac_objext'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 ac_header_compiler=yes
10088 else
10089 echo "$as_me: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10091 ac_header_compiler=no
10092 fi
10093 rm -f conftest.$ac_objext conftest.$ac_ext
10094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10095 echo "${ECHO_T}$ac_header_compiler" >&6
10096
10097 # Is the header present?
10098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10100 cat >conftest.$ac_ext <<_ACEOF
10101 #line $LINENO "configure"
10102 #include "confdefs.h"
10103 #include <$ac_header>
10104 _ACEOF
10105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10107 ac_status=$?
10108 egrep -v '^ *\+' conftest.er1 >conftest.err
10109 rm -f conftest.er1
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } >/dev/null; then
10113 if test -s conftest.err; then
10114 ac_cpp_err=$ac_c_preproc_warn_flag
10115 else
10116 ac_cpp_err=
10117 fi
10118 else
10119 ac_cpp_err=yes
10120 fi
10121 if test -z "$ac_cpp_err"; then
10122 ac_header_preproc=yes
10123 else
10124 echo "$as_me: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10126 ac_header_preproc=no
10127 fi
10128 rm -f conftest.err conftest.$ac_ext
10129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10130 echo "${ECHO_T}$ac_header_preproc" >&6
10131
10132 # So? What about this header?
10133 case $ac_header_compiler:$ac_header_preproc in
10134 yes:no )
10135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10139 no:yes )
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10146 esac
10147 echo "$as_me:$LINENO: checking for $ac_header" >&5
10148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152 eval "$as_ac_Header=$ac_header_preproc"
10153 fi
10154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10156
10157 fi
10158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10159 cat >>confdefs.h <<_ACEOF
10160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10161 _ACEOF
10162
10163 fi
10164
10165 done
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223 for ac_func in gethostname getdomainname dup2 \
10224 rename closedir mkdir rmdir sysinfo \
10225 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
10226 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10227 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
10228 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10229 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10230 gai_strerror mkstemp getline getdelim
10231 do
10232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10233 echo "$as_me:$LINENO: checking for $ac_func" >&5
10234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10235 if eval "test \"\${$as_ac_var+set}\" = set"; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238 cat >conftest.$ac_ext <<_ACEOF
10239 #line $LINENO "configure"
10240 #include "confdefs.h"
10241 /* System header to define __stub macros and hopefully few prototypes,
10242 which can conflict with char $ac_func (); below. */
10243 #include <assert.h>
10244 /* Override any gcc2 internal prototype to avoid an error. */
10245 #ifdef __cplusplus
10246 extern "C"
10247 #endif
10248 /* We use char because int might match the return type of a gcc2
10249 builtin and then its argument prototype would still apply. */
10250 char $ac_func ();
10251 char (*f) ();
10252
10253 #ifdef F77_DUMMY_MAIN
10254 # ifdef __cplusplus
10255 extern "C"
10256 # endif
10257 int F77_DUMMY_MAIN() { return 1; }
10258 #endif
10259 int
10260 main ()
10261 {
10262 /* The GNU C library defines this for functions which it implements
10263 to always fail with ENOSYS. Some functions are actually named
10264 something starting with __ and the normal name is an alias. */
10265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10266 choke me
10267 #else
10268 f = $ac_func;
10269 #endif
10270
10271 ;
10272 return 0;
10273 }
10274 _ACEOF
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277 (eval $ac_link) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } &&
10281 { ac_try='test -s conftest$ac_exeext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 eval "$as_ac_var=yes"
10288 else
10289 echo "$as_me: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 eval "$as_ac_var=no"
10292 fi
10293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10294 fi
10295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10297 if test `eval echo '${'$as_ac_var'}'` = yes; then
10298 cat >>confdefs.h <<_ACEOF
10299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10300 _ACEOF
10301
10302 fi
10303 done
10304
10305
10306
10307 for ac_header in sys/un.h
10308 do
10309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10311 echo "$as_me:$LINENO: checking for $ac_header" >&5
10312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 fi
10316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10318 else
10319 # Is the header compilable?
10320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10322 cat >conftest.$ac_ext <<_ACEOF
10323 #line $LINENO "configure"
10324 #include "confdefs.h"
10325 $ac_includes_default
10326 #include <$ac_header>
10327 _ACEOF
10328 rm -f conftest.$ac_objext
10329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10330 (eval $ac_compile) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -s conftest.$ac_objext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_header_compiler=yes
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 cat conftest.$ac_ext >&5
10344 ac_header_compiler=no
10345 fi
10346 rm -f conftest.$ac_objext conftest.$ac_ext
10347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10348 echo "${ECHO_T}$ac_header_compiler" >&6
10349
10350 # Is the header present?
10351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10353 cat >conftest.$ac_ext <<_ACEOF
10354 #line $LINENO "configure"
10355 #include "confdefs.h"
10356 #include <$ac_header>
10357 _ACEOF
10358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10360 ac_status=$?
10361 egrep -v '^ *\+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } >/dev/null; then
10366 if test -s conftest.err; then
10367 ac_cpp_err=$ac_c_preproc_warn_flag
10368 else
10369 ac_cpp_err=
10370 fi
10371 else
10372 ac_cpp_err=yes
10373 fi
10374 if test -z "$ac_cpp_err"; then
10375 ac_header_preproc=yes
10376 else
10377 echo "$as_me: failed program was:" >&5
10378 cat conftest.$ac_ext >&5
10379 ac_header_preproc=no
10380 fi
10381 rm -f conftest.err conftest.$ac_ext
10382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10383 echo "${ECHO_T}$ac_header_preproc" >&6
10384
10385 # So? What about this header?
10386 case $ac_header_compiler:$ac_header_preproc in
10387 yes:no )
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10392 no:yes )
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10399 esac
10400 echo "$as_me:$LINENO: checking for $ac_header" >&5
10401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405 eval "$as_ac_Header=$ac_header_preproc"
10406 fi
10407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10409
10410 fi
10411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10412 cat >>confdefs.h <<_ACEOF
10413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10414 _ACEOF
10415
10416 fi
10417
10418 done
10419
10420
10421
10422
10423 for ac_header in sys/time.h unistd.h
10424 do
10425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10427 echo "$as_me:$LINENO: checking for $ac_header" >&5
10428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 fi
10432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10434 else
10435 # Is the header compilable?
10436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10438 cat >conftest.$ac_ext <<_ACEOF
10439 #line $LINENO "configure"
10440 #include "confdefs.h"
10441 $ac_includes_default
10442 #include <$ac_header>
10443 _ACEOF
10444 rm -f conftest.$ac_objext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446 (eval $ac_compile) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try='test -s conftest.$ac_objext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 ac_header_compiler=yes
10457 else
10458 echo "$as_me: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10460 ac_header_compiler=no
10461 fi
10462 rm -f conftest.$ac_objext conftest.$ac_ext
10463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10464 echo "${ECHO_T}$ac_header_compiler" >&6
10465
10466 # Is the header present?
10467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10469 cat >conftest.$ac_ext <<_ACEOF
10470 #line $LINENO "configure"
10471 #include "confdefs.h"
10472 #include <$ac_header>
10473 _ACEOF
10474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10476 ac_status=$?
10477 egrep -v '^ *\+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } >/dev/null; then
10482 if test -s conftest.err; then
10483 ac_cpp_err=$ac_c_preproc_warn_flag
10484 else
10485 ac_cpp_err=
10486 fi
10487 else
10488 ac_cpp_err=yes
10489 fi
10490 if test -z "$ac_cpp_err"; then
10491 ac_header_preproc=yes
10492 else
10493 echo "$as_me: failed program was:" >&5
10494 cat conftest.$ac_ext >&5
10495 ac_header_preproc=no
10496 fi
10497 rm -f conftest.err conftest.$ac_ext
10498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10499 echo "${ECHO_T}$ac_header_preproc" >&6
10500
10501 # So? What about this header?
10502 case $ac_header_compiler:$ac_header_preproc in
10503 yes:no )
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10508 no:yes )
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10515 esac
10516 echo "$as_me:$LINENO: checking for $ac_header" >&5
10517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521 eval "$as_ac_Header=$ac_header_preproc"
10522 fi
10523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10525
10526 fi
10527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10528 cat >>confdefs.h <<_ACEOF
10529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10530 _ACEOF
10531
10532 fi
10533
10534 done
10535
10536
10537 for ac_func in alarm
10538 do
10539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10540 echo "$as_me:$LINENO: checking for $ac_func" >&5
10541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10542 if eval "test \"\${$as_ac_var+set}\" = set"; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 else
10545 cat >conftest.$ac_ext <<_ACEOF
10546 #line $LINENO "configure"
10547 #include "confdefs.h"
10548 /* System header to define __stub macros and hopefully few prototypes,
10549 which can conflict with char $ac_func (); below. */
10550 #include <assert.h>
10551 /* Override any gcc2 internal prototype to avoid an error. */
10552 #ifdef __cplusplus
10553 extern "C"
10554 #endif
10555 /* We use char because int might match the return type of a gcc2
10556 builtin and then its argument prototype would still apply. */
10557 char $ac_func ();
10558 char (*f) ();
10559
10560 #ifdef F77_DUMMY_MAIN
10561 # ifdef __cplusplus
10562 extern "C"
10563 # endif
10564 int F77_DUMMY_MAIN() { return 1; }
10565 #endif
10566 int
10567 main ()
10568 {
10569 /* The GNU C library defines this for functions which it implements
10570 to always fail with ENOSYS. Some functions are actually named
10571 something starting with __ and the normal name is an alias. */
10572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10573 choke me
10574 #else
10575 f = $ac_func;
10576 #endif
10577
10578 ;
10579 return 0;
10580 }
10581 _ACEOF
10582 rm -f conftest.$ac_objext conftest$ac_exeext
10583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10584 (eval $ac_link) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
10588 { ac_try='test -s conftest$ac_exeext'
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; }; then
10594 eval "$as_ac_var=yes"
10595 else
10596 echo "$as_me: failed program was:" >&5
10597 cat conftest.$ac_ext >&5
10598 eval "$as_ac_var=no"
10599 fi
10600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10601 fi
10602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10604 if test `eval echo '${'$as_ac_var'}'` = yes; then
10605 cat >>confdefs.h <<_ACEOF
10606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10607 _ACEOF
10608
10609 fi
10610 done
10611
10612 echo "$as_me:$LINENO: checking for working mktime" >&5
10613 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10614 if test "${ac_cv_func_working_mktime+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617 if test "$cross_compiling" = yes; then
10618 ac_cv_func_working_mktime=no
10619 else
10620 cat >conftest.$ac_ext <<_ACEOF
10621 #line $LINENO "configure"
10622 #include "confdefs.h"
10623 /* Test program from Paul Eggert and Tony Leneis. */
10624 #if TIME_WITH_SYS_TIME
10625 # include <sys/time.h>
10626 # include <time.h>
10627 #else
10628 # if HAVE_SYS_TIME_H
10629 # include <sys/time.h>
10630 # else
10631 # include <time.h>
10632 # endif
10633 #endif
10634
10635 #if HAVE_UNISTD_H
10636 # include <unistd.h>
10637 #endif
10638
10639 #if !HAVE_ALARM
10640 # define alarm(X) /* empty */
10641 #endif
10642
10643 /* Work around redefinition to rpl_putenv by other config tests. */
10644 #undef putenv
10645
10646 static time_t time_t_max;
10647
10648 /* Values we'll use to set the TZ environment variable. */
10649 static const char *const tz_strings[] = {
10650 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10651 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10652 };
10653 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10654
10655 /* Fail if mktime fails to convert a date in the spring-forward gap.
10656 Based on a problem report from Andreas Jaeger. */
10657 static void
10658 spring_forward_gap ()
10659 {
10660 /* glibc (up to about 1998-10-07) failed this test. */
10661 struct tm tm;
10662
10663 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10664 instead of "TZ=America/Vancouver" in order to detect the bug even
10665 on systems that don't support the Olson extension, or don't have the
10666 full zoneinfo tables installed. */
10667 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10668
10669 tm.tm_year = 98;
10670 tm.tm_mon = 3;
10671 tm.tm_mday = 5;
10672 tm.tm_hour = 2;
10673 tm.tm_min = 0;
10674 tm.tm_sec = 0;
10675 tm.tm_isdst = -1;
10676 if (mktime (&tm) == (time_t)-1)
10677 exit (1);
10678 }
10679
10680 static void
10681 mktime_test (now)
10682 time_t now;
10683 {
10684 struct tm *lt;
10685 if ((lt = localtime (&now)) && mktime (lt) != now)
10686 exit (1);
10687 now = time_t_max - now;
10688 if ((lt = localtime (&now)) && mktime (lt) != now)
10689 exit (1);
10690 }
10691
10692 static void
10693 irix_6_4_bug ()
10694 {
10695 /* Based on code from Ariel Faigon. */
10696 struct tm tm;
10697 tm.tm_year = 96;
10698 tm.tm_mon = 3;
10699 tm.tm_mday = 0;
10700 tm.tm_hour = 0;
10701 tm.tm_min = 0;
10702 tm.tm_sec = 0;
10703 tm.tm_isdst = -1;
10704 mktime (&tm);
10705 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10706 exit (1);
10707 }
10708
10709 static void
10710 bigtime_test (j)
10711 int j;
10712 {
10713 struct tm tm;
10714 time_t now;
10715 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10716 now = mktime (&tm);
10717 if (now != (time_t) -1)
10718 {
10719 struct tm *lt = localtime (&now);
10720 if (! (lt
10721 && lt->tm_year == tm.tm_year
10722 && lt->tm_mon == tm.tm_mon
10723 && lt->tm_mday == tm.tm_mday
10724 && lt->tm_hour == tm.tm_hour
10725 && lt->tm_min == tm.tm_min
10726 && lt->tm_sec == tm.tm_sec
10727 && lt->tm_yday == tm.tm_yday
10728 && lt->tm_wday == tm.tm_wday
10729 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10730 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10731 exit (1);
10732 }
10733 }
10734
10735 int
10736 main ()
10737 {
10738 time_t t, delta;
10739 int i, j;
10740
10741 /* This test makes some buggy mktime implementations loop.
10742 Give up after 60 seconds; a mktime slower than that
10743 isn't worth using anyway. */
10744 alarm (60);
10745
10746 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10747 continue;
10748 time_t_max--;
10749 delta = time_t_max / 997; /* a suitable prime number */
10750 for (i = 0; i < N_STRINGS; i++)
10751 {
10752 if (tz_strings[i])
10753 putenv (tz_strings[i]);
10754
10755 for (t = 0; t <= time_t_max - delta; t += delta)
10756 mktime_test (t);
10757 mktime_test ((time_t) 60 * 60);
10758 mktime_test ((time_t) 60 * 60 * 24);
10759
10760 for (j = 1; 0 < j; j *= 2)
10761 bigtime_test (j);
10762 bigtime_test (j - 1);
10763 }
10764 irix_6_4_bug ();
10765 spring_forward_gap ();
10766 exit (0);
10767 }
10768 _ACEOF
10769 rm -f conftest$ac_exeext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10771 (eval $ac_link) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 ac_cv_func_working_mktime=yes
10781 else
10782 echo "$as_me: program exited with status $ac_status" >&5
10783 echo "$as_me: failed program was:" >&5
10784 cat conftest.$ac_ext >&5
10785 ( exit $ac_status )
10786 ac_cv_func_working_mktime=no
10787 fi
10788 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10789 fi
10790 fi
10791 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10792 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
10793 if test $ac_cv_func_working_mktime = no; then
10794 LIBOBJS="$LIBOBJS mktime.$ac_objext"
10795 fi
10796
10797 if test "$ac_cv_func_working_mktime" = no; then
10798
10799 cat >>confdefs.h <<\_ACEOF
10800 #define BROKEN_MKTIME 1
10801 _ACEOF
10802
10803 fi
10804
10805 ac_have_func=no # yes means we've found a way to get the load average.
10806
10807 ac_save_LIBS=$LIBS
10808
10809 # Check for getloadavg, but be sure not to touch the cache variable.
10810 (echo "$as_me:$LINENO: checking for getloadavg" >&5
10811 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
10812 if test "${ac_cv_func_getloadavg+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815 cat >conftest.$ac_ext <<_ACEOF
10816 #line $LINENO "configure"
10817 #include "confdefs.h"
10818 /* System header to define __stub macros and hopefully few prototypes,
10819 which can conflict with char getloadavg (); below. */
10820 #include <assert.h>
10821 /* Override any gcc2 internal prototype to avoid an error. */
10822 #ifdef __cplusplus
10823 extern "C"
10824 #endif
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10827 char getloadavg ();
10828 char (*f) ();
10829
10830 #ifdef F77_DUMMY_MAIN
10831 # ifdef __cplusplus
10832 extern "C"
10833 # endif
10834 int F77_DUMMY_MAIN() { return 1; }
10835 #endif
10836 int
10837 main ()
10838 {
10839 /* The GNU C library defines this for functions which it implements
10840 to always fail with ENOSYS. Some functions are actually named
10841 something starting with __ and the normal name is an alias. */
10842 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
10843 choke me
10844 #else
10845 f = getloadavg;
10846 #endif
10847
10848 ;
10849 return 0;
10850 }
10851 _ACEOF
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10854 (eval $ac_link) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -s conftest$ac_exeext'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_cv_func_getloadavg=yes
10865 else
10866 echo "$as_me: failed program was:" >&5
10867 cat conftest.$ac_ext >&5
10868 ac_cv_func_getloadavg=no
10869 fi
10870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10871 fi
10872 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
10873 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
10874 if test $ac_cv_func_getloadavg = yes; then
10875 exit 0
10876 else
10877 exit 1
10878 fi
10879 ) && ac_have_func=yes
10880
10881 # On HPUX9, an unprivileged user can get load averages through this function.
10882
10883 for ac_func in pstat_getdynamic
10884 do
10885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10886 echo "$as_me:$LINENO: checking for $ac_func" >&5
10887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10888 if eval "test \"\${$as_ac_var+set}\" = set"; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891 cat >conftest.$ac_ext <<_ACEOF
10892 #line $LINENO "configure"
10893 #include "confdefs.h"
10894 /* System header to define __stub macros and hopefully few prototypes,
10895 which can conflict with char $ac_func (); below. */
10896 #include <assert.h>
10897 /* Override any gcc2 internal prototype to avoid an error. */
10898 #ifdef __cplusplus
10899 extern "C"
10900 #endif
10901 /* We use char because int might match the return type of a gcc2
10902 builtin and then its argument prototype would still apply. */
10903 char $ac_func ();
10904 char (*f) ();
10905
10906 #ifdef F77_DUMMY_MAIN
10907 # ifdef __cplusplus
10908 extern "C"
10909 # endif
10910 int F77_DUMMY_MAIN() { return 1; }
10911 #endif
10912 int
10913 main ()
10914 {
10915 /* The GNU C library defines this for functions which it implements
10916 to always fail with ENOSYS. Some functions are actually named
10917 something starting with __ and the normal name is an alias. */
10918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10919 choke me
10920 #else
10921 f = $ac_func;
10922 #endif
10923
10924 ;
10925 return 0;
10926 }
10927 _ACEOF
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10930 (eval $ac_link) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -s conftest$ac_exeext'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 eval "$as_ac_var=yes"
10941 else
10942 echo "$as_me: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 eval "$as_ac_var=no"
10945 fi
10946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10947 fi
10948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10950 if test `eval echo '${'$as_ac_var'}'` = yes; then
10951 cat >>confdefs.h <<_ACEOF
10952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10953 _ACEOF
10954
10955 fi
10956 done
10957
10958
10959 # Solaris has libkstat which does not require root.
10960
10961 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
10962 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
10963 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 else
10966 ac_check_lib_save_LIBS=$LIBS
10967 LIBS="-lkstat $LIBS"
10968 cat >conftest.$ac_ext <<_ACEOF
10969 #line $LINENO "configure"
10970 #include "confdefs.h"
10971
10972 /* Override any gcc2 internal prototype to avoid an error. */
10973 #ifdef __cplusplus
10974 extern "C"
10975 #endif
10976 /* We use char because int might match the return type of a gcc2
10977 builtin and then its argument prototype would still apply. */
10978 char kstat_open ();
10979 #ifdef F77_DUMMY_MAIN
10980 # ifdef __cplusplus
10981 extern "C"
10982 # endif
10983 int F77_DUMMY_MAIN() { return 1; }
10984 #endif
10985 int
10986 main ()
10987 {
10988 kstat_open ();
10989 ;
10990 return 0;
10991 }
10992 _ACEOF
10993 rm -f conftest.$ac_objext conftest$ac_exeext
10994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10995 (eval $ac_link) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -s conftest$ac_exeext'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 ac_cv_lib_kstat_kstat_open=yes
11006 else
11007 echo "$as_me: failed program was:" >&5
11008 cat conftest.$ac_ext >&5
11009 ac_cv_lib_kstat_kstat_open=no
11010 fi
11011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11012 LIBS=$ac_check_lib_save_LIBS
11013 fi
11014 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11015 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
11016 if test $ac_cv_lib_kstat_kstat_open = yes; then
11017 cat >>confdefs.h <<_ACEOF
11018 #define HAVE_LIBKSTAT 1
11019 _ACEOF
11020
11021 LIBS="-lkstat $LIBS"
11022
11023 fi
11024
11025 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11026
11027 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11028 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11029 # to get the right answer into the cache.
11030 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11031 if test $ac_have_func = no; then
11032 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11033 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
11034 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-lelf $LIBS"
11039 cat >conftest.$ac_ext <<_ACEOF
11040 #line $LINENO "configure"
11041 #include "confdefs.h"
11042
11043 /* Override any gcc2 internal prototype to avoid an error. */
11044 #ifdef __cplusplus
11045 extern "C"
11046 #endif
11047 /* We use char because int might match the return type of a gcc2
11048 builtin and then its argument prototype would still apply. */
11049 char elf_begin ();
11050 #ifdef F77_DUMMY_MAIN
11051 # ifdef __cplusplus
11052 extern "C"
11053 # endif
11054 int F77_DUMMY_MAIN() { return 1; }
11055 #endif
11056 int
11057 main ()
11058 {
11059 elf_begin ();
11060 ;
11061 return 0;
11062 }
11063 _ACEOF
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try='test -s conftest$ac_exeext'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }; then
11076 ac_cv_lib_elf_elf_begin=yes
11077 else
11078 echo "$as_me: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 ac_cv_lib_elf_elf_begin=no
11081 fi
11082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11083 LIBS=$ac_check_lib_save_LIBS
11084 fi
11085 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11086 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
11087 if test $ac_cv_lib_elf_elf_begin = yes; then
11088 LIBS="-lelf $LIBS"
11089 fi
11090
11091 fi
11092 if test $ac_have_func = no; then
11093 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11094 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
11095 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 ac_check_lib_save_LIBS=$LIBS
11099 LIBS="-lkvm $LIBS"
11100 cat >conftest.$ac_ext <<_ACEOF
11101 #line $LINENO "configure"
11102 #include "confdefs.h"
11103
11104 /* Override any gcc2 internal prototype to avoid an error. */
11105 #ifdef __cplusplus
11106 extern "C"
11107 #endif
11108 /* We use char because int might match the return type of a gcc2
11109 builtin and then its argument prototype would still apply. */
11110 char kvm_open ();
11111 #ifdef F77_DUMMY_MAIN
11112 # ifdef __cplusplus
11113 extern "C"
11114 # endif
11115 int F77_DUMMY_MAIN() { return 1; }
11116 #endif
11117 int
11118 main ()
11119 {
11120 kvm_open ();
11121 ;
11122 return 0;
11123 }
11124 _ACEOF
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127 (eval $ac_link) 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -s conftest$ac_exeext'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 ac_cv_lib_kvm_kvm_open=yes
11138 else
11139 echo "$as_me: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11141 ac_cv_lib_kvm_kvm_open=no
11142 fi
11143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11144 LIBS=$ac_check_lib_save_LIBS
11145 fi
11146 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11147 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
11148 if test $ac_cv_lib_kvm_kvm_open = yes; then
11149 LIBS="-lkvm $LIBS"
11150 fi
11151
11152 # Check for the 4.4BSD definition of getloadavg.
11153 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11154 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
11155 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158 ac_check_lib_save_LIBS=$LIBS
11159 LIBS="-lutil $LIBS"
11160 cat >conftest.$ac_ext <<_ACEOF
11161 #line $LINENO "configure"
11162 #include "confdefs.h"
11163
11164 /* Override any gcc2 internal prototype to avoid an error. */
11165 #ifdef __cplusplus
11166 extern "C"
11167 #endif
11168 /* We use char because int might match the return type of a gcc2
11169 builtin and then its argument prototype would still apply. */
11170 char getloadavg ();
11171 #ifdef F77_DUMMY_MAIN
11172 # ifdef __cplusplus
11173 extern "C"
11174 # endif
11175 int F77_DUMMY_MAIN() { return 1; }
11176 #endif
11177 int
11178 main ()
11179 {
11180 getloadavg ();
11181 ;
11182 return 0;
11183 }
11184 _ACEOF
11185 rm -f conftest.$ac_objext conftest$ac_exeext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } &&
11191 { ac_try='test -s conftest$ac_exeext'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 ac_cv_lib_util_getloadavg=yes
11198 else
11199 echo "$as_me: failed program was:" >&5
11200 cat conftest.$ac_ext >&5
11201 ac_cv_lib_util_getloadavg=no
11202 fi
11203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11204 LIBS=$ac_check_lib_save_LIBS
11205 fi
11206 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11207 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
11208 if test $ac_cv_lib_util_getloadavg = yes; then
11209 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11210 fi
11211
11212 fi
11213
11214 if test $ac_have_func = no; then
11215 # There is a commonly available library for RS/6000 AIX.
11216 # Since it is not a standard part of AIX, it might be installed locally.
11217 ac_getloadavg_LIBS=$LIBS
11218 LIBS="-L/usr/local/lib $LIBS"
11219 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11220 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
11221 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224 ac_check_lib_save_LIBS=$LIBS
11225 LIBS="-lgetloadavg $LIBS"
11226 cat >conftest.$ac_ext <<_ACEOF
11227 #line $LINENO "configure"
11228 #include "confdefs.h"
11229
11230 /* Override any gcc2 internal prototype to avoid an error. */
11231 #ifdef __cplusplus
11232 extern "C"
11233 #endif
11234 /* We use char because int might match the return type of a gcc2
11235 builtin and then its argument prototype would still apply. */
11236 char getloadavg ();
11237 #ifdef F77_DUMMY_MAIN
11238 # ifdef __cplusplus
11239 extern "C"
11240 # endif
11241 int F77_DUMMY_MAIN() { return 1; }
11242 #endif
11243 int
11244 main ()
11245 {
11246 getloadavg ();
11247 ;
11248 return 0;
11249 }
11250 _ACEOF
11251 rm -f conftest.$ac_objext conftest$ac_exeext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } &&
11257 { ac_try='test -s conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_cv_lib_getloadavg_getloadavg=yes
11264 else
11265 echo "$as_me: failed program was:" >&5
11266 cat conftest.$ac_ext >&5
11267 ac_cv_lib_getloadavg_getloadavg=no
11268 fi
11269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11270 LIBS=$ac_check_lib_save_LIBS
11271 fi
11272 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11273 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
11274 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11275 LIBS="-lgetloadavg $LIBS"
11276 else
11277 LIBS=$ac_getloadavg_LIBS
11278 fi
11279
11280 fi
11281
11282 # Make sure it is really in the library, if we think we found it,
11283 # otherwise set up the replacement function.
11284
11285 for ac_func in getloadavg
11286 do
11287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11288 echo "$as_me:$LINENO: checking for $ac_func" >&5
11289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11290 if eval "test \"\${$as_ac_var+set}\" = set"; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 else
11293 cat >conftest.$ac_ext <<_ACEOF
11294 #line $LINENO "configure"
11295 #include "confdefs.h"
11296 /* System header to define __stub macros and hopefully few prototypes,
11297 which can conflict with char $ac_func (); below. */
11298 #include <assert.h>
11299 /* Override any gcc2 internal prototype to avoid an error. */
11300 #ifdef __cplusplus
11301 extern "C"
11302 #endif
11303 /* We use char because int might match the return type of a gcc2
11304 builtin and then its argument prototype would still apply. */
11305 char $ac_func ();
11306 char (*f) ();
11307
11308 #ifdef F77_DUMMY_MAIN
11309 # ifdef __cplusplus
11310 extern "C"
11311 # endif
11312 int F77_DUMMY_MAIN() { return 1; }
11313 #endif
11314 int
11315 main ()
11316 {
11317 /* The GNU C library defines this for functions which it implements
11318 to always fail with ENOSYS. Some functions are actually named
11319 something starting with __ and the normal name is an alias. */
11320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11321 choke me
11322 #else
11323 f = $ac_func;
11324 #endif
11325
11326 ;
11327 return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11332 (eval $ac_link) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } &&
11336 { ac_try='test -s conftest$ac_exeext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 eval "$as_ac_var=yes"
11343 else
11344 echo "$as_me: failed program was:" >&5
11345 cat conftest.$ac_ext >&5
11346 eval "$as_ac_var=no"
11347 fi
11348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11349 fi
11350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11352 if test `eval echo '${'$as_ac_var'}'` = yes; then
11353 cat >>confdefs.h <<_ACEOF
11354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11355 _ACEOF
11356
11357 else
11358 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11359
11360 cat >>confdefs.h <<\_ACEOF
11361 #define C_GETLOADAVG 1
11362 _ACEOF
11363
11364 # Figure out what our getloadavg.c needs.
11365 ac_have_func=no
11366 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11367 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11368 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11369 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 fi
11372 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11373 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11374 else
11375 # Is the header compilable?
11376 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11377 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11378 cat >conftest.$ac_ext <<_ACEOF
11379 #line $LINENO "configure"
11380 #include "confdefs.h"
11381 $ac_includes_default
11382 #include <sys/dg_sys_info.h>
11383 _ACEOF
11384 rm -f conftest.$ac_objext
11385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386 (eval $ac_compile) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } &&
11390 { ac_try='test -s conftest.$ac_objext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 ac_header_compiler=yes
11397 else
11398 echo "$as_me: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11400 ac_header_compiler=no
11401 fi
11402 rm -f conftest.$ac_objext conftest.$ac_ext
11403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11404 echo "${ECHO_T}$ac_header_compiler" >&6
11405
11406 # Is the header present?
11407 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11408 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11409 cat >conftest.$ac_ext <<_ACEOF
11410 #line $LINENO "configure"
11411 #include "confdefs.h"
11412 #include <sys/dg_sys_info.h>
11413 _ACEOF
11414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11416 ac_status=$?
11417 egrep -v '^ *\+' conftest.er1 >conftest.err
11418 rm -f conftest.er1
11419 cat conftest.err >&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } >/dev/null; then
11422 if test -s conftest.err; then
11423 ac_cpp_err=$ac_c_preproc_warn_flag
11424 else
11425 ac_cpp_err=
11426 fi
11427 else
11428 ac_cpp_err=yes
11429 fi
11430 if test -z "$ac_cpp_err"; then
11431 ac_header_preproc=yes
11432 else
11433 echo "$as_me: failed program was:" >&5
11434 cat conftest.$ac_ext >&5
11435 ac_header_preproc=no
11436 fi
11437 rm -f conftest.err conftest.$ac_ext
11438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11439 echo "${ECHO_T}$ac_header_preproc" >&6
11440
11441 # So? What about this header?
11442 case $ac_header_compiler:$ac_header_preproc in
11443 yes:no )
11444 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11445 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11447 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11448 no:yes )
11449 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11450 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11452 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11454 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11455 esac
11456 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11457 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11458 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
11462 fi
11463 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11464 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11465
11466 fi
11467 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11468 ac_have_func=yes
11469
11470 cat >>confdefs.h <<\_ACEOF
11471 #define DGUX 1
11472 _ACEOF
11473
11474
11475 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11476 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11477 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 else
11480 ac_check_lib_save_LIBS=$LIBS
11481 LIBS="-ldgc $LIBS"
11482 cat >conftest.$ac_ext <<_ACEOF
11483 #line $LINENO "configure"
11484 #include "confdefs.h"
11485
11486 /* Override any gcc2 internal prototype to avoid an error. */
11487 #ifdef __cplusplus
11488 extern "C"
11489 #endif
11490 /* We use char because int might match the return type of a gcc2
11491 builtin and then its argument prototype would still apply. */
11492 char dg_sys_info ();
11493 #ifdef F77_DUMMY_MAIN
11494 # ifdef __cplusplus
11495 extern "C"
11496 # endif
11497 int F77_DUMMY_MAIN() { return 1; }
11498 #endif
11499 int
11500 main ()
11501 {
11502 dg_sys_info ();
11503 ;
11504 return 0;
11505 }
11506 _ACEOF
11507 rm -f conftest.$ac_objext conftest$ac_exeext
11508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11509 (eval $ac_link) 2>&5
11510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try='test -s conftest$ac_exeext'
11514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 (eval $ac_try) 2>&5
11516 ac_status=$?
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; }; then
11519 ac_cv_lib_dgc_dg_sys_info=yes
11520 else
11521 echo "$as_me: failed program was:" >&5
11522 cat conftest.$ac_ext >&5
11523 ac_cv_lib_dgc_dg_sys_info=no
11524 fi
11525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11526 LIBS=$ac_check_lib_save_LIBS
11527 fi
11528 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11529 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11530 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11531 cat >>confdefs.h <<_ACEOF
11532 #define HAVE_LIBDGC 1
11533 _ACEOF
11534
11535 LIBS="-ldgc $LIBS"
11536
11537 fi
11538
11539 fi
11540
11541
11542
11543 if test "${ac_cv_header_locale_h+set}" = set; then
11544 echo "$as_me:$LINENO: checking for locale.h" >&5
11545 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11546 if test "${ac_cv_header_locale_h+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 fi
11549 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11550 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11551 else
11552 # Is the header compilable?
11553 echo "$as_me:$LINENO: checking locale.h usability" >&5
11554 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11555 cat >conftest.$ac_ext <<_ACEOF
11556 #line $LINENO "configure"
11557 #include "confdefs.h"
11558 $ac_includes_default
11559 #include <locale.h>
11560 _ACEOF
11561 rm -f conftest.$ac_objext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11563 (eval $ac_compile) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -s conftest.$ac_objext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 ac_header_compiler=yes
11574 else
11575 echo "$as_me: failed program was:" >&5
11576 cat conftest.$ac_ext >&5
11577 ac_header_compiler=no
11578 fi
11579 rm -f conftest.$ac_objext conftest.$ac_ext
11580 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11581 echo "${ECHO_T}$ac_header_compiler" >&6
11582
11583 # Is the header present?
11584 echo "$as_me:$LINENO: checking locale.h presence" >&5
11585 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11586 cat >conftest.$ac_ext <<_ACEOF
11587 #line $LINENO "configure"
11588 #include "confdefs.h"
11589 #include <locale.h>
11590 _ACEOF
11591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11593 ac_status=$?
11594 egrep -v '^ *\+' conftest.er1 >conftest.err
11595 rm -f conftest.er1
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } >/dev/null; then
11599 if test -s conftest.err; then
11600 ac_cpp_err=$ac_c_preproc_warn_flag
11601 else
11602 ac_cpp_err=
11603 fi
11604 else
11605 ac_cpp_err=yes
11606 fi
11607 if test -z "$ac_cpp_err"; then
11608 ac_header_preproc=yes
11609 else
11610 echo "$as_me: failed program was:" >&5
11611 cat conftest.$ac_ext >&5
11612 ac_header_preproc=no
11613 fi
11614 rm -f conftest.err conftest.$ac_ext
11615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11616 echo "${ECHO_T}$ac_header_preproc" >&6
11617
11618 # So? What about this header?
11619 case $ac_header_compiler:$ac_header_preproc in
11620 yes:no )
11621 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11622 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11624 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11625 no:yes )
11626 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11627 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11629 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11631 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11632 esac
11633 echo "$as_me:$LINENO: checking for locale.h" >&5
11634 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11635 if test "${ac_cv_header_locale_h+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638 ac_cv_header_locale_h=$ac_header_preproc
11639 fi
11640 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11641 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11642
11643 fi
11644
11645
11646
11647 for ac_func in setlocale
11648 do
11649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11650 echo "$as_me:$LINENO: checking for $ac_func" >&5
11651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11652 if eval "test \"\${$as_ac_var+set}\" = set"; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 else
11655 cat >conftest.$ac_ext <<_ACEOF
11656 #line $LINENO "configure"
11657 #include "confdefs.h"
11658 /* System header to define __stub macros and hopefully few prototypes,
11659 which can conflict with char $ac_func (); below. */
11660 #include <assert.h>
11661 /* Override any gcc2 internal prototype to avoid an error. */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 /* We use char because int might match the return type of a gcc2
11666 builtin and then its argument prototype would still apply. */
11667 char $ac_func ();
11668 char (*f) ();
11669
11670 #ifdef F77_DUMMY_MAIN
11671 # ifdef __cplusplus
11672 extern "C"
11673 # endif
11674 int F77_DUMMY_MAIN() { return 1; }
11675 #endif
11676 int
11677 main ()
11678 {
11679 /* The GNU C library defines this for functions which it implements
11680 to always fail with ENOSYS. Some functions are actually named
11681 something starting with __ and the normal name is an alias. */
11682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11683 choke me
11684 #else
11685 f = $ac_func;
11686 #endif
11687
11688 ;
11689 return 0;
11690 }
11691 _ACEOF
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11694 (eval $ac_link) 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
11698 { ac_try='test -s conftest$ac_exeext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 eval "$as_ac_var=yes"
11705 else
11706 echo "$as_me: failed program was:" >&5
11707 cat conftest.$ac_ext >&5
11708 eval "$as_ac_var=no"
11709 fi
11710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11711 fi
11712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11714 if test `eval echo '${'$as_ac_var'}'` = yes; then
11715 cat >>confdefs.h <<_ACEOF
11716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11717 _ACEOF
11718
11719 fi
11720 done
11721
11722
11723 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11724 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11725 # Irix 4.0.5F has the header but not the library.
11726 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11727 ac_have_func=yes
11728
11729 cat >>confdefs.h <<\_ACEOF
11730 #define SVR4 1
11731 _ACEOF
11732
11733 fi
11734
11735 if test $ac_have_func = no; then
11736 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11737 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11738 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11739 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 fi
11742 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11743 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11744 else
11745 # Is the header compilable?
11746 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11747 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11748 cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 #include "confdefs.h"
11751 $ac_includes_default
11752 #include <inq_stats/cpustats.h>
11753 _ACEOF
11754 rm -f conftest.$ac_objext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756 (eval $ac_compile) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -s conftest.$ac_objext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_header_compiler=yes
11767 else
11768 echo "$as_me: failed program was:" >&5
11769 cat conftest.$ac_ext >&5
11770 ac_header_compiler=no
11771 fi
11772 rm -f conftest.$ac_objext conftest.$ac_ext
11773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11774 echo "${ECHO_T}$ac_header_compiler" >&6
11775
11776 # Is the header present?
11777 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11778 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11779 cat >conftest.$ac_ext <<_ACEOF
11780 #line $LINENO "configure"
11781 #include "confdefs.h"
11782 #include <inq_stats/cpustats.h>
11783 _ACEOF
11784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11786 ac_status=$?
11787 egrep -v '^ *\+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } >/dev/null; then
11792 if test -s conftest.err; then
11793 ac_cpp_err=$ac_c_preproc_warn_flag
11794 else
11795 ac_cpp_err=
11796 fi
11797 else
11798 ac_cpp_err=yes
11799 fi
11800 if test -z "$ac_cpp_err"; then
11801 ac_header_preproc=yes
11802 else
11803 echo "$as_me: failed program was:" >&5
11804 cat conftest.$ac_ext >&5
11805 ac_header_preproc=no
11806 fi
11807 rm -f conftest.err conftest.$ac_ext
11808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11809 echo "${ECHO_T}$ac_header_preproc" >&6
11810
11811 # So? What about this header?
11812 case $ac_header_compiler:$ac_header_preproc in
11813 yes:no )
11814 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11815 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11817 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11818 no:yes )
11819 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11820 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11821 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11822 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11824 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11825 esac
11826 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11827 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11828 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
11832 fi
11833 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11834 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11835
11836 fi
11837 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11838 ac_have_func=yes
11839
11840 cat >>confdefs.h <<\_ACEOF
11841 #define UMAX 1
11842 _ACEOF
11843
11844
11845 cat >>confdefs.h <<\_ACEOF
11846 #define UMAX4_3 1
11847 _ACEOF
11848
11849 fi
11850
11851
11852 fi
11853
11854 if test $ac_have_func = no; then
11855 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11856 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11857 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11858 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 fi
11861 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11862 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11863 else
11864 # Is the header compilable?
11865 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11866 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11867 cat >conftest.$ac_ext <<_ACEOF
11868 #line $LINENO "configure"
11869 #include "confdefs.h"
11870 $ac_includes_default
11871 #include <sys/cpustats.h>
11872 _ACEOF
11873 rm -f conftest.$ac_objext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875 (eval $ac_compile) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } &&
11879 { ac_try='test -s conftest.$ac_objext'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11882 ac_status=$?
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 ac_header_compiler=yes
11886 else
11887 echo "$as_me: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11889 ac_header_compiler=no
11890 fi
11891 rm -f conftest.$ac_objext conftest.$ac_ext
11892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11893 echo "${ECHO_T}$ac_header_compiler" >&6
11894
11895 # Is the header present?
11896 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11897 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11898 cat >conftest.$ac_ext <<_ACEOF
11899 #line $LINENO "configure"
11900 #include "confdefs.h"
11901 #include <sys/cpustats.h>
11902 _ACEOF
11903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11905 ac_status=$?
11906 egrep -v '^ *\+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } >/dev/null; then
11911 if test -s conftest.err; then
11912 ac_cpp_err=$ac_c_preproc_warn_flag
11913 else
11914 ac_cpp_err=
11915 fi
11916 else
11917 ac_cpp_err=yes
11918 fi
11919 if test -z "$ac_cpp_err"; then
11920 ac_header_preproc=yes
11921 else
11922 echo "$as_me: failed program was:" >&5
11923 cat conftest.$ac_ext >&5
11924 ac_header_preproc=no
11925 fi
11926 rm -f conftest.err conftest.$ac_ext
11927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11928 echo "${ECHO_T}$ac_header_preproc" >&6
11929
11930 # So? What about this header?
11931 case $ac_header_compiler:$ac_header_preproc in
11932 yes:no )
11933 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11934 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11936 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11937 no:yes )
11938 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11939 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11940 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11941 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11942 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11943 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11944 esac
11945 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11946 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11947 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950 ac_cv_header_sys_cpustats_h=$ac_header_preproc
11951 fi
11952 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11953 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11954
11955 fi
11956 if test $ac_cv_header_sys_cpustats_h = yes; then
11957 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
11958 #define UMAX 1
11959 _ACEOF
11960
11961 fi
11962
11963
11964 fi
11965
11966 if test $ac_have_func = no; then
11967
11968 for ac_header in mach/mach.h
11969 do
11970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11972 echo "$as_me:$LINENO: checking for $ac_header" >&5
11973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 fi
11977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11979 else
11980 # Is the header compilable?
11981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11983 cat >conftest.$ac_ext <<_ACEOF
11984 #line $LINENO "configure"
11985 #include "confdefs.h"
11986 $ac_includes_default
11987 #include <$ac_header>
11988 _ACEOF
11989 rm -f conftest.$ac_objext
11990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991 (eval $ac_compile) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_header_compiler=yes
12002 else
12003 echo "$as_me: failed program was:" >&5
12004 cat conftest.$ac_ext >&5
12005 ac_header_compiler=no
12006 fi
12007 rm -f conftest.$ac_objext conftest.$ac_ext
12008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12009 echo "${ECHO_T}$ac_header_compiler" >&6
12010
12011 # Is the header present?
12012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12014 cat >conftest.$ac_ext <<_ACEOF
12015 #line $LINENO "configure"
12016 #include "confdefs.h"
12017 #include <$ac_header>
12018 _ACEOF
12019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12021 ac_status=$?
12022 egrep -v '^ *\+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } >/dev/null; then
12027 if test -s conftest.err; then
12028 ac_cpp_err=$ac_c_preproc_warn_flag
12029 else
12030 ac_cpp_err=
12031 fi
12032 else
12033 ac_cpp_err=yes
12034 fi
12035 if test -z "$ac_cpp_err"; then
12036 ac_header_preproc=yes
12037 else
12038 echo "$as_me: failed program was:" >&5
12039 cat conftest.$ac_ext >&5
12040 ac_header_preproc=no
12041 fi
12042 rm -f conftest.err conftest.$ac_ext
12043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12044 echo "${ECHO_T}$ac_header_preproc" >&6
12045
12046 # So? What about this header?
12047 case $ac_header_compiler:$ac_header_preproc in
12048 yes:no )
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12053 no:yes )
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12060 esac
12061 echo "$as_me:$LINENO: checking for $ac_header" >&5
12062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 else
12066 eval "$as_ac_Header=$ac_header_preproc"
12067 fi
12068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12070
12071 fi
12072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12073 cat >>confdefs.h <<_ACEOF
12074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12075 _ACEOF
12076
12077 fi
12078
12079 done
12080
12081 fi
12082
12083
12084 for ac_header in nlist.h
12085 do
12086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12088 echo "$as_me:$LINENO: checking for $ac_header" >&5
12089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 fi
12093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12095 else
12096 # Is the header compilable?
12097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12099 cat >conftest.$ac_ext <<_ACEOF
12100 #line $LINENO "configure"
12101 #include "confdefs.h"
12102 $ac_includes_default
12103 #include <$ac_header>
12104 _ACEOF
12105 rm -f conftest.$ac_objext
12106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12107 (eval $ac_compile) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -s conftest.$ac_objext'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 ac_header_compiler=yes
12118 else
12119 echo "$as_me: failed program was:" >&5
12120 cat conftest.$ac_ext >&5
12121 ac_header_compiler=no
12122 fi
12123 rm -f conftest.$ac_objext conftest.$ac_ext
12124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12125 echo "${ECHO_T}$ac_header_compiler" >&6
12126
12127 # Is the header present?
12128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12130 cat >conftest.$ac_ext <<_ACEOF
12131 #line $LINENO "configure"
12132 #include "confdefs.h"
12133 #include <$ac_header>
12134 _ACEOF
12135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12137 ac_status=$?
12138 egrep -v '^ *\+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } >/dev/null; then
12143 if test -s conftest.err; then
12144 ac_cpp_err=$ac_c_preproc_warn_flag
12145 else
12146 ac_cpp_err=
12147 fi
12148 else
12149 ac_cpp_err=yes
12150 fi
12151 if test -z "$ac_cpp_err"; then
12152 ac_header_preproc=yes
12153 else
12154 echo "$as_me: failed program was:" >&5
12155 cat conftest.$ac_ext >&5
12156 ac_header_preproc=no
12157 fi
12158 rm -f conftest.err conftest.$ac_ext
12159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12160 echo "${ECHO_T}$ac_header_preproc" >&6
12161
12162 # So? What about this header?
12163 case $ac_header_compiler:$ac_header_preproc in
12164 yes:no )
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12169 no:yes )
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12176 esac
12177 echo "$as_me:$LINENO: checking for $ac_header" >&5
12178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182 eval "$as_ac_Header=$ac_header_preproc"
12183 fi
12184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12186
12187 fi
12188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12189 cat >>confdefs.h <<_ACEOF
12190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12191 _ACEOF
12192 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
12193 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
12194 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197 cat >conftest.$ac_ext <<_ACEOF
12198 #line $LINENO "configure"
12199 #include "confdefs.h"
12200 #include <nlist.h>
12201
12202 #ifdef F77_DUMMY_MAIN
12203 # ifdef __cplusplus
12204 extern "C"
12205 # endif
12206 int F77_DUMMY_MAIN() { return 1; }
12207 #endif
12208 int
12209 main ()
12210 {
12211 static struct nlist ac_aggr;
12212 if (ac_aggr.n_un.n_name)
12213 return 0;
12214 ;
12215 return 0;
12216 }
12217 _ACEOF
12218 rm -f conftest.$ac_objext
12219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12220 (eval $ac_compile) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } &&
12224 { ac_try='test -s conftest.$ac_objext'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 ac_cv_member_struct_nlist_n_un_n_name=yes
12231 else
12232 echo "$as_me: failed program was:" >&5
12233 cat conftest.$ac_ext >&5
12234 ac_cv_member_struct_nlist_n_un_n_name=no
12235 fi
12236 rm -f conftest.$ac_objext conftest.$ac_ext
12237 fi
12238 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
12239 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
12240 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
12241
12242 cat >>confdefs.h <<_ACEOF
12243 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12244 _ACEOF
12245
12246
12247 cat >>confdefs.h <<\_ACEOF
12248 #define NLIST_NAME_UNION 1
12249 _ACEOF
12250
12251 fi
12252
12253
12254 fi
12255
12256 done
12257
12258 fi
12259 done
12260
12261
12262 # Some definitions of getloadavg require that the program be installed setgid.
12263 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
12264 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
12265 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268 cat >conftest.$ac_ext <<_ACEOF
12269 #line $LINENO "configure"
12270 #include "confdefs.h"
12271 #include "$srcdir/getloadavg.c"
12272 #ifdef LDAV_PRIVILEGED
12273 Yowza Am I SETGID yet
12274 #endif
12275 _ACEOF
12276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12277 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
12278 ac_cv_func_getloadavg_setgid=yes
12279 else
12280 ac_cv_func_getloadavg_setgid=no
12281 fi
12282 rm -f conftest*
12283
12284 fi
12285 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12286 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12287 if test $ac_cv_func_getloadavg_setgid = yes; then
12288 NEED_SETGID=true
12289
12290 cat >>confdefs.h <<\_ACEOF
12291 #define GETLOADAVG_PRIVILEGED 1
12292 _ACEOF
12293
12294 else
12295 NEED_SETGID=false
12296 fi
12297
12298 if test $ac_cv_func_getloadavg_setgid = yes; then
12299 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12300 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12301 if test "${ac_cv_group_kmem+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 else
12304 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12305 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12306 # If we got an error (system does not support symlinks), try without -L.
12307 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12308 ac_cv_group_kmem=`echo $ac_ls_output \
12309 | sed -ne 's/[ ][ ]*/ /g;
12310 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12311 / /s/.* //;p;'`
12312
12313 fi
12314 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12315 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12316 KMEM_GROUP=$ac_cv_group_kmem
12317 fi
12318 if test "x$ac_save_LIBS" = x; then
12319 GETLOADAVG_LIBS=$LIBS
12320 else
12321 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12322 fi
12323 LIBS=$ac_save_LIBS
12324
12325
12326
12327 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12328 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12329 if test "${ac_cv_sys_largefile_source+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 else
12332 while :; do
12333 ac_cv_sys_largefile_source=no
12334 cat >conftest.$ac_ext <<_ACEOF
12335 #line $LINENO "configure"
12336 #include "confdefs.h"
12337 #include <stdio.h>
12338 #ifdef F77_DUMMY_MAIN
12339 # ifdef __cplusplus
12340 extern "C"
12341 # endif
12342 int F77_DUMMY_MAIN() { return 1; }
12343 #endif
12344 int
12345 main ()
12346 {
12347 return !fseeko;
12348 ;
12349 return 0;
12350 }
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -s conftest.$ac_objext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 break
12365 else
12366 echo "$as_me: failed program was:" >&5
12367 cat conftest.$ac_ext >&5
12368 fi
12369 rm -f conftest.$ac_objext conftest.$ac_ext
12370 cat >conftest.$ac_ext <<_ACEOF
12371 #line $LINENO "configure"
12372 #include "confdefs.h"
12373 #define _LARGEFILE_SOURCE 1
12374 #include <stdio.h>
12375 #ifdef F77_DUMMY_MAIN
12376 # ifdef __cplusplus
12377 extern "C"
12378 # endif
12379 int F77_DUMMY_MAIN() { return 1; }
12380 #endif
12381 int
12382 main ()
12383 {
12384 return !fseeko;
12385 ;
12386 return 0;
12387 }
12388 _ACEOF
12389 rm -f conftest.$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -s conftest.$ac_objext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 ac_cv_sys_largefile_source=1; break
12402 else
12403 echo "$as_me: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12405 fi
12406 rm -f conftest.$ac_objext conftest.$ac_ext
12407 break
12408 done
12409 fi
12410 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12411 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12412 if test "$ac_cv_sys_largefile_source" != no; then
12413
12414 cat >>confdefs.h <<_ACEOF
12415 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12416 _ACEOF
12417
12418 fi
12419 rm -f conftest*
12420
12421 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12422 # in glibc 2.1.3, but that breaks too many other things.
12423 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12424 echo "$as_me:$LINENO: checking for fseeko" >&5
12425 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12426 if test "${ac_cv_func_fseeko+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
12429 cat >conftest.$ac_ext <<_ACEOF
12430 #line $LINENO "configure"
12431 #include "confdefs.h"
12432 #include <stdio.h>
12433 #ifdef F77_DUMMY_MAIN
12434 # ifdef __cplusplus
12435 extern "C"
12436 # endif
12437 int F77_DUMMY_MAIN() { return 1; }
12438 #endif
12439 int
12440 main ()
12441 {
12442 return fseeko && fseeko (stdin, 0, 0);
12443 ;
12444 return 0;
12445 }
12446 _ACEOF
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449 (eval $ac_link) 2>&5
12450 ac_status=$?
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try='test -s conftest$ac_exeext'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_cv_func_fseeko=yes
12460 else
12461 echo "$as_me: failed program was:" >&5
12462 cat conftest.$ac_ext >&5
12463 ac_cv_func_fseeko=no
12464 fi
12465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12466 fi
12467 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12468 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12469 if test $ac_cv_func_fseeko = yes; then
12470
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_FSEEKO 1
12473 _ACEOF
12474
12475 fi
12476
12477
12478 # UNIX98 PTYs.
12479
12480 for ac_func in grantpt
12481 do
12482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12483 echo "$as_me:$LINENO: checking for $ac_func" >&5
12484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12485 if eval "test \"\${$as_ac_var+set}\" = set"; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488 cat >conftest.$ac_ext <<_ACEOF
12489 #line $LINENO "configure"
12490 #include "confdefs.h"
12491 /* System header to define __stub macros and hopefully few prototypes,
12492 which can conflict with char $ac_func (); below. */
12493 #include <assert.h>
12494 /* Override any gcc2 internal prototype to avoid an error. */
12495 #ifdef __cplusplus
12496 extern "C"
12497 #endif
12498 /* We use char because int might match the return type of a gcc2
12499 builtin and then its argument prototype would still apply. */
12500 char $ac_func ();
12501 char (*f) ();
12502
12503 #ifdef F77_DUMMY_MAIN
12504 # ifdef __cplusplus
12505 extern "C"
12506 # endif
12507 int F77_DUMMY_MAIN() { return 1; }
12508 #endif
12509 int
12510 main ()
12511 {
12512 /* The GNU C library defines this for functions which it implements
12513 to always fail with ENOSYS. Some functions are actually named
12514 something starting with __ and the normal name is an alias. */
12515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12516 choke me
12517 #else
12518 f = $ac_func;
12519 #endif
12520
12521 ;
12522 return 0;
12523 }
12524 _ACEOF
12525 rm -f conftest.$ac_objext conftest$ac_exeext
12526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12527 (eval $ac_link) 2>&5
12528 ac_status=$?
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -s conftest$ac_exeext'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
12537 eval "$as_ac_var=yes"
12538 else
12539 echo "$as_me: failed program was:" >&5
12540 cat conftest.$ac_ext >&5
12541 eval "$as_ac_var=no"
12542 fi
12543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12544 fi
12545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12547 if test `eval echo '${'$as_ac_var'}'` = yes; then
12548 cat >>confdefs.h <<_ACEOF
12549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12550 _ACEOF
12551
12552 fi
12553 done
12554
12555
12556 # PTY-related GNU extensions.
12557
12558 for ac_func in getpt
12559 do
12560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12561 echo "$as_me:$LINENO: checking for $ac_func" >&5
12562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12563 if eval "test \"\${$as_ac_var+set}\" = set"; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 else
12566 cat >conftest.$ac_ext <<_ACEOF
12567 #line $LINENO "configure"
12568 #include "confdefs.h"
12569 /* System header to define __stub macros and hopefully few prototypes,
12570 which can conflict with char $ac_func (); below. */
12571 #include <assert.h>
12572 /* Override any gcc2 internal prototype to avoid an error. */
12573 #ifdef __cplusplus
12574 extern "C"
12575 #endif
12576 /* We use char because int might match the return type of a gcc2
12577 builtin and then its argument prototype would still apply. */
12578 char $ac_func ();
12579 char (*f) ();
12580
12581 #ifdef F77_DUMMY_MAIN
12582 # ifdef __cplusplus
12583 extern "C"
12584 # endif
12585 int F77_DUMMY_MAIN() { return 1; }
12586 #endif
12587 int
12588 main ()
12589 {
12590 /* The GNU C library defines this for functions which it implements
12591 to always fail with ENOSYS. Some functions are actually named
12592 something starting with __ and the normal name is an alias. */
12593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12594 choke me
12595 #else
12596 f = $ac_func;
12597 #endif
12598
12599 ;
12600 return 0;
12601 }
12602 _ACEOF
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12605 (eval $ac_link) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try='test -s conftest$ac_exeext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 eval "$as_ac_var=yes"
12616 else
12617 echo "$as_me: failed program was:" >&5
12618 cat conftest.$ac_ext >&5
12619 eval "$as_ac_var=no"
12620 fi
12621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12622 fi
12623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12625 if test `eval echo '${'$as_ac_var'}'` = yes; then
12626 cat >>confdefs.h <<_ACEOF
12627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12628 _ACEOF
12629
12630 fi
12631 done
12632
12633
12634 # Check this now, so that we will NOT find the above functions in ncurses.
12635 # That is because we have not set up to link ncurses in lib-src.
12636 # It's better to believe a function is not available
12637 # than to expect to find it in ncurses.
12638
12639 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
12640 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
12641 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 else
12644 ac_check_lib_save_LIBS=$LIBS
12645 LIBS="-lncurses $LIBS"
12646 cat >conftest.$ac_ext <<_ACEOF
12647 #line $LINENO "configure"
12648 #include "confdefs.h"
12649
12650 /* Override any gcc2 internal prototype to avoid an error. */
12651 #ifdef __cplusplus
12652 extern "C"
12653 #endif
12654 /* We use char because int might match the return type of a gcc2
12655 builtin and then its argument prototype would still apply. */
12656 char tparm ();
12657 #ifdef F77_DUMMY_MAIN
12658 # ifdef __cplusplus
12659 extern "C"
12660 # endif
12661 int F77_DUMMY_MAIN() { return 1; }
12662 #endif
12663 int
12664 main ()
12665 {
12666 tparm ();
12667 ;
12668 return 0;
12669 }
12670 _ACEOF
12671 rm -f conftest.$ac_objext conftest$ac_exeext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12673 (eval $ac_link) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } &&
12677 { ac_try='test -s conftest$ac_exeext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_cv_lib_ncurses_tparm=yes
12684 else
12685 echo "$as_me: failed program was:" >&5
12686 cat conftest.$ac_ext >&5
12687 ac_cv_lib_ncurses_tparm=no
12688 fi
12689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12690 LIBS=$ac_check_lib_save_LIBS
12691 fi
12692 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
12693 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
12694 if test $ac_cv_lib_ncurses_tparm = yes; then
12695 cat >>confdefs.h <<_ACEOF
12696 #define HAVE_LIBNCURSES 1
12697 _ACEOF
12698
12699 LIBS="-lncurses $LIBS"
12700
12701 fi
12702
12703
12704 # Do we need the Hesiod library to provide the support routines?
12705 if test "$with_hesiod" = yes ; then
12706 # Don't set $LIBS here -- see comments above.
12707 resolv=no
12708 echo "$as_me:$LINENO: checking for res_send" >&5
12709 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
12710 if test "${ac_cv_func_res_send+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12713 cat >conftest.$ac_ext <<_ACEOF
12714 #line $LINENO "configure"
12715 #include "confdefs.h"
12716 /* System header to define __stub macros and hopefully few prototypes,
12717 which can conflict with char res_send (); below. */
12718 #include <assert.h>
12719 /* Override any gcc2 internal prototype to avoid an error. */
12720 #ifdef __cplusplus
12721 extern "C"
12722 #endif
12723 /* We use char because int might match the return type of a gcc2
12724 builtin and then its argument prototype would still apply. */
12725 char res_send ();
12726 char (*f) ();
12727
12728 #ifdef F77_DUMMY_MAIN
12729 # ifdef __cplusplus
12730 extern "C"
12731 # endif
12732 int F77_DUMMY_MAIN() { return 1; }
12733 #endif
12734 int
12735 main ()
12736 {
12737 /* The GNU C library defines this for functions which it implements
12738 to always fail with ENOSYS. Some functions are actually named
12739 something starting with __ and the normal name is an alias. */
12740 #if defined (__stub_res_send) || defined (__stub___res_send)
12741 choke me
12742 #else
12743 f = res_send;
12744 #endif
12745
12746 ;
12747 return 0;
12748 }
12749 _ACEOF
12750 rm -f conftest.$ac_objext conftest$ac_exeext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752 (eval $ac_link) 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try='test -s conftest$ac_exeext'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 ac_cv_func_res_send=yes
12763 else
12764 echo "$as_me: failed program was:" >&5
12765 cat conftest.$ac_ext >&5
12766 ac_cv_func_res_send=no
12767 fi
12768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12769 fi
12770 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
12771 echo "${ECHO_T}$ac_cv_func_res_send" >&6
12772 if test $ac_cv_func_res_send = yes; then
12773 :
12774 else
12775 echo "$as_me:$LINENO: checking for __res_send" >&5
12776 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
12777 if test "${ac_cv_func___res_send+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780 cat >conftest.$ac_ext <<_ACEOF
12781 #line $LINENO "configure"
12782 #include "confdefs.h"
12783 /* System header to define __stub macros and hopefully few prototypes,
12784 which can conflict with char __res_send (); below. */
12785 #include <assert.h>
12786 /* Override any gcc2 internal prototype to avoid an error. */
12787 #ifdef __cplusplus
12788 extern "C"
12789 #endif
12790 /* We use char because int might match the return type of a gcc2
12791 builtin and then its argument prototype would still apply. */
12792 char __res_send ();
12793 char (*f) ();
12794
12795 #ifdef F77_DUMMY_MAIN
12796 # ifdef __cplusplus
12797 extern "C"
12798 # endif
12799 int F77_DUMMY_MAIN() { return 1; }
12800 #endif
12801 int
12802 main ()
12803 {
12804 /* The GNU C library defines this for functions which it implements
12805 to always fail with ENOSYS. Some functions are actually named
12806 something starting with __ and the normal name is an alias. */
12807 #if defined (__stub___res_send) || defined (__stub_____res_send)
12808 choke me
12809 #else
12810 f = __res_send;
12811 #endif
12812
12813 ;
12814 return 0;
12815 }
12816 _ACEOF
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12819 (eval $ac_link) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } &&
12823 { ac_try='test -s conftest$ac_exeext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 ac_cv_func___res_send=yes
12830 else
12831 echo "$as_me: failed program was:" >&5
12832 cat conftest.$ac_ext >&5
12833 ac_cv_func___res_send=no
12834 fi
12835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12836 fi
12837 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
12838 echo "${ECHO_T}$ac_cv_func___res_send" >&6
12839 if test $ac_cv_func___res_send = yes; then
12840 :
12841 else
12842 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12843 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
12844 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 else
12847 ac_check_lib_save_LIBS=$LIBS
12848 LIBS="-lresolv $LIBS"
12849 cat >conftest.$ac_ext <<_ACEOF
12850 #line $LINENO "configure"
12851 #include "confdefs.h"
12852
12853 /* Override any gcc2 internal prototype to avoid an error. */
12854 #ifdef __cplusplus
12855 extern "C"
12856 #endif
12857 /* We use char because int might match the return type of a gcc2
12858 builtin and then its argument prototype would still apply. */
12859 char res_send ();
12860 #ifdef F77_DUMMY_MAIN
12861 # ifdef __cplusplus
12862 extern "C"
12863 # endif
12864 int F77_DUMMY_MAIN() { return 1; }
12865 #endif
12866 int
12867 main ()
12868 {
12869 res_send ();
12870 ;
12871 return 0;
12872 }
12873 _ACEOF
12874 rm -f conftest.$ac_objext conftest$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } &&
12880 { ac_try='test -s conftest$ac_exeext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12883 ac_status=$?
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 ac_cv_lib_resolv_res_send=yes
12887 else
12888 echo "$as_me: failed program was:" >&5
12889 cat conftest.$ac_ext >&5
12890 ac_cv_lib_resolv_res_send=no
12891 fi
12892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12893 LIBS=$ac_check_lib_save_LIBS
12894 fi
12895 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12896 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
12897 if test $ac_cv_lib_resolv_res_send = yes; then
12898 resolv=yes
12899 else
12900 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12901 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
12902 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 else
12905 ac_check_lib_save_LIBS=$LIBS
12906 LIBS="-lresolv $LIBS"
12907 cat >conftest.$ac_ext <<_ACEOF
12908 #line $LINENO "configure"
12909 #include "confdefs.h"
12910
12911 /* Override any gcc2 internal prototype to avoid an error. */
12912 #ifdef __cplusplus
12913 extern "C"
12914 #endif
12915 /* We use char because int might match the return type of a gcc2
12916 builtin and then its argument prototype would still apply. */
12917 char __res_send ();
12918 #ifdef F77_DUMMY_MAIN
12919 # ifdef __cplusplus
12920 extern "C"
12921 # endif
12922 int F77_DUMMY_MAIN() { return 1; }
12923 #endif
12924 int
12925 main ()
12926 {
12927 __res_send ();
12928 ;
12929 return 0;
12930 }
12931 _ACEOF
12932 rm -f conftest.$ac_objext conftest$ac_exeext
12933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12934 (eval $ac_link) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } &&
12938 { ac_try='test -s conftest$ac_exeext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_cv_lib_resolv___res_send=yes
12945 else
12946 echo "$as_me: failed program was:" >&5
12947 cat conftest.$ac_ext >&5
12948 ac_cv_lib_resolv___res_send=no
12949 fi
12950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12951 LIBS=$ac_check_lib_save_LIBS
12952 fi
12953 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12954 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
12955 if test $ac_cv_lib_resolv___res_send = yes; then
12956 resolv=yes
12957 fi
12958
12959 fi
12960
12961 fi
12962
12963 fi
12964
12965 if test "$resolv" = yes ; then
12966 RESOLVLIB=-lresolv
12967
12968 cat >>confdefs.h <<\_ACEOF
12969 #define HAVE_LIBRESOLV 1
12970 _ACEOF
12971
12972 else
12973 RESOLVLIB=
12974 fi
12975 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12976 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
12977 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 else
12980 cat >conftest.$ac_ext <<_ACEOF
12981 #line $LINENO "configure"
12982 #include "confdefs.h"
12983 /* System header to define __stub macros and hopefully few prototypes,
12984 which can conflict with char hes_getmailhost (); below. */
12985 #include <assert.h>
12986 /* Override any gcc2 internal prototype to avoid an error. */
12987 #ifdef __cplusplus
12988 extern "C"
12989 #endif
12990 /* We use char because int might match the return type of a gcc2
12991 builtin and then its argument prototype would still apply. */
12992 char hes_getmailhost ();
12993 char (*f) ();
12994
12995 #ifdef F77_DUMMY_MAIN
12996 # ifdef __cplusplus
12997 extern "C"
12998 # endif
12999 int F77_DUMMY_MAIN() { return 1; }
13000 #endif
13001 int
13002 main ()
13003 {
13004 /* The GNU C library defines this for functions which it implements
13005 to always fail with ENOSYS. Some functions are actually named
13006 something starting with __ and the normal name is an alias. */
13007 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
13008 choke me
13009 #else
13010 f = hes_getmailhost;
13011 #endif
13012
13013 ;
13014 return 0;
13015 }
13016 _ACEOF
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } &&
13023 { ac_try='test -s conftest$ac_exeext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 ac_cv_func_hes_getmailhost=yes
13030 else
13031 echo "$as_me: failed program was:" >&5
13032 cat conftest.$ac_ext >&5
13033 ac_cv_func_hes_getmailhost=no
13034 fi
13035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13036 fi
13037 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
13038 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
13039 if test $ac_cv_func_hes_getmailhost = yes; then
13040 :
13041 else
13042 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
13043 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
13044 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13046 else
13047 ac_check_lib_save_LIBS=$LIBS
13048 LIBS="-lhesiod $RESOLVLIB $LIBS"
13049 cat >conftest.$ac_ext <<_ACEOF
13050 #line $LINENO "configure"
13051 #include "confdefs.h"
13052
13053 /* Override any gcc2 internal prototype to avoid an error. */
13054 #ifdef __cplusplus
13055 extern "C"
13056 #endif
13057 /* We use char because int might match the return type of a gcc2
13058 builtin and then its argument prototype would still apply. */
13059 char hes_getmailhost ();
13060 #ifdef F77_DUMMY_MAIN
13061 # ifdef __cplusplus
13062 extern "C"
13063 # endif
13064 int F77_DUMMY_MAIN() { return 1; }
13065 #endif
13066 int
13067 main ()
13068 {
13069 hes_getmailhost ();
13070 ;
13071 return 0;
13072 }
13073 _ACEOF
13074 rm -f conftest.$ac_objext conftest$ac_exeext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13076 (eval $ac_link) 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
13080 { ac_try='test -s conftest$ac_exeext'
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
13086 ac_cv_lib_hesiod_hes_getmailhost=yes
13087 else
13088 echo "$as_me: failed program was:" >&5
13089 cat conftest.$ac_ext >&5
13090 ac_cv_lib_hesiod_hes_getmailhost=no
13091 fi
13092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13093 LIBS=$ac_check_lib_save_LIBS
13094 fi
13095 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13096 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
13097 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
13098
13099 cat >>confdefs.h <<\_ACEOF
13100 #define HAVE_LIBHESIOD 1
13101 _ACEOF
13102
13103 else
13104 :
13105 fi
13106
13107 fi
13108
13109 fi
13110
13111 # These tell us which Kerberos-related libraries to use.
13112 if test "${with_kerberos+set}" = set; then
13113
13114 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
13115 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
13116 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119 ac_check_lib_save_LIBS=$LIBS
13120 LIBS="-lcom_err $LIBS"
13121 cat >conftest.$ac_ext <<_ACEOF
13122 #line $LINENO "configure"
13123 #include "confdefs.h"
13124
13125 /* Override any gcc2 internal prototype to avoid an error. */
13126 #ifdef __cplusplus
13127 extern "C"
13128 #endif
13129 /* We use char because int might match the return type of a gcc2
13130 builtin and then its argument prototype would still apply. */
13131 char com_err ();
13132 #ifdef F77_DUMMY_MAIN
13133 # ifdef __cplusplus
13134 extern "C"
13135 # endif
13136 int F77_DUMMY_MAIN() { return 1; }
13137 #endif
13138 int
13139 main ()
13140 {
13141 com_err ();
13142 ;
13143 return 0;
13144 }
13145 _ACEOF
13146 rm -f conftest.$ac_objext conftest$ac_exeext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13148 (eval $ac_link) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
13158 ac_cv_lib_com_err_com_err=yes
13159 else
13160 echo "$as_me: failed program was:" >&5
13161 cat conftest.$ac_ext >&5
13162 ac_cv_lib_com_err_com_err=no
13163 fi
13164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13165 LIBS=$ac_check_lib_save_LIBS
13166 fi
13167 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
13168 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
13169 if test $ac_cv_lib_com_err_com_err = yes; then
13170 cat >>confdefs.h <<_ACEOF
13171 #define HAVE_LIBCOM_ERR 1
13172 _ACEOF
13173
13174 LIBS="-lcom_err $LIBS"
13175
13176 fi
13177
13178
13179 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13180 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
13181 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13184 ac_check_lib_save_LIBS=$LIBS
13185 LIBS="-lk5crypto $LIBS"
13186 cat >conftest.$ac_ext <<_ACEOF
13187 #line $LINENO "configure"
13188 #include "confdefs.h"
13189
13190 /* Override any gcc2 internal prototype to avoid an error. */
13191 #ifdef __cplusplus
13192 extern "C"
13193 #endif
13194 /* We use char because int might match the return type of a gcc2
13195 builtin and then its argument prototype would still apply. */
13196 char mit_des_cbc_encrypt ();
13197 #ifdef F77_DUMMY_MAIN
13198 # ifdef __cplusplus
13199 extern "C"
13200 # endif
13201 int F77_DUMMY_MAIN() { return 1; }
13202 #endif
13203 int
13204 main ()
13205 {
13206 mit_des_cbc_encrypt ();
13207 ;
13208 return 0;
13209 }
13210 _ACEOF
13211 rm -f conftest.$ac_objext conftest$ac_exeext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13213 (eval $ac_link) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -s conftest$ac_exeext'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13223 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13224 else
13225 echo "$as_me: failed program was:" >&5
13226 cat conftest.$ac_ext >&5
13227 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13228 fi
13229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13231 fi
13232 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13233 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
13234 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
13235 cat >>confdefs.h <<_ACEOF
13236 #define HAVE_LIBK5CRYPTO 1
13237 _ACEOF
13238
13239 LIBS="-lk5crypto $LIBS"
13240
13241 fi
13242
13243
13244 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13245 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13246 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13248 else
13249 ac_check_lib_save_LIBS=$LIBS
13250 LIBS="-lcrypto $LIBS"
13251 cat >conftest.$ac_ext <<_ACEOF
13252 #line $LINENO "configure"
13253 #include "confdefs.h"
13254
13255 /* Override any gcc2 internal prototype to avoid an error. */
13256 #ifdef __cplusplus
13257 extern "C"
13258 #endif
13259 /* We use char because int might match the return type of a gcc2
13260 builtin and then its argument prototype would still apply. */
13261 char mit_des_cbc_encrypt ();
13262 #ifdef F77_DUMMY_MAIN
13263 # ifdef __cplusplus
13264 extern "C"
13265 # endif
13266 int F77_DUMMY_MAIN() { return 1; }
13267 #endif
13268 int
13269 main ()
13270 {
13271 mit_des_cbc_encrypt ();
13272 ;
13273 return 0;
13274 }
13275 _ACEOF
13276 rm -f conftest.$ac_objext conftest$ac_exeext
13277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13278 (eval $ac_link) 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try='test -s conftest$ac_exeext'
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
13288 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13289 else
13290 echo "$as_me: failed program was:" >&5
13291 cat conftest.$ac_ext >&5
13292 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13293 fi
13294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13295 LIBS=$ac_check_lib_save_LIBS
13296 fi
13297 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13298 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
13299 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
13300 cat >>confdefs.h <<_ACEOF
13301 #define HAVE_LIBCRYPTO 1
13302 _ACEOF
13303
13304 LIBS="-lcrypto $LIBS"
13305
13306 fi
13307
13308
13309 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
13310 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
13311 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
13314 ac_check_lib_save_LIBS=$LIBS
13315 LIBS="-lkrb5 $LIBS"
13316 cat >conftest.$ac_ext <<_ACEOF
13317 #line $LINENO "configure"
13318 #include "confdefs.h"
13319
13320 /* Override any gcc2 internal prototype to avoid an error. */
13321 #ifdef __cplusplus
13322 extern "C"
13323 #endif
13324 /* We use char because int might match the return type of a gcc2
13325 builtin and then its argument prototype would still apply. */
13326 char krb5_init_context ();
13327 #ifdef F77_DUMMY_MAIN
13328 # ifdef __cplusplus
13329 extern "C"
13330 # endif
13331 int F77_DUMMY_MAIN() { return 1; }
13332 #endif
13333 int
13334 main ()
13335 {
13336 krb5_init_context ();
13337 ;
13338 return 0;
13339 }
13340 _ACEOF
13341 rm -f conftest.$ac_objext conftest$ac_exeext
13342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13343 (eval $ac_link) 2>&5
13344 ac_status=$?
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } &&
13347 { ac_try='test -s conftest$ac_exeext'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13350 ac_status=$?
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; }; then
13353 ac_cv_lib_krb5_krb5_init_context=yes
13354 else
13355 echo "$as_me: failed program was:" >&5
13356 cat conftest.$ac_ext >&5
13357 ac_cv_lib_krb5_krb5_init_context=no
13358 fi
13359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13360 LIBS=$ac_check_lib_save_LIBS
13361 fi
13362 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13363 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
13364 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
13365 cat >>confdefs.h <<_ACEOF
13366 #define HAVE_LIBKRB5 1
13367 _ACEOF
13368
13369 LIBS="-lkrb5 $LIBS"
13370
13371 fi
13372
13373 if test "${with_kerberos5+set}" != set; then
13374
13375 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13376 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13377 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 else
13380 ac_check_lib_save_LIBS=$LIBS
13381 LIBS="-ldes425 $LIBS"
13382 cat >conftest.$ac_ext <<_ACEOF
13383 #line $LINENO "configure"
13384 #include "confdefs.h"
13385
13386 /* Override any gcc2 internal prototype to avoid an error. */
13387 #ifdef __cplusplus
13388 extern "C"
13389 #endif
13390 /* We use char because int might match the return type of a gcc2
13391 builtin and then its argument prototype would still apply. */
13392 char des_cbc_encrypt ();
13393 #ifdef F77_DUMMY_MAIN
13394 # ifdef __cplusplus
13395 extern "C"
13396 # endif
13397 int F77_DUMMY_MAIN() { return 1; }
13398 #endif
13399 int
13400 main ()
13401 {
13402 des_cbc_encrypt ();
13403 ;
13404 return 0;
13405 }
13406 _ACEOF
13407 rm -f conftest.$ac_objext conftest$ac_exeext
13408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13409 (eval $ac_link) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } &&
13413 { ac_try='test -s conftest$ac_exeext'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 ac_cv_lib_des425_des_cbc_encrypt=yes
13420 else
13421 echo "$as_me: failed program was:" >&5
13422 cat conftest.$ac_ext >&5
13423 ac_cv_lib_des425_des_cbc_encrypt=no
13424 fi
13425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13426 LIBS=$ac_check_lib_save_LIBS
13427 fi
13428 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13429 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13430 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13431 cat >>confdefs.h <<_ACEOF
13432 #define HAVE_LIBDES425 1
13433 _ACEOF
13434
13435 LIBS="-ldes425 $LIBS"
13436
13437 else
13438
13439 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13440 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13441 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 else
13444 ac_check_lib_save_LIBS=$LIBS
13445 LIBS="-ldes $LIBS"
13446 cat >conftest.$ac_ext <<_ACEOF
13447 #line $LINENO "configure"
13448 #include "confdefs.h"
13449
13450 /* Override any gcc2 internal prototype to avoid an error. */
13451 #ifdef __cplusplus
13452 extern "C"
13453 #endif
13454 /* We use char because int might match the return type of a gcc2
13455 builtin and then its argument prototype would still apply. */
13456 char des_cbc_encrypt ();
13457 #ifdef F77_DUMMY_MAIN
13458 # ifdef __cplusplus
13459 extern "C"
13460 # endif
13461 int F77_DUMMY_MAIN() { return 1; }
13462 #endif
13463 int
13464 main ()
13465 {
13466 des_cbc_encrypt ();
13467 ;
13468 return 0;
13469 }
13470 _ACEOF
13471 rm -f conftest.$ac_objext conftest$ac_exeext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13473 (eval $ac_link) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try='test -s conftest$ac_exeext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 ac_cv_lib_des_des_cbc_encrypt=yes
13484 else
13485 echo "$as_me: failed program was:" >&5
13486 cat conftest.$ac_ext >&5
13487 ac_cv_lib_des_des_cbc_encrypt=no
13488 fi
13489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13490 LIBS=$ac_check_lib_save_LIBS
13491 fi
13492 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13493 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13494 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13495 cat >>confdefs.h <<_ACEOF
13496 #define HAVE_LIBDES 1
13497 _ACEOF
13498
13499 LIBS="-ldes $LIBS"
13500
13501 fi
13502
13503 fi
13504
13505
13506 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13507 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13508 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511 ac_check_lib_save_LIBS=$LIBS
13512 LIBS="-lkrb4 $LIBS"
13513 cat >conftest.$ac_ext <<_ACEOF
13514 #line $LINENO "configure"
13515 #include "confdefs.h"
13516
13517 /* Override any gcc2 internal prototype to avoid an error. */
13518 #ifdef __cplusplus
13519 extern "C"
13520 #endif
13521 /* We use char because int might match the return type of a gcc2
13522 builtin and then its argument prototype would still apply. */
13523 char krb_get_cred ();
13524 #ifdef F77_DUMMY_MAIN
13525 # ifdef __cplusplus
13526 extern "C"
13527 # endif
13528 int F77_DUMMY_MAIN() { return 1; }
13529 #endif
13530 int
13531 main ()
13532 {
13533 krb_get_cred ();
13534 ;
13535 return 0;
13536 }
13537 _ACEOF
13538 rm -f conftest.$ac_objext conftest$ac_exeext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13540 (eval $ac_link) 2>&5
13541 ac_status=$?
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -s conftest$ac_exeext'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
13550 ac_cv_lib_krb4_krb_get_cred=yes
13551 else
13552 echo "$as_me: failed program was:" >&5
13553 cat conftest.$ac_ext >&5
13554 ac_cv_lib_krb4_krb_get_cred=no
13555 fi
13556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_check_lib_save_LIBS
13558 fi
13559 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13560 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13561 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13562 cat >>confdefs.h <<_ACEOF
13563 #define HAVE_LIBKRB4 1
13564 _ACEOF
13565
13566 LIBS="-lkrb4 $LIBS"
13567
13568 else
13569
13570 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13571 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13572 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 else
13575 ac_check_lib_save_LIBS=$LIBS
13576 LIBS="-lkrb $LIBS"
13577 cat >conftest.$ac_ext <<_ACEOF
13578 #line $LINENO "configure"
13579 #include "confdefs.h"
13580
13581 /* Override any gcc2 internal prototype to avoid an error. */
13582 #ifdef __cplusplus
13583 extern "C"
13584 #endif
13585 /* We use char because int might match the return type of a gcc2
13586 builtin and then its argument prototype would still apply. */
13587 char krb_get_cred ();
13588 #ifdef F77_DUMMY_MAIN
13589 # ifdef __cplusplus
13590 extern "C"
13591 # endif
13592 int F77_DUMMY_MAIN() { return 1; }
13593 #endif
13594 int
13595 main ()
13596 {
13597 krb_get_cred ();
13598 ;
13599 return 0;
13600 }
13601 _ACEOF
13602 rm -f conftest.$ac_objext conftest$ac_exeext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13604 (eval $ac_link) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -s conftest$ac_exeext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 ac_cv_lib_krb_krb_get_cred=yes
13615 else
13616 echo "$as_me: failed program was:" >&5
13617 cat conftest.$ac_ext >&5
13618 ac_cv_lib_krb_krb_get_cred=no
13619 fi
13620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13621 LIBS=$ac_check_lib_save_LIBS
13622 fi
13623 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13624 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13625 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13626 cat >>confdefs.h <<_ACEOF
13627 #define HAVE_LIBKRB 1
13628 _ACEOF
13629
13630 LIBS="-lkrb $LIBS"
13631
13632 fi
13633
13634 fi
13635
13636 fi
13637
13638 if test "${with_kerberos5+set}" = set; then
13639
13640 for ac_header in krb5.h
13641 do
13642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13644 echo "$as_me:$LINENO: checking for $ac_header" >&5
13645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 fi
13649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13651 else
13652 # Is the header compilable?
13653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13655 cat >conftest.$ac_ext <<_ACEOF
13656 #line $LINENO "configure"
13657 #include "confdefs.h"
13658 $ac_includes_default
13659 #include <$ac_header>
13660 _ACEOF
13661 rm -f conftest.$ac_objext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -s conftest.$ac_objext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 ac_header_compiler=yes
13674 else
13675 echo "$as_me: failed program was:" >&5
13676 cat conftest.$ac_ext >&5
13677 ac_header_compiler=no
13678 fi
13679 rm -f conftest.$ac_objext conftest.$ac_ext
13680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13681 echo "${ECHO_T}$ac_header_compiler" >&6
13682
13683 # Is the header present?
13684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13686 cat >conftest.$ac_ext <<_ACEOF
13687 #line $LINENO "configure"
13688 #include "confdefs.h"
13689 #include <$ac_header>
13690 _ACEOF
13691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13693 ac_status=$?
13694 egrep -v '^ *\+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } >/dev/null; then
13699 if test -s conftest.err; then
13700 ac_cpp_err=$ac_c_preproc_warn_flag
13701 else
13702 ac_cpp_err=
13703 fi
13704 else
13705 ac_cpp_err=yes
13706 fi
13707 if test -z "$ac_cpp_err"; then
13708 ac_header_preproc=yes
13709 else
13710 echo "$as_me: failed program was:" >&5
13711 cat conftest.$ac_ext >&5
13712 ac_header_preproc=no
13713 fi
13714 rm -f conftest.err conftest.$ac_ext
13715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13716 echo "${ECHO_T}$ac_header_preproc" >&6
13717
13718 # So? What about this header?
13719 case $ac_header_compiler:$ac_header_preproc in
13720 yes:no )
13721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13725 no:yes )
13726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13732 esac
13733 echo "$as_me:$LINENO: checking for $ac_header" >&5
13734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738 eval "$as_ac_Header=$ac_header_preproc"
13739 fi
13740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13742
13743 fi
13744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13745 cat >>confdefs.h <<_ACEOF
13746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13747 _ACEOF
13748
13749 fi
13750
13751 done
13752
13753 else
13754
13755 for ac_header in des.h
13756 do
13757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13759 echo "$as_me:$LINENO: checking for $ac_header" >&5
13760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 fi
13764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13766 else
13767 # Is the header compilable?
13768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13770 cat >conftest.$ac_ext <<_ACEOF
13771 #line $LINENO "configure"
13772 #include "confdefs.h"
13773 $ac_includes_default
13774 #include <$ac_header>
13775 _ACEOF
13776 rm -f conftest.$ac_objext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13778 (eval $ac_compile) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
13782 { ac_try='test -s conftest.$ac_objext'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 ac_header_compiler=yes
13789 else
13790 echo "$as_me: failed program was:" >&5
13791 cat conftest.$ac_ext >&5
13792 ac_header_compiler=no
13793 fi
13794 rm -f conftest.$ac_objext conftest.$ac_ext
13795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13796 echo "${ECHO_T}$ac_header_compiler" >&6
13797
13798 # Is the header present?
13799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13801 cat >conftest.$ac_ext <<_ACEOF
13802 #line $LINENO "configure"
13803 #include "confdefs.h"
13804 #include <$ac_header>
13805 _ACEOF
13806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13808 ac_status=$?
13809 egrep -v '^ *\+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } >/dev/null; then
13814 if test -s conftest.err; then
13815 ac_cpp_err=$ac_c_preproc_warn_flag
13816 else
13817 ac_cpp_err=
13818 fi
13819 else
13820 ac_cpp_err=yes
13821 fi
13822 if test -z "$ac_cpp_err"; then
13823 ac_header_preproc=yes
13824 else
13825 echo "$as_me: failed program was:" >&5
13826 cat conftest.$ac_ext >&5
13827 ac_header_preproc=no
13828 fi
13829 rm -f conftest.err conftest.$ac_ext
13830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13831 echo "${ECHO_T}$ac_header_preproc" >&6
13832
13833 # So? What about this header?
13834 case $ac_header_compiler:$ac_header_preproc in
13835 yes:no )
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13840 no:yes )
13841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13847 esac
13848 echo "$as_me:$LINENO: checking for $ac_header" >&5
13849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853 eval "$as_ac_Header=$ac_header_preproc"
13854 fi
13855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13857
13858 fi
13859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13860 cat >>confdefs.h <<_ACEOF
13861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13862 _ACEOF
13863
13864 else
13865
13866 for ac_header in kerberosIV/des.h
13867 do
13868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13870 echo "$as_me:$LINENO: checking for $ac_header" >&5
13871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 fi
13875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13877 else
13878 # Is the header compilable?
13879 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13881 cat >conftest.$ac_ext <<_ACEOF
13882 #line $LINENO "configure"
13883 #include "confdefs.h"
13884 $ac_includes_default
13885 #include <$ac_header>
13886 _ACEOF
13887 rm -f conftest.$ac_objext
13888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13889 (eval $ac_compile) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try='test -s conftest.$ac_objext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_header_compiler=yes
13900 else
13901 echo "$as_me: failed program was:" >&5
13902 cat conftest.$ac_ext >&5
13903 ac_header_compiler=no
13904 fi
13905 rm -f conftest.$ac_objext conftest.$ac_ext
13906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13907 echo "${ECHO_T}$ac_header_compiler" >&6
13908
13909 # Is the header present?
13910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13912 cat >conftest.$ac_ext <<_ACEOF
13913 #line $LINENO "configure"
13914 #include "confdefs.h"
13915 #include <$ac_header>
13916 _ACEOF
13917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13919 ac_status=$?
13920 egrep -v '^ *\+' conftest.er1 >conftest.err
13921 rm -f conftest.er1
13922 cat conftest.err >&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } >/dev/null; then
13925 if test -s conftest.err; then
13926 ac_cpp_err=$ac_c_preproc_warn_flag
13927 else
13928 ac_cpp_err=
13929 fi
13930 else
13931 ac_cpp_err=yes
13932 fi
13933 if test -z "$ac_cpp_err"; then
13934 ac_header_preproc=yes
13935 else
13936 echo "$as_me: failed program was:" >&5
13937 cat conftest.$ac_ext >&5
13938 ac_header_preproc=no
13939 fi
13940 rm -f conftest.err conftest.$ac_ext
13941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13942 echo "${ECHO_T}$ac_header_preproc" >&6
13943
13944 # So? What about this header?
13945 case $ac_header_compiler:$ac_header_preproc in
13946 yes:no )
13947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13951 no:yes )
13952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13958 esac
13959 echo "$as_me:$LINENO: checking for $ac_header" >&5
13960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 else
13964 eval "$as_ac_Header=$ac_header_preproc"
13965 fi
13966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13968
13969 fi
13970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13971 cat >>confdefs.h <<_ACEOF
13972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13973 _ACEOF
13974
13975 else
13976
13977 for ac_header in kerberos/des.h
13978 do
13979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13981 echo "$as_me:$LINENO: checking for $ac_header" >&5
13982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 fi
13986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13988 else
13989 # Is the header compilable?
13990 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13992 cat >conftest.$ac_ext <<_ACEOF
13993 #line $LINENO "configure"
13994 #include "confdefs.h"
13995 $ac_includes_default
13996 #include <$ac_header>
13997 _ACEOF
13998 rm -f conftest.$ac_objext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000 (eval $ac_compile) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try='test -s conftest.$ac_objext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 ac_header_compiler=yes
14011 else
14012 echo "$as_me: failed program was:" >&5
14013 cat conftest.$ac_ext >&5
14014 ac_header_compiler=no
14015 fi
14016 rm -f conftest.$ac_objext conftest.$ac_ext
14017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14018 echo "${ECHO_T}$ac_header_compiler" >&6
14019
14020 # Is the header present?
14021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14023 cat >conftest.$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14025 #include "confdefs.h"
14026 #include <$ac_header>
14027 _ACEOF
14028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14030 ac_status=$?
14031 egrep -v '^ *\+' conftest.er1 >conftest.err
14032 rm -f conftest.er1
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } >/dev/null; then
14036 if test -s conftest.err; then
14037 ac_cpp_err=$ac_c_preproc_warn_flag
14038 else
14039 ac_cpp_err=
14040 fi
14041 else
14042 ac_cpp_err=yes
14043 fi
14044 if test -z "$ac_cpp_err"; then
14045 ac_header_preproc=yes
14046 else
14047 echo "$as_me: failed program was:" >&5
14048 cat conftest.$ac_ext >&5
14049 ac_header_preproc=no
14050 fi
14051 rm -f conftest.err conftest.$ac_ext
14052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14053 echo "${ECHO_T}$ac_header_preproc" >&6
14054
14055 # So? What about this header?
14056 case $ac_header_compiler:$ac_header_preproc in
14057 yes:no )
14058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14062 no:yes )
14063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14069 esac
14070 echo "$as_me:$LINENO: checking for $ac_header" >&5
14071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 else
14075 eval "$as_ac_Header=$ac_header_preproc"
14076 fi
14077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14079
14080 fi
14081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14082 cat >>confdefs.h <<_ACEOF
14083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14084 _ACEOF
14085
14086 fi
14087
14088 done
14089
14090 fi
14091
14092 done
14093
14094 fi
14095
14096 done
14097
14098
14099 for ac_header in krb.h
14100 do
14101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14103 echo "$as_me:$LINENO: checking for $ac_header" >&5
14104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 fi
14108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14110 else
14111 # Is the header compilable?
14112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14114 cat >conftest.$ac_ext <<_ACEOF
14115 #line $LINENO "configure"
14116 #include "confdefs.h"
14117 $ac_includes_default
14118 #include <$ac_header>
14119 _ACEOF
14120 rm -f conftest.$ac_objext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122 (eval $ac_compile) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
14126 { ac_try='test -s conftest.$ac_objext'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14132 ac_header_compiler=yes
14133 else
14134 echo "$as_me: failed program was:" >&5
14135 cat conftest.$ac_ext >&5
14136 ac_header_compiler=no
14137 fi
14138 rm -f conftest.$ac_objext conftest.$ac_ext
14139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14140 echo "${ECHO_T}$ac_header_compiler" >&6
14141
14142 # Is the header present?
14143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14145 cat >conftest.$ac_ext <<_ACEOF
14146 #line $LINENO "configure"
14147 #include "confdefs.h"
14148 #include <$ac_header>
14149 _ACEOF
14150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14152 ac_status=$?
14153 egrep -v '^ *\+' conftest.er1 >conftest.err
14154 rm -f conftest.er1
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } >/dev/null; then
14158 if test -s conftest.err; then
14159 ac_cpp_err=$ac_c_preproc_warn_flag
14160 else
14161 ac_cpp_err=
14162 fi
14163 else
14164 ac_cpp_err=yes
14165 fi
14166 if test -z "$ac_cpp_err"; then
14167 ac_header_preproc=yes
14168 else
14169 echo "$as_me: failed program was:" >&5
14170 cat conftest.$ac_ext >&5
14171 ac_header_preproc=no
14172 fi
14173 rm -f conftest.err conftest.$ac_ext
14174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14175 echo "${ECHO_T}$ac_header_preproc" >&6
14176
14177 # So? What about this header?
14178 case $ac_header_compiler:$ac_header_preproc in
14179 yes:no )
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14184 no:yes )
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14191 esac
14192 echo "$as_me:$LINENO: checking for $ac_header" >&5
14193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197 eval "$as_ac_Header=$ac_header_preproc"
14198 fi
14199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14201
14202 fi
14203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14204 cat >>confdefs.h <<_ACEOF
14205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14206 _ACEOF
14207
14208 else
14209
14210 for ac_header in kerberosIV/krb.h
14211 do
14212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14214 echo "$as_me:$LINENO: checking for $ac_header" >&5
14215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 fi
14219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14221 else
14222 # Is the header compilable?
14223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14225 cat >conftest.$ac_ext <<_ACEOF
14226 #line $LINENO "configure"
14227 #include "confdefs.h"
14228 $ac_includes_default
14229 #include <$ac_header>
14230 _ACEOF
14231 rm -f conftest.$ac_objext
14232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233 (eval $ac_compile) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try='test -s conftest.$ac_objext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 ac_header_compiler=yes
14244 else
14245 echo "$as_me: failed program was:" >&5
14246 cat conftest.$ac_ext >&5
14247 ac_header_compiler=no
14248 fi
14249 rm -f conftest.$ac_objext conftest.$ac_ext
14250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14251 echo "${ECHO_T}$ac_header_compiler" >&6
14252
14253 # Is the header present?
14254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14256 cat >conftest.$ac_ext <<_ACEOF
14257 #line $LINENO "configure"
14258 #include "confdefs.h"
14259 #include <$ac_header>
14260 _ACEOF
14261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14263 ac_status=$?
14264 egrep -v '^ *\+' conftest.er1 >conftest.err
14265 rm -f conftest.er1
14266 cat conftest.err >&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } >/dev/null; then
14269 if test -s conftest.err; then
14270 ac_cpp_err=$ac_c_preproc_warn_flag
14271 else
14272 ac_cpp_err=
14273 fi
14274 else
14275 ac_cpp_err=yes
14276 fi
14277 if test -z "$ac_cpp_err"; then
14278 ac_header_preproc=yes
14279 else
14280 echo "$as_me: failed program was:" >&5
14281 cat conftest.$ac_ext >&5
14282 ac_header_preproc=no
14283 fi
14284 rm -f conftest.err conftest.$ac_ext
14285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14286 echo "${ECHO_T}$ac_header_preproc" >&6
14287
14288 # So? What about this header?
14289 case $ac_header_compiler:$ac_header_preproc in
14290 yes:no )
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14295 no:yes )
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14302 esac
14303 echo "$as_me:$LINENO: checking for $ac_header" >&5
14304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 else
14308 eval "$as_ac_Header=$ac_header_preproc"
14309 fi
14310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14312
14313 fi
14314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14315 cat >>confdefs.h <<_ACEOF
14316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14317 _ACEOF
14318
14319 else
14320
14321 for ac_header in kerberos/krb.h
14322 do
14323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14325 echo "$as_me:$LINENO: checking for $ac_header" >&5
14326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 fi
14330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14332 else
14333 # Is the header compilable?
14334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14336 cat >conftest.$ac_ext <<_ACEOF
14337 #line $LINENO "configure"
14338 #include "confdefs.h"
14339 $ac_includes_default
14340 #include <$ac_header>
14341 _ACEOF
14342 rm -f conftest.$ac_objext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344 (eval $ac_compile) 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -s conftest.$ac_objext'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 ac_header_compiler=yes
14355 else
14356 echo "$as_me: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14358 ac_header_compiler=no
14359 fi
14360 rm -f conftest.$ac_objext conftest.$ac_ext
14361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14362 echo "${ECHO_T}$ac_header_compiler" >&6
14363
14364 # Is the header present?
14365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14367 cat >conftest.$ac_ext <<_ACEOF
14368 #line $LINENO "configure"
14369 #include "confdefs.h"
14370 #include <$ac_header>
14371 _ACEOF
14372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14374 ac_status=$?
14375 egrep -v '^ *\+' conftest.er1 >conftest.err
14376 rm -f conftest.er1
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } >/dev/null; then
14380 if test -s conftest.err; then
14381 ac_cpp_err=$ac_c_preproc_warn_flag
14382 else
14383 ac_cpp_err=
14384 fi
14385 else
14386 ac_cpp_err=yes
14387 fi
14388 if test -z "$ac_cpp_err"; then
14389 ac_header_preproc=yes
14390 else
14391 echo "$as_me: failed program was:" >&5
14392 cat conftest.$ac_ext >&5
14393 ac_header_preproc=no
14394 fi
14395 rm -f conftest.err conftest.$ac_ext
14396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14397 echo "${ECHO_T}$ac_header_preproc" >&6
14398
14399 # So? What about this header?
14400 case $ac_header_compiler:$ac_header_preproc in
14401 yes:no )
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14406 no:yes )
14407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14413 esac
14414 echo "$as_me:$LINENO: checking for $ac_header" >&5
14415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 else
14419 eval "$as_ac_Header=$ac_header_preproc"
14420 fi
14421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14423
14424 fi
14425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14426 cat >>confdefs.h <<_ACEOF
14427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14428 _ACEOF
14429
14430 fi
14431
14432 done
14433
14434 fi
14435
14436 done
14437
14438 fi
14439
14440 done
14441
14442 fi
14443
14444 for ac_header in com_err.h
14445 do
14446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14448 echo "$as_me:$LINENO: checking for $ac_header" >&5
14449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 fi
14453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14455 else
14456 # Is the header compilable?
14457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14459 cat >conftest.$ac_ext <<_ACEOF
14460 #line $LINENO "configure"
14461 #include "confdefs.h"
14462 $ac_includes_default
14463 #include <$ac_header>
14464 _ACEOF
14465 rm -f conftest.$ac_objext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467 (eval $ac_compile) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
14471 { ac_try='test -s conftest.$ac_objext'
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14474 ac_status=$?
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; }; then
14477 ac_header_compiler=yes
14478 else
14479 echo "$as_me: failed program was:" >&5
14480 cat conftest.$ac_ext >&5
14481 ac_header_compiler=no
14482 fi
14483 rm -f conftest.$ac_objext conftest.$ac_ext
14484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14485 echo "${ECHO_T}$ac_header_compiler" >&6
14486
14487 # Is the header present?
14488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14490 cat >conftest.$ac_ext <<_ACEOF
14491 #line $LINENO "configure"
14492 #include "confdefs.h"
14493 #include <$ac_header>
14494 _ACEOF
14495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14497 ac_status=$?
14498 egrep -v '^ *\+' conftest.er1 >conftest.err
14499 rm -f conftest.er1
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } >/dev/null; then
14503 if test -s conftest.err; then
14504 ac_cpp_err=$ac_c_preproc_warn_flag
14505 else
14506 ac_cpp_err=
14507 fi
14508 else
14509 ac_cpp_err=yes
14510 fi
14511 if test -z "$ac_cpp_err"; then
14512 ac_header_preproc=yes
14513 else
14514 echo "$as_me: failed program was:" >&5
14515 cat conftest.$ac_ext >&5
14516 ac_header_preproc=no
14517 fi
14518 rm -f conftest.err conftest.$ac_ext
14519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14520 echo "${ECHO_T}$ac_header_preproc" >&6
14521
14522 # So? What about this header?
14523 case $ac_header_compiler:$ac_header_preproc in
14524 yes:no )
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14529 no:yes )
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14536 esac
14537 echo "$as_me:$LINENO: checking for $ac_header" >&5
14538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542 eval "$as_ac_Header=$ac_header_preproc"
14543 fi
14544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14546
14547 fi
14548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14549 cat >>confdefs.h <<_ACEOF
14550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14551 _ACEOF
14552
14553 fi
14554
14555 done
14556
14557 fi
14558
14559 # Solaris requires -lintl if you want strerror (which calls dgettext)
14560 # to return localized messages.
14561
14562 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14563 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14564 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567 ac_check_lib_save_LIBS=$LIBS
14568 LIBS="-lintl $LIBS"
14569 cat >conftest.$ac_ext <<_ACEOF
14570 #line $LINENO "configure"
14571 #include "confdefs.h"
14572
14573 /* Override any gcc2 internal prototype to avoid an error. */
14574 #ifdef __cplusplus
14575 extern "C"
14576 #endif
14577 /* We use char because int might match the return type of a gcc2
14578 builtin and then its argument prototype would still apply. */
14579 char dgettext ();
14580 #ifdef F77_DUMMY_MAIN
14581 # ifdef __cplusplus
14582 extern "C"
14583 # endif
14584 int F77_DUMMY_MAIN() { return 1; }
14585 #endif
14586 int
14587 main ()
14588 {
14589 dgettext ();
14590 ;
14591 return 0;
14592 }
14593 _ACEOF
14594 rm -f conftest.$ac_objext conftest$ac_exeext
14595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14596 (eval $ac_link) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try='test -s conftest$ac_exeext'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14606 ac_cv_lib_intl_dgettext=yes
14607 else
14608 echo "$as_me: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14610 ac_cv_lib_intl_dgettext=no
14611 fi
14612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14613 LIBS=$ac_check_lib_save_LIBS
14614 fi
14615 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14616 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14617 if test $ac_cv_lib_intl_dgettext = yes; then
14618 cat >>confdefs.h <<_ACEOF
14619 #define HAVE_LIBINTL 1
14620 _ACEOF
14621
14622 LIBS="-lintl $LIBS"
14623
14624 fi
14625
14626
14627 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14628 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14629 if test "${emacs_cv_localtime_cache+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14631 else
14632 if test x$ac_cv_func_tzset = xyes; then
14633 if test "$cross_compiling" = yes; then
14634 # If we have tzset, assume the worst when cross-compiling.
14635 emacs_cv_localtime_cache=yes
14636 else
14637 cat >conftest.$ac_ext <<_ACEOF
14638 #line $LINENO "configure"
14639 #include "confdefs.h"
14640 #include <time.h>
14641 extern char **environ;
14642 unset_TZ ()
14643 {
14644 char **from, **to;
14645 for (to = from = environ; (*to = *from); from++)
14646 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14647 to++;
14648 }
14649 char TZ_GMT0[] = "TZ=GMT0";
14650 char TZ_PST8[] = "TZ=PST8";
14651 main()
14652 {
14653 time_t now = time ((time_t *) 0);
14654 int hour_GMT0, hour_unset;
14655 if (putenv (TZ_GMT0) != 0)
14656 exit (1);
14657 hour_GMT0 = localtime (&now)->tm_hour;
14658 unset_TZ ();
14659 hour_unset = localtime (&now)->tm_hour;
14660 if (putenv (TZ_PST8) != 0)
14661 exit (1);
14662 if (localtime (&now)->tm_hour == hour_GMT0)
14663 exit (1);
14664 unset_TZ ();
14665 if (localtime (&now)->tm_hour != hour_unset)
14666 exit (1);
14667 exit (0);
14668 }
14669 _ACEOF
14670 rm -f conftest$ac_exeext
14671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14672 (eval $ac_link) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14681 emacs_cv_localtime_cache=no
14682 else
14683 echo "$as_me: program exited with status $ac_status" >&5
14684 echo "$as_me: failed program was:" >&5
14685 cat conftest.$ac_ext >&5
14686 ( exit $ac_status )
14687 emacs_cv_localtime_cache=yes
14688 fi
14689 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14690 fi
14691 else
14692 # If we lack tzset, report that localtime does not cache TZ,
14693 # since we can't invalidate the cache if we don't have tzset.
14694 emacs_cv_localtime_cache=no
14695 fi
14696 fi
14697 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14698 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14699 if test $emacs_cv_localtime_cache = yes; then
14700
14701 cat >>confdefs.h <<\_ACEOF
14702 #define LOCALTIME_CACHE 1
14703 _ACEOF
14704
14705 fi
14706
14707 if test "x$HAVE_TIMEVAL" = xyes; then
14708
14709 for ac_func in gettimeofday
14710 do
14711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14712 echo "$as_me:$LINENO: checking for $ac_func" >&5
14713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14714 if eval "test \"\${$as_ac_var+set}\" = set"; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717 cat >conftest.$ac_ext <<_ACEOF
14718 #line $LINENO "configure"
14719 #include "confdefs.h"
14720 /* System header to define __stub macros and hopefully few prototypes,
14721 which can conflict with char $ac_func (); below. */
14722 #include <assert.h>
14723 /* Override any gcc2 internal prototype to avoid an error. */
14724 #ifdef __cplusplus
14725 extern "C"
14726 #endif
14727 /* We use char because int might match the return type of a gcc2
14728 builtin and then its argument prototype would still apply. */
14729 char $ac_func ();
14730 char (*f) ();
14731
14732 #ifdef F77_DUMMY_MAIN
14733 # ifdef __cplusplus
14734 extern "C"
14735 # endif
14736 int F77_DUMMY_MAIN() { return 1; }
14737 #endif
14738 int
14739 main ()
14740 {
14741 /* The GNU C library defines this for functions which it implements
14742 to always fail with ENOSYS. Some functions are actually named
14743 something starting with __ and the normal name is an alias. */
14744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14745 choke me
14746 #else
14747 f = $ac_func;
14748 #endif
14749
14750 ;
14751 return 0;
14752 }
14753 _ACEOF
14754 rm -f conftest.$ac_objext conftest$ac_exeext
14755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14756 (eval $ac_link) 2>&5
14757 ac_status=$?
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } &&
14760 { ac_try='test -s conftest$ac_exeext'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14763 ac_status=$?
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 eval "$as_ac_var=yes"
14767 else
14768 echo "$as_me: failed program was:" >&5
14769 cat conftest.$ac_ext >&5
14770 eval "$as_ac_var=no"
14771 fi
14772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14773 fi
14774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14776 if test `eval echo '${'$as_ac_var'}'` = yes; then
14777 cat >>confdefs.h <<_ACEOF
14778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14779 _ACEOF
14780
14781 fi
14782 done
14783
14784 if test $ac_cv_func_gettimeofday = yes; then
14785 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
14786 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
14787 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 else
14790 cat >conftest.$ac_ext <<_ACEOF
14791 #line $LINENO "configure"
14792 #include "confdefs.h"
14793
14794 #ifdef TIME_WITH_SYS_TIME
14795 #include <sys/time.h>
14796 #include <time.h>
14797 #else
14798 #ifdef HAVE_SYS_TIME_H
14799 #include <sys/time.h>
14800 #else
14801 #include <time.h>
14802 #endif
14803 #endif
14804 #ifdef F77_DUMMY_MAIN
14805 # ifdef __cplusplus
14806 extern "C"
14807 # endif
14808 int F77_DUMMY_MAIN() { return 1; }
14809 #endif
14810 int
14811 main ()
14812 {
14813 struct timeval time;
14814 gettimeofday (&time, 0);
14815 ;
14816 return 0;
14817 }
14818 _ACEOF
14819 rm -f conftest.$ac_objext
14820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14821 (eval $ac_compile) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try='test -s conftest.$ac_objext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 emacs_cv_gettimeofday_two_arguments=yes
14832 else
14833 echo "$as_me: failed program was:" >&5
14834 cat conftest.$ac_ext >&5
14835 emacs_cv_gettimeofday_two_arguments=no
14836 fi
14837 rm -f conftest.$ac_objext conftest.$ac_ext
14838 fi
14839 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
14840 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
14841 if test $emacs_cv_gettimeofday_two_arguments = no; then
14842
14843 cat >>confdefs.h <<\_ACEOF
14844 #define GETTIMEOFDAY_ONE_ARGUMENT 1
14845 _ACEOF
14846
14847 fi
14848 fi
14849 fi
14850
14851 if test "$ac_cv_func_gettimeofday" = yes; then
14852 echo "$as_me:$LINENO: checking for struct timezone" >&5
14853 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
14854 if test "${emacs_cv_struct_timezone+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857 cat >conftest.$ac_ext <<_ACEOF
14858 #line $LINENO "configure"
14859 #include "confdefs.h"
14860 #include <sys/time.h>
14861 #ifdef F77_DUMMY_MAIN
14862 # ifdef __cplusplus
14863 extern "C"
14864 # endif
14865 int F77_DUMMY_MAIN() { return 1; }
14866 #endif
14867 int
14868 main ()
14869 {
14870 struct timezone tz;
14871 ;
14872 return 0;
14873 }
14874 _ACEOF
14875 rm -f conftest.$ac_objext
14876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14877 (eval $ac_compile) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -s conftest.$ac_objext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 if test "$cross_compiling" = yes; then
14888 emacs_cv_struct_timezone=yes
14889 else
14890 cat >conftest.$ac_ext <<_ACEOF
14891 #line $LINENO "configure"
14892 #include "confdefs.h"
14893
14894 #ifdef TIME_WITH_SYS_TIME
14895 #include <sys/time.h>
14896 #include <time.h>
14897 #else
14898 #ifdef HAVE_SYS_TIME_H
14899 #include <sys/time.h>
14900 #else
14901 #include <time.h>
14902 #endif
14903 #endif
14904 main () {
14905 struct timeval time;
14906 struct timezone dummy;
14907 exit (gettimeofday (&time, &dummy));
14908 }
14909 _ACEOF
14910 rm -f conftest$ac_exeext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14912 (eval $ac_link) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 emacs_cv_struct_timezone=yes
14922 else
14923 echo "$as_me: program exited with status $ac_status" >&5
14924 echo "$as_me: failed program was:" >&5
14925 cat conftest.$ac_ext >&5
14926 ( exit $ac_status )
14927 emacs_cv_struct_timezone=no
14928 fi
14929 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14930 fi
14931 else
14932 echo "$as_me: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14934 emacs_cv_struct_timezone=no
14935 fi
14936 rm -f conftest.$ac_objext conftest.$ac_ext
14937 fi
14938 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
14939 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
14940 fi
14941
14942 ok_so_far=yes
14943 echo "$as_me:$LINENO: checking for socket" >&5
14944 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14945 if test "${ac_cv_func_socket+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 else
14948 cat >conftest.$ac_ext <<_ACEOF
14949 #line $LINENO "configure"
14950 #include "confdefs.h"
14951 /* System header to define __stub macros and hopefully few prototypes,
14952 which can conflict with char socket (); below. */
14953 #include <assert.h>
14954 /* Override any gcc2 internal prototype to avoid an error. */
14955 #ifdef __cplusplus
14956 extern "C"
14957 #endif
14958 /* We use char because int might match the return type of a gcc2
14959 builtin and then its argument prototype would still apply. */
14960 char socket ();
14961 char (*f) ();
14962
14963 #ifdef F77_DUMMY_MAIN
14964 # ifdef __cplusplus
14965 extern "C"
14966 # endif
14967 int F77_DUMMY_MAIN() { return 1; }
14968 #endif
14969 int
14970 main ()
14971 {
14972 /* The GNU C library defines this for functions which it implements
14973 to always fail with ENOSYS. Some functions are actually named
14974 something starting with __ and the normal name is an alias. */
14975 #if defined (__stub_socket) || defined (__stub___socket)
14976 choke me
14977 #else
14978 f = socket;
14979 #endif
14980
14981 ;
14982 return 0;
14983 }
14984 _ACEOF
14985 rm -f conftest.$ac_objext conftest$ac_exeext
14986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14987 (eval $ac_link) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } &&
14991 { ac_try='test -s conftest$ac_exeext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_cv_func_socket=yes
14998 else
14999 echo "$as_me: failed program was:" >&5
15000 cat conftest.$ac_ext >&5
15001 ac_cv_func_socket=no
15002 fi
15003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15004 fi
15005 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15006 echo "${ECHO_T}$ac_cv_func_socket" >&6
15007 if test $ac_cv_func_socket = yes; then
15008 :
15009 else
15010 ok_so_far=no
15011 fi
15012
15013 if test $ok_so_far = yes; then
15014 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15015 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15016 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15017 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 fi
15020 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15021 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15022 else
15023 # Is the header compilable?
15024 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
15025 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
15026 cat >conftest.$ac_ext <<_ACEOF
15027 #line $LINENO "configure"
15028 #include "confdefs.h"
15029 $ac_includes_default
15030 #include <netinet/in.h>
15031 _ACEOF
15032 rm -f conftest.$ac_objext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15034 (eval $ac_compile) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -s conftest.$ac_objext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_header_compiler=yes
15045 else
15046 echo "$as_me: failed program was:" >&5
15047 cat conftest.$ac_ext >&5
15048 ac_header_compiler=no
15049 fi
15050 rm -f conftest.$ac_objext conftest.$ac_ext
15051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15052 echo "${ECHO_T}$ac_header_compiler" >&6
15053
15054 # Is the header present?
15055 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
15056 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
15057 cat >conftest.$ac_ext <<_ACEOF
15058 #line $LINENO "configure"
15059 #include "confdefs.h"
15060 #include <netinet/in.h>
15061 _ACEOF
15062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15064 ac_status=$?
15065 egrep -v '^ *\+' conftest.er1 >conftest.err
15066 rm -f conftest.er1
15067 cat conftest.err >&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } >/dev/null; then
15070 if test -s conftest.err; then
15071 ac_cpp_err=$ac_c_preproc_warn_flag
15072 else
15073 ac_cpp_err=
15074 fi
15075 else
15076 ac_cpp_err=yes
15077 fi
15078 if test -z "$ac_cpp_err"; then
15079 ac_header_preproc=yes
15080 else
15081 echo "$as_me: failed program was:" >&5
15082 cat conftest.$ac_ext >&5
15083 ac_header_preproc=no
15084 fi
15085 rm -f conftest.err conftest.$ac_ext
15086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15087 echo "${ECHO_T}$ac_header_preproc" >&6
15088
15089 # So? What about this header?
15090 case $ac_header_compiler:$ac_header_preproc in
15091 yes:no )
15092 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
15093 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15095 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15096 no:yes )
15097 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
15098 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
15099 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
15100 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
15101 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15102 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15103 esac
15104 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15105 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15106 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 else
15109 ac_cv_header_netinet_in_h=$ac_header_preproc
15110 fi
15111 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15112 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15113
15114 fi
15115 if test $ac_cv_header_netinet_in_h = yes; then
15116 :
15117 else
15118 ok_so_far=no
15119 fi
15120
15121
15122 fi
15123 if test $ok_so_far = yes; then
15124 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15125 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15126 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15127 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 fi
15130 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15131 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15132 else
15133 # Is the header compilable?
15134 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
15135 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
15136 cat >conftest.$ac_ext <<_ACEOF
15137 #line $LINENO "configure"
15138 #include "confdefs.h"
15139 $ac_includes_default
15140 #include <arpa/inet.h>
15141 _ACEOF
15142 rm -f conftest.$ac_objext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } &&
15148 { ac_try='test -s conftest.$ac_objext'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15154 ac_header_compiler=yes
15155 else
15156 echo "$as_me: failed program was:" >&5
15157 cat conftest.$ac_ext >&5
15158 ac_header_compiler=no
15159 fi
15160 rm -f conftest.$ac_objext conftest.$ac_ext
15161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15162 echo "${ECHO_T}$ac_header_compiler" >&6
15163
15164 # Is the header present?
15165 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
15166 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
15167 cat >conftest.$ac_ext <<_ACEOF
15168 #line $LINENO "configure"
15169 #include "confdefs.h"
15170 #include <arpa/inet.h>
15171 _ACEOF
15172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15174 ac_status=$?
15175 egrep -v '^ *\+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } >/dev/null; then
15180 if test -s conftest.err; then
15181 ac_cpp_err=$ac_c_preproc_warn_flag
15182 else
15183 ac_cpp_err=
15184 fi
15185 else
15186 ac_cpp_err=yes
15187 fi
15188 if test -z "$ac_cpp_err"; then
15189 ac_header_preproc=yes
15190 else
15191 echo "$as_me: failed program was:" >&5
15192 cat conftest.$ac_ext >&5
15193 ac_header_preproc=no
15194 fi
15195 rm -f conftest.err conftest.$ac_ext
15196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15197 echo "${ECHO_T}$ac_header_preproc" >&6
15198
15199 # So? What about this header?
15200 case $ac_header_compiler:$ac_header_preproc in
15201 yes:no )
15202 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
15203 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15204 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15205 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15206 no:yes )
15207 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
15208 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
15210 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15212 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15213 esac
15214 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15215 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15216 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219 ac_cv_header_arpa_inet_h=$ac_header_preproc
15220 fi
15221 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15222 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15223
15224 fi
15225 if test $ac_cv_header_arpa_inet_h = yes; then
15226 :
15227 else
15228 ok_so_far=no
15229 fi
15230
15231
15232 fi
15233 if test $ok_so_far = yes; then
15234
15235 cat >>confdefs.h <<\_ACEOF
15236 #define HAVE_INET_SOCKETS 1
15237 _ACEOF
15238
15239 fi
15240
15241 if test -f /usr/lpp/X11/bin/smt.exp; then
15242
15243 cat >>confdefs.h <<\_ACEOF
15244 #define HAVE_AIX_SMT_EXP 1
15245 _ACEOF
15246
15247 fi
15248
15249 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
15250 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
15251 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15252 echo "$as_me:$LINENO: result: yes" >&5
15253 echo "${ECHO_T}yes" >&6
15254
15255 cat >>confdefs.h <<\_ACEOF
15256 #define HAVE_DEV_PTMX 1
15257 _ACEOF
15258
15259 else
15260 echo "$as_me:$LINENO: result: no" >&5
15261 echo "${ECHO_T}no" >&6
15262 fi
15263
15264 echo "$as_me:$LINENO: checking for pid_t" >&5
15265 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15266 if test "${ac_cv_type_pid_t+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 else
15269 cat >conftest.$ac_ext <<_ACEOF
15270 #line $LINENO "configure"
15271 #include "confdefs.h"
15272 $ac_includes_default
15273 #ifdef F77_DUMMY_MAIN
15274 # ifdef __cplusplus
15275 extern "C"
15276 # endif
15277 int F77_DUMMY_MAIN() { return 1; }
15278 #endif
15279 int
15280 main ()
15281 {
15282 if ((pid_t *) 0)
15283 return 0;
15284 if (sizeof (pid_t))
15285 return 0;
15286 ;
15287 return 0;
15288 }
15289 _ACEOF
15290 rm -f conftest.$ac_objext
15291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15292 (eval $ac_compile) 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } &&
15296 { ac_try='test -s conftest.$ac_objext'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }; then
15302 ac_cv_type_pid_t=yes
15303 else
15304 echo "$as_me: failed program was:" >&5
15305 cat conftest.$ac_ext >&5
15306 ac_cv_type_pid_t=no
15307 fi
15308 rm -f conftest.$ac_objext conftest.$ac_ext
15309 fi
15310 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15311 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15312 if test $ac_cv_type_pid_t = yes; then
15313 :
15314 else
15315
15316 cat >>confdefs.h <<_ACEOF
15317 #define pid_t int
15318 _ACEOF
15319
15320 fi
15321
15322
15323
15324 for ac_header in unistd.h vfork.h
15325 do
15326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15328 echo "$as_me:$LINENO: checking for $ac_header" >&5
15329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 fi
15333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15335 else
15336 # Is the header compilable?
15337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15339 cat >conftest.$ac_ext <<_ACEOF
15340 #line $LINENO "configure"
15341 #include "confdefs.h"
15342 $ac_includes_default
15343 #include <$ac_header>
15344 _ACEOF
15345 rm -f conftest.$ac_objext
15346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15347 (eval $ac_compile) 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } &&
15351 { ac_try='test -s conftest.$ac_objext'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_header_compiler=yes
15358 else
15359 echo "$as_me: failed program was:" >&5
15360 cat conftest.$ac_ext >&5
15361 ac_header_compiler=no
15362 fi
15363 rm -f conftest.$ac_objext conftest.$ac_ext
15364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15365 echo "${ECHO_T}$ac_header_compiler" >&6
15366
15367 # Is the header present?
15368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15370 cat >conftest.$ac_ext <<_ACEOF
15371 #line $LINENO "configure"
15372 #include "confdefs.h"
15373 #include <$ac_header>
15374 _ACEOF
15375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15377 ac_status=$?
15378 egrep -v '^ *\+' conftest.er1 >conftest.err
15379 rm -f conftest.er1
15380 cat conftest.err >&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } >/dev/null; then
15383 if test -s conftest.err; then
15384 ac_cpp_err=$ac_c_preproc_warn_flag
15385 else
15386 ac_cpp_err=
15387 fi
15388 else
15389 ac_cpp_err=yes
15390 fi
15391 if test -z "$ac_cpp_err"; then
15392 ac_header_preproc=yes
15393 else
15394 echo "$as_me: failed program was:" >&5
15395 cat conftest.$ac_ext >&5
15396 ac_header_preproc=no
15397 fi
15398 rm -f conftest.err conftest.$ac_ext
15399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15400 echo "${ECHO_T}$ac_header_preproc" >&6
15401
15402 # So? What about this header?
15403 case $ac_header_compiler:$ac_header_preproc in
15404 yes:no )
15405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15409 no:yes )
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15416 esac
15417 echo "$as_me:$LINENO: checking for $ac_header" >&5
15418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422 eval "$as_ac_Header=$ac_header_preproc"
15423 fi
15424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15426
15427 fi
15428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15429 cat >>confdefs.h <<_ACEOF
15430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15431 _ACEOF
15432
15433 fi
15434
15435 done
15436
15437
15438
15439 for ac_func in fork vfork
15440 do
15441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15442 echo "$as_me:$LINENO: checking for $ac_func" >&5
15443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15444 if eval "test \"\${$as_ac_var+set}\" = set"; then
15445 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 else
15447 cat >conftest.$ac_ext <<_ACEOF
15448 #line $LINENO "configure"
15449 #include "confdefs.h"
15450 /* System header to define __stub macros and hopefully few prototypes,
15451 which can conflict with char $ac_func (); below. */
15452 #include <assert.h>
15453 /* Override any gcc2 internal prototype to avoid an error. */
15454 #ifdef __cplusplus
15455 extern "C"
15456 #endif
15457 /* We use char because int might match the return type of a gcc2
15458 builtin and then its argument prototype would still apply. */
15459 char $ac_func ();
15460 char (*f) ();
15461
15462 #ifdef F77_DUMMY_MAIN
15463 # ifdef __cplusplus
15464 extern "C"
15465 # endif
15466 int F77_DUMMY_MAIN() { return 1; }
15467 #endif
15468 int
15469 main ()
15470 {
15471 /* The GNU C library defines this for functions which it implements
15472 to always fail with ENOSYS. Some functions are actually named
15473 something starting with __ and the normal name is an alias. */
15474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15475 choke me
15476 #else
15477 f = $ac_func;
15478 #endif
15479
15480 ;
15481 return 0;
15482 }
15483 _ACEOF
15484 rm -f conftest.$ac_objext conftest$ac_exeext
15485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15486 (eval $ac_link) 2>&5
15487 ac_status=$?
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } &&
15490 { ac_try='test -s conftest$ac_exeext'
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15493 ac_status=$?
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; }; then
15496 eval "$as_ac_var=yes"
15497 else
15498 echo "$as_me: failed program was:" >&5
15499 cat conftest.$ac_ext >&5
15500 eval "$as_ac_var=no"
15501 fi
15502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15503 fi
15504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15506 if test `eval echo '${'$as_ac_var'}'` = yes; then
15507 cat >>confdefs.h <<_ACEOF
15508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15509 _ACEOF
15510
15511 fi
15512 done
15513
15514 ac_cv_func_fork_works=$ac_cv_func_fork
15515 if test "x$ac_cv_func_fork" = xyes; then
15516 echo "$as_me:$LINENO: checking for working fork" >&5
15517 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15518 if test "${ac_cv_func_fork_works+set}" = set; then
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15520 else
15521 if test "$cross_compiling" = yes; then
15522 ac_cv_func_fork_works=cross
15523 else
15524 cat >conftest.$ac_ext <<_ACEOF
15525 /* By Ruediger Kuhlmann. */
15526 #include <sys/types.h>
15527 #if HAVE_UNISTD_H
15528 # include <unistd.h>
15529 #endif
15530 /* Some systems only have a dummy stub for fork() */
15531 int main ()
15532 {
15533 if (fork() < 0)
15534 exit (1);
15535 exit (0);
15536 }
15537 _ACEOF
15538 rm -f conftest$ac_exeext
15539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15540 (eval $ac_link) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 ac_cv_func_fork_works=yes
15550 else
15551 echo "$as_me: program exited with status $ac_status" >&5
15552 echo "$as_me: failed program was:" >&5
15553 cat conftest.$ac_ext >&5
15554 ( exit $ac_status )
15555 ac_cv_func_fork_works=no
15556 fi
15557 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15558 fi
15559 fi
15560 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15561 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15562
15563 fi
15564 if test "x$ac_cv_func_fork_works" = xcross; then
15565 case $host in
15566 *-*-amigaos* | *-*-msdosdjgpp*)
15567 # Override, as these systems have only a dummy fork() stub
15568 ac_cv_func_fork_works=no
15569 ;;
15570 *)
15571 ac_cv_func_fork_works=yes
15572 ;;
15573 esac
15574 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15575 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15576 fi
15577 ac_cv_func_vfork_works=$ac_cv_func_vfork
15578 if test "x$ac_cv_func_vfork" = xyes; then
15579 echo "$as_me:$LINENO: checking for working vfork" >&5
15580 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15581 if test "${ac_cv_func_vfork_works+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 else
15584 if test "$cross_compiling" = yes; then
15585 ac_cv_func_vfork_works=cross
15586 else
15587 cat >conftest.$ac_ext <<_ACEOF
15588 #line $LINENO "configure"
15589 #include "confdefs.h"
15590 /* Thanks to Paul Eggert for this test. */
15591 #include <stdio.h>
15592 #include <sys/types.h>
15593 #include <sys/stat.h>
15594 #if HAVE_UNISTD_H
15595 # include <unistd.h>
15596 #endif
15597 #if HAVE_VFORK_H
15598 # include <vfork.h>
15599 #endif
15600 /* On some sparc systems, changes by the child to local and incoming
15601 argument registers are propagated back to the parent. The compiler
15602 is told about this with #include <vfork.h>, but some compilers
15603 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15604 static variable whose address is put into a register that is
15605 clobbered by the vfork. */
15606 static
15607 #ifdef __cplusplus
15608 sparc_address_test (int arg)
15609 # else
15610 sparc_address_test (arg) int arg;
15611 #endif
15612 {
15613 static pid_t child;
15614 if (!child) {
15615 child = vfork ();
15616 if (child < 0) {
15617 perror ("vfork");
15618 _exit(2);
15619 }
15620 if (!child) {
15621 arg = getpid();
15622 write(-1, "", 0);
15623 _exit (arg);
15624 }
15625 }
15626 }
15627
15628 int
15629 main ()
15630 {
15631 pid_t parent = getpid ();
15632 pid_t child;
15633
15634 sparc_address_test ();
15635
15636 child = vfork ();
15637
15638 if (child == 0) {
15639 /* Here is another test for sparc vfork register problems. This
15640 test uses lots of local variables, at least as many local
15641 variables as main has allocated so far including compiler
15642 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15643 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15644 reuse the register of parent for one of the local variables,
15645 since it will think that parent can't possibly be used any more
15646 in this routine. Assigning to the local variable will thus
15647 munge parent in the parent process. */
15648 pid_t
15649 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15650 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15651 /* Convince the compiler that p..p7 are live; otherwise, it might
15652 use the same hardware register for all 8 local variables. */
15653 if (p != p1 || p != p2 || p != p3 || p != p4
15654 || p != p5 || p != p6 || p != p7)
15655 _exit(1);
15656
15657 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15658 from child file descriptors. If the child closes a descriptor
15659 before it execs or exits, this munges the parent's descriptor
15660 as well. Test for this by closing stdout in the child. */
15661 _exit(close(fileno(stdout)) != 0);
15662 } else {
15663 int status;
15664 struct stat st;
15665
15666 while (wait(&status) != child)
15667 ;
15668 exit(
15669 /* Was there some problem with vforking? */
15670 child < 0
15671
15672 /* Did the child fail? (This shouldn't happen.) */
15673 || status
15674
15675 /* Did the vfork/compiler bug occur? */
15676 || parent != getpid()
15677
15678 /* Did the file descriptor bug occur? */
15679 || fstat(fileno(stdout), &st) != 0
15680 );
15681 }
15682 }
15683 _ACEOF
15684 rm -f conftest$ac_exeext
15685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15686 (eval $ac_link) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_cv_func_vfork_works=yes
15696 else
15697 echo "$as_me: program exited with status $ac_status" >&5
15698 echo "$as_me: failed program was:" >&5
15699 cat conftest.$ac_ext >&5
15700 ( exit $ac_status )
15701 ac_cv_func_vfork_works=no
15702 fi
15703 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15704 fi
15705 fi
15706 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15707 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15708
15709 fi;
15710 if test "x$ac_cv_func_fork_works" = xcross; then
15711 ac_cv_func_vfork_works=ac_cv_func_vfork
15712 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15713 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15714 fi
15715
15716 if test "x$ac_cv_func_vfork_works" = xyes; then
15717
15718 cat >>confdefs.h <<\_ACEOF
15719 #define HAVE_WORKING_VFORK 1
15720 _ACEOF
15721
15722 else
15723
15724 cat >>confdefs.h <<\_ACEOF
15725 #define vfork fork
15726 _ACEOF
15727
15728 fi
15729 if test "x$ac_cv_func_fork_works" = xyes; then
15730
15731 cat >>confdefs.h <<\_ACEOF
15732 #define HAVE_WORKING_FORK 1
15733 _ACEOF
15734
15735 fi
15736
15737
15738 # Fixme: This should be replaced when we have autoconf 2.14.
15739 echo "$as_me:$LINENO: checking for size_t" >&5
15740 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15741 if test "${ac_cv_type_size_t+set}" = set; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 else
15744 cat >conftest.$ac_ext <<_ACEOF
15745 #line $LINENO "configure"
15746 #include "confdefs.h"
15747 $ac_includes_default
15748 #ifdef F77_DUMMY_MAIN
15749 # ifdef __cplusplus
15750 extern "C"
15751 # endif
15752 int F77_DUMMY_MAIN() { return 1; }
15753 #endif
15754 int
15755 main ()
15756 {
15757 if ((size_t *) 0)
15758 return 0;
15759 if (sizeof (size_t))
15760 return 0;
15761 ;
15762 return 0;
15763 }
15764 _ACEOF
15765 rm -f conftest.$ac_objext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15767 (eval $ac_compile) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try='test -s conftest.$ac_objext'
15772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15773 (eval $ac_try) 2>&5
15774 ac_status=$?
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); }; }; then
15777 ac_cv_type_size_t=yes
15778 else
15779 echo "$as_me: failed program was:" >&5
15780 cat conftest.$ac_ext >&5
15781 ac_cv_type_size_t=no
15782 fi
15783 rm -f conftest.$ac_objext conftest.$ac_ext
15784 fi
15785 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15786 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15787 if test $ac_cv_type_size_t = yes; then
15788 :
15789 else
15790
15791 cat >>confdefs.h <<_ACEOF
15792 #define size_t unsigned
15793 _ACEOF
15794
15795 fi
15796
15797
15798 # Set up the CFLAGS for real compilation, so we can substitute it.
15799 CFLAGS="$REAL_CFLAGS"
15800 CPPFLAGS="$REAL_CPPFLAGS"
15801
15802 #### Find out which version of Emacs this is.
15803 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
15804 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15805 if test x"${version}" = x; then
15806 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
15807 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
15808 { (exit 1); exit 1; }; }
15809 fi
15810
15811 ### Specify what sort of things we'll be editing into Makefile and config.h.
15812 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847 cat >>confdefs.h <<_ACEOF
15848 #define EMACS_CONFIGURATION "${canonical}"
15849 _ACEOF
15850
15851
15852 cat >>confdefs.h <<_ACEOF
15853 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15854 _ACEOF
15855
15856
15857 cat >>confdefs.h <<_ACEOF
15858 #define config_machfile "${machfile}"
15859 _ACEOF
15860
15861
15862 cat >>confdefs.h <<_ACEOF
15863 #define config_opsysfile "${opsysfile}"
15864 _ACEOF
15865
15866
15867 cat >>confdefs.h <<_ACEOF
15868 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
15869 _ACEOF
15870
15871
15872 cat >>confdefs.h <<_ACEOF
15873 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
15874 _ACEOF
15875
15876
15877 cat >>confdefs.h <<_ACEOF
15878 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
15879 _ACEOF
15880
15881
15882 cat >>confdefs.h <<_ACEOF
15883 #define UNEXEC_SRC ${UNEXEC_SRC}
15884 _ACEOF
15885
15886
15887 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15888
15889 cat >>confdefs.h <<\_ACEOF
15890 #define HAVE_X_WINDOWS 1
15891 _ACEOF
15892
15893 fi
15894 if test "${USE_X_TOOLKIT}" != "none" ; then
15895
15896 cat >>confdefs.h <<\_ACEOF
15897 #define USE_X_TOOLKIT 1
15898 _ACEOF
15899
15900 fi
15901 if test "${HAVE_X11}" = "yes" ; then
15902
15903 cat >>confdefs.h <<\_ACEOF
15904 #define HAVE_X11 1
15905 _ACEOF
15906
15907 fi
15908 if test "${HAVE_XFREE386}" = "yes" ; then
15909
15910 cat >>confdefs.h <<\_ACEOF
15911 #define HAVE_XFREE386 1
15912 _ACEOF
15913
15914 fi
15915 if test "${HAVE_MENUS}" = "yes" ; then
15916
15917 cat >>confdefs.h <<\_ACEOF
15918 #define HAVE_MENUS 1
15919 _ACEOF
15920
15921 fi
15922 if test "${GNU_MALLOC}" = "yes" ; then
15923
15924 cat >>confdefs.h <<\_ACEOF
15925 #define GNU_MALLOC 1
15926 _ACEOF
15927
15928 fi
15929 if test "${REL_ALLOC}" = "yes" ; then
15930
15931 cat >>confdefs.h <<\_ACEOF
15932 #define REL_ALLOC 1
15933 _ACEOF
15934
15935 fi
15936
15937
15938 for ac_header in nlist.h
15939 do
15940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15942 echo "$as_me:$LINENO: checking for $ac_header" >&5
15943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15945 echo $ECHO_N "(cached) $ECHO_C" >&6
15946 fi
15947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15949 else
15950 # Is the header compilable?
15951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15953 cat >conftest.$ac_ext <<_ACEOF
15954 #line $LINENO "configure"
15955 #include "confdefs.h"
15956 $ac_includes_default
15957 #include <$ac_header>
15958 _ACEOF
15959 rm -f conftest.$ac_objext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15961 (eval $ac_compile) 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try='test -s conftest.$ac_objext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_header_compiler=yes
15972 else
15973 echo "$as_me: failed program was:" >&5
15974 cat conftest.$ac_ext >&5
15975 ac_header_compiler=no
15976 fi
15977 rm -f conftest.$ac_objext conftest.$ac_ext
15978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15979 echo "${ECHO_T}$ac_header_compiler" >&6
15980
15981 # Is the header present?
15982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15984 cat >conftest.$ac_ext <<_ACEOF
15985 #line $LINENO "configure"
15986 #include "confdefs.h"
15987 #include <$ac_header>
15988 _ACEOF
15989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15991 ac_status=$?
15992 egrep -v '^ *\+' conftest.er1 >conftest.err
15993 rm -f conftest.er1
15994 cat conftest.err >&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } >/dev/null; then
15997 if test -s conftest.err; then
15998 ac_cpp_err=$ac_c_preproc_warn_flag
15999 else
16000 ac_cpp_err=
16001 fi
16002 else
16003 ac_cpp_err=yes
16004 fi
16005 if test -z "$ac_cpp_err"; then
16006 ac_header_preproc=yes
16007 else
16008 echo "$as_me: failed program was:" >&5
16009 cat conftest.$ac_ext >&5
16010 ac_header_preproc=no
16011 fi
16012 rm -f conftest.err conftest.$ac_ext
16013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16014 echo "${ECHO_T}$ac_header_preproc" >&6
16015
16016 # So? What about this header?
16017 case $ac_header_compiler:$ac_header_preproc in
16018 yes:no )
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16023 no:yes )
16024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16030 esac
16031 echo "$as_me:$LINENO: checking for $ac_header" >&5
16032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036 eval "$as_ac_Header=$ac_header_preproc"
16037 fi
16038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16040
16041 fi
16042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16043 cat >>confdefs.h <<_ACEOF
16044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16045 _ACEOF
16046
16047 cat >>confdefs.h <<\_ACEOF
16048 #define NLIST_STRUCT 1
16049 _ACEOF
16050
16051 fi
16052
16053 done
16054
16055
16056
16057
16058
16059
16060 #### Report on what we decided to do.
16061 echo "
16062 Configured for \`${canonical}'.
16063
16064 Where should the build process find the source code? ${srcdir}
16065 What operating system and machine description files should Emacs use?
16066 \`${opsysfile}' and \`${machfile}'
16067 What compiler should emacs be built with? ${CC} ${CFLAGS}
16068 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
16069 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
16070 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
16071 What window system should Emacs use? ${window_system}
16072 What toolkit should Emacs use? ${USE_X_TOOLKIT}
16073 Should Emacs use a shared game state directory? ${gamedir}"
16074
16075 if test -n "${x_includes}"; then
16076 echo " Where do we find X Windows header files? ${x_includes}"
16077 else
16078 echo " Where do we find X Windows header files? Standard dirs"
16079 fi
16080 if test -n "${x_libraries}"; then
16081 echo " Where do we find X Windows libraries? ${x_libraries}"
16082 else
16083 echo " Where do we find X Windows libraries? Standard dirs"
16084 fi
16085
16086 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
16087 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
16088 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
16089 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
16090 echo " Does Emacs use -lungif? ${HAVE_GIF}"
16091 echo " Does Emacs use -lpng? ${HAVE_PNG}"
16092 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
16093 echo
16094
16095 # Remove any trailing slashes in these variables.
16096 test "${prefix}" != NONE &&
16097 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
16098 test "${exec_prefix}" != NONE &&
16099 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
16100
16101 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
16102 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
16103 ## from Makefile.c can correctly provide the arg `-traditional' to the
16104 ## C preprocessor.
16105
16106 cat >conftest.$ac_ext <<_ACEOF
16107 #line $LINENO "configure"
16108 #include "confdefs.h"
16109 yes..yes
16110 _ACEOF
16111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16112 egrep "yes..yes" >/dev/null 2>&1; then
16113 CPP_NEED_TRADITIONAL=no
16114 else
16115 CPP_NEED_TRADITIONAL=yes
16116 fi
16117 rm -f conftest*
16118
16119
16120 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"
16121 ac_config_commands="$ac_config_commands default"
16122 cat >confcache <<\_ACEOF
16123 # This file is a shell script that caches the results of configure
16124 # tests run on this system so they can be shared between configure
16125 # scripts and configure runs, see configure's option --config-cache.
16126 # It is not useful on other systems. If it contains results you don't
16127 # want to keep, you may remove or edit it.
16128 #
16129 # config.status only pays attention to the cache file if you give it
16130 # the --recheck option to rerun configure.
16131 #
16132 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16133 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16134 # following values.
16135
16136 _ACEOF
16137
16138 # The following way of writing the cache mishandles newlines in values,
16139 # but we know of no workaround that is simple, portable, and efficient.
16140 # So, don't put newlines in cache variables' values.
16141 # Ultrix sh set writes to stderr and can't be redirected directly,
16142 # and sets the high bit in the cache file unless we assign to the vars.
16143 {
16144 (set) 2>&1 |
16145 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16146 *ac_space=\ *)
16147 # `set' does not quote correctly, so add quotes (double-quote
16148 # substitution turns \\\\ into \\, and sed turns \\ into \).
16149 sed -n \
16150 "s/'/'\\\\''/g;
16151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16152 ;;
16153 *)
16154 # `set' quotes correctly as required by POSIX, so do not add quotes.
16155 sed -n \
16156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16157 ;;
16158 esac;
16159 } |
16160 sed '
16161 t clear
16162 : clear
16163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16164 t end
16165 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16166 : end' >>confcache
16167 if cmp -s $cache_file confcache; then :; else
16168 if test -w $cache_file; then
16169 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16170 cat confcache >$cache_file
16171 else
16172 echo "not updating unwritable cache $cache_file"
16173 fi
16174 fi
16175 rm -f confcache
16176
16177 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16178 # Let make expand exec_prefix.
16179 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16180
16181 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16182 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16183 # trailing colons and then remove the whole line if VPATH becomes empty
16184 # (actually we leave an empty line to preserve line numbers).
16185 if test "x$srcdir" = x.; then
16186 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16187 s/:*\$(srcdir):*/:/;
16188 s/:*\${srcdir}:*/:/;
16189 s/:*@srcdir@:*/:/;
16190 s/^\([^=]*=[ ]*\):*/\1/;
16191 s/:*$//;
16192 s/^[^=]*=[ ]*$//;
16193 }'
16194 fi
16195
16196 DEFS=-DHAVE_CONFIG_H
16197
16198
16199 : ${CONFIG_STATUS=./config.status}
16200 ac_clean_files_save=$ac_clean_files
16201 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16202 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16203 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16204 cat >$CONFIG_STATUS <<_ACEOF
16205 #! $SHELL
16206 # Generated by $as_me.
16207 # Run this file to recreate the current configuration.
16208 # Compiler output produced by configure, useful for debugging
16209 # configure, is in config.log if it exists.
16210
16211 debug=false
16212 SHELL=\${CONFIG_SHELL-$SHELL}
16213 _ACEOF
16214
16215 cat >>$CONFIG_STATUS <<\_ACEOF
16216
16217 ## --------------------- ##
16218 ## M4sh Initialization. ##
16219 ## --------------------- ##
16220
16221 # Be Bourne compatible
16222 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16223 emulate sh
16224 NULLCMD=:
16225 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16226 set -o posix
16227 fi
16228
16229 # NLS nuisances.
16230 # Support unset when possible.
16231 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16232 as_unset=unset
16233 else
16234 as_unset=false
16235 fi
16236
16237 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16238 { $as_unset LANG || test "${LANG+set}" != set; } ||
16239 { LANG=C; export LANG; }
16240 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16241 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16242 { LC_ALL=C; export LC_ALL; }
16243 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16244 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16245 { LC_TIME=C; export LC_TIME; }
16246 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16247 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16248 { LC_CTYPE=C; export LC_CTYPE; }
16249 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16250 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16251 { LANGUAGE=C; export LANGUAGE; }
16252 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16253 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16254 { LC_COLLATE=C; export LC_COLLATE; }
16255 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16256 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16257 { LC_NUMERIC=C; export LC_NUMERIC; }
16258 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16259 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16260 { LC_MESSAGES=C; export LC_MESSAGES; }
16261
16262
16263 # Name of the executable.
16264 as_me=`(basename "$0") 2>/dev/null ||
16265 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16266 X"$0" : 'X\(//\)$' \| \
16267 X"$0" : 'X\(/\)$' \| \
16268 . : '\(.\)' 2>/dev/null ||
16269 echo X/"$0" |
16270 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16271 /^X\/\(\/\/\)$/{ s//\1/; q; }
16272 /^X\/\(\/\).*/{ s//\1/; q; }
16273 s/.*/./; q'`
16274
16275 # PATH needs CR, and LINENO needs CR and PATH.
16276 # Avoid depending upon Character Ranges.
16277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16280 as_cr_digits='0123456789'
16281 as_cr_alnum=$as_cr_Letters$as_cr_digits
16282
16283 # The user is always right.
16284 if test "${PATH_SEPARATOR+set}" != set; then
16285 echo "#! /bin/sh" >conftest.sh
16286 echo "exit 0" >>conftest.sh
16287 chmod +x conftest.sh
16288 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16289 PATH_SEPARATOR=';'
16290 else
16291 PATH_SEPARATOR=:
16292 fi
16293 rm -f conftest.sh
16294 fi
16295
16296
16297 as_lineno_1=$LINENO
16298 as_lineno_2=$LINENO
16299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16300 test "x$as_lineno_1" != "x$as_lineno_2" &&
16301 test "x$as_lineno_3" = "x$as_lineno_2" || {
16302 # Find who we are. Look in the path if we contain no path at all
16303 # relative or not.
16304 case $0 in
16305 *[\\/]* ) as_myself=$0 ;;
16306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16307 for as_dir in $PATH
16308 do
16309 IFS=$as_save_IFS
16310 test -z "$as_dir" && as_dir=.
16311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16312 done
16313
16314 ;;
16315 esac
16316 # We did not find ourselves, most probably we were run as `sh COMMAND'
16317 # in which case we are not to be found in the path.
16318 if test "x$as_myself" = x; then
16319 as_myself=$0
16320 fi
16321 if test ! -f "$as_myself"; then
16322 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16323 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16324 { (exit 1); exit 1; }; }
16325 fi
16326 case $CONFIG_SHELL in
16327 '')
16328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16329 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16330 do
16331 IFS=$as_save_IFS
16332 test -z "$as_dir" && as_dir=.
16333 for as_base in sh bash ksh sh5; do
16334 case $as_dir in
16335 /*)
16336 if ("$as_dir/$as_base" -c '
16337 as_lineno_1=$LINENO
16338 as_lineno_2=$LINENO
16339 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16340 test "x$as_lineno_1" != "x$as_lineno_2" &&
16341 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16342 CONFIG_SHELL=$as_dir/$as_base
16343 export CONFIG_SHELL
16344 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16345 fi;;
16346 esac
16347 done
16348 done
16349 ;;
16350 esac
16351
16352 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16353 # uniformly replaced by the line number. The first 'sed' inserts a
16354 # line-number line before each line; the second 'sed' does the real
16355 # work. The second script uses 'N' to pair each line-number line
16356 # with the numbered line, and appends trailing '-' during
16357 # substitution so that $LINENO is not a special case at line end.
16358 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16359 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16360 sed '=' <$as_myself |
16361 sed '
16362 N
16363 s,$,-,
16364 : loop
16365 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16366 t loop
16367 s,-$,,
16368 s,^['$as_cr_digits']*\n,,
16369 ' >$as_me.lineno &&
16370 chmod +x $as_me.lineno ||
16371 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16372 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16373 { (exit 1); exit 1; }; }
16374
16375 # Don't try to exec as it changes $[0], causing all sort of problems
16376 # (the dirname of $[0] is not the place where we might find the
16377 # original and so on. Autoconf is especially sensible to this).
16378 . ./$as_me.lineno
16379 # Exit status is that of the last command.
16380 exit
16381 }
16382
16383
16384 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16385 *c*,-n*) ECHO_N= ECHO_C='
16386 ' ECHO_T=' ' ;;
16387 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16388 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16389 esac
16390
16391 if expr a : '\(a\)' >/dev/null 2>&1; then
16392 as_expr=expr
16393 else
16394 as_expr=false
16395 fi
16396
16397 rm -f conf$$ conf$$.exe conf$$.file
16398 echo >conf$$.file
16399 if ln -s conf$$.file conf$$ 2>/dev/null; then
16400 # We could just check for DJGPP; but this test a) works b) is more generic
16401 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16402 if test -f conf$$.exe; then
16403 # Don't use ln at all; we don't have any links
16404 as_ln_s='cp -p'
16405 else
16406 as_ln_s='ln -s'
16407 fi
16408 elif ln conf$$.file conf$$ 2>/dev/null; then
16409 as_ln_s=ln
16410 else
16411 as_ln_s='cp -p'
16412 fi
16413 rm -f conf$$ conf$$.exe conf$$.file
16414
16415 as_executable_p="test -f"
16416
16417 # Sed expression to map a string onto a valid CPP name.
16418 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16419
16420 # Sed expression to map a string onto a valid variable name.
16421 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16422
16423
16424 # IFS
16425 # We need space, tab and new line, in precisely that order.
16426 as_nl='
16427 '
16428 IFS=" $as_nl"
16429
16430 # CDPATH.
16431 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16432
16433 exec 6>&1
16434
16435 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16436 # report actual input values of CONFIG_FILES etc. instead of their
16437 # values after options handling. Logging --version etc. is OK.
16438 exec 5>>config.log
16439 {
16440 echo
16441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16442 ## Running $as_me. ##
16443 _ASBOX
16444 } >&5
16445 cat >&5 <<_CSEOF
16446
16447 This file was extended by $as_me, which was
16448 generated by GNU Autoconf 2.53. Invocation command line was
16449
16450 CONFIG_FILES = $CONFIG_FILES
16451 CONFIG_HEADERS = $CONFIG_HEADERS
16452 CONFIG_LINKS = $CONFIG_LINKS
16453 CONFIG_COMMANDS = $CONFIG_COMMANDS
16454 $ $0 $@
16455
16456 _CSEOF
16457 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16458 echo >&5
16459 _ACEOF
16460
16461 # Files that config.status was made for.
16462 if test -n "$ac_config_files"; then
16463 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16464 fi
16465
16466 if test -n "$ac_config_headers"; then
16467 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16468 fi
16469
16470 if test -n "$ac_config_links"; then
16471 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16472 fi
16473
16474 if test -n "$ac_config_commands"; then
16475 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16476 fi
16477
16478 cat >>$CONFIG_STATUS <<\_ACEOF
16479
16480 ac_cs_usage="\
16481 \`$as_me' instantiates files from templates according to the
16482 current configuration.
16483
16484 Usage: $0 [OPTIONS] [FILE]...
16485
16486 -h, --help print this help, then exit
16487 -V, --version print version number, then exit
16488 -d, --debug don't remove temporary files
16489 --recheck update $as_me by reconfiguring in the same conditions
16490 --file=FILE[:TEMPLATE]
16491 instantiate the configuration file FILE
16492 --header=FILE[:TEMPLATE]
16493 instantiate the configuration header FILE
16494
16495 Configuration files:
16496 $config_files
16497
16498 Configuration headers:
16499 $config_headers
16500
16501 Configuration commands:
16502 $config_commands
16503
16504 Report bugs to <bug-autoconf@gnu.org>."
16505 _ACEOF
16506
16507 cat >>$CONFIG_STATUS <<_ACEOF
16508 ac_cs_version="\\
16509 config.status
16510 configured by $0, generated by GNU Autoconf 2.53,
16511 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16512
16513 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16514 Free Software Foundation, Inc.
16515 This config.status script is free software; the Free Software Foundation
16516 gives unlimited permission to copy, distribute and modify it."
16517 srcdir=$srcdir
16518 INSTALL="$INSTALL"
16519 _ACEOF
16520
16521 cat >>$CONFIG_STATUS <<\_ACEOF
16522 # If no file are specified by the user, then we need to provide default
16523 # value. By we need to know if files were specified by the user.
16524 ac_need_defaults=:
16525 while test $# != 0
16526 do
16527 case $1 in
16528 --*=*)
16529 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16530 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16531 shift
16532 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16533 shift
16534 ;;
16535 -*);;
16536 *) # This is not an option, so the user has probably given explicit
16537 # arguments.
16538 ac_need_defaults=false;;
16539 esac
16540
16541 case $1 in
16542 # Handling of the options.
16543 _ACEOF
16544 cat >>$CONFIG_STATUS <<_ACEOF
16545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16546 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16547 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16548 _ACEOF
16549 cat >>$CONFIG_STATUS <<\_ACEOF
16550 --version | --vers* | -V )
16551 echo "$ac_cs_version"; exit 0 ;;
16552 --he | --h)
16553 # Conflict between --help and --header
16554 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16555 Try \`$0 --help' for more information." >&5
16556 echo "$as_me: error: ambiguous option: $1
16557 Try \`$0 --help' for more information." >&2;}
16558 { (exit 1); exit 1; }; };;
16559 --help | --hel | -h )
16560 echo "$ac_cs_usage"; exit 0 ;;
16561 --debug | --d* | -d )
16562 debug=: ;;
16563 --file | --fil | --fi | --f )
16564 shift
16565 CONFIG_FILES="$CONFIG_FILES $1"
16566 ac_need_defaults=false;;
16567 --header | --heade | --head | --hea )
16568 shift
16569 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16570 ac_need_defaults=false;;
16571
16572 # This is an error.
16573 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16574 Try \`$0 --help' for more information." >&5
16575 echo "$as_me: error: unrecognized option: $1
16576 Try \`$0 --help' for more information." >&2;}
16577 { (exit 1); exit 1; }; } ;;
16578
16579 *) ac_config_targets="$ac_config_targets $1" ;;
16580
16581 esac
16582 shift
16583 done
16584
16585 _ACEOF
16586
16587 cat >>$CONFIG_STATUS <<_ACEOF
16588 #
16589 # INIT-COMMANDS section.
16590 #
16591
16592 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
16593
16594 _ACEOF
16595
16596
16597
16598 cat >>$CONFIG_STATUS <<\_ACEOF
16599 for ac_config_target in $ac_config_targets
16600 do
16601 case "$ac_config_target" in
16602 # Handling of arguments.
16603 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16604 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
16605 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
16606 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16607 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
16608 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
16609 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
16610 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
16611 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
16612 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
16613 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16614 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16615 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16616 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16617 { (exit 1); exit 1; }; };;
16618 esac
16619 done
16620
16621 # If the user did not use the arguments to specify the items to instantiate,
16622 # then the envvar interface is used. Set only those that are not.
16623 # We use the long form for the default assignment because of an extremely
16624 # bizarre bug on SunOS 4.1.3.
16625 if $ac_need_defaults; then
16626 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16627 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16628 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16629 fi
16630
16631 # Create a temporary directory, and hook for its removal unless debugging.
16632 $debug ||
16633 {
16634 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16635 trap '{ (exit 1); exit 1; }' 1 2 13 15
16636 }
16637
16638 # Create a (secure) tmp directory for tmp files.
16639 : ${TMPDIR=/tmp}
16640 {
16641 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16642 test -n "$tmp" && test -d "$tmp"
16643 } ||
16644 {
16645 tmp=$TMPDIR/cs$$-$RANDOM
16646 (umask 077 && mkdir $tmp)
16647 } ||
16648 {
16649 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16650 { (exit 1); exit 1; }
16651 }
16652
16653 _ACEOF
16654
16655 cat >>$CONFIG_STATUS <<_ACEOF
16656
16657 #
16658 # CONFIG_FILES section.
16659 #
16660
16661 # No need to generate the scripts if there are no CONFIG_FILES.
16662 # This happens for instance when ./config.status config.h
16663 if test -n "\$CONFIG_FILES"; then
16664 # Protect against being on the right side of a sed subst in config.status.
16665 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16666 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16667 s,@SHELL@,$SHELL,;t t
16668 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16669 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16670 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16671 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16672 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16673 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16674 s,@exec_prefix@,$exec_prefix,;t t
16675 s,@prefix@,$prefix,;t t
16676 s,@program_transform_name@,$program_transform_name,;t t
16677 s,@bindir@,$bindir,;t t
16678 s,@sbindir@,$sbindir,;t t
16679 s,@libexecdir@,$libexecdir,;t t
16680 s,@datadir@,$datadir,;t t
16681 s,@sysconfdir@,$sysconfdir,;t t
16682 s,@sharedstatedir@,$sharedstatedir,;t t
16683 s,@localstatedir@,$localstatedir,;t t
16684 s,@libdir@,$libdir,;t t
16685 s,@includedir@,$includedir,;t t
16686 s,@oldincludedir@,$oldincludedir,;t t
16687 s,@infodir@,$infodir,;t t
16688 s,@mandir@,$mandir,;t t
16689 s,@build_alias@,$build_alias,;t t
16690 s,@host_alias@,$host_alias,;t t
16691 s,@target_alias@,$target_alias,;t t
16692 s,@DEFS@,$DEFS,;t t
16693 s,@ECHO_C@,$ECHO_C,;t t
16694 s,@ECHO_N@,$ECHO_N,;t t
16695 s,@ECHO_T@,$ECHO_T,;t t
16696 s,@LIBS@,$LIBS,;t t
16697 s,@build@,$build,;t t
16698 s,@build_cpu@,$build_cpu,;t t
16699 s,@build_vendor@,$build_vendor,;t t
16700 s,@build_os@,$build_os,;t t
16701 s,@host@,$host,;t t
16702 s,@host_cpu@,$host_cpu,;t t
16703 s,@host_vendor@,$host_vendor,;t t
16704 s,@host_os@,$host_os,;t t
16705 s,@CC@,$CC,;t t
16706 s,@CFLAGS@,$CFLAGS,;t t
16707 s,@LDFLAGS@,$LDFLAGS,;t t
16708 s,@CPPFLAGS@,$CPPFLAGS,;t t
16709 s,@ac_ct_CC@,$ac_ct_CC,;t t
16710 s,@EXEEXT@,$EXEEXT,;t t
16711 s,@OBJEXT@,$OBJEXT,;t t
16712 s,@LN_S@,$LN_S,;t t
16713 s,@CPP@,$CPP,;t t
16714 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16715 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16716 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16717 s,@YACC@,$YACC,;t t
16718 s,@RANLIB@,$RANLIB,;t t
16719 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16720 s,@LIBSOUND@,$LIBSOUND,;t t
16721 s,@SET_MAKE@,$SET_MAKE,;t t
16722 s,@ALLOCA@,$ALLOCA,;t t
16723 s,@liblockfile@,$liblockfile,;t t
16724 s,@LIBOBJS@,$LIBOBJS,;t t
16725 s,@NEED_SETGID@,$NEED_SETGID,;t t
16726 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
16727 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
16728 s,@version@,$version,;t t
16729 s,@configuration@,$configuration,;t t
16730 s,@canonical@,$canonical,;t t
16731 s,@srcdir@,$srcdir,;t t
16732 s,@lispdir@,$lispdir,;t t
16733 s,@locallisppath@,$locallisppath,;t t
16734 s,@lisppath@,$lisppath,;t t
16735 s,@x_default_search_path@,$x_default_search_path,;t t
16736 s,@etcdir@,$etcdir,;t t
16737 s,@archlibdir@,$archlibdir,;t t
16738 s,@docdir@,$docdir,;t t
16739 s,@bitmapdir@,$bitmapdir,;t t
16740 s,@gamedir@,$gamedir,;t t
16741 s,@gameuser@,$gameuser,;t t
16742 s,@c_switch_system@,$c_switch_system,;t t
16743 s,@c_switch_machine@,$c_switch_machine,;t t
16744 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
16745 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
16746 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
16747 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
16748 s,@machfile@,$machfile,;t t
16749 s,@opsysfile@,$opsysfile,;t t
16750 CEOF
16751
16752 _ACEOF
16753
16754 cat >>$CONFIG_STATUS <<\_ACEOF
16755 # Split the substitutions into bite-sized pieces for seds with
16756 # small command number limits, like on Digital OSF/1 and HP-UX.
16757 ac_max_sed_lines=48
16758 ac_sed_frag=1 # Number of current file.
16759 ac_beg=1 # First line for current file.
16760 ac_end=$ac_max_sed_lines # Line after last line for current file.
16761 ac_more_lines=:
16762 ac_sed_cmds=
16763 while $ac_more_lines; do
16764 if test $ac_beg -gt 1; then
16765 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16766 else
16767 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16768 fi
16769 if test ! -s $tmp/subs.frag; then
16770 ac_more_lines=false
16771 else
16772 # The purpose of the label and of the branching condition is to
16773 # speed up the sed processing (if there are no `@' at all, there
16774 # is no need to browse any of the substitutions).
16775 # These are the two extra sed commands mentioned above.
16776 (echo ':t
16777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16778 if test -z "$ac_sed_cmds"; then
16779 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16780 else
16781 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16782 fi
16783 ac_sed_frag=`expr $ac_sed_frag + 1`
16784 ac_beg=$ac_end
16785 ac_end=`expr $ac_end + $ac_max_sed_lines`
16786 fi
16787 done
16788 if test -z "$ac_sed_cmds"; then
16789 ac_sed_cmds=cat
16790 fi
16791 fi # test -n "$CONFIG_FILES"
16792
16793 _ACEOF
16794 cat >>$CONFIG_STATUS <<\_ACEOF
16795 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16797 case $ac_file in
16798 - | *:- | *:-:* ) # input from stdin
16799 cat >$tmp/stdin
16800 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16802 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16804 * ) ac_file_in=$ac_file.in ;;
16805 esac
16806
16807 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16808 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16809 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16810 X"$ac_file" : 'X\(//\)[^/]' \| \
16811 X"$ac_file" : 'X\(//\)$' \| \
16812 X"$ac_file" : 'X\(/\)' \| \
16813 . : '\(.\)' 2>/dev/null ||
16814 echo X"$ac_file" |
16815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16817 /^X\(\/\/\)$/{ s//\1/; q; }
16818 /^X\(\/\).*/{ s//\1/; q; }
16819 s/.*/./; q'`
16820 { case "$ac_dir" in
16821 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16822 *) as_incr_dir=.;;
16823 esac
16824 as_dummy="$ac_dir"
16825 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16826 case $as_mkdir_dir in
16827 # Skip DOS drivespec
16828 ?:) as_incr_dir=$as_mkdir_dir ;;
16829 *)
16830 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16831 test -d "$as_incr_dir" ||
16832 mkdir "$as_incr_dir" ||
16833 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16834 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16835 { (exit 1); exit 1; }; }
16836 ;;
16837 esac
16838 done; }
16839
16840 ac_builddir=.
16841
16842 if test "$ac_dir" != .; then
16843 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16844 # A "../" for each directory in $ac_dir_suffix.
16845 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16846 else
16847 ac_dir_suffix= ac_top_builddir=
16848 fi
16849
16850 case $srcdir in
16851 .) # No --srcdir option. We are building in place.
16852 ac_srcdir=.
16853 if test -z "$ac_top_builddir"; then
16854 ac_top_srcdir=.
16855 else
16856 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16857 fi ;;
16858 [\\/]* | ?:[\\/]* ) # Absolute path.
16859 ac_srcdir=$srcdir$ac_dir_suffix;
16860 ac_top_srcdir=$srcdir ;;
16861 *) # Relative path.
16862 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16863 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16864 esac
16865 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16866 # absolute.
16867 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16868 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16869 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16870 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16871
16872
16873 case $INSTALL in
16874 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16875 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16876 esac
16877
16878 if test x"$ac_file" != x-; then
16879 { echo "$as_me:$LINENO: creating $ac_file" >&5
16880 echo "$as_me: creating $ac_file" >&6;}
16881 rm -f "$ac_file"
16882 fi
16883 # Let's still pretend it is `configure' which instantiates (i.e., don't
16884 # use $as_me), people would be surprised to read:
16885 # /* config.h. Generated by config.status. */
16886 if test x"$ac_file" = x-; then
16887 configure_input=
16888 else
16889 configure_input="$ac_file. "
16890 fi
16891 configure_input=$configure_input"Generated from `echo $ac_file_in |
16892 sed 's,.*/,,'` by configure."
16893
16894 # First look for the input files in the build tree, otherwise in the
16895 # src tree.
16896 ac_file_inputs=`IFS=:
16897 for f in $ac_file_in; do
16898 case $f in
16899 -) echo $tmp/stdin ;;
16900 [\\/$]*)
16901 # Absolute (can't be DOS-style, as IFS=:)
16902 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16903 echo "$as_me: error: cannot find input file: $f" >&2;}
16904 { (exit 1); exit 1; }; }
16905 echo $f;;
16906 *) # Relative
16907 if test -f "$f"; then
16908 # Build tree
16909 echo $f
16910 elif test -f "$srcdir/$f"; then
16911 # Source tree
16912 echo $srcdir/$f
16913 else
16914 # /dev/null tree
16915 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16916 echo "$as_me: error: cannot find input file: $f" >&2;}
16917 { (exit 1); exit 1; }; }
16918 fi;;
16919 esac
16920 done` || { (exit 1); exit 1; }
16921 _ACEOF
16922 cat >>$CONFIG_STATUS <<_ACEOF
16923 sed "$ac_vpsub
16924 $extrasub
16925 _ACEOF
16926 cat >>$CONFIG_STATUS <<\_ACEOF
16927 :t
16928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16929 s,@configure_input@,$configure_input,;t t
16930 s,@srcdir@,$ac_srcdir,;t t
16931 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16932 s,@top_srcdir@,$ac_top_srcdir,;t t
16933 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16934 s,@builddir@,$ac_builddir,;t t
16935 s,@abs_builddir@,$ac_abs_builddir,;t t
16936 s,@top_builddir@,$ac_top_builddir,;t t
16937 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16938 s,@INSTALL@,$ac_INSTALL,;t t
16939 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16940 rm -f $tmp/stdin
16941 if test x"$ac_file" != x-; then
16942 mv $tmp/out $ac_file
16943 else
16944 cat $tmp/out
16945 rm -f $tmp/out
16946 fi
16947
16948 done
16949 _ACEOF
16950 cat >>$CONFIG_STATUS <<\_ACEOF
16951
16952 #
16953 # CONFIG_HEADER section.
16954 #
16955
16956 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16957 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16958 #
16959 # ac_d sets the value in "#define NAME VALUE" lines.
16960 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16961 ac_dB='[ ].*$,\1#\2'
16962 ac_dC=' '
16963 ac_dD=',;t'
16964 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16965 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16966 ac_uB='$,\1#\2define\3'
16967 ac_uC=' '
16968 ac_uD=',;t'
16969
16970 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16971 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16972 case $ac_file in
16973 - | *:- | *:-:* ) # input from stdin
16974 cat >$tmp/stdin
16975 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16976 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16977 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16978 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16979 * ) ac_file_in=$ac_file.in ;;
16980 esac
16981
16982 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16983 echo "$as_me: creating $ac_file" >&6;}
16984
16985 # First look for the input files in the build tree, otherwise in the
16986 # src tree.
16987 ac_file_inputs=`IFS=:
16988 for f in $ac_file_in; do
16989 case $f in
16990 -) echo $tmp/stdin ;;
16991 [\\/$]*)
16992 # Absolute (can't be DOS-style, as IFS=:)
16993 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16994 echo "$as_me: error: cannot find input file: $f" >&2;}
16995 { (exit 1); exit 1; }; }
16996 echo $f;;
16997 *) # Relative
16998 if test -f "$f"; then
16999 # Build tree
17000 echo $f
17001 elif test -f "$srcdir/$f"; then
17002 # Source tree
17003 echo $srcdir/$f
17004 else
17005 # /dev/null tree
17006 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17007 echo "$as_me: error: cannot find input file: $f" >&2;}
17008 { (exit 1); exit 1; }; }
17009 fi;;
17010 esac
17011 done` || { (exit 1); exit 1; }
17012 # Remove the trailing spaces.
17013 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17014
17015 _ACEOF
17016
17017 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17018 # `conftest.undefs', that substitutes the proper values into
17019 # config.h.in to produce config.h. The first handles `#define'
17020 # templates, and the second `#undef' templates.
17021 # And first: Protect against being on the right side of a sed subst in
17022 # config.status. Protect against being in an unquoted here document
17023 # in config.status.
17024 rm -f conftest.defines conftest.undefs
17025 # Using a here document instead of a string reduces the quoting nightmare.
17026 # Putting comments in sed scripts is not portable.
17027 #
17028 # `end' is used to avoid that the second main sed command (meant for
17029 # 0-ary CPP macros) applies to n-ary macro definitions.
17030 # See the Autoconf documentation for `clear'.
17031 cat >confdef2sed.sed <<\_ACEOF
17032 s/[\\&,]/\\&/g
17033 s,[\\$`],\\&,g
17034 t clear
17035 : clear
17036 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17037 t end
17038 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17039 : end
17040 _ACEOF
17041 # If some macros were called several times there might be several times
17042 # the same #defines, which is useless. Nevertheless, we may not want to
17043 # sort them, since we want the *last* AC-DEFINE to be honored.
17044 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17045 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17046 rm -f confdef2sed.sed
17047
17048 # This sed command replaces #undef with comments. This is necessary, for
17049 # example, in the case of _POSIX_SOURCE, which is predefined and required
17050 # on some systems where configure will not decide to define it.
17051 cat >>conftest.undefs <<\_ACEOF
17052 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17053 _ACEOF
17054
17055 # Break up conftest.defines because some shells have a limit on the size
17056 # of here documents, and old seds have small limits too (100 cmds).
17057 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17058 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17059 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17060 echo ' :' >>$CONFIG_STATUS
17061 rm -f conftest.tail
17062 while grep . conftest.defines >/dev/null
17063 do
17064 # Write a limited-size here document to $tmp/defines.sed.
17065 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17066 # Speed up: don't consider the non `#define' lines.
17067 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17068 # Work around the forget-to-reset-the-flag bug.
17069 echo 't clr' >>$CONFIG_STATUS
17070 echo ': clr' >>$CONFIG_STATUS
17071 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17072 echo 'CEOF
17073 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17074 rm -f $tmp/in
17075 mv $tmp/out $tmp/in
17076 ' >>$CONFIG_STATUS
17077 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17078 rm -f conftest.defines
17079 mv conftest.tail conftest.defines
17080 done
17081 rm -f conftest.defines
17082 echo ' fi # egrep' >>$CONFIG_STATUS
17083 echo >>$CONFIG_STATUS
17084
17085 # Break up conftest.undefs because some shells have a limit on the size
17086 # of here documents, and old seds have small limits too (100 cmds).
17087 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17088 rm -f conftest.tail
17089 while grep . conftest.undefs >/dev/null
17090 do
17091 # Write a limited-size here document to $tmp/undefs.sed.
17092 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17093 # Speed up: don't consider the non `#undef'
17094 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17095 # Work around the forget-to-reset-the-flag bug.
17096 echo 't clr' >>$CONFIG_STATUS
17097 echo ': clr' >>$CONFIG_STATUS
17098 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17099 echo 'CEOF
17100 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17101 rm -f $tmp/in
17102 mv $tmp/out $tmp/in
17103 ' >>$CONFIG_STATUS
17104 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17105 rm -f conftest.undefs
17106 mv conftest.tail conftest.undefs
17107 done
17108 rm -f conftest.undefs
17109
17110 cat >>$CONFIG_STATUS <<\_ACEOF
17111 # Let's still pretend it is `configure' which instantiates (i.e., don't
17112 # use $as_me), people would be surprised to read:
17113 # /* config.h. Generated by config.status. */
17114 if test x"$ac_file" = x-; then
17115 echo "/* Generated by configure. */" >$tmp/config.h
17116 else
17117 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17118 fi
17119 cat $tmp/in >>$tmp/config.h
17120 rm -f $tmp/in
17121 if test x"$ac_file" != x-; then
17122 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17123 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17124 echo "$as_me: $ac_file is unchanged" >&6;}
17125 else
17126 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17127 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17128 X"$ac_file" : 'X\(//\)[^/]' \| \
17129 X"$ac_file" : 'X\(//\)$' \| \
17130 X"$ac_file" : 'X\(/\)' \| \
17131 . : '\(.\)' 2>/dev/null ||
17132 echo X"$ac_file" |
17133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17135 /^X\(\/\/\)$/{ s//\1/; q; }
17136 /^X\(\/\).*/{ s//\1/; q; }
17137 s/.*/./; q'`
17138 { case "$ac_dir" in
17139 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17140 *) as_incr_dir=.;;
17141 esac
17142 as_dummy="$ac_dir"
17143 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17144 case $as_mkdir_dir in
17145 # Skip DOS drivespec
17146 ?:) as_incr_dir=$as_mkdir_dir ;;
17147 *)
17148 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17149 test -d "$as_incr_dir" ||
17150 mkdir "$as_incr_dir" ||
17151 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17152 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17153 { (exit 1); exit 1; }; }
17154 ;;
17155 esac
17156 done; }
17157
17158 rm -f $ac_file
17159 mv $tmp/config.h $ac_file
17160 fi
17161 else
17162 cat $tmp/config.h
17163 rm -f $tmp/config.h
17164 fi
17165 done
17166 _ACEOF
17167 cat >>$CONFIG_STATUS <<\_ACEOF
17168
17169 #
17170 # CONFIG_COMMANDS section.
17171 #
17172 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17173 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17174 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17175 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17176 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17177 X"$ac_dest" : 'X\(//\)[^/]' \| \
17178 X"$ac_dest" : 'X\(//\)$' \| \
17179 X"$ac_dest" : 'X\(/\)' \| \
17180 . : '\(.\)' 2>/dev/null ||
17181 echo X"$ac_dest" |
17182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17184 /^X\(\/\/\)$/{ s//\1/; q; }
17185 /^X\(\/\).*/{ s//\1/; q; }
17186 s/.*/./; q'`
17187 ac_builddir=.
17188
17189 if test "$ac_dir" != .; then
17190 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17191 # A "../" for each directory in $ac_dir_suffix.
17192 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17193 else
17194 ac_dir_suffix= ac_top_builddir=
17195 fi
17196
17197 case $srcdir in
17198 .) # No --srcdir option. We are building in place.
17199 ac_srcdir=.
17200 if test -z "$ac_top_builddir"; then
17201 ac_top_srcdir=.
17202 else
17203 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17204 fi ;;
17205 [\\/]* | ?:[\\/]* ) # Absolute path.
17206 ac_srcdir=$srcdir$ac_dir_suffix;
17207 ac_top_srcdir=$srcdir ;;
17208 *) # Relative path.
17209 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17210 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17211 esac
17212 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17213 # absolute.
17214 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17215 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17216 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17217 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17218
17219
17220 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17221 echo "$as_me: executing $ac_dest commands" >&6;}
17222 case $ac_dest in
17223 default )
17224
17225 ### Make the necessary directories, if they don't exist.
17226 for dir in etc lisp ; do
17227 test -d ${dir} || mkdir ${dir}
17228 done
17229
17230 # Build src/Makefile from ${srcdir}/src/Makefile.c
17231 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
17232 # This must be done after src/config.h is built, since we rely on that file.
17233
17234 # Now get this: Some word that is part of the ${srcdir} directory name
17235 # or the ${configuration} value might, just might, happen to be an
17236 # identifier like `sun4' or `i386' or something, and be predefined by
17237 # the C preprocessor to some helpful value like 1, or maybe the empty
17238 # string. Needless to say consequent macro substitutions are less
17239 # than conducive to the makefile finding the correct directory.
17240 undefs="`echo $top_srcdir $configuration $canonical |
17241 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
17242 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
17243 `"
17244
17245 echo creating src/epaths.h
17246 ${MAKE-make} epaths-force
17247
17248 # As of 2000-11-19, newest development versions of GNU cpp preprocess
17249 # `..' to `. .' unless invoked with -traditional
17250
17251 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
17252 CPPFLAGS="$CPPFLAGS -traditional"
17253 fi
17254
17255 echo creating lib-src/Makefile
17256 ( cd lib-src
17257 rm -f junk.c junk1.c junk2.c
17258 sed -e '/start of cpp stuff/q' \
17259 < Makefile.c > junk1.c
17260 sed -e '1,/start of cpp stuff/d'\
17261 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17262 < Makefile.c > junk.c
17263 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
17264 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17265 cat junk1.c junk2.c > Makefile.new
17266 rm -f junk.c junk1.c junk2.c
17267 chmod 444 Makefile.new
17268 mv -f Makefile.new Makefile
17269 )
17270
17271 echo creating src/Makefile
17272 ( cd src
17273 rm -f junk.c junk1.c junk2.c
17274 sed -e '/start of cpp stuff/q' \
17275 < Makefile.c > junk1.c
17276 sed -e '1,/start of cpp stuff/d'\
17277 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17278 < Makefile.c > junk.c
17279 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
17280 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17281 cat junk1.c junk2.c > Makefile.new
17282 rm -f junk.c junk1.c junk2.c
17283 chmod 444 Makefile.new
17284 mv -f Makefile.new Makefile
17285 )
17286
17287 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
17288 echo creating src/.gdbinit
17289 echo source $srcdir/src/.gdbinit > src/.gdbinit
17290 fi
17291
17292 # This is how we know whether to re-run configure in certain cases.
17293 touch src/config.stamp
17294
17295 ;;
17296 esac
17297 done
17298 _ACEOF
17299
17300 cat >>$CONFIG_STATUS <<\_ACEOF
17301
17302 { (exit 0); exit 0; }
17303 _ACEOF
17304 chmod +x $CONFIG_STATUS
17305 ac_clean_files=$ac_clean_files_save
17306
17307
17308 # configure is writing to config.log, and then calls config.status.
17309 # config.status does its own redirection, appending to config.log.
17310 # Unfortunately, on DOS this fails, as config.log is still kept open
17311 # by configure, so config.status won't be able to write to it; its
17312 # output is simply discarded. So we exec the FD to /dev/null,
17313 # effectively closing config.log, so it can be properly (re)opened and
17314 # appended to by config.status. When coming back to configure, we
17315 # need to make the FD available again.
17316 if test "$no_create" != yes; then
17317 ac_cs_success=:
17318 exec 5>/dev/null
17319 $SHELL $CONFIG_STATUS || ac_cs_success=false
17320 exec 5>>config.log
17321 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17322 # would make configure fail if this is the last instruction.
17323 $ac_cs_success || { (exit 1); exit 1; }
17324 fi
17325
17326